2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
11 # Check that we are running under the correct shell.
12 SHELL=${CONFIG_SHELL-/bin/sh}
16 # Remove one level of quotation (which was required for Make).
17 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
22 if test "X$1" = X--no-reexec; then
23 # Discard the --no-reexec flag, and continue.
25 elif test "X$1" = X--fallback-echo; then
26 # Avoid inline document here, it may be left over
28 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
29 # Yippee, $echo works!
32 # Restart under the correct shell.
33 exec $SHELL "$0" --no-reexec ${1+"$@"}
36 if test "X$1" = X--fallback-echo; then
37 # used as fallback echo
45 # The HP-UX ksh and POSIX shell print the target directory to stdout
47 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
49 if test -z "$ECHO"; then
50 if test "X${echo_test_string+set}" != Xset; then
51 # find a string as large as possible, as long as the shell can cope with it
52 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
53 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
54 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
55 echo_test_string="`eval $cmd`" &&
56 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
63 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
64 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
65 test "X$echo_testing_string" = "X$echo_test_string"; then
68 # The Solaris, AIX, and Digital Unix default echo programs unquote
69 # backslashes. This makes it impossible to quote backslashes using
70 # echo "$something" | sed 's/\\/\\\\/g'
72 # So, first we look for a working echo in the user's PATH.
74 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
75 for dir in $PATH /usr/ucb; do
77 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
78 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
79 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
80 test "X$echo_testing_string" = "X$echo_test_string"; then
87 if test "X$echo" = Xecho; then
88 # We didn't find a better echo, so look for alternatives.
89 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
90 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
91 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # This shell has a builtin print -r that does the trick.
94 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
95 test "X$CONFIG_SHELL" != X/bin/ksh; then
96 # If we have ksh, try running configure again with it.
97 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
98 export ORIGINAL_CONFIG_SHELL
101 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
105 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
106 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
107 test "X$echo_testing_string" = "X$echo_test_string"; then
110 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
111 test "X$echo_testing_string" = 'X\t' &&
112 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
116 SHELL="$CONFIG_SHELL"
118 echo="$CONFIG_SHELL $0 --fallback-echo"
119 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 echo="$CONFIG_SHELL $0 --fallback-echo"
125 # maybe with a smaller string...
128 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
129 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
136 if test "$prev" != 'sed 50q "$0"'; then
137 echo_test_string=`eval $prev`
138 export echo_test_string
139 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
141 # Oops. We lost completely, so just stick with echo.
150 # Copy echo and quote the copy suitably for passing to libtool from
151 # the Makefile, instead of quoting the original, which is used later.
153 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
154 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
160 # Check that we are running under the correct shell.
161 SHELL=${CONFIG_SHELL-/bin/sh}
165 # Remove one level of quotation (which was required for Make).
166 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
171 if test "X$1" = X--no-reexec; then
172 # Discard the --no-reexec flag, and continue.
174 elif test "X$1" = X--fallback-echo; then
175 # Avoid inline document here, it may be left over
177 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
178 # Yippee, $echo works!
181 # Restart under the correct shell.
182 exec $SHELL "$0" --no-reexec ${1+"$@"}
185 if test "X$1" = X--fallback-echo; then
186 # used as fallback echo
194 # The HP-UX ksh and POSIX shell print the target directory to stdout
196 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
198 if test -z "$ECHO"; then
199 if test "X${echo_test_string+set}" != Xset; then
200 # find a string as large as possible, as long as the shell can cope with it
201 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
202 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
203 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
204 echo_test_string="`eval $cmd`" &&
205 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
212 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
213 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
214 test "X$echo_testing_string" = "X$echo_test_string"; then
217 # The Solaris, AIX, and Digital Unix default echo programs unquote
218 # backslashes. This makes it impossible to quote backslashes using
219 # echo "$something" | sed 's/\\/\\\\/g'
221 # So, first we look for a working echo in the user's PATH.
223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
224 for dir in $PATH /usr/ucb; do
226 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
227 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
228 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
229 test "X$echo_testing_string" = "X$echo_test_string"; then
236 if test "X$echo" = Xecho; then
237 # We didn't find a better echo, so look for alternatives.
238 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
241 # This shell has a builtin print -r that does the trick.
243 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
244 test "X$CONFIG_SHELL" != X/bin/ksh; then
245 # If we have ksh, try running configure again with it.
246 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
247 export ORIGINAL_CONFIG_SHELL
248 CONFIG_SHELL=/bin/ksh
250 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
254 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
259 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
260 test "X$echo_testing_string" = 'X\t' &&
261 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
263 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
265 SHELL="$CONFIG_SHELL"
267 echo="$CONFIG_SHELL $0 --fallback-echo"
268 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 echo="$CONFIG_SHELL $0 --fallback-echo"
274 # maybe with a smaller string...
277 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
278 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
285 if test "$prev" != 'sed 50q "$0"'; then
286 echo_test_string=`eval $prev`
287 export echo_test_string
288 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
290 # Oops. We lost completely, so just stick with echo.
299 # Copy echo and quote the copy suitably for passing to libtool from
300 # the Makefile, instead of quoting the original, which is used later.
302 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
303 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
308 if expr a : '\(a\)' >/dev/null 2>&1; then
315 ## --------------------- ##
316 ## M4sh Initialization. ##
317 ## --------------------- ##
319 # Be Bourne compatible
320 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
323 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
328 # Support unset when possible.
329 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
335 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
336 { $as_unset LANG || test "${LANG+set}" != set; } ||
337 { LANG=C; export LANG; }
338 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
339 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
340 { LC_ALL=C; export LC_ALL; }
341 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
342 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
343 { LC_TIME=C; export LC_TIME; }
344 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
345 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
346 { LC_CTYPE=C; export LC_CTYPE; }
347 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
348 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
349 { LANGUAGE=C; export LANGUAGE; }
350 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
351 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
352 { LC_COLLATE=C; export LC_COLLATE; }
353 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
354 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
355 { LC_NUMERIC=C; export LC_NUMERIC; }
356 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
357 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
358 { LC_MESSAGES=C; export LC_MESSAGES; }
361 # Name of the executable.
362 as_me=`(basename "$0") 2>/dev/null ||
363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
364 X"$0" : 'X\(//\)$' \| \
365 X"$0" : 'X\(/\)$' \| \
366 . : '\(.\)' 2>/dev/null ||
368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
369 /^X\/\(\/\/\)$/{ s//\1/; q; }
370 /^X\/\(\/\).*/{ s//\1/; q; }
373 # PATH needs CR, and LINENO needs CR and PATH.
374 # Avoid depending upon Character Ranges.
375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
378 as_cr_digits='0123456789'
379 as_cr_alnum=$as_cr_Letters$as_cr_digits
381 # The user is always right.
382 if test "${PATH_SEPARATOR+set}" != set; then
383 echo "#! /bin/sh" >conftest.sh
384 echo "exit 0" >>conftest.sh
386 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
398 test "x$as_lineno_1" != "x$as_lineno_2" &&
399 test "x$as_lineno_3" = "x$as_lineno_2" || {
400 # Find who we are. Look in the path if we contain no path at all
403 *[\\/]* ) as_myself=$0 ;;
404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
408 test -z "$as_dir" && as_dir=.
409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
414 # We did not find ourselves, most probably we were run as `sh COMMAND'
415 # in which case we are not to be found in the path.
416 if test "x$as_myself" = x; then
419 if test ! -f "$as_myself"; then
420 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
421 { (exit 1); exit 1; }; }
423 case $CONFIG_SHELL in
425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
426 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
429 test -z "$as_dir" && as_dir=.
430 for as_base in sh bash ksh sh5; do
433 if ("$as_dir/$as_base" -c '
436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
437 test "x$as_lineno_1" != "x$as_lineno_2" &&
438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
439 CONFIG_SHELL=$as_dir/$as_base
441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line before each line; the second 'sed' does the real
452 # work. The second script uses 'N' to pair each line-number line
453 # with the numbered line, and appends trailing '-' during
454 # substitution so that $LINENO is not a special case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
457 sed '=' <$as_myself |
462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
465 s,^['$as_cr_digits']*\n,,
467 chmod +x $as_me.lineno ||
468 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
469 { (exit 1); exit 1; }; }
471 # Don't try to exec as it changes $[0], causing all sort of problems
472 # (the dirname of $[0] is not the place where we might find the
473 # original and so on. Autoconf is especially sensible to this).
475 # Exit status is that of the last command.
480 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
481 *c*,-n*) ECHO_N= ECHO_C='
483 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
484 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
487 if expr a : '\(a\)' >/dev/null 2>&1; then
493 rm -f conf$$ conf$$.exe conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # We could just check for DJGPP; but this test a) works b) is more generic
497 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
498 if test -f conf$$.exe; then
499 # Don't use ln at all; we don't have any links
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.file
511 as_executable_p="test -f"
513 # Sed expression to map a string onto a valid CPP name.
514 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
516 # Sed expression to map a string onto a valid variable name.
517 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
521 # We need space, tab and new line, in precisely that order.
527 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
531 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
532 # so uname gets run too.
533 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
545 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Maximum number of lines to put in a shell here document.
548 # This variable seems obsolete. It should probably be removed, and
549 # only ac_max_sed_lines should be used.
550 : ${ac_max_here_lines=38}
552 # Identity of this package.
559 ac_unique_file="acinclude.m4"
560 ac_default_prefix=/usr/local
561 # Factoring default headers for most tests.
562 ac_includes_default="\
565 # include <sys/types.h>
568 # include <sys/stat.h>
579 # if !STDC_HEADERS && HAVE_MEMORY_H
585 # include <strings.h>
588 # include <inttypes.h>
599 # Initialize some variables set by options.
601 ac_init_version=false
602 # The variables have the same names as the options, with
603 # dashes changed to underlines.
611 program_transform_name=s,x,x,
619 # Installation directory options.
620 # These are left unexpanded so users can "make install exec_prefix=/foo"
621 # and all the variables that are supposed to be based on exec_prefix
622 # by default will actually change.
623 # Use braces instead of parens because sh, perl, etc. also accept them.
624 bindir='${exec_prefix}/bin'
625 sbindir='${exec_prefix}/sbin'
626 libexecdir='${exec_prefix}/libexec'
627 datadir='${prefix}/share'
628 sysconfdir='${prefix}/etc'
629 sharedstatedir='${prefix}/com'
630 localstatedir='${prefix}/var'
631 libdir='${exec_prefix}/lib'
632 includedir='${prefix}/include'
633 oldincludedir='/usr/include'
634 infodir='${prefix}/info'
635 mandir='${prefix}/man'
640 # If the previous option needs an argument, assign it.
641 if test -n "$ac_prev"; then
642 eval "$ac_prev=\$ac_option"
647 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
649 # Accept the important Cygnus configure options, so we can diagnose typos.
653 -bindir | --bindir | --bindi | --bind | --bin | --bi)
655 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
658 -build | --build | --buil | --bui | --bu)
659 ac_prev=build_alias ;;
660 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
661 build_alias=$ac_optarg ;;
663 -cache-file | --cache-file | --cache-fil | --cache-fi \
664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
665 ac_prev=cache_file ;;
666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
668 cache_file=$ac_optarg ;;
671 cache_file=config.cache ;;
673 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
675 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
677 datadir=$ac_optarg ;;
679 -disable-* | --disable-*)
680 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
681 # Reject names that are not valid shell variable names.
682 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
683 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
684 { (exit 1); exit 1; }; }
685 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
686 eval "enable_$ac_feature=no" ;;
688 -enable-* | --enable-*)
689 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
690 # Reject names that are not valid shell variable names.
691 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
692 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
693 { (exit 1); exit 1; }; }
694 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
696 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
699 eval "enable_$ac_feature='$ac_optarg'" ;;
701 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
702 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
703 | --exec | --exe | --ex)
704 ac_prev=exec_prefix ;;
705 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
706 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
707 | --exec=* | --exe=* | --ex=*)
708 exec_prefix=$ac_optarg ;;
710 -gas | --gas | --ga | --g)
711 # Obsolete; use --with-gas.
714 -help | --help | --hel | --he | -h)
716 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
717 ac_init_help=recursive ;;
718 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
719 ac_init_help=short ;;
721 -host | --host | --hos | --ho)
722 ac_prev=host_alias ;;
723 -host=* | --host=* | --hos=* | --ho=*)
724 host_alias=$ac_optarg ;;
726 -includedir | --includedir | --includedi | --included | --include \
727 | --includ | --inclu | --incl | --inc)
728 ac_prev=includedir ;;
729 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
730 | --includ=* | --inclu=* | --incl=* | --inc=*)
731 includedir=$ac_optarg ;;
733 -infodir | --infodir | --infodi | --infod | --info | --inf)
735 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
736 infodir=$ac_optarg ;;
738 -libdir | --libdir | --libdi | --libd)
740 -libdir=* | --libdir=* | --libdi=* | --libd=*)
743 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
744 | --libexe | --libex | --libe)
745 ac_prev=libexecdir ;;
746 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
747 | --libexe=* | --libex=* | --libe=*)
748 libexecdir=$ac_optarg ;;
750 -localstatedir | --localstatedir | --localstatedi | --localstated \
751 | --localstate | --localstat | --localsta | --localst \
752 | --locals | --local | --loca | --loc | --lo)
753 ac_prev=localstatedir ;;
754 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
755 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
756 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
757 localstatedir=$ac_optarg ;;
759 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
761 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
765 # Obsolete; use --without-fp.
768 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
769 | --no-cr | --no-c | -n)
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
776 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
777 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
778 | --oldin | --oldi | --old | --ol | --o)
779 ac_prev=oldincludedir ;;
780 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
781 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
782 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
783 oldincludedir=$ac_optarg ;;
785 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
787 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
790 -program-prefix | --program-prefix | --program-prefi | --program-pref \
791 | --program-pre | --program-pr | --program-p)
792 ac_prev=program_prefix ;;
793 -program-prefix=* | --program-prefix=* | --program-prefi=* \
794 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
795 program_prefix=$ac_optarg ;;
797 -program-suffix | --program-suffix | --program-suffi | --program-suff \
798 | --program-suf | --program-su | --program-s)
799 ac_prev=program_suffix ;;
800 -program-suffix=* | --program-suffix=* | --program-suffi=* \
801 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
802 program_suffix=$ac_optarg ;;
804 -program-transform-name | --program-transform-name \
805 | --program-transform-nam | --program-transform-na \
806 | --program-transform-n | --program-transform- \
807 | --program-transform | --program-transfor \
808 | --program-transfo | --program-transf \
809 | --program-trans | --program-tran \
810 | --progr-tra | --program-tr | --program-t)
811 ac_prev=program_transform_name ;;
812 -program-transform-name=* | --program-transform-name=* \
813 | --program-transform-nam=* | --program-transform-na=* \
814 | --program-transform-n=* | --program-transform-=* \
815 | --program-transform=* | --program-transfor=* \
816 | --program-transfo=* | --program-transf=* \
817 | --program-trans=* | --program-tran=* \
818 | --progr-tra=* | --program-tr=* | --program-t=*)
819 program_transform_name=$ac_optarg ;;
821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
822 | -silent | --silent | --silen | --sile | --sil)
825 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
827 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
829 sbindir=$ac_optarg ;;
831 -sharedstatedir | --sharedstatedir | --sharedstatedi \
832 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
833 | --sharedst | --shareds | --shared | --share | --shar \
835 ac_prev=sharedstatedir ;;
836 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
837 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
838 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
840 sharedstatedir=$ac_optarg ;;
842 -site | --site | --sit)
844 -site=* | --site=* | --sit=*)
847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
852 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
853 | --syscon | --sysco | --sysc | --sys | --sy)
854 ac_prev=sysconfdir ;;
855 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
856 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
857 sysconfdir=$ac_optarg ;;
859 -target | --target | --targe | --targ | --tar | --ta | --t)
860 ac_prev=target_alias ;;
861 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
862 target_alias=$ac_optarg ;;
864 -v | -verbose | --verbose | --verbos | --verbo | --verb)
867 -version | --version | --versio | --versi | --vers | -V)
871 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid package name: $ac_package" >&2
875 { (exit 1); exit 1; }; }
876 ac_package=`echo $ac_package| sed 's/-/_/g'`
878 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
881 eval "with_$ac_package='$ac_optarg'" ;;
883 -without-* | --without-*)
884 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid package name: $ac_package" >&2
888 { (exit 1); exit 1; }; }
889 ac_package=`echo $ac_package | sed 's/-/_/g'`
890 eval "with_$ac_package=no" ;;
893 # Obsolete; use --with-x.
896 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
897 | --x-incl | --x-inc | --x-in | --x-i)
898 ac_prev=x_includes ;;
899 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
900 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
901 x_includes=$ac_optarg ;;
903 -x-libraries | --x-libraries | --x-librarie | --x-librari \
904 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
905 ac_prev=x_libraries ;;
906 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
907 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
908 x_libraries=$ac_optarg ;;
910 -*) { echo "$as_me: error: unrecognized option: $ac_option
911 Try \`$0 --help' for more information." >&2
912 { (exit 1); exit 1; }; }
916 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
920 { (exit 1); exit 1; }; }
921 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
922 eval "$ac_envvar='$ac_optarg'"
926 # FIXME: should be removed in autoconf 3.0.
927 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
928 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
929 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
930 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
936 if test -n "$ac_prev"; then
937 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
938 { echo "$as_me: error: missing argument to $ac_option" >&2
939 { (exit 1); exit 1; }; }
942 # Be sure to have absolute paths.
943 for ac_var in exec_prefix prefix
945 eval ac_val=$`echo $ac_var`
947 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
948 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
949 { (exit 1); exit 1; }; };;
953 # Be sure to have absolute paths.
954 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
955 localstatedir libdir includedir oldincludedir infodir mandir
957 eval ac_val=$`echo $ac_var`
959 [\\/$]* | ?:[\\/]* ) ;;
960 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
961 { (exit 1); exit 1; }; };;
965 # There might be people who depend on the old broken behavior: `$host'
966 # used to hold the argument of --host etc.
967 # FIXME: To remove some day.
972 # FIXME: To remove some day.
973 if test "x$host_alias" != x; then
974 if test "x$build_alias" = x; then
975 cross_compiling=maybe
976 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
977 If a cross compiler is detected then cross compile mode will be used." >&2
978 elif test "x$build_alias" != "x$host_alias"; then
984 test -n "$host_alias" && ac_tool_prefix=$host_alias-
986 test "$silent" = yes && exec 6>/dev/null
989 # Find the source files, if location was not specified.
990 if test -z "$srcdir"; then
991 ac_srcdir_defaulted=yes
992 # Try the directory containing this script, then its parent.
993 ac_confdir=`(dirname "$0") 2>/dev/null ||
994 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
995 X"$0" : 'X\(//\)[^/]' \| \
996 X"$0" : 'X\(//\)$' \| \
997 X"$0" : 'X\(/\)' \| \
998 . : '\(.\)' 2>/dev/null ||
1000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1002 /^X\(\/\/\)$/{ s//\1/; q; }
1003 /^X\(\/\).*/{ s//\1/; q; }
1006 if test ! -r $srcdir/$ac_unique_file; then
1010 ac_srcdir_defaulted=no
1012 if test ! -r $srcdir/$ac_unique_file; then
1013 if test "$ac_srcdir_defaulted" = yes; then
1014 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1015 { (exit 1); exit 1; }; }
1017 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1018 { (exit 1); exit 1; }; }
1021 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1022 ac_env_build_alias_set=${build_alias+set}
1023 ac_env_build_alias_value=$build_alias
1024 ac_cv_env_build_alias_set=${build_alias+set}
1025 ac_cv_env_build_alias_value=$build_alias
1026 ac_env_host_alias_set=${host_alias+set}
1027 ac_env_host_alias_value=$host_alias
1028 ac_cv_env_host_alias_set=${host_alias+set}
1029 ac_cv_env_host_alias_value=$host_alias
1030 ac_env_target_alias_set=${target_alias+set}
1031 ac_env_target_alias_value=$target_alias
1032 ac_cv_env_target_alias_set=${target_alias+set}
1033 ac_cv_env_target_alias_value=$target_alias
1034 ac_env_CC_set=${CC+set}
1036 ac_cv_env_CC_set=${CC+set}
1037 ac_cv_env_CC_value=$CC
1038 ac_env_CFLAGS_set=${CFLAGS+set}
1039 ac_env_CFLAGS_value=$CFLAGS
1040 ac_cv_env_CFLAGS_set=${CFLAGS+set}
1041 ac_cv_env_CFLAGS_value=$CFLAGS
1042 ac_env_LDFLAGS_set=${LDFLAGS+set}
1043 ac_env_LDFLAGS_value=$LDFLAGS
1044 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1045 ac_cv_env_LDFLAGS_value=$LDFLAGS
1046 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1047 ac_env_CPPFLAGS_value=$CPPFLAGS
1048 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1049 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1050 ac_env_CXX_set=${CXX+set}
1051 ac_env_CXX_value=$CXX
1052 ac_cv_env_CXX_set=${CXX+set}
1053 ac_cv_env_CXX_value=$CXX
1054 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1055 ac_env_CXXFLAGS_value=$CXXFLAGS
1056 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1057 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1058 ac_env_CPP_set=${CPP+set}
1059 ac_env_CPP_value=$CPP
1060 ac_cv_env_CPP_set=${CPP+set}
1061 ac_cv_env_CPP_value=$CPP
1062 ac_env_CXXCPP_set=${CXXCPP+set}
1063 ac_env_CXXCPP_value=$CXXCPP
1064 ac_cv_env_CXXCPP_set=${CXXCPP+set}
1065 ac_cv_env_CXXCPP_value=$CXXCPP
1068 # Report the --help message.
1070 if test "$ac_init_help" = "long"; then
1071 # Omit some internal or obsolete options to make the list less imposing.
1072 # This message is too long to be a string in the A/UX 3.1 sh.
1074 \`configure' configures this package to adapt to many kinds of systems.
1076 Usage: $0 [OPTION]... [VAR=VALUE]...
1078 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1079 VAR=VALUE. See below for descriptions of some of the useful variables.
1081 Defaults for the options are specified in brackets.
1084 -h, --help display this help and exit
1085 --help=short display options specific to this package
1086 --help=recursive display the short help of all the included packages
1087 -V, --version display version information and exit
1088 -q, --quiet, --silent do not print \`checking...' messages
1089 --cache-file=FILE cache test results in FILE [disabled]
1090 -C, --config-cache alias for \`--cache-file=config.cache'
1091 -n, --no-create do not create output files
1092 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1097 Installation directories:
1098 --prefix=PREFIX install architecture-independent files in PREFIX
1099 [$ac_default_prefix]
1100 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1103 By default, \`make install' will install all the files in
1104 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1105 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1106 for instance \`--prefix=\$HOME'.
1108 For better control, use the options below.
1110 Fine tuning of the installation directories:
1111 --bindir=DIR user executables [EPREFIX/bin]
1112 --sbindir=DIR system admin executables [EPREFIX/sbin]
1113 --libexecdir=DIR program executables [EPREFIX/libexec]
1114 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1118 --libdir=DIR object code libraries [EPREFIX/lib]
1119 --includedir=DIR C header files [PREFIX/include]
1120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1121 --infodir=DIR info documentation [PREFIX/info]
1122 --mandir=DIR man documentation [PREFIX/man]
1128 --program-prefix=PREFIX prepend PREFIX to installed program names
1129 --program-suffix=SUFFIX append SUFFIX to installed program names
1130 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1133 --build=BUILD configure for building on BUILD [guessed]
1134 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1135 --target=TARGET configure for building compilers for TARGET [HOST]
1139 if test -n "$ac_init_help"; then
1144 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1145 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1146 --disable-dependency-tracking Speeds up one-time builds
1147 --enable-dependency-tracking Do not reject slow dependency extractors
1148 --enable-debug enables debug symbols default=no
1149 --disable-debug disables debug output and debug symbols default=no
1150 --enable-strict compiles with strict compiler options (may not work!)
1151 --enable-profile creates profiling infos default=no
1152 --enable-final build size optimized apps (experimental - needs lots of memory)
1153 --disable-closure don't delay template instantiation
1154 --enable-shared[=PKGS]
1155 build shared libraries [default=yes]
1156 --enable-static[=PKGS]
1157 build static libraries [default=yes]
1158 --enable-fast-install[=PKGS]
1159 optimize for fast installation [default=yes]
1160 --disable-libtool-lock avoid locking (might break parallel builds)
1163 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1164 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1165 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1166 --with-pic try to use only PIC/non-PIC objects [default=use
1168 --with-tags=TAGS include additional configurations [CXX,GCJ]
1170 Some influential environment variables:
1171 CC C compiler command
1172 CFLAGS C compiler flags
1173 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1174 nonstandard directory <lib dir>
1175 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1176 headers in a nonstandard directory <include dir>
1177 CXX C++ compiler command
1178 CXXFLAGS C++ compiler flags
1180 CXXCPP C++ preprocessor
1182 Use these variables to override the choices made by `configure' or to help
1183 it to find libraries and programs with nonstandard names/locations.
1188 if test "$ac_init_help" = "recursive"; then
1189 # If there are subdirs, report their specific --help.
1191 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1192 test -d $ac_dir || continue
1195 if test "$ac_dir" != .; then
1196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1197 # A "../" for each directory in $ac_dir_suffix.
1198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1200 ac_dir_suffix= ac_top_builddir=
1204 .) # No --srcdir option. We are building in place.
1206 if test -z "$ac_top_builddir"; then
1209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1211 [\\/]* | ?:[\\/]* ) # Absolute path.
1212 ac_srcdir=$srcdir$ac_dir_suffix;
1213 ac_top_srcdir=$srcdir ;;
1215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1218 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1220 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1221 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1222 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1223 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1226 # Check for guested configure; otherwise get Cygnus style configure.
1227 if test -f $ac_srcdir/configure.gnu; then
1229 $SHELL $ac_srcdir/configure.gnu --help=recursive
1230 elif test -f $ac_srcdir/configure; then
1232 $SHELL $ac_srcdir/configure --help=recursive
1233 elif test -f $ac_srcdir/configure.ac ||
1234 test -f $ac_srcdir/configure.in; then
1236 $ac_configure --help
1238 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1244 test -n "$ac_init_help" && exit 0
1245 if $ac_init_version; then
1248 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1249 Free Software Foundation, Inc.
1250 This configure script is free software; the Free Software Foundation
1251 gives unlimited permission to copy, distribute and modify it.
1257 This file contains any messages produced by compilers while
1258 running configure, to aid debugging if configure makes a mistake.
1260 It was created by $as_me, which was
1261 generated by GNU Autoconf 2.53. Invocation command line was
1272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1284 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295 test -z "$as_dir" && as_dir=.
1296 echo "PATH: $as_dir"
1311 # Keep a trace of the command line.
1312 # Strip out --no-create and --no-recursion so they do not pile up.
1313 # Also quote any args containing shell meta-characters.
1319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1320 | --no-cr | --no-c | -n ) continue ;;
1321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1332 # Get rid of the leading space.
1335 # When interrupted or exit'd, cleanup temporary files, and complete
1336 # config.log. We remove comments because anyway the quotes in there
1337 # would cause problems or look ugly.
1338 # WARNING: Be sure not to use single quotes in there, as some shells,
1339 # such as our DU 5.0 friend, will then `close' the trap.
1340 trap 'exit_status=$?
1341 # Save into config.log some information that might help in debugging.
1345 ## ---------------- ##
1346 ## Cache variables. ##
1347 ## ---------------- ##
1350 # The following way of writing the cache mishandles newlines in values,
1353 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366 if test -s confdefs.h; then
1373 sed "/^$/d" confdefs.h
1376 test "$ac_signal" != 0 &&
1377 echo "$as_me: caught signal $ac_signal"
1378 echo "$as_me: exit $exit_status"
1380 rm -f core core.* *.core &&
1381 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 for ac_signal in 1 2 13 15; do
1385 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1390 rm -rf conftest* confdefs.h
1391 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394 # Predefined preprocessor variables.
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_NAME "$PACKAGE_NAME"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_STRING "$PACKAGE_STRING"
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421 # Let the site file select an alternate cache file if it wants to.
1422 # Prefer explicitly selected file to automatically selected ones.
1423 if test -z "$CONFIG_SITE"; then
1424 if test "x$prefix" != xNONE; then
1425 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1427 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 for ac_site_file in $CONFIG_SITE; do
1431 if test -r "$ac_site_file"; then
1432 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433 echo "$as_me: loading site script $ac_site_file" >&6;}
1434 sed 's/^/| /' "$ac_site_file" >&5
1439 if test -r "$cache_file"; then
1440 # Some versions of bash will fail to source /dev/null (special
1441 # files actually), so we avoid doing that.
1442 if test -f "$cache_file"; then
1443 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444 echo "$as_me: loading cache $cache_file" >&6;}
1446 [\\/]* | ?:[\\/]* ) . $cache_file;;
1447 *) . ./$cache_file;;
1451 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452 echo "$as_me: creating cache $cache_file" >&6;}
1456 # Check that the precious variables saved in the cache have kept the same
1458 ac_cache_corrupted=false
1459 for ac_var in `(set) 2>&1 |
1460 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462 eval ac_new_set=\$ac_env_${ac_var}_set
1463 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464 eval ac_new_val="\$ac_env_${ac_var}_value"
1465 case $ac_old_set,$ac_new_set in
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1476 if test "x$ac_old_val" != "x$ac_new_val"; then
1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1480 echo "$as_me: former value: $ac_old_val" >&2;}
1481 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1482 echo "$as_me: current value: $ac_new_val" >&2;}
1483 ac_cache_corrupted=:
1486 # Pass precious variables to config.status.
1487 if test "$ac_new_set" = set; then
1489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 *) ac_arg=$ac_var=$ac_new_val ;;
1493 case " $ac_configure_args " in
1494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499 if $ac_cache_corrupted; then
1500 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504 { (exit 1); exit 1; }; }
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1531 for ac_dir in admin $srcdir/admin; do
1532 if test -f $ac_dir/install-sh; then
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1536 elif test -f $ac_dir/install.sh; then
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1540 elif test -f $ac_dir/shtool; then
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 if test -z "$ac_aux_dir"; then
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1548 echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1549 { (exit 1); exit 1; }; }
1551 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558 # Make sure we can run config.sub.
1559 $ac_config_sub sun4 >/dev/null 2>&1 ||
1560 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1561 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1562 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: checking build system type" >&5
1565 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1566 if test "${ac_cv_build+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 ac_cv_build_alias=$build_alias
1570 test -z "$ac_cv_build_alias" &&
1571 ac_cv_build_alias=`$ac_config_guess`
1572 test -z "$ac_cv_build_alias" &&
1573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1574 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1575 { (exit 1); exit 1; }; }
1576 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1582 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1583 echo "${ECHO_T}$ac_cv_build" >&6
1585 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 echo "$as_me:$LINENO: checking host system type" >&5
1591 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1592 if test "${ac_cv_host+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 ac_cv_host_alias=$host_alias
1596 test -z "$ac_cv_host_alias" &&
1597 ac_cv_host_alias=$ac_cv_build_alias
1598 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1605 echo "${ECHO_T}$ac_cv_host" >&6
1607 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612 echo "$as_me:$LINENO: checking target system type" >&5
1613 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1614 if test "${ac_cv_target+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 ac_cv_target_alias=$target_alias
1618 test "x$ac_cv_target_alias" = "x" &&
1619 ac_cv_target_alias=$ac_cv_host_alias
1620 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1627 echo "${ECHO_T}$ac_cv_target" >&6
1628 target=$ac_cv_target
1629 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634 # The aliases save the names the user supplied, while $host etc.
1635 # will get canonicalized.
1636 test -n "$target_alias" &&
1637 test "$program_prefix$program_suffix$program_transform_name" = \
1639 program_prefix=${target_alias}-
1640 test "$program_prefix" != NONE &&
1641 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1642 # Use a double $ so make ignores it.
1643 test "$program_suffix" != NONE &&
1644 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1645 # Double any \ or $. echo might interpret backslashes.
1646 # By default was `s,x,x', remove it if useless.
1647 cat <<\_ACEOF >conftest.sed
1648 s/[\\$]/&&/g;s/;s,x,x,$//
1650 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1656 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1657 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1658 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1659 # Find a good install program. We prefer a C program (faster),
1660 # so one script is as good as another. But avoid the broken or
1661 # incompatible versions:
1662 # SysV /etc/install, /usr/sbin/install
1663 # SunOS /usr/etc/install
1664 # IRIX /sbin/install
1666 # AmigaOS /C/install, which installs bootblocks on floppy discs
1667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670 # ./install, which can be erroneously created by make from ./install.sh.
1671 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1673 if test -z "$INSTALL"; then
1674 if test "${ac_cv_path_install+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 # Account for people who put trailing slashes in PATH elements.
1684 ./ | .// | /cC/* | \
1685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1688 # OSF1 and SCO ODT 3.0 have their own names for install.
1689 # Don't use installbsd from OSF since it installs stuff as root
1691 for ac_prog in ginstall scoinst install; do
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1694 if test $ac_prog = install &&
1695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1696 # AIX install. It has an incompatible calling convention.
1698 elif test $ac_prog = install &&
1699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1700 # program-specific install script used by HP pwplus--don't use.
1703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1715 if test "${ac_cv_path_install+set}" = set; then
1716 INSTALL=$ac_cv_path_install
1718 # As a last resort, use the slow shell script. We don't cache a
1719 # path for INSTALL within a source directory, because that will
1720 # break other packages using the cache if that directory is
1721 # removed, or if the path is relative.
1722 INSTALL=$ac_install_sh
1725 echo "$as_me:$LINENO: result: $INSTALL" >&5
1726 echo "${ECHO_T}$INSTALL" >&6
1728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1729 # It thinks the first close brace ends the variable substitution.
1730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1737 if test -z "$kde_save_INSTALL_given" ; then
1738 # OK, user hasn't given any INSTALL, autoconf found one for us
1739 # now we test, if it supports the -p flag
1740 echo "$as_me:$LINENO: checking for -p flag to install" >&5
1741 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1742 rm -f confinst.$$.* > /dev/null 2>&1
1743 echo "Testtest" > confinst.$$.orig
1745 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1746 if test -f confinst.$$.new ; then
1747 # OK, -p seems to do no harm to install
1748 INSTALL="${INSTALL} -p"
1753 echo "$as_me:$LINENO: result: $ac_res" >&5
1754 echo "${ECHO_T}$ac_res" >&6
1757 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1758 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1760 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1761 INSTALL_SCRIPT='${INSTALL}'
1764 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1765 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1768 echo timestamp > conftest.file
1769 # Do `set' in a subshell so we don't clobber the current shell's
1770 # arguments. Must try -L first in case configure is actually a
1771 # symlink; some systems play weird games with the mod time of symlinks
1772 # (eg FreeBSD returns the mod time of the symlink's containing
1775 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1776 if test "$*" = "X"; then
1778 set X `ls -t $srcdir/configure conftest.file`
1781 if test "$*" != "X $srcdir/configure conftest.file" \
1782 && test "$*" != "X conftest.file $srcdir/configure"; then
1784 # If neither matched, then we have a broken ls. This can happen
1785 # if, for instance, CONFIG_SHELL is bash and it inherits a
1786 # broken ls alias from the environment. This has actually
1787 # happened. Such a system could not be considered "sane".
1788 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1789 alias in your environment" >&5
1790 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1791 alias in your environment" >&2;}
1792 { (exit 1); exit 1; }; }
1795 test "$2" = conftest.file
1801 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1802 Check your system clock" >&5
1803 echo "$as_me: error: newly created file is older than distributed files!
1804 Check your system clock" >&2;}
1805 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1810 # expand $ac_aux_dir to an absolute path
1811 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1813 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1814 # Use eval to expand $SHELL
1815 if eval "$MISSING --run true"; then
1816 am_missing_run="$MISSING --run "
1820 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1821 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1824 for ac_prog in gawk mawk nawk awk
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_AWK+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$AWK"; then
1834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_AWK="$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$AWK"; then
1854 echo "$as_me:$LINENO: result: $AWK" >&5
1855 echo "${ECHO_T}$AWK" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$AWK" && break
1864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1865 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 cat >conftest.make <<\_ACEOF
1872 @echo 'ac_maketemp="${MAKE}"'
1874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876 if test -n "$ac_maketemp"; then
1877 eval ac_cv_prog_make_${ac_make}_set=yes
1879 eval ac_cv_prog_make_${ac_make}_set=no
1883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 SET_MAKE="MAKE=${MAKE-make}"
1893 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1894 if test "${enable_dependency_tracking+set}" = set; then
1895 enableval="$enable_dependency_tracking"
1898 if test "x$enable_dependency_tracking" != xno; then
1899 am_depcomp="$ac_aux_dir/depcomp"
1904 if test "x$enable_dependency_tracking" != xno; then
1915 rm -f .deps 2>/dev/null
1916 mkdir .deps 2>/dev/null
1917 if test -d .deps; then
1920 # MS-DOS does not allow filenames that begin with a dot.
1923 rmdir .deps 2>/dev/null
1926 # test to see if srcdir already configured
1927 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1928 test -f $srcdir/config.status; then
1929 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1930 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1931 { (exit 1); exit 1; }; }
1934 # Define the identity of the package.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE "$PACKAGE"
1943 cat >>confdefs.h <<_ACEOF
1944 #define VERSION "$VERSION"
1948 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1949 # the ones we care about.
1951 # Autoconf 2.50 always computes EXEEXT. However we need to be
1952 # compatible with 2.13, for now. So we always define EXEEXT, but we
1955 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1956 # requests that it be used. This is a bit dumb.
1960 # Some tools Automake needs.
1962 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1965 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1968 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1971 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1974 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1977 AMTAR=${AMTAR-"${am_missing_run}tar"}
1979 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1981 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1983 # We need awk for the "check" target. The system "awk" is bad on
1989 if test "x$prefix" = "xNONE"; then
1990 prefix=$ac_default_prefix
1991 ac_configure_args="$ac_configure_args --prefix $prefix"
1997 ac_config_headers="$ac_config_headers config.h"
2001 ac_config_commands="$ac_config_commands default-1"
2003 am_make=${MAKE-make}
2004 cat > confinc << 'END'
2008 # If we don't find an include directive, just comment out the code.
2009 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2010 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2014 # First try GNU make style include.
2015 echo "include confinc" > confmf
2016 # We grep out `Entering directory' and `Leaving directory'
2017 # messages which can occur if `w' ends up in MAKEFLAGS.
2018 # In particular we don't look at `^make:' because GNU make might
2019 # be invoked under some other name (usually "gmake"), in which
2020 # case it prints its new name instead of `make'.
2021 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2026 # Now try BSD make style include.
2027 if test "$am__include" = "#"; then
2028 echo '.include "confinc"' > confmf
2029 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2030 am__include=.include
2037 echo "$as_me:$LINENO: result: $_am_result" >&5
2038 echo "${ECHO_T}$_am_result" >&6
2039 rm -f confinc confmf
2042 ac_cpp='$CXXCPP $CPPFLAGS'
2043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2046 if test -n "$ac_tool_prefix"; then
2047 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CXX+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CXX"; then
2057 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CXX"; then
2077 echo "$as_me:$LINENO: result: $CXX" >&5
2078 echo "${ECHO_T}$CXX" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2084 test -n "$CXX" && break
2087 if test -z "$CXX"; then
2089 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy $ac_prog; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 if test -n "$ac_ct_CXX"; then
2099 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_ac_ct_CXX="$ac_prog"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2118 if test -n "$ac_ct_CXX"; then
2119 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2120 echo "${ECHO_T}$ac_ct_CXX" >&6
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2126 test -n "$ac_ct_CXX" && break
2128 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136 "checking for C++ compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139 (eval $ac_compiler --version </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144 (eval $ac_compiler -v </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149 (eval $ac_compiler -V </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2154 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2155 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2156 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2163 #ifdef F77_DUMMY_MAIN
2167 int F77_DUMMY_MAIN() { return 1; }
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2199 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2202 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2203 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2204 GXX=`test $ac_compiler_gnu = yes && echo yes`
2205 ac_test_CXXFLAGS=${CXXFLAGS+set}
2206 ac_save_CXXFLAGS=$CXXFLAGS
2208 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2209 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2210 if test "${ac_cv_prog_cxx_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2217 #ifdef F77_DUMMY_MAIN
2221 int F77_DUMMY_MAIN() { return 1; }
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_cv_prog_cxx_g=yes
2245 echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2249 rm -f conftest.$ac_objext conftest.$ac_ext
2251 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2252 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2253 if test "$ac_test_CXXFLAGS" = set; then
2254 CXXFLAGS=$ac_save_CXXFLAGS
2255 elif test $ac_cv_prog_cxx_g = yes; then
2256 if test "$GXX" = yes; then
2262 if test "$GXX" = yes; then
2268 for ac_declaration in \
2270 '#include <stdlib.h>' \
2271 'extern "C" void std::exit (int) throw (); using std::exit;' \
2272 'extern "C" void std::exit (int); using std::exit;' \
2273 'extern "C" void exit (int) throw ();' \
2274 'extern "C" void exit (int);' \
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2279 #include "confdefs.h"
2282 #ifdef F77_DUMMY_MAIN
2286 int F77_DUMMY_MAIN() { return 1; }
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2319 #ifdef F77_DUMMY_MAIN
2323 int F77_DUMMY_MAIN() { return 1; }
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2353 if test -n "$ac_declaration"; then
2354 echo '#ifdef __cplusplus' >>confdefs.h
2355 echo $ac_declaration >>confdefs.h
2356 echo '#endif' >>confdefs.h
2360 ac_cpp='$CXXCPP $CPPFLAGS'
2361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2365 depcc="$CXX" am_compiler_list=
2367 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2368 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2369 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2373 # We make a subdir and do the tests there. Otherwise we can end up
2374 # making bogus files that we don't know about and never remove. For
2375 # instance it was reported that on HP-UX the gcc test will end up
2376 # making a dummy file named `D' -- because `-MD' means `put the output
2379 # Copy depcomp to subdir because otherwise we won't find it if we're
2380 # using a relative directory.
2381 cp "$am_depcomp" conftest.dir
2384 am_cv_CXX_dependencies_compiler_type=none
2385 if test "$am_compiler_list" = ""; then
2386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2388 for depmode in $am_compiler_list; do
2389 # We need to recreate these files for each test, as the compiler may
2390 # overwrite some of them when testing with obscure command lines.
2391 # This happens at least with the AIX C compiler.
2392 echo '#include "conftest.h"' > conftest.c
2393 echo 'int i;' > conftest.h
2394 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2398 # after this tag, mechanisms are not by side-effect, so they'll
2399 # only be used when explicitly requested
2400 if test "x$enable_dependency_tracking" = xyes; then
2408 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2409 # mode. It turns out that the SunPro C++ compiler does not properly
2410 # handle `-M -o', and we need to detect this.
2411 if depmode=$depmode \
2412 source=conftest.c object=conftest.o \
2413 depfile=conftest.Po tmpdepfile=conftest.TPo \
2414 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2415 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2417 am_cv_CXX_dependencies_compiler_type=$depmode
2425 am_cv_CXX_dependencies_compiler_type=none
2429 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2430 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2431 CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
2436 # Check whether --enable-debug or --disable-debug was given.
2437 if test "${enable_debug+set}" = set; then
2438 enableval="$enable_debug"
2440 if test $enableval = "no"; then
2441 kde_use_debug_code="no"
2442 kde_use_debug_define=yes
2444 kde_use_debug_code="yes"
2445 kde_use_debug_define=no
2449 kde_use_debug_code="no"
2450 kde_use_debug_define=no
2454 # Check whether --enable-dummyoption or --disable-dummyoption was given.
2455 if test "${enable_dummyoption+set}" = set; then
2456 enableval="$enable_dummyoption"
2460 # Check whether --enable-strict or --disable-strict was given.
2461 if test "${enable_strict+set}" = set; then
2462 enableval="$enable_strict"
2464 if test $enableval = "no"; then
2465 kde_use_strict_options="no"
2467 kde_use_strict_options="yes"
2471 kde_use_strict_options="no"
2474 # Check whether --enable-profile or --disable-profile was given.
2475 if test "${enable_profile+set}" = set; then
2476 enableval="$enable_profile"
2477 kde_use_profiling=$enableval
2479 kde_use_profiling="no"
2486 ac_cpp='$CPP $CPPFLAGS'
2487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 if test -n "$ac_tool_prefix"; then
2491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6
2522 echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2527 if test -z "$ac_cv_prog_CC"; then
2529 # Extract the first word of "gcc", so it can be a program name with args.
2530 set dummy gcc; ac_word=$2
2531 echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$ac_ct_CC"; then
2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_CC="gcc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558 echo "${ECHO_T}$ac_ct_CC" >&6
2560 echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2569 if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}cc; ac_word=$2
2573 echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_CC="${ac_tool_prefix}cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test -n "$CC"; then
2599 echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2607 if test -z "$ac_cv_prog_CC"; then
2609 # Extract the first word of "cc", so it can be a program name with args.
2610 set dummy cc; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_CC="cc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 echo "${ECHO_T}$ac_ct_CC" >&6
2640 echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2650 if test -z "$CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670 ac_prog_rejected=yes
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 if test $ac_prog_rejected = yes; then
2681 # We found a bogon in the path, so make sure we never use it.
2682 set dummy $ac_cv_prog_CC
2684 if test $# != 0; then
2685 # We chose a different compiler from the bogus one.
2686 # However, it has the same basename, so the bogon will be chosen
2687 # first if we set CC to just the basename; use the full file name.
2689 set dummy "$as_dir/$ac_word" ${1+"$@"}
2697 if test -n "$CC"; then
2698 echo "$as_me:$LINENO: result: $CC" >&5
2699 echo "${ECHO_T}$CC" >&6
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712 echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714 if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2745 test -n "$CC" && break
2748 if test -z "$CC"; then
2752 # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_ac_ct_CC="$ac_prog"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 echo "${ECHO_T}$ac_ct_CC" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 test -n "$ac_ct_CC" && break
2796 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2797 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2798 { (exit 1); exit 1; }; }
2800 # Provide some information about the compiler.
2801 echo "$as_me:$LINENO:" \
2802 "checking for C compiler version" >&5
2803 ac_compiler=`set X $ac_compile; echo $2`
2804 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2805 (eval $ac_compiler --version </dev/null >&5) 2>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2810 (eval $ac_compiler -v </dev/null >&5) 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2815 (eval $ac_compiler -V </dev/null >&5) 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2822 #include "confdefs.h"
2824 #ifdef F77_DUMMY_MAIN
2828 int F77_DUMMY_MAIN() { return 1; }
2838 ac_clean_files_save=$ac_clean_files
2839 ac_clean_files="$ac_clean_files a.out a.exe"
2840 # Try to create an executable without -o first, disregard a.out.
2841 # It will help us diagnose broken compilers, and finding out an intuition
2843 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2844 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2845 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2846 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2847 (eval $ac_link_default) 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 # Find the output, starting from the most likely. This scheme is
2852 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2855 # Be careful to initialize this variable, since it used to be cached.
2856 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2858 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2859 ls a.out conftest 2>/dev/null;
2860 ls a.* conftest.* 2>/dev/null`; do
2862 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2863 a.out ) # We found the default executable, but exeext='' is most
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2874 echo "$as_me: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2877 echo "$as_me: error: C compiler cannot create executables" >&2;}
2878 { (exit 77); exit 77; }; }
2881 ac_exeext=$ac_cv_exeext
2882 echo "$as_me:$LINENO: result: $ac_file" >&5
2883 echo "${ECHO_T}$ac_file" >&6
2885 # Check the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2888 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2889 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2890 # If not cross compiling, check that we can run a simple program.
2891 if test "$cross_compiling" != yes; then
2892 if { ac_try='./$ac_file'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 if test "$cross_compiling" = maybe; then
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'." >&5
2905 echo "$as_me: error: cannot run C compiled programs.
2906 If you meant to cross compile, use \`--host'." >&2;}
2907 { (exit 1); exit 1; }; }
2911 echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6
2914 rm -f a.out a.exe conftest$ac_cv_exeext
2915 ac_clean_files=$ac_clean_files_save
2916 # Check the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6
2923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2936 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest$ac_cv_exeext
2950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2958 if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2963 #include "confdefs.h"
2965 #ifdef F77_DUMMY_MAIN
2969 int F77_DUMMY_MAIN() { return 1; }
2979 rm -f conftest.o conftest.obj
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 echo "$as_me: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2996 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2997 { (exit 1); exit 1; }; }
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6
3004 OBJEXT=$ac_cv_objext
3006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3015 #ifdef F77_DUMMY_MAIN
3019 int F77_DUMMY_MAIN() { return 1; }
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3046 echo "$as_me: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3050 rm -f conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3056 GCC=`test $ac_compiler_gnu = yes && echo yes`
3057 ac_test_CFLAGS=${CFLAGS+set}
3058 ac_save_CFLAGS=$CFLAGS
3060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3062 if test "${ac_cv_prog_cc_g+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 #include "confdefs.h"
3069 #ifdef F77_DUMMY_MAIN
3073 int F77_DUMMY_MAIN() { return 1; }
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3097 echo "$as_me: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3101 rm -f conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3105 if test "$ac_test_CFLAGS" = set; then
3106 CFLAGS=$ac_save_CFLAGS
3107 elif test $ac_cv_prog_cc_g = yes; then
3108 if test "$GCC" = yes; then
3114 if test "$GCC" = yes; then
3120 # Some people use a C++ compiler to compile C. Since we use `exit',
3121 # in C++ we need to declare it. In case someone uses the same compiler
3122 # for both compiling C and C++ we need to have the C++ compiler decide
3123 # the declaration of exit, since it's the most demanding environment.
3124 cat >conftest.$ac_ext <<_ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 for ac_declaration in \
3143 '#include <stdlib.h>' \
3144 'extern "C" void std::exit (int) throw (); using std::exit;' \
3145 'extern "C" void std::exit (int); using std::exit;' \
3146 'extern "C" void exit (int) throw ();' \
3147 'extern "C" void exit (int);' \
3150 cat >conftest.$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3152 #include "confdefs.h"
3155 #ifdef F77_DUMMY_MAIN
3159 int F77_DUMMY_MAIN() { return 1; }
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3183 echo "$as_me: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 #include "confdefs.h"
3192 #ifdef F77_DUMMY_MAIN
3196 int F77_DUMMY_MAIN() { return 1; }
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3220 echo "$as_me: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 rm -f conftest.$ac_objext conftest.$ac_ext
3226 if test -n "$ac_declaration"; then
3227 echo '#ifdef __cplusplus' >>confdefs.h
3228 echo $ac_declaration >>confdefs.h
3229 echo '#endif' >>confdefs.h
3233 echo "$as_me: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 depcc="$CC" am_compiler_list=
3245 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3251 # We make a subdir and do the tests there. Otherwise we can end up
3252 # making bogus files that we don't know about and never remove. For
3253 # instance it was reported that on HP-UX the gcc test will end up
3254 # making a dummy file named `D' -- because `-MD' means `put the output
3257 # Copy depcomp to subdir because otherwise we won't find it if we're
3258 # using a relative directory.
3259 cp "$am_depcomp" conftest.dir
3262 am_cv_CC_dependencies_compiler_type=none
3263 if test "$am_compiler_list" = ""; then
3264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3266 for depmode in $am_compiler_list; do
3267 # We need to recreate these files for each test, as the compiler may
3268 # overwrite some of them when testing with obscure command lines.
3269 # This happens at least with the AIX C compiler.
3270 echo '#include "conftest.h"' > conftest.c
3271 echo 'int i;' > conftest.h
3272 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3276 # after this tag, mechanisms are not by side-effect, so they'll
3277 # only be used when explicitly requested
3278 if test "x$enable_dependency_tracking" = xyes; then
3286 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3287 # mode. It turns out that the SunPro C++ compiler does not properly
3288 # handle `-M -o', and we need to detect this.
3289 if depmode=$depmode \
3290 source=conftest.c object=conftest.o \
3291 depfile=conftest.Po tmpdepfile=conftest.TPo \
3292 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3293 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3295 am_cv_CC_dependencies_compiler_type=$depmode
3303 am_cv_CC_dependencies_compiler_type=none
3307 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3308 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3309 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
3313 if test "$GCC" = "yes"; then
3314 if test "$kde_use_debug_code" = "yes"; then
3315 CFLAGS="-g -O2 $CFLAGS"
3318 CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3322 CFLAGS="-O2 $CFLAGS"
3326 if test "$kde_use_debug_define" = "yes"; then
3327 CFLAGS="-DNDEBUG $CFLAGS"
3331 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3332 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3335 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3339 if test "$kde_use_profiling" = "yes"; then
3341 echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
3342 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3343 kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
3344 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 ac_cpp='$CXXCPP $CPPFLAGS'
3353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3357 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3361 save_CXXFLAGS="$CXXFLAGS"
3362 CXXFLAGS="$CXXFLAGS -pg"
3363 cat >conftest.$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3365 #include "confdefs.h"
3367 #ifdef F77_DUMMY_MAIN
3371 int F77_DUMMY_MAIN() { return 1; }
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -s conftest$ac_exeext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 eval "kde_cv_prog_cxx_$kde_cache=yes"
3395 echo "$as_me: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 CXXFLAGS="$save_CXXFLAGS"
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3410 echo "$as_me:$LINENO: result: yes" >&5
3411 echo "${ECHO_T}yes" >&6
3414 CFLAGS="-pg $CFLAGS"
3417 echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3437 # On Suns, sometimes $CPP names a directory.
3438 if test -n "$CPP" && test -d "$CPP"; then
3441 if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 # Double quotes because CPP needs to be expanded
3446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 for ac_c_preproc_warn_flag in '' yes
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #line $LINENO "configure"
3457 #include "confdefs.h"
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464 egrep -v '^ *\+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3477 if test -z "$ac_cpp_err"; then
3480 echo "$as_me: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3485 rm -f conftest.err conftest.$ac_ext
3487 # OK, works on sane cases. Now check whether non-existent headers
3488 # can be detected and how.
3489 cat >conftest.$ac_ext <<_ACEOF
3490 #line $LINENO "configure"
3491 #include "confdefs.h"
3492 #include <ac_nonexistent.h>
3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497 egrep -v '^ *\+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3510 if test -z "$ac_cpp_err"; then
3511 # Broken: success on invalid input.
3514 echo "$as_me: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 # Passes both tests.
3520 rm -f conftest.err conftest.$ac_ext
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then
3537 echo "$as_me:$LINENO: result: $CPP" >&5
3538 echo "${ECHO_T}$CPP" >&6
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 #include "confdefs.h"
3552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3555 egrep -v '^ *\+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3568 if test -z "$ac_cpp_err"; then
3571 echo "$as_me: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3576 rm -f conftest.err conftest.$ac_ext
3578 # OK, works on sane cases. Now check whether non-existent headers
3579 # can be detected and how.
3580 cat >conftest.$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3582 #include "confdefs.h"
3583 #include <ac_nonexistent.h>
3585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588 egrep -v '^ *\+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null; then
3593 if test -s conftest.err; then
3594 ac_cpp_err=$ac_c_preproc_warn_flag
3601 if test -z "$ac_cpp_err"; then
3602 # Broken: success on invalid input.
3605 echo "$as_me: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 # Passes both tests.
3611 rm -f conftest.err conftest.$ac_ext
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then
3619 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3620 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3621 { (exit 1); exit 1; }; }
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 # the following is to allow programs, that are known to
3632 # have problems when compiled with -O2
3633 if test -n "$CFLAGS"; then
3637 for i in $CFLAGS; do
3642 NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
3652 # Check whether --enable-final or --disable-final was given.
3653 if test "${enable_final+set}" = set; then
3654 enableval="$enable_final"
3655 kde_use_final=$enableval
3665 echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
3666 echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
3667 kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
3668 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_cpp='$CXXCPP $CPPFLAGS'
3676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3683 save_CXXFLAGS="$CXXFLAGS"
3684 CXXFLAGS="$CXXFLAGS -frepo"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 #include "confdefs.h"
3689 #ifdef F77_DUMMY_MAIN
3693 int F77_DUMMY_MAIN() { return 1; }
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 eval "kde_cv_prog_cxx_$kde_cache=yes"
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3721 CXXFLAGS="$save_CXXFLAGS"
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733 echo "${ECHO_T}yes" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3747 if test -z "$REPO"; then
3749 echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
3750 echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
3751 kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
3752 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cpp='$CXXCPP $CPPFLAGS'
3760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3764 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3767 save_CXXFLAGS="$CXXFLAGS"
3768 CXXFLAGS="$CXXFLAGS -instances=explicit"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3773 #ifdef F77_DUMMY_MAIN
3777 int F77_DUMMY_MAIN() { return 1; }
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 eval "kde_cv_prog_cxx_$kde_cache=yes"
3801 echo "$as_me: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805 CXXFLAGS="$save_CXXFLAGS"
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3816 echo "$as_me:$LINENO: result: yes" >&5
3817 echo "${ECHO_T}yes" >&6
3820 REPO="-instances=explicit"
3821 NOREPO="-instances=extern"
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3832 if test -n "$REPO"; then
3834 cat >>confdefs.h <<_ACEOF
3835 #define HAVE_TEMPLATE_REPOSITORY 1
3844 if test "x$kde_use_final" = "xyes"; then
3845 KDE_USE_FINAL_TRUE=""
3846 KDE_USE_FINAL_FALSE="#"
3848 KDE_USE_FINAL_TRUE="#"
3849 KDE_USE_FINAL_FALSE=""
3854 # Check whether --enable-closure or --disable-closure was given.
3855 if test "${enable_closure+set}" = set; then
3856 enableval="$enable_closure"
3857 kde_use_closure=$enableval
3862 if test "x$kde_use_closure" = "xyes"; then
3863 KDE_USE_CLOSURE_TRUE=""
3864 KDE_USE_CLOSURE_FALSE="#"
3865 # CXXFLAGS="$CXXFLAGS $REPO"
3867 KDE_USE_CLOSURE_TRUE="#"
3868 KDE_USE_CLOSURE_FALSE=""
3881 # Check whether --enable-shared or --disable-shared was given.
3882 if test "${enable_shared+set}" = set; then
3883 enableval="$enable_shared"
3884 p=${PACKAGE-default}
3886 yes) enable_shared=yes ;;
3887 no) enable_shared=no ;;
3890 # Look at the argument we got. We use all the common list separators.
3891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3892 for pkg in $enableval; do
3894 if test "X$pkg" = "X$p"; then
3906 # Check whether --enable-static or --disable-static was given.
3907 if test "${enable_static+set}" = set; then
3908 enableval="$enable_static"
3909 p=${PACKAGE-default}
3911 yes) enable_static=yes ;;
3912 no) enable_static=no ;;
3915 # Look at the argument we got. We use all the common list separators.
3916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3917 for pkg in $enableval; do
3919 if test "X$pkg" = "X$p"; then
3933 # Check whether --enable-fast-install or --disable-fast-install was given.
3934 if test "${enable_fast_install+set}" = set; then
3935 enableval="$enable_fast_install"
3936 p=${PACKAGE-default}
3938 yes) enable_fast_install=yes ;;
3939 no) enable_fast_install=no ;;
3941 enable_fast_install=no
3942 # Look at the argument we got. We use all the common list separators.
3943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944 for pkg in $enableval; do
3946 if test "X$pkg" = "X$p"; then
3947 enable_fast_install=yes
3954 enable_fast_install=yes
3958 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3959 if test "${with_gnu_ld+set}" = set; then
3960 withval="$with_gnu_ld"
3961 test "$withval" = no || with_gnu_ld=yes
3966 if test "$GCC" = yes; then
3967 # Check if gcc -print-prog-name=ld gives a path.
3968 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3969 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3972 # gcc leaves a trailing carriage return which upsets mingw
3973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3978 # Accept absolute paths.
3980 re_direlt='/[^/][^/]*/\.\./'
3981 # Canonicalize the path of ld
3982 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3983 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3984 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3986 test -z "$LD" && LD="$ac_prog"
3989 # If it fails, then pretend we aren't using GCC.
3993 # If it is relative, then search for the first ld in PATH.
3997 elif test "$with_gnu_ld" = yes; then
3998 echo "$as_me:$LINENO: checking for GNU ld" >&5
3999 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4001 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4002 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4004 if test "${lt_cv_path_LD+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if test -z "$LD"; then
4008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4009 for ac_dir in $PATH; do
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4013 lt_cv_path_LD="$ac_dir/$ac_prog"
4014 # Check to see if the program is GNU ld. I'd rather use --version,
4015 # but apparently some GNU ld's only accept -v.
4016 # Break only if it was the GNU/non-GNU ld that we prefer.
4017 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4018 test "$with_gnu_ld" != no && break
4020 test "$with_gnu_ld" != yes && break
4026 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4031 if test -n "$LD"; then
4032 echo "$as_me:$LINENO: result: $LD" >&5
4033 echo "${ECHO_T}$LD" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4038 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4039 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4040 { (exit 1); exit 1; }; }
4041 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4042 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4043 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4047 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4048 lt_cv_prog_gnu_ld=yes
4050 lt_cv_prog_gnu_ld=no
4053 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4054 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4055 with_gnu_ld=$lt_cv_prog_gnu_ld
4058 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4059 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4060 if test "${lt_cv_ld_reload_flag+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 lt_cv_ld_reload_flag='-r'
4065 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4066 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4067 reload_flag=$lt_cv_ld_reload_flag
4068 case $reload_flag in
4070 *) reload_flag=" $reload_flag" ;;
4072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4074 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4075 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4076 if test "${lt_cv_path_NM+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$NM"; then
4080 # Let the user override the test.
4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4084 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4086 test -z "$ac_dir" && ac_dir=.
4087 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4089 # Check to see if the nm accepts a BSD-compat flag.
4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4091 # nm: unknown option "B" ignored
4092 # Tru64's nm complains that /dev/null is an invalid object file
4093 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4094 lt_cv_path_NM="$tmp_nm -B"
4096 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4097 lt_cv_path_NM="$tmp_nm -p"
4100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4101 continue # so that we can try to find one that supports BSD flags
4106 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4109 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4110 echo "${ECHO_T}$lt_cv_path_NM" >&6
4113 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4114 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4115 if test "${lt_cv_path_SED+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 # Loop through the user's path and test for sed and gsed.
4119 # Then use that list of sed's as ones to test for truncation.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in sed gsed; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4128 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4134 # Create a temporary directory, and hook for its removal unless debugging.
4137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4138 trap '{ (exit 1); exit 1; }' 1 2 13 15
4141 # Create a (secure) tmp directory for tmp files.
4144 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4145 test -n "$tmp" && test -d "$tmp"
4148 tmp=$TMPDIR/sed$$-$RANDOM
4149 (umask 077 && mkdir $tmp)
4152 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4153 { (exit 1); exit 1; }
4157 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4158 # along with /bin/sed that truncates output.
4159 for _sed in $_sed_list /usr/xpg4/bin/sed; do
4160 test ! -f ${_sed} && break
4161 cat /dev/null > "$tmp/sed.in"
4163 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
4164 # Check for GNU sed and select it if it is found.
4165 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4166 lt_cv_path_SED=${_sed}
4170 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4171 mv "$tmp/sed.tmp" "$tmp/sed.in"
4172 cp "$tmp/sed.in" "$tmp/sed.nl"
4173 echo >>"$tmp/sed.nl"
4174 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4175 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4176 # 10000 chars as input seems more than enough
4177 test $_count -gt 10 && break
4178 _count=`expr $_count + 1`
4179 if test $_count -gt $_max; then
4181 lt_cv_path_SED=$_sed
4189 echo "$as_me:$LINENO: result: $SED" >&5
4190 echo "${ECHO_T}$SED" >&6
4192 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4193 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4195 if test "$LN_S" = "ln -s"; then
4196 echo "$as_me:$LINENO: result: yes" >&5
4197 echo "${ECHO_T}yes" >&6
4199 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4200 echo "${ECHO_T}no, using $LN_S" >&6
4203 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4204 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4205 if test "${lt_cv_deplibs_check_method+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 lt_cv_file_magic_cmd='$MAGIC_CMD'
4209 lt_cv_file_magic_test_file=
4210 lt_cv_deplibs_check_method='unknown'
4211 # Need to set the preceding variable on all platforms that support
4212 # interlibrary dependencies.
4213 # 'none' -- dependencies not supported.
4214 # `unknown' -- same as none, but documents that we really don't know.
4215 # 'pass_all' -- all dependencies passed with no checks.
4216 # 'test_compile' -- check by making test program.
4217 # 'file_magic [[regex]]' -- check by looking for files in library path
4218 # which responds to the $file_magic_cmd with a given egrep regex.
4219 # If you have `file' or equivalent on your system and you're not sure
4220 # whether `pass_all' will *always* work, you probably want this one.
4224 lt_cv_deplibs_check_method=pass_all
4228 lt_cv_deplibs_check_method=pass_all
4232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4233 lt_cv_file_magic_cmd='/usr/bin/file -L'
4234 lt_cv_file_magic_test_file=/shlib/libc.so
4237 cygwin* | mingw* | pw32*)
4238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4239 lt_cv_file_magic_cmd='$OBJDUMP -f'
4242 darwin* | rhapsody*)
4243 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4244 lt_cv_file_magic_cmd='/usr/bin/file -L'
4246 rhapsody* | darwin1.[012])
4247 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4250 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4259 # Not sure whether the presence of OpenBSD here was a mistake.
4260 # Let's accept both of them until this is cleared up.
4261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4262 lt_cv_file_magic_cmd=/usr/bin/file
4263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 lt_cv_deplibs_check_method=pass_all
4272 lt_cv_deplibs_check_method=pass_all
4275 hpux10.20* | hpux11*)
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 if test "$host_cpu" = ia64; then
4278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4279 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4282 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 irix5* | irix6* | nonstopux*)
4288 irix5* | nonstopux*)
4289 # this will be overridden with pass_all, but let us keep it just in case
4290 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4294 *-32|*"-32 ") libmagic=32-bit;;
4295 *-n32|*"-n32 ") libmagic=N32;;
4296 *-64|*"-64 ") libmagic=64-bit;;
4297 *) libmagic=never-match;;
4299 # this will be overridden with pass_all, but let us keep it just in case
4300 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4303 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4304 lt_cv_deplibs_check_method=pass_all
4307 # This must be Linux ELF.
4310 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
4311 lt_cv_deplibs_check_method=pass_all ;;
4313 # glibc up to 2.1.1 does not perform some relocations on ARM
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4316 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4334 lt_cv_deplibs_check_method=unknown
4338 lt_cv_file_magic_cmd=/usr/bin/file
4339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4343 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4347 osf3* | osf4* | osf5*)
4348 # this will be overridden with pass_all, but let us keep it just in case
4349 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4350 lt_cv_file_magic_test_file=/shlib/libc.so
4351 lt_cv_deplibs_check_method=pass_all
4355 lt_cv_deplibs_check_method=pass_all
4359 lt_cv_deplibs_check_method=pass_all
4360 lt_cv_file_magic_test_file=/lib/libc.so
4363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4364 case $host_vendor in
4366 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]'
4367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4370 lt_cv_deplibs_check_method=pass_all
4373 lt_cv_file_magic_cmd='/bin/file'
4374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4377 lt_cv_file_magic_cmd='/bin/file'
4378 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4379 lt_cv_file_magic_test_file=/lib/libc.so
4384 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4385 lt_cv_deplibs_check_method=pass_all
4390 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4391 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4392 file_magic_cmd=$lt_cv_file_magic_cmd
4393 deplibs_check_method=$lt_cv_deplibs_check_method
4394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4397 # If no C compiler was specified, use CC.
4400 # Allow CC to be a program name with arguments.
4405 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4406 if test "${enable_libtool_lock+set}" = set; then
4407 enableval="$enable_libtool_lock"
4410 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4412 # Some flags need to be propagated to the compiler or linker for good
4416 # Find out which ABI we are using.
4417 echo 'int i;' > conftest.$ac_ext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; then
4423 case `/usr/bin/file conftest.$ac_objext` in
4435 # Find out which ABI we are using.
4436 echo '#line 4436 "configure"' > conftest.$ac_ext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
4442 case `/usr/bin/file conftest.$ac_objext` in
4458 # Test if the compiler is 64bit
4459 echo 'int i;' > conftest.$ac_ext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; then
4465 case `/usr/bin/file conftest.$ac_objext` in
4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4479 SAVE_CFLAGS="$CFLAGS"
4480 CFLAGS="$CFLAGS -belf"
4481 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4482 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4483 if test "${lt_cv_cc_needs_belf+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4496 #ifdef F77_DUMMY_MAIN
4500 int F77_DUMMY_MAIN() { return 1; }
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 lt_cv_cc_needs_belf=yes
4524 echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 lt_cv_cc_needs_belf=no
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4538 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540 CFLAGS="$SAVE_CFLAGS"
4546 need_locks="$enable_libtool_lock"
4550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4552 if test "${ac_cv_header_stdc+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4567 egrep -v '^ *\+' conftest.er1 >conftest.err
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } >/dev/null; then
4572 if test -s conftest.err; then
4573 ac_cpp_err=$ac_c_preproc_warn_flag
4580 if test -z "$ac_cpp_err"; then
4581 ac_cv_header_stdc=yes
4583 echo "$as_me: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 ac_cv_header_stdc=no
4587 rm -f conftest.err conftest.$ac_ext
4589 if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 #include "confdefs.h"
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 egrep "memchr" >/dev/null 2>&1; then
4601 ac_cv_header_stdc=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 egrep "free" >/dev/null 2>&1; then
4619 ac_cv_header_stdc=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 #include "confdefs.h"
4634 #if ((' ' & 0x0FF) == 0x020)
4635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4639 || ('j' <= (c) && (c) <= 'r') \
4640 || ('s' <= (c) && (c) <= 'z'))
4641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4649 for (i = 0; i < 256; i++)
4650 if (XOR (islower (i), ISLOWER (i))
4651 || toupper (i) != TOUPPER (i))
4656 rm -f conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4669 echo "$as_me: program exited with status $ac_status" >&5
4670 echo "$as_me: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 ac_cv_header_stdc=no
4675 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4681 if test $ac_cv_header_stdc = yes; then
4683 cat >>confdefs.h <<\_ACEOF
4684 #define STDC_HEADERS 1
4689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4700 inttypes.h stdint.h unistd.h
4702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703 echo "$as_me:$LINENO: checking for $ac_header" >&5
4704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 #line $LINENO "configure"
4710 #include "confdefs.h"
4711 $ac_includes_default
4713 #include <$ac_header>
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 eval "$as_ac_Header=yes"
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 eval "$as_ac_Header=no"
4733 rm -f conftest.$ac_objext conftest.$ac_ext
4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 for ac_header in dlfcn.h
4750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4752 echo "$as_me:$LINENO: checking for $ac_header" >&5
4753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 # Is the header compilable?
4761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4766 $ac_includes_default
4767 #include <$ac_header>
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_header_compiler=yes
4783 echo "$as_me: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 ac_header_compiler=no
4787 rm -f conftest.$ac_objext conftest.$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4789 echo "${ECHO_T}$ac_header_compiler" >&6
4791 # Is the header present?
4792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4795 #line $LINENO "configure"
4796 #include "confdefs.h"
4797 #include <$ac_header>
4799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802 egrep -v '^ *\+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null; then
4807 if test -s conftest.err; then
4808 ac_cpp_err=$ac_c_preproc_warn_flag
4815 if test -z "$ac_cpp_err"; then
4816 ac_header_preproc=yes
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 ac_header_preproc=no
4822 rm -f conftest.err conftest.$ac_ext
4823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4824 echo "${ECHO_T}$ac_header_preproc" >&6
4826 # So? What about this header?
4827 case $ac_header_compiler:$ac_header_preproc in
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4841 echo "$as_me:$LINENO: checking for $ac_header" >&5
4842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 eval "$as_ac_Header=$ac_header_preproc"
4848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4853 cat >>confdefs.h <<_ACEOF
4854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4862 ac_cpp='$CXXCPP $CPPFLAGS'
4863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4867 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4868 if test -z "$CXXCPP"; then
4869 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 # Double quotes because CXXCPP needs to be expanded
4873 for CXXCPP in "$CXX -E" "/lib/cpp"
4876 for ac_cxx_preproc_warn_flag in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # On the NeXT, cc -E runs the code through the compiler's parser,
4881 # not just through cpp. "Syntax error" is here to catch this case.
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4891 egrep -v '^ *\+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null; then
4896 if test -s conftest.err; then
4897 ac_cpp_err=$ac_cxx_preproc_warn_flag
4904 if test -z "$ac_cpp_err"; then
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4909 # Broken: fails on valid input.
4912 rm -f conftest.err conftest.$ac_ext
4914 # OK, works on sane cases. Now check whether non-existent headers
4915 # can be detected and how.
4916 cat >conftest.$ac_ext <<_ACEOF
4917 #line $LINENO "configure"
4918 #include "confdefs.h"
4919 #include <ac_nonexistent.h>
4921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924 egrep -v '^ *\+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_cxx_preproc_warn_flag
4937 if test -z "$ac_cpp_err"; then
4938 # Broken: success on invalid input.
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 # Passes both tests.
4947 rm -f conftest.err conftest.$ac_ext
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.err conftest.$ac_ext
4952 if $ac_preproc_ok; then
4957 ac_cv_prog_CXXCPP=$CXXCPP
4960 CXXCPP=$ac_cv_prog_CXXCPP
4962 ac_cv_prog_CXXCPP=$CXXCPP
4964 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4965 echo "${ECHO_T}$CXXCPP" >&6
4967 for ac_cxx_preproc_warn_flag in '' yes
4969 # Use a header file that comes with gcc, so configuring glibc
4970 # with a fresh cross-compiler works.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4975 #include "confdefs.h"
4979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 egrep -v '^ *\+' conftest.er1 >conftest.err
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null; then
4987 if test -s conftest.err; then
4988 ac_cpp_err=$ac_cxx_preproc_warn_flag
4995 if test -z "$ac_cpp_err"; then
4998 echo "$as_me: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether non-existent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5008 #line $LINENO "configure"
5009 #include "confdefs.h"
5010 #include <ac_nonexistent.h>
5012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015 egrep -v '^ *\+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null; then
5020 if test -s conftest.err; then
5021 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 if test -z "$ac_cpp_err"; then
5029 # Broken: success on invalid input.
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 # Passes both tests.
5038 rm -f conftest.err conftest.$ac_ext
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then
5046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
5047 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
5048 { (exit 1); exit 1; }; }
5052 ac_cpp='$CXXCPP $CPPFLAGS'
5053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5060 # find the maximum length of command line arguments
5061 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5062 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5063 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 # On DJGPP, this test can blow up pretty badly due to problems in libc
5072 # (any single argument exceeding 2000 bytes causes a buffer overrun
5073 # during glob expansion). Even if it were fixed, the result of this
5074 # check would be larger than it should be.
5075 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5079 # Under GNU Hurd, this test is not required because there is
5080 # no limit to the length of command line arguments.
5081 # Libtool will interpret -1 as no limit whatsoever
5082 lt_cv_sys_max_cmd_len=-1;
5086 # If test is not a shell built-in, we'll probably end up computing a
5087 # maximum length that is only half of the actual maximum length, but
5089 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5090 = "XX$testring") >/dev/null 2>&1 &&
5091 new_result=`expr "X$testring" : ".*" 2>&1` &&
5092 lt_cv_sys_max_cmd_len=$new_result &&
5093 test $i != 17 # 1/2 MB should be enough
5096 testring=$testring$testring
5099 # Add a significant safety factor because C++ compilers can tack on massive
5100 # amounts of additional arguments before passing them to the linker.
5101 # It appears as though 1/2 is a usable value.
5102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5108 if test -n $lt_cv_sys_max_cmd_len ; then
5109 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5110 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5112 echo "$as_me:$LINENO: result: none" >&5
5113 echo "${ECHO_T}none" >&6
5119 # Check for command to grab the raw symbol name followed by C symbol from nm.
5120 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5121 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5122 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 # These are sane defaults that work on at least a few old systems.
5127 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5129 # Character class describing NM global symbol codes.
5130 symcode='[BCDEGRST]'
5132 # Regexp to match symbols that can be accessed directly from C.
5133 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5135 # Transform the above into a raw symbol and a C symbol.
5136 symxfrm='\1 \2\3 \3'
5138 # Transform an extracted symbol line into a proper C declaration
5139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5141 # Transform an extracted symbol line into symbol name and symbol address
5142 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'"
5144 # Define system-specific variables.
5149 cygwin* | mingw* | pw32*)
5150 symcode='[ABCDGISTW]'
5152 hpux*) # Its linker distinguishes data from code symbols
5153 if test "$host_cpu" = ia64; then
5154 symcode='[ABCDEGRST]'
5156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5157 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'"
5160 symcode='[BCDEGRST]'
5170 # Handle CRLF in mingw tool chain
5174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5178 # If we're using GNU nm, then use its standard symbol codes.
5179 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5180 symcode='[ABCDGISTW]'
5183 # Try without a prefix undercore, then with it.
5184 for ac_symprfx in "" "_"; do
5186 # Write the raw and C identifiers.
5187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5189 # Check to see that the pipe works correctly.
5193 cat > conftest.$ac_ext <<EOF
5198 void nm_test_func(){}
5202 int main(){nm_test_var='a';nm_test_func();return(0);}
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 # Now try to grab the symbols.
5212 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && test -s "$nlist"; then
5217 # Try sorting and uniquifying the output.
5218 if sort "$nlist" | uniq > "$nlist"T; then
5219 mv -f "$nlist"T "$nlist"
5224 # Make sure that we snagged all the symbols we need.
5225 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5226 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5227 cat <<EOF > conftest.$ac_ext
5233 # Now generate the symbol file.
5234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5236 cat <<EOF >> conftest.$ac_ext
5237 #if defined (__STDC__) && __STDC__
5238 # define lt_ptr_t void *
5240 # define lt_ptr_t char *
5244 /* The mapping between symbol names and symbols. */
5249 lt_preloaded_symbols[] =
5252 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5253 cat <<\EOF >> conftest.$ac_ext
5261 # Now try linking the two files.
5262 mv conftest.$ac_objext conftstm.$ac_objext
5263 lt_save_LIBS="$LIBS"
5264 lt_save_CFLAGS="$CFLAGS"
5265 LIBS="conftstm.$ac_objext"
5266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5274 LIBS="$lt_save_LIBS"
5275 CFLAGS="$lt_save_CFLAGS"
5277 echo "cannot find nm_test_func in $nlist" >&5
5280 echo "cannot find nm_test_var in $nlist" >&5
5283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5286 echo "$progname: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 rm -f conftest* conftst*
5291 # Do not use the global_symbol_pipe unless it works.
5292 if test "$pipe_works" = yes; then
5295 lt_cv_sys_global_symbol_pipe=
5301 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5302 lt_cv_sys_global_symbol_to_cdecl=
5304 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5305 echo "$as_me:$LINENO: result: failed" >&5
5306 echo "${ECHO_T}failed" >&6
5308 echo "$as_me:$LINENO: result: ok" >&5
5309 echo "${ECHO_T}ok" >&6
5312 echo "$as_me:$LINENO: checking for objdir" >&5
5313 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5314 if test "${lt_cv_objdir+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 rm -f .libs 2>/dev/null
5318 mkdir .libs 2>/dev/null
5319 if test -d .libs; then
5322 # MS-DOS does not allow filenames that begin with a dot.
5325 rmdir .libs 2>/dev/null
5327 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5328 echo "${ECHO_T}$lt_cv_objdir" >&6
5329 objdir=$lt_cv_objdir
5337 # AIX sometimes has problems with the GCC collect2 program. For some
5338 # reason, if we set the COLLECT_NAMES environment variable, the problems
5339 # vanish in a puff of smoke.
5340 if test "X${COLLECT_NAMES+set}" != Xset; then
5342 export COLLECT_NAMES
5347 # Sed substitution that helps us do robust quoting. It backslashifies
5348 # metacharacters that are still active within double-quoted strings.
5349 Xsed='sed -e s/^X//'
5350 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5352 # Same as above, but do not quote variable references.
5353 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5355 # Sed substitution to delay expansion of an escaped shell variable in a
5356 # double_quote_subst'ed string.
5357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5359 # Sed substitution to avoid accidental globbing in evaled expressions
5360 no_glob_subst='s/\*/\\\*/g'
5366 default_ofile=libtool
5367 can_build_shared=yes
5369 # All known linkers require a `.a' archive for static linking (except M$VC,
5370 # which needs '.lib').
5372 ltmain="$ac_aux_dir/ltmain.sh"
5373 ofile="$default_ofile"
5374 with_gnu_ld="$lt_cv_prog_gnu_ld"
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_prog_RANLIB+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 if test -n "$RANLIB"; then
5385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 RANLIB=$ac_cv_prog_RANLIB
5404 if test -n "$RANLIB"; then
5405 echo "$as_me:$LINENO: result: $RANLIB" >&5
5406 echo "${ECHO_T}$RANLIB" >&6
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5413 if test -z "$ac_cv_prog_RANLIB"; then
5414 ac_ct_RANLIB=$RANLIB
5415 # Extract the first word of "ranlib", so it can be a program name with args.
5416 set dummy ranlib; ac_word=$2
5417 echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 if test -n "$ac_ct_RANLIB"; then
5423 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_ac_ct_RANLIB="ranlib"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5442 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5443 if test -n "$ac_ct_RANLIB"; then
5444 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5445 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5447 echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5451 RANLIB=$ac_ct_RANLIB
5453 RANLIB="$ac_cv_prog_RANLIB"
5456 if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5458 set dummy ${ac_tool_prefix}strip; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_prog_STRIP+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 if test -n "$STRIP"; then
5465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 STRIP=$ac_cv_prog_STRIP
5484 if test -n "$STRIP"; then
5485 echo "$as_me:$LINENO: result: $STRIP" >&5
5486 echo "${ECHO_T}$STRIP" >&6
5488 echo "$as_me:$LINENO: result: no" >&5
5489 echo "${ECHO_T}no" >&6
5493 if test -z "$ac_cv_prog_STRIP"; then
5495 # Extract the first word of "strip", so it can be a program name with args.
5496 set dummy strip; ac_word=$2
5497 echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test -n "$ac_ct_STRIP"; then
5503 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_STRIP="strip"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5522 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5523 if test -n "$ac_ct_STRIP"; then
5524 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5525 echo "${ECHO_T}$ac_ct_STRIP" >&6
5527 echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5533 STRIP="$ac_cv_prog_STRIP"
5538 old_CFLAGS="$CFLAGS"
5540 # Set sane defaults for various variables
5541 test -z "$AR" && AR=ar
5542 test -z "$AR_FLAGS" && AR_FLAGS=cru
5543 test -z "$AS" && AS=as
5544 test -z "$CC" && CC=cc
5545 test -z "$LTCC" && LTCC=$CC
5546 test -z "$DLLTOOL" && DLLTOOL=dlltool
5547 test -z "$LD" && LD=ld
5548 test -z "$LN_S" && LN_S="ln -s"
5549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5550 test -z "$NM" && NM=nm
5551 test -z "$SED" && SED=sed
5552 test -z "$OBJDUMP" && OBJDUMP=objdump
5553 test -z "$RANLIB" && RANLIB=:
5554 test -z "$STRIP" && STRIP=:
5555 test -z "$ac_objext" && ac_objext=o
5557 # Determine commands to create old-style static archives.
5558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5559 old_postinstall_cmds='chmod 644 $oldlib'
5560 old_postuninstall_cmds=
5562 if test -n "$RANLIB"; then
5565 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5568 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5574 # Only perform the check for file, if the check method requires it
5575 case $deplibs_check_method in
5577 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5578 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5579 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5580 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5588 lt_save_MAGIC_CMD="$MAGIC_CMD"
5589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5591 for ac_dir in $ac_dummy; do
5593 test -z "$ac_dir" && ac_dir=.
5594 if test -f $ac_dir/${ac_tool_prefix}file; then
5595 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5596 if test -n "$file_magic_test_file"; then
5597 case $deplibs_check_method in
5599 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5602 egrep "$file_magic_regex" > /dev/null; then
5607 *** Warning: the command libtool uses to detect shared libraries,
5608 *** $file_magic_cmd, produces output that libtool cannot recognize.
5609 *** The result is that libtool may fail to recognize shared libraries
5610 *** as such. This will affect the creation of libtool libraries that
5611 *** depend on shared libraries, but programs linked with such libtool
5612 *** libraries will work regardless of this problem. Nevertheless, you
5613 *** may want to report the problem to your system manager and/or to
5614 *** bug-libtool@gnu.org
5624 MAGIC_CMD="$lt_save_MAGIC_CMD"
5629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5630 if test -n "$MAGIC_CMD"; then
5631 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5632 echo "${ECHO_T}$MAGIC_CMD" >&6
5634 echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5638 if test -z "$lt_cv_path_MAGIC_CMD"; then
5639 if test -n "$ac_tool_prefix"; then
5640 echo "$as_me:$LINENO: checking for file" >&5
5641 echo $ECHO_N "checking for file... $ECHO_C" >&6
5642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5650 lt_save_MAGIC_CMD="$MAGIC_CMD"
5651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5653 for ac_dir in $ac_dummy; do
5655 test -z "$ac_dir" && ac_dir=.
5656 if test -f $ac_dir/file; then
5657 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5658 if test -n "$file_magic_test_file"; then
5659 case $deplibs_check_method in
5661 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5664 egrep "$file_magic_regex" > /dev/null; then
5669 *** Warning: the command libtool uses to detect shared libraries,
5670 *** $file_magic_cmd, produces output that libtool cannot recognize.
5671 *** The result is that libtool may fail to recognize shared libraries
5672 *** as such. This will affect the creation of libtool libraries that
5673 *** depend on shared libraries, but programs linked with such libtool
5674 *** libraries will work regardless of this problem. Nevertheless, you
5675 *** may want to report the problem to your system manager and/or to
5676 *** bug-libtool@gnu.org
5686 MAGIC_CMD="$lt_save_MAGIC_CMD"
5691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5692 if test -n "$MAGIC_CMD"; then
5693 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5694 echo "${ECHO_T}$MAGIC_CMD" >&6
5696 echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5712 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5713 if test "${enable_libtool_lock+set}" = set; then
5714 enableval="$enable_libtool_lock"
5717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5720 # Check whether --with-pic or --without-pic was given.
5721 if test "${with_pic+set}" = set; then
5727 test -z "$pic_mode" && pic_mode=default
5729 # Use C for the default configuration in the libtool script
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 # Source file extension for C test sources.
5742 # Object file extension for compiled C test sources.
5746 # Code to be used in simple compile tests
5747 lt_simple_compile_test_code="int some_variable = 0;"
5749 # Code to be used in simple link tests
5750 lt_simple_link_test_code='main(){return(0);}'
5753 # If no C compiler was specified, use CC.
5756 # Allow CC to be a program name with arguments.
5762 # Check for any special shared library compilation flags.
5765 if test "$GCC" = no; then
5768 lt_prog_cc_shlib='-belf'
5772 if test -n "$lt_prog_cc_shlib"; then
5773 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5774 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5775 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5777 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5778 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5779 lt_cv_prog_cc_can_build_shared=no
5785 # Check to make sure the static flag actually works.
5787 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5788 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5789 if test "${lt_prog_compiler_static_works+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 lt_prog_compiler_static_works=no
5793 save_LDFLAGS="$LDFLAGS"
5794 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5797 # The compiler can only warn and ignore the option if not recognized
5798 # So say no if there are warnings
5799 if test -s conftest.err; then
5800 # Append any errors to the config.log.
5801 cat conftest.err 1>&5
5803 lt_prog_compiler_static_works=yes
5807 LDFLAGS="$save_LDFLAGS"
5810 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5811 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5813 if test x"$lt_prog_compiler_static_works" = xyes; then
5816 lt_prog_compiler_static=
5822 lt_prog_compiler_no_builtin_flag=
5824 if test "$GCC" = yes; then
5825 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5827 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5828 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5829 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 lt_cv_prog_compiler_rtti_exceptions=no
5833 ac_outfile=conftest.$ac_objext
5834 save_CFLAGS="$CFLAGS"
5835 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5837 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5838 # The compiler can only warn and ignore the option if not recognized
5839 # So say no if there are warnings
5840 if test -s conftest.err; then
5841 # Append any errors to the config.log.
5842 cat conftest.err 1>&5
5844 lt_cv_prog_compiler_rtti_exceptions=yes
5848 CFLAGS="$save_CFLAGS"
5851 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5852 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5854 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5862 lt_prog_compiler_wl=
5863 lt_prog_compiler_pic=
5864 lt_prog_compiler_static=
5866 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5867 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5869 if test "$GCC" = yes; then
5870 lt_prog_compiler_wl='-Wl,'
5871 lt_prog_compiler_static='-static'
5875 # All AIX code is PIC.
5876 if test "$host_cpu" = ia64; then
5877 # AIX 5 now supports IA64 processor
5878 lt_prog_compiler_static='-Bstatic'
5883 # FIXME: we need at least 68020 code to build shared libraries, but
5884 # adding the `-m68020' flag to GCC prevents building anything better,
5886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5890 # PIC is the default for these OSes.
5893 cygwin* | mingw* | pw32* | os2*)
5894 # This hack is so that the source file can tell whether it is being
5895 # built for inclusion in a dll (and should export symbols for example).
5896 lt_prog_compiler_pic='-DDLL_EXPORT'
5899 darwin* | rhapsody*)
5900 # PIC is the default on this platform
5901 # Common symbols not allowed in MH_DYLIB files
5902 lt_prog_compiler_pic='-fno-common'
5906 # Just because we use GCC doesn't mean we suddenly get shared libraries
5907 # on systems that don't support them.
5908 lt_prog_compiler_can_build_shared=no
5913 if test -d /usr/nec; then
5914 lt_prog_compiler_pic=-Kconform_pic
5919 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5920 if test "$host_cpu" != ia64; then
5921 lt_prog_compiler_pic='-fPIC'
5926 lt_prog_compiler_pic='-fPIC'
5930 # PORTME Check for flag to pass linker flags through the system compiler.
5933 lt_prog_compiler_wl='-Wl,'
5934 if test "$host_cpu" = ia64; then
5935 # AIX 5 now supports IA64 processor
5936 lt_prog_compiler_static='-Bstatic'
5938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5942 cygwin* | mingw* | pw32* | os2*)
5943 # This hack is so that the source file can tell whether it is being
5944 # built for inclusion in a dll (and should export symbols for example).
5945 lt_prog_compiler_pic='-DDLL_EXPORT'
5948 hpux9* | hpux10* | hpux11*)
5949 lt_prog_compiler_wl='-Wl,'
5950 if test "$host_cpu" != ia64; then
5951 lt_prog_compiler_pic='+Z'
5953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5954 lt_prog_compiler_static='${wl}-a ${wl}archive'
5957 irix5* | irix6* | nonstopux*)
5958 lt_prog_compiler_wl='-Wl,'
5959 # PIC (with -KPIC) is the default.
5960 lt_prog_compiler_static='-non_shared'
5964 lt_prog_compiler_pic='-KPIC'
5965 lt_prog_compiler_static='-Bstatic'
5968 osf3* | osf4* | osf5*)
5969 lt_prog_compiler_wl='-Wl,'
5970 # All OSF/1 code is PIC.
5971 lt_prog_compiler_static='-non_shared'
5975 lt_prog_compiler_pic='-Kpic'
5976 lt_prog_compiler_static='-dn'
5980 lt_prog_compiler_wl='-Wl,'
5981 lt_prog_compiler_pic='-KPIC'
5982 lt_prog_compiler_static='-Bstatic'
5986 lt_prog_compiler_wl='-Qoption ld '
5987 lt_prog_compiler_pic='-PIC'
5988 lt_prog_compiler_static='-Bstatic'
5991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5992 if test "x$host_vendor" = xsni; then
5993 lt_prog_compiler_wl='-LD'
5995 lt_prog_compiler_wl='-Wl,'
5997 lt_prog_compiler_pic='-KPIC'
5998 lt_prog_compiler_static='-Bstatic'
6002 if test -d /usr/nec ;then
6003 lt_prog_compiler_pic='-Kconform_pic'
6004 lt_prog_compiler_static='-Bstatic'
6009 lt_prog_compiler_pic='-pic'
6010 lt_prog_compiler_static='-Bstatic'
6014 lt_prog_compiler_can_build_shared=no
6019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6020 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6023 # Check to make sure the PIC flag actually works.
6025 if test -n "$lt_prog_compiler_pic"; then
6026 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6027 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6028 if test "${lt_prog_compiler_pic_works+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 lt_prog_compiler_pic_works=no
6032 ac_outfile=conftest.$ac_objext
6033 save_CFLAGS="$CFLAGS"
6034 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
6035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6036 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
6037 # The compiler can only warn and ignore the option if not recognized
6038 # So say no if there are warnings
6039 if test -s conftest.err; then
6040 # Append any errors to the config.log.
6041 cat conftest.err 1>&5
6043 lt_prog_compiler_pic_works=yes
6047 CFLAGS="$save_CFLAGS"
6050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6051 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6053 if test x"$lt_prog_compiler_pic_works" = xyes; then
6054 case $lt_prog_compiler_pic in
6056 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6059 lt_prog_compiler_pic=
6060 lt_prog_compiler_can_build_shared=no
6065 # For platforms which do not support PIC, -DPIC is meaningless:
6067 lt_prog_compiler_pic=
6070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6074 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6076 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 lt_cv_prog_compiler_c_o=no
6080 $rm -r conftest 2>/dev/null
6084 save_CFLAGS="$CFLAGS"
6085 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6088 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6089 # that will create temporary files in the current directory regardless of
6090 # the output directory. Thus, making CWD read-only will cause this test
6091 # to fail, enabling locking or at least warning the user not to do parallel
6095 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
6097 # The compiler can only warn and ignore the option if not recognized
6098 # So say no if there are warnings
6099 if test -s out/conftest.err; then
6100 # Append any errors to the config.log.
6101 cat out/conftest.err 1>&5
6103 lt_cv_prog_compiler_c_o=yes
6106 CFLAGS="$save_CFLAGS"
6115 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6116 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6119 hard_links="nottested"
6120 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6121 # do not overwrite the value of need_locks provided by the user
6122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6123 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6128 ln conftest.a conftest.b 2>&5 || hard_links=no
6129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6130 echo "$as_me:$LINENO: result: $hard_links" >&5
6131 echo "${ECHO_T}$hard_links" >&6
6132 if test "$hard_links" = no; then
6133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6134 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6141 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6142 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6145 allow_undefined_flag=
6148 archive_cmds_need_lc=
6149 archive_expsym_cmds=
6150 old_archive_From_new_cmds=
6151 old_archive_from_expsyms_cmds=
6152 export_dynamic_flag_spec=
6153 whole_archive_flag_spec=
6154 thread_safe_flag_spec=
6155 hardcode_libdir_flag_spec=
6156 hardcode_libdir_separator=
6159 hardcode_shlibpath_var=unsupported
6160 link_all_deplibs=unknown
6161 always_export_symbols=no
6162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6163 # include_expsyms should be a list of space-separated symbols to be *always*
6164 # included in the symbol list
6166 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6169 # as well as any symbol that contains `d'.
6170 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6172 # platforms (ab)use it in PIC code, but their linkers get confused if
6173 # the symbol is explicitly referenced. Since portable code cannot
6174 # rely on this symbol name, it's probably fine to never include it in
6175 # preloaded symbol tables.
6176 extract_expsyms_cmds=
6179 cygwin* | mingw* | pw32*)
6180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6181 # When not using gcc, we currently assume that we are using
6182 # Microsoft Visual C++.
6183 if test "$GCC" != yes; then
6193 if test "$with_gnu_ld" = yes; then
6194 # If archive_cmds runs LD, not CC, wlarc should be empty
6197 # See if GNU ld supports shared libraries.
6199 aix3* | aix4* | aix5*)
6200 # On AIX/PPC, the GNU linker is very broken
6201 if test "$host_cpu" != ia64; then
6205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6206 *** to be unable to reliably create shared libraries on AIX.
6207 *** Therefore, libtool is disabling shared libraries support. If you
6208 *** really care for shared libraries, you may want to modify your PATH
6209 *** so that a non-GNU linker is found, and then restart.
6216 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)'
6217 hardcode_libdir_flag_spec='-L$libdir'
6218 hardcode_minus_L=yes
6220 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6221 # that the semantics of dynamic libraries on AmigaOS, at least up
6222 # to version 4, is to share data among multiple programs linked
6223 # with the same dynamic library. Since this doesn't match the
6224 # behavior of shared libraries on other platforms, we can't use
6230 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6231 allow_undefined_flag=unsupported
6232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6233 # support --undefined. This deserves some investigation. FIXME
6234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6240 cygwin* | mingw* | pw32*)
6241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
6242 # no search path for DLLs.
6243 hardcode_libdir_flag_spec='-L$libdir'
6244 allow_undefined_flag=unsupported
6245 always_export_symbols=yes
6247 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6248 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6249 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6250 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6251 else $CC -o impgen impgen.c ; fi)~
6252 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6254 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6256 # cygwin and mingw dlls have different entry points and sets of symbols
6258 # FIXME: what about values for MSVC?
6259 dll_entry=__cygwin_dll_entry@12
6260 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6264 dll_entry=_DllMainCRTStartup@12
6265 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6269 # mingw and cygwin differ, and it's simplest to just exclude the union
6270 # of the two symbol sets.
6271 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6273 # recent cygwin and mingw systems supply a stub DllMain which the user
6274 # can override, but on older systems we have to supply one (in ltdll.c)
6275 if test "x$lt_cv_need_dllmain" = "xyes"; then
6276 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6277 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6278 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6284 # Extract the symbol export list from an `--export-all' def file,
6285 # then regenerate the def file from the symbol export list, so that
6286 # the compiled dll only exports the symbol export list.
6287 # Be careful not to strip the DATA tag left by newer dlltools.
6288 export_symbols_cmds="$ltdll_cmds"'
6289 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6290 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6292 # If the export-symbols file already is a .def file (1st line
6293 # is EXPORTS), use it as is.
6294 # If DATA tags from a recent dlltool are present, honour them!
6295 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6296 cp $export_symbols $output_objdir/$soname-def;
6298 echo EXPORTS > $output_objdir/$soname-def;
6300 cat $export_symbols | while read symbol; do
6303 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6304 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6306 _lt_hint=`expr 1 + \$_lt_hint`;
6310 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6311 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6312 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6313 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6314 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6322 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6323 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6328 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6332 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6333 *** create shared libraries on Solaris systems. Therefore, libtool
6334 *** is disabling shared libraries support. We urge you to upgrade GNU
6335 *** binutils to release 2.9.1 or newer. Another option is to modify
6336 *** your PATH or compiler configuration so that the native linker is
6337 *** used, and then restart.
6340 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6352 hardcode_shlibpath_var=no
6356 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6365 if test "$ld_shlibs" = yes; then
6366 runpath_var=LD_RUN_PATH
6367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6368 export_dynamic_flag_spec='${wl}--export-dynamic'
6370 cygwin* | mingw* | pw32*)
6371 # dlltool doesn't understand --whole-archive et. al.
6372 whole_archive_flag_spec=
6375 # ancient GNU ld didn't support --whole-archive et. al.
6376 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6379 whole_archive_flag_spec=
6385 # PORTME fill in a description of your system's linker (not GNU ld)
6388 allow_undefined_flag=unsupported
6389 always_export_symbols=yes
6390 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'
6391 # Note: this linker hardcodes the directories in LIBPATH if there
6392 # are no directories specified by -L.
6393 hardcode_minus_L=yes
6394 if test "$GCC" = yes && test -z "$link_static_flag"; then
6395 # Neither direct hardcoding nor static linking is supported with a
6397 hardcode_direct=unsupported
6402 if test "$host_cpu" = ia64; then
6403 # On IA64, the linker does run time linking by default, so we don't
6404 # have to do anything special.
6405 aix_use_runtimelinking=no
6406 exp_sym_flag='-Bexport'
6409 # If we're using GNU nm, then we don't want the "-C" option.
6410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6411 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
6412 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'
6414 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'
6417 # KDE requires run time linking. Make it the default.
6418 aix_use_runtimelinking=yes
6419 exp_sym_flag='-bexport'
6420 no_entry_flag='-bnoentry'
6423 # When large executables or shared objects are built, AIX ld can
6424 # have problems creating the table of contents. If linking a library
6425 # or program results in "error TOC overflow" add -mminimal-toc to
6426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6431 hardcode_libdir_separator=':'
6432 link_all_deplibs=yes
6434 if test "$GCC" = yes; then
6435 case $host_os in aix4.012|aix4.012.*)
6436 # We only want to do this on AIX 4.2 and lower, the check
6437 # below for broken collect2 doesn't work under 4.3+
6438 collect2name=`${CC} -print-prog-name=collect2`
6439 if test -f "$collect2name" && \
6440 strings "$collect2name" | grep resolve_lib_name >/dev/null
6442 # We have reworked collect2
6445 # We have old collect2
6446 hardcode_direct=unsupported
6447 # It fails to find uninstalled libraries when the uninstalled
6448 # path is not listed in the libpath. Setting hardcode_minus_L
6449 # to unsupported forces relinking
6450 hardcode_minus_L=yes
6451 hardcode_libdir_flag_spec='-L$libdir'
6452 hardcode_libdir_separator=
6455 shared_flag='-shared'
6458 if test "$host_cpu" = ia64; then
6459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6460 # chokes on -Wl,-G. The following line is correct:
6463 if test "$aix_use_runtimelinking" = yes; then
6464 shared_flag='-qmkshrobj ${wl}-G'
6466 shared_flag='-qmkshrobj'
6471 # Let the compiler handle the export list.
6472 always_export_symbols=no
6473 if test "$aix_use_runtimelinking" = yes; then
6474 # Warning - without using the other runtime loading flags (-brtl),
6475 # -berok will link without error, but may produce a broken library.
6476 allow_undefined_flag='-berok'
6477 # Determine the default libpath from the value encoded in an empty executable.
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6480 #include "confdefs.h"
6482 #ifdef F77_DUMMY_MAIN
6486 int F77_DUMMY_MAIN() { return 1; }
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6511 # Check for a 64-bit object if we didn't find anything.
6512 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6515 echo "$as_me: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6522 archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
6523 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6525 if test "$host_cpu" = ia64; then
6526 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6527 allow_undefined_flag="-z nodefs"
6528 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6530 # Determine the default libpath from the value encoded in an empty executable.
6531 cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 #include "confdefs.h"
6535 #ifdef F77_DUMMY_MAIN
6539 int F77_DUMMY_MAIN() { return 1; }
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6564 # Check for a 64-bit object if we didn't find anything.
6565 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6575 # Warning - without using the other run time loading flags,
6576 # -berok will link without error, but may produce a broken library.
6577 no_undefined_flag=' ${wl}-bernotok'
6578 allow_undefined_flag=' ${wl}-berok'
6579 # -bexpall does not export symbols beginning with underscore (_)
6580 always_export_symbols=yes
6581 # Exported symbols can be pulled into shared objects from archives
6582 whole_archive_flag_spec=' '
6583 archive_cmds_need_lc=yes
6584 # This is similar to how AIX traditionally builds it's shared libraries.
6585 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6591 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)'
6592 hardcode_libdir_flag_spec='-L$libdir'
6593 hardcode_minus_L=yes
6594 # see comment about different semantics on the GNU ld section
6599 export_dynamic_flag_spec=-rdynamic
6602 cygwin* | mingw* | pw32*)
6603 # When not using gcc, we currently assume that we are using
6604 # Microsoft Visual C++.
6605 # hardcode_libdir_flag_spec is actually meaningless, as there is
6606 # no search path for DLLs.
6607 hardcode_libdir_flag_spec=' '
6608 allow_undefined_flag=unsupported
6609 # Tell ltmain to make .lib files, not .a files.
6611 # FIXME: Setting linknames here is a bad hack.
6612 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6613 # The linker will automatically build a .lib file if we build a DLL.
6614 old_archive_From_new_cmds='true'
6615 # FIXME: Should let the user specify the lib program.
6616 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6617 fix_srcfile_path='`cygpath -w "$srcfile"`'
6620 darwin* | rhapsody*)
6622 rhapsody* | darwin1.[012])
6623 allow_undefined_flag='-undefined suppress'
6626 allow_undefined_flag='-flat_namespace -undefined suppress'
6630 # FIXME: Relying on posixy $() will cause problems for
6631 # cross-compilation, but unfortunately the echo tests do not
6632 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6633 # `"' quotes if we put them in here... so don't!
6634 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6635 # We need to add '_' to the symbols in $export_symbols first
6636 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6638 hardcode_shlibpath_var=no
6639 whole_archive_flag_spec='-all_load $convenience'
6643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6644 hardcode_libdir_flag_spec='-L$libdir'
6645 hardcode_shlibpath_var=no
6652 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6653 # support. Future versions do this automatically, but an explicit c++rt0.o
6654 # does not break anything, and helps significantly (at the cost of a little
6657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6658 hardcode_libdir_flag_spec='-R$libdir'
6660 hardcode_shlibpath_var=no
6663 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6667 hardcode_minus_L=yes
6668 hardcode_shlibpath_var=no
6671 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6673 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6674 hardcode_libdir_flag_spec='-R$libdir'
6676 hardcode_shlibpath_var=no
6679 hpux9* | hpux10* | hpux11*)
6680 if test "$GCC" = yes; then
6683 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'
6686 if test "$host_cpu" = ia64; then
6687 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6696 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'
6699 if test "$host_cpu" = ia64; then
6700 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6707 if test "$host_cpu" = ia64; then
6708 hardcode_libdir_flag_spec='-L$libdir'
6710 hardcode_shlibpath_var=no
6712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6713 hardcode_libdir_separator=:
6716 # hardcode_minus_L: Not really in the search PATH,
6717 # but as the default location of the library.
6718 hardcode_minus_L=yes
6719 export_dynamic_flag_spec='${wl}-E'
6722 irix5* | irix6* | nonstopux*)
6723 if test "$GCC" = yes; then
6724 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'
6726 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'
6728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6729 hardcode_libdir_separator=:
6730 link_all_deplibs=yes
6734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6739 hardcode_libdir_flag_spec='-R$libdir'
6741 hardcode_shlibpath_var=no
6745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6748 hardcode_libdir_separator=:
6749 hardcode_shlibpath_var=no
6754 hardcode_shlibpath_var=no
6756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6759 export_dynamic_flag_spec='${wl}-E'
6762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6764 hardcode_libdir_flag_spec='-R$libdir'
6767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6775 hardcode_libdir_flag_spec='-L$libdir'
6776 hardcode_minus_L=yes
6777 allow_undefined_flag=unsupported
6778 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'
6779 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6783 if test "$GCC" = yes; then
6784 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6785 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'
6787 allow_undefined_flag=' -expect_unresolved \*'
6788 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'
6790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6791 hardcode_libdir_separator=:
6794 osf4* | osf5*) # as osf3* with the addition of -msym flag
6795 if test "$GCC" = yes; then
6796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6797 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'
6798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6800 allow_undefined_flag=' -expect_unresolved \*'
6801 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'
6802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6803 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6805 # Both c and cxx compiler support -rpath directly
6806 hardcode_libdir_flag_spec='-rpath $libdir'
6808 hardcode_libdir_separator=:
6812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6813 hardcode_shlibpath_var=no
6814 export_dynamic_flag_spec='${wl}-Bexport'
6815 runpath_var=LD_RUN_PATH
6816 hardcode_runpath_var=yes
6820 no_undefined_flag=' -z text'
6821 if test "$GCC" = yes; then
6822 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6827 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6830 hardcode_libdir_flag_spec='-R$libdir'
6831 hardcode_shlibpath_var=no
6833 solaris2.[0-5] | solaris2.[0-5].*) ;;
6834 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6835 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6837 link_all_deplibs=yes
6841 if test "x$host_vendor" = xsequent; then
6842 # Use $CC to link under sequent, because it throws in some extra .o
6843 # files that make .init and .fini sections work.
6844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6848 hardcode_libdir_flag_spec='-L$libdir'
6850 hardcode_minus_L=yes
6851 hardcode_shlibpath_var=no
6855 if test "x$host_vendor" = xsni; then
6856 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_direct=yes # is this really true???
6859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6860 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6862 runpath_var='LD_RUN_PATH'
6863 hardcode_shlibpath_var=no
6867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6868 hardcode_shlibpath_var=no
6869 export_dynamic_flag_spec='-Bexport'
6873 if test -d /usr/nec; then
6874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6875 hardcode_shlibpath_var=no
6876 runpath_var=LD_RUN_PATH
6877 hardcode_runpath_var=yes
6883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6886 hardcode_shlibpath_var=no
6887 hardcode_runpath_var=yes
6888 runpath_var=LD_RUN_PATH
6891 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6892 no_undefined_flag='${wl}-z ${wl}text'
6893 if test "$GCC" = yes; then
6894 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6896 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6898 runpath_var='LD_RUN_PATH'
6899 hardcode_shlibpath_var=no
6903 no_undefined_flag=' -z text'
6904 # $CC -shared without GNU ld will not create a library from C++
6905 # object files and a static libstdc++, better avoid it by now
6906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6909 hardcode_libdir_flag_spec=
6910 hardcode_shlibpath_var=no
6911 runpath_var='LD_RUN_PATH'
6915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_shlibpath_var=no
6926 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6927 echo "${ECHO_T}$ld_shlibs" >&6
6928 test "$ld_shlibs" = no && can_build_shared=no
6930 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6931 if test "$GCC" = yes; then
6932 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6936 # Do we need to explicitly link libc?
6938 archive_cmds_need_lc=yes
6939 if test "$enable_shared" = yes && test "$GCC" = yes; then
6940 case $archive_cmds in
6942 # FIXME: we may have to deal with multi-command sequences.
6945 # Test whether the compiler implicitly links with -lc since on some
6946 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6947 # to ld, don't add -lc before -lgcc.
6948 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6949 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6951 echo 'static int dummy;' > conftest.$ac_ext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } 2>conftest.err; then
6960 libobjs=conftest.$ac_objext
6962 wl=$lt_prog_compiler_wl
6968 lt_save_allow_undefined_flag=$allow_undefined_flag
6969 allow_undefined_flag=
6970 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6971 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }
6976 archive_cmds_need_lc=no
6978 archive_cmds_need_lc=yes
6980 allow_undefined_flag=$lt_save_allow_undefined_flag
6982 cat conftest.err 1>&5
6985 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6986 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6991 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6994 if test -n "$hardcode_libdir_flag_spec" || \
6995 test -n "$runpath_var "; then
6997 # We can hardcode non-existant directories.
6998 if test "$hardcode_direct" != no &&
6999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7000 # have to relink, otherwise we might link with an installed library
7001 # when we should be linking with a yet-to-be-installed one
7002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7003 test "$hardcode_minus_L" != no; then
7004 # Linking always hardcodes the temporary library directory.
7005 hardcode_action=relink
7007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7008 hardcode_action=immediate
7011 # We cannot hardcode anything, or else we can only hardcode existing
7013 hardcode_action=unsupported
7015 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7016 echo "${ECHO_T}$hardcode_action" >&6
7018 if test "$hardcode_action" = relink; then
7019 # Fast installation is not supported
7020 enable_fast_install=no
7021 elif test "$shlibpath_overrides_runpath" = yes ||
7022 test "$enable_shared" = no; then
7023 # Fast installation is not necessary
7024 enable_fast_install=needless
7029 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7030 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7031 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7032 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7033 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7034 echo "$as_me:$LINENO: result: yes" >&5
7035 echo "${ECHO_T}yes" >&6
7037 echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6
7041 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7042 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7044 libname_spec='lib$name'
7051 shlibpath_overrides_runpath=unknown
7053 dynamic_linker="$host_os ld.so"
7054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7056 need_lib_prefix=unknown
7057 hardcode_into_libs=no
7059 # when you set need_version to no, make sure it does not cause -set_version
7060 # flags to be left without arguments
7061 need_version=unknown
7066 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7067 shlibpath_var=LIBPATH
7069 # AIX 3 has no versioning support, so we append a major version to the name.
7070 soname_spec='${libname}${release}.so$major'
7075 if test "$host_cpu" = ia64; then
7076 # AIX 5 supports IA64
7077 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7078 shlibpath_var=LD_LIBRARY_PATH
7080 # With GCC up to 2.95.x, collect2 would create an import file
7081 # for dependence libraries. The import file would start with
7082 # the line `#! .'. This would cause the generated library to
7083 # depend on `.', always an invalid library. This was fixed in
7084 # development snapshots of GCC prior to 3.0.
7086 aix4 | aix4.[01] | aix4.[01].*)
7087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7097 # soname into executable. Probably we can add versioning support to
7098 # collect2, so additional links can be useful in future.
7099 if test "$aix_use_runtimelinking" = yes; then
7100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7101 # instead of lib<name>.a to let people know that these are not
7102 # typical AIX shared libraries.
7103 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7105 # We preserve .a as extension for shared libraries through AIX4.2
7106 # and later when we are not doing run time linking.
7107 library_names_spec='${libname}${release}.a $libname.a'
7108 soname_spec='${libname}${release}.so$major'
7110 shlibpath_var=LIBPATH
7115 library_names_spec='$libname.ixlibrary $libname.a'
7116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7117 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'
7121 library_names_spec='${libname}.so'
7122 dynamic_linker="$host_os ld.so"
7123 shlibpath_var=LIBRARY_PATH
7129 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7130 soname_spec='${libname}${release}.so$major'
7131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7132 shlibpath_var=LD_LIBRARY_PATH
7133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7135 # the default ld.so.conf also contains /usr/contrib/lib and
7136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7137 # libtool to hard-code these into programs
7140 cygwin* | mingw* | pw32*)
7141 version_type=windows
7144 case $GCC,$host_os in
7146 library_names_spec='$libname.dll.a'
7147 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7149 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7150 dldir=$destdir/`dirname \$dlpath`~
7151 test -d \$dldir || mkdir -p \$dldir~
7152 $install_prog .libs/$dlname \$dldir/$dlname'
7153 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7154 dlpath=$dir/\$dldll~
7158 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
7160 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
7161 # It is most probably a Windows format PATH printed by
7162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7163 # path with ; separators, and with drive letters. We can handle the
7164 # drive letters (cygwin fileutils understands them), so leave them,
7165 # especially as we might pass files found there to a mingw objdump,
7166 # which wouldn't understand a cygwinified path. Ahh.
7167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7176 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7179 dynamic_linker='Win32 ld.exe'
7180 # FIXME: first we should search . and the directory the executable is in
7184 darwin* | rhapsody*)
7185 dynamic_linker="$host_os dyld"
7189 # FIXME: Relying on posixy $() will cause problems for
7190 # cross-compilation, but unfortunately the echo tests do not
7191 # yet detect zsh echo's removal of \ escapes.
7192 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7193 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7194 shlibpath_overrides_runpath=yes
7195 shlibpath_var=DYLD_LIBRARY_PATH
7202 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7203 soname_spec='${libname}${release}.so$major'
7204 shlibpath_var=LD_LIBRARY_PATH
7212 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7213 version_type=freebsd-$objformat
7214 case $version_type in
7216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7221 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7225 shlibpath_var=LD_LIBRARY_PATH
7228 shlibpath_overrides_runpath=yes
7230 freebsd3.01* | freebsdelf3.01*)
7231 shlibpath_overrides_runpath=yes
7232 hardcode_into_libs=yes
7235 shlibpath_overrides_runpath=no
7236 hardcode_into_libs=yes
7245 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7246 soname_spec='${libname}${release}.so$major'
7247 shlibpath_var=LD_LIBRARY_PATH
7248 hardcode_into_libs=yes
7251 hpux9* | hpux10* | hpux11*)
7252 # Give a soname corresponding to the major version so that dld.sl refuses to
7253 # link against other versions.
7257 if test "$host_cpu" = ia64; then
7258 hardcode_into_libs=yes
7259 dynamic_linker="$host_os dld.so"
7260 shlibpath_var=LD_LIBRARY_PATH
7261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7262 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7263 soname_spec='${libname}${release}.so$major'
7264 if test "X$HPUX_IA64_MODE" = X32; then
7265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7271 dynamic_linker="$host_os dld.sl"
7272 shlibpath_var=SHLIB_PATH
7273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7274 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7275 soname_spec='${libname}${release}.sl$major'
7277 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7278 postinstall_cmds='chmod 555 $lib'
7281 irix5* | irix6* | nonstopux*)
7283 nonstopux*) version_type=nonstopux ;;
7284 *) version_type=irix ;;
7288 soname_spec='${libname}${release}.so$major'
7289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7291 irix5* | nonstopux*)
7295 case $LD in # libtool.m4 will add one of these switches to LD
7296 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7297 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7298 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7299 *) libsuff= shlibsuff= libmagic=never-match;;
7303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7304 shlibpath_overrides_runpath=no
7305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7309 # No shared lib support for Linux oldld, aout, or coff.
7310 linux*oldld* | linux*aout* | linux*coff*)
7314 # This must be Linux ELF.
7319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7320 soname_spec='${libname}${release}.so$major'
7321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7323 if test "x$LINUX_64_MODE" = x64; then
7324 # Some platforms are per default 64-bit, so there's no /lib64
7325 if test -d /lib64; then
7329 shlibpath_var=LD_LIBRARY_PATH
7330 shlibpath_overrides_runpath=no
7331 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7332 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7333 # This implies no fast_install, which is unacceptable.
7334 # Some rework will be needed to allow for fast_install
7335 # before this can be enabled.
7336 hardcode_into_libs=yes
7338 # We used to test for /lib/ld.so.1 and disable shared libraries on
7339 # powerpc, because MkLinux only supported shared libraries with the
7340 # GNU dynamic linker. Since this was broken with cross compilers,
7341 # most powerpc-linux boxes support dynamic linking these days and
7342 # people can always --disable-shared, the test was removed, and we
7343 # assume the GNU/Linux dynamic linker is in use.
7344 dynamic_linker='GNU/Linux ld.so'
7351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7352 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7354 dynamic_linker='NetBSD (a.out) ld.so'
7356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7357 soname_spec='${libname}${release}.so$major'
7358 dynamic_linker='NetBSD ld.elf_so'
7360 shlibpath_var=LD_LIBRARY_PATH
7361 shlibpath_overrides_runpath=yes
7362 hardcode_into_libs=yes
7367 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=yes
7376 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7377 soname_spec='${libname}${release}.so$major'
7378 shlibpath_var=LD_LIBRARY_PATH
7379 shlibpath_overrides_runpath=yes
7386 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7388 shlibpath_var=LD_LIBRARY_PATH
7389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7391 openbsd2.[89] | openbsd2.[89].*)
7392 shlibpath_overrides_runpath=no
7395 shlibpath_overrides_runpath=yes
7399 shlibpath_overrides_runpath=yes
7404 libname_spec='$name'
7406 library_names_spec='$libname.dll $libname.a'
7407 dynamic_linker='OS/2 ld.exe'
7408 shlibpath_var=LIBPATH
7411 osf3* | osf4* | osf5*)
7415 soname_spec='${libname}${release}.so'
7416 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7417 shlibpath_var=LD_LIBRARY_PATH
7418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7424 soname_spec='${libname}${release}.so$major'
7425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7426 shlibpath_var=LD_LIBRARY_PATH
7433 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7434 soname_spec='${libname}${release}.so$major'
7435 shlibpath_var=LD_LIBRARY_PATH
7436 shlibpath_overrides_runpath=yes
7437 hardcode_into_libs=yes
7438 # ldd complains unless libraries are executable
7439 postinstall_cmds='chmod +x $lib'
7444 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7446 shlibpath_var=LD_LIBRARY_PATH
7447 shlibpath_overrides_runpath=yes
7448 if test "$with_gnu_ld" = yes; then
7454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7456 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7457 soname_spec='${libname}${release}.so$major'
7458 shlibpath_var=LD_LIBRARY_PATH
7459 case $host_vendor in
7461 shlibpath_overrides_runpath=no
7466 shlibpath_overrides_runpath=no
7467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7473 if test -d /usr/nec ;then
7475 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7476 soname_spec='$libname.so.$major'
7477 shlibpath_var=LD_LIBRARY_PATH
7483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7484 soname_spec='${libname}${release}.so$major'
7485 shlibpath_var=LD_LIBRARY_PATH
7492 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7493 echo "${ECHO_T}$dynamic_linker" >&6
7494 test "$dynamic_linker" = no && can_build_shared=no
7496 if test "x$enable_dlopen" != xyes; then
7497 enable_dlopen=unknown
7498 enable_dlopen_self=unknown
7499 enable_dlopen_self_static=unknown
7506 lt_cv_dlopen="load_add_on"
7508 lt_cv_dlopen_self=yes
7511 cygwin* | mingw* | pw32*)
7512 lt_cv_dlopen="LoadLibrary"
7517 echo "$as_me:$LINENO: checking for shl_load" >&5
7518 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7519 if test "${ac_cv_func_shl_load+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 #include "confdefs.h"
7525 /* System header to define __stub macros and hopefully few prototypes,
7526 which can conflict with char shl_load (); below. */
7528 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7537 #ifdef F77_DUMMY_MAIN
7541 int F77_DUMMY_MAIN() { return 1; }
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7559 rm -f conftest.$ac_objext conftest$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -s conftest$ac_exeext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_cv_func_shl_load=yes
7573 echo "$as_me: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7575 ac_cv_func_shl_load=no
7577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7580 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7581 if test $ac_cv_func_shl_load = yes; then
7582 lt_cv_dlopen="shl_load"
7584 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7585 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7586 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_check_lib_save_LIBS=$LIBS
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7593 #include "confdefs.h"
7595 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7602 #ifdef F77_DUMMY_MAIN
7606 int F77_DUMMY_MAIN() { return 1; }
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_dld_shl_load=yes
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7632 ac_cv_lib_dld_shl_load=no
7634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7639 if test $ac_cv_lib_dld_shl_load = yes; then
7640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7642 echo "$as_me:$LINENO: checking for dlopen" >&5
7643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7644 if test "${ac_cv_func_dlopen+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char dlopen (); below. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7662 #ifdef F77_DUMMY_MAIN
7666 int F77_DUMMY_MAIN() { return 1; }
7671 /* The GNU C library defines this for functions which it implements
7672 to always fail with ENOSYS. Some functions are actually named
7673 something starting with __ and the normal name is an alias. */
7674 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_func_dlopen=yes
7698 echo "$as_me: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7700 ac_cv_func_dlopen=no
7702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7706 if test $ac_cv_func_dlopen = yes; then
7707 lt_cv_dlopen="dlopen"
7709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_check_lib_save_LIBS=$LIBS
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 #include "confdefs.h"
7720 /* Override any gcc2 internal prototype to avoid an error. */
7724 /* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7727 #ifdef F77_DUMMY_MAIN
7731 int F77_DUMMY_MAIN() { return 1; }
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest$ac_exeext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_cv_lib_dl_dlopen=yes
7755 echo "$as_me: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 ac_cv_lib_dl_dlopen=no
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7764 if test $ac_cv_lib_dl_dlopen = yes; then
7765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7767 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7768 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7769 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_check_lib_save_LIBS=$LIBS
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 #include "confdefs.h"
7778 /* Override any gcc2 internal prototype to avoid an error. */
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7785 #ifdef F77_DUMMY_MAIN
7789 int F77_DUMMY_MAIN() { return 1; }
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_svld_dlopen=yes
7813 echo "$as_me: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7815 ac_cv_lib_svld_dlopen=no
7817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7818 LIBS=$ac_check_lib_save_LIBS
7820 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7821 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7822 if test $ac_cv_lib_svld_dlopen = yes; then
7823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7825 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7826 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7827 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 ac_check_lib_save_LIBS=$LIBS
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7834 #include "confdefs.h"
7836 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7843 #ifdef F77_DUMMY_MAIN
7847 int F77_DUMMY_MAIN() { return 1; }
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_lib_dld_dld_link=yes
7871 echo "$as_me: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 ac_cv_lib_dld_dld_link=no
7875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7878 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7879 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7880 if test $ac_cv_lib_dld_dld_link = yes; then
7881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7902 if test "x$lt_cv_dlopen" != xno; then
7908 case $lt_cv_dlopen in
7910 save_CPPFLAGS="$CPPFLAGS"
7911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7913 save_LDFLAGS="$LDFLAGS"
7914 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7917 LIBS="$lt_cv_dlopen_libs $LIBS"
7919 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7920 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7921 if test "${lt_cv_dlopen_self+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 if test "$cross_compiling" = yes; then :
7925 lt_cv_dlopen_self=cross
7927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7928 lt_status=$lt_dlunknown
7929 cat > conftest.$ac_ext <<EOF
7930 #line 7930 "configure"
7931 #include "confdefs.h"
7940 # define LT_DLGLOBAL RTLD_GLOBAL
7943 # define LT_DLGLOBAL DL_GLOBAL
7945 # define LT_DLGLOBAL 0
7949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7950 find out it does not work in some platform. */
7951 #ifndef LT_DLLAZY_OR_NOW
7953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7956 # define LT_DLLAZY_OR_NOW DL_LAZY
7959 # define LT_DLLAZY_OR_NOW RTLD_NOW
7962 # define LT_DLLAZY_OR_NOW DL_NOW
7964 # define LT_DLLAZY_OR_NOW 0
7972 extern "C" void exit (int);
7975 void fnord() { int i=42;}
7978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7979 int status = $lt_dlunknown;
7983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7984 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7985 /* dlclose (self); */
7991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7992 (eval $ac_link) 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7996 (./conftest; exit; ) 2>/dev/null
7999 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8000 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8001 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8004 # compilation failed
8005 lt_cv_dlopen_self=no
8012 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8013 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8015 if test "x$lt_cv_dlopen_self" = xyes; then
8016 LDFLAGS="$LDFLAGS $link_static_flag"
8017 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8018 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8019 if test "${lt_cv_dlopen_self_static+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 if test "$cross_compiling" = yes; then :
8023 lt_cv_dlopen_self_static=cross
8025 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8026 lt_status=$lt_dlunknown
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8028 "configure"
8029 #include "confdefs.h"
8038 # define LT_DLGLOBAL RTLD_GLOBAL
8041 # define LT_DLGLOBAL DL_GLOBAL
8043 # define LT_DLGLOBAL 0
8047 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8048 find out it does not work in some platform. */
8049 #ifndef LT_DLLAZY_OR_NOW
8051 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8054 # define LT_DLLAZY_OR_NOW DL_LAZY
8057 # define LT_DLLAZY_OR_NOW RTLD_NOW
8060 # define LT_DLLAZY_OR_NOW DL_NOW
8062 # define LT_DLLAZY_OR_NOW 0
8070 extern "C" void exit (int);
8073 void fnord() { int i=42;}
8076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8077 int status = $lt_dlunknown;
8081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8082 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8083 /* dlclose (self); */
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8094 (./conftest; exit; ) 2>/dev/null
8097 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8098 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8099 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8102 # compilation failed
8103 lt_cv_dlopen_self_static=no
8110 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8111 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8114 CPPFLAGS="$save_CPPFLAGS"
8115 LDFLAGS="$save_LDFLAGS"
8120 case $lt_cv_dlopen_self in
8121 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8122 *) enable_dlopen_self=unknown ;;
8125 case $lt_cv_dlopen_self_static in
8126 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8127 *) enable_dlopen_self_static=unknown ;;
8132 # Report which librarie types wil actually be built
8133 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8134 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8135 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8136 echo "${ECHO_T}$can_build_shared" >&6
8138 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8139 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8140 test "$can_build_shared" = "no" && enable_shared=no
8142 # On AIX, shared libraries and static libraries use the same namespace, and
8143 # are all built from PIC.
8146 test "$enable_shared" = yes && enable_static=no
8147 if test -n "$RANLIB"; then
8148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8149 postinstall_cmds='$RANLIB $lib'
8154 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8155 test "$enable_shared" = yes && enable_static=no
8159 echo "$as_me:$LINENO: result: $enable_shared" >&5
8160 echo "${ECHO_T}$enable_shared" >&6
8162 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8163 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8164 # Make sure either enable_shared or enable_static is yes.
8165 test "$enable_shared" = yes || enable_static=yes
8166 echo "$as_me:$LINENO: result: $enable_static" >&5
8167 echo "${ECHO_T}$enable_static" >&6
8169 # The else clause should only fire when bootstrapping the
8170 # libtool distribution, otherwise you forgot to ship ltmain.sh
8171 # with your package, and you will get complaints that there are
8172 # no rules to generate ltmain.sh.
8173 if test -f "$ltmain"; then
8174 # Now quote all the things that may contain metacharacters while being
8175 # careful not to overquote the AC_SUBSTed values. We take copies of the
8176 # variables and quote the copies for generation of the libtool script.
8177 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
8178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8180 deplibs_check_method reload_flag reload_cmds need_locks \
8181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8182 lt_cv_sys_global_symbol_to_c_name_address \
8183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8184 old_postinstall_cmds old_postuninstall_cmds \
8188 lt_prog_compiler_wl \
8189 lt_prog_compiler_pic \
8190 lt_prog_compiler_static \
8191 lt_prog_compiler_no_builtin_flag \
8192 export_dynamic_flag_spec \
8193 thread_safe_flag_spec \
8194 whole_archive_flag_spec \
8196 old_archive_from_new_cmds \
8201 compiler_lib_search_path \
8203 archive_expsym_cmds \
8205 postuninstall_cmds \
8206 old_archive_from_expsyms_cmds \
8207 allow_undefined_flag \
8209 export_symbols_cmds \
8210 hardcode_libdir_flag_spec \
8211 hardcode_libdir_separator \
8212 lt_cv_prog_compiler_c_o \
8217 old_archive_cmds | \
8218 old_archive_from_new_cmds | \
8220 archive_expsym_cmds | \
8221 old_archive_from_expsyms_cmds | \
8222 export_symbols_cmds | \
8223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8224 postinstall_cmds | postuninstall_cmds | \
8225 old_postinstall_cmds | old_postuninstall_cmds | \
8226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8227 # Double-quote double-evaled strings.
8228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8237 *'\$0 --fallback-echo"')
8238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8243 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8245 { echo "$as_me:$LINENO: creating $ofile" >&5
8246 echo "$as_me: creating $ofile" >&6;}
8248 cat <<__EOF__ >> "$cfgfile"
8251 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8252 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8253 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8255 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8256 # Free Software Foundation, Inc.
8258 # This file is part of GNU Libtool:
8259 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8261 # This program is free software; you can redistribute it and/or modify
8262 # it under the terms of the GNU General Public License as published by
8263 # the Free Software Foundation; either version 2 of the License, or
8264 # (at your option) any later version.
8266 # This program is distributed in the hope that it will be useful, but
8267 # WITHOUT ANY WARRANTY; without even the implied warranty of
8268 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8269 # General Public License for more details.
8271 # You should have received a copy of the GNU General Public License
8272 # along with this program; if not, write to the Free Software
8273 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8275 # As a special exception to the GNU General Public License, if you
8276 # distribute this file as part of a program that contains a
8277 # configuration script generated by Autoconf, you may include it under
8278 # the same distribution terms that you use for the rest of that program.
8280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8281 Xsed="sed -e s/^X//"
8283 # The HP-UX ksh and POSIX shell print the target directory to stdout
8285 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8287 # The names of the tagged configurations supported by this script.
8290 # ### BEGIN LIBTOOL CONFIG
8292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8294 # Shell to use when invoking shell scripts.
8297 # Whether or not to build shared libraries.
8298 build_libtool_libs=$enable_shared
8300 # Whether or not to build static libraries.
8301 build_old_libs=$enable_static
8303 # Whether or not to add -lc for building shared libraries.
8304 build_libtool_need_lc=$archive_cmds_need_lc
8306 # Whether or not to optimize for fast installation.
8307 fast_install=$enable_fast_install
8310 host_alias=$host_alias
8313 # An echo program that does not interpret backslashes.
8318 AR_FLAGS=$lt_AR_FLAGS
8323 # A language-specific compiler.
8326 # Is the compiler the GNU C compiler?
8329 # The linker used to build libraries.
8332 # Whether we need hard or soft links.
8335 # A BSD-compatible nm program.
8338 # A sed program that does not truncate output.
8341 # A symbol stripping program
8344 # Used to examine libraries when file_magic_cmd begins "file"
8345 MAGIC_CMD=$MAGIC_CMD
8347 # Used on cygwin: DLL creation program.
8350 # Used on cygwin: object dumper.
8353 # Used on cygwin: assembler.
8356 # The name of the directory that contains temporary libtool files.
8359 # How to create reloadable object files.
8360 reload_flag=$lt_reload_flag
8361 reload_cmds=$lt_reload_cmds
8363 # How to pass a linker flag through the compiler.
8364 wl=$lt_lt_prog_compiler_wl
8366 # Object file suffix (normally "o").
8369 # Old archive suffix (normally "a").
8372 # Executable file suffix (normally "").
8375 # Additional compiler flags for building library objects.
8376 pic_flag=$lt_lt_prog_compiler_pic
8379 # What is the maximum length of a command?
8380 max_cmd_len=$lt_cv_sys_max_cmd_len
8382 # Does compiler simultaneously support -c and -o options?
8383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8385 # Must we lock files when doing compilation ?
8386 need_locks=$lt_need_locks
8388 # Do we need the lib prefix for modules?
8389 need_lib_prefix=$need_lib_prefix
8391 # Do we need a version for libraries?
8392 need_version=$need_version
8394 # Whether dlopen is supported.
8395 dlopen_support=$enable_dlopen
8397 # Whether dlopen of programs is supported.
8398 dlopen_self=$enable_dlopen_self
8400 # Whether dlopen of statically linked programs is supported.
8401 dlopen_self_static=$enable_dlopen_self_static
8403 # Compiler flag to prevent dynamic linking.
8404 link_static_flag=$lt_lt_prog_compiler_static
8406 # Compiler flag to turn off builtin functions.
8407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8409 # Compiler flag to allow reflexive dlopens.
8410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8412 # Compiler flag to generate shared objects directly from archives.
8413 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8415 # Compiler flag to generate thread-safe objects.
8416 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8418 # Library versioning type.
8419 version_type=$version_type
8421 # Format of library name prefix.
8422 libname_spec=$lt_libname_spec
8424 # List of archive names. First name is the real one, the rest are links.
8425 # The last name is the one that the linker finds with -lNAME.
8426 library_names_spec=$lt_library_names_spec
8428 # The coded name of the library, if different from the real name.
8429 soname_spec=$lt_soname_spec
8431 # Commands used to build and install an old-style archive.
8433 old_archive_cmds=$lt_old_archive_cmds
8434 old_postinstall_cmds=$lt_old_postinstall_cmds
8435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8437 # Create an old-style archive from a shared archive.
8438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8440 # Create a temporary old-style archive to link instead of a shared archive.
8441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8443 # Commands used to build and install a shared archive.
8444 archive_cmds=$lt_archive_cmds
8445 archive_expsym_cmds=$lt_archive_expsym_cmds
8446 postinstall_cmds=$lt_postinstall_cmds
8447 postuninstall_cmds=$lt_postuninstall_cmds
8449 # Commands to strip libraries.
8450 old_striplib=$lt_old_striplib
8451 striplib=$lt_striplib
8453 # Dependencies to place before the objects being linked to create a
8455 predep_objects=$lt_predep_objects
8457 # Dependencies to place after the objects being linked to create a
8459 postdep_objects=$lt_postdep_objects
8461 # Dependencies to place before the objects being linked to create a
8465 # Dependencies to place after the objects being linked to create a
8467 postdeps=$lt_postdeps
8469 # The library search path used internally by the compiler when linking
8471 compiler_lib_search_path=$lt_compiler_lib_search_path
8473 # Method to check whether dependent libraries are shared objects.
8474 deplibs_check_method=$lt_deplibs_check_method
8476 # Command to use when deplibs_check_method == file_magic.
8477 file_magic_cmd=$lt_file_magic_cmd
8479 # Flag that allows shared libraries with undefined symbols to be built.
8480 allow_undefined_flag=$lt_allow_undefined_flag
8482 # Flag that forces no undefined symbols.
8483 no_undefined_flag=$lt_no_undefined_flag
8485 # Commands used to finish a libtool library installation in a directory.
8486 finish_cmds=$lt_finish_cmds
8488 # Same as above, but a single script fragment to be evaled but not shown.
8489 finish_eval=$lt_finish_eval
8491 # Take the output of nm and produce a listing of raw symbols and C names.
8492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8494 # Transform the output of nm in a proper C declaration
8495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8497 # Transform the output of nm in a C name address pair
8498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8500 # This is the shared library runtime path variable.
8501 runpath_var=$runpath_var
8503 # This is the shared library path variable.
8504 shlibpath_var=$shlibpath_var
8506 # Is shlibpath searched before the hard-coded library search path?
8507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8509 # How to hardcode a shared library path into an executable.
8510 hardcode_action=$hardcode_action
8512 # Whether we should hardcode library paths into libraries.
8513 hardcode_into_libs=$hardcode_into_libs
8515 # Flag to hardcode \$libdir into a binary during linking.
8516 # This must work even if \$libdir does not exist.
8517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8519 # Whether we need a single -rpath flag with a separated argument.
8520 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8522 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8524 hardcode_direct=$hardcode_direct
8526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8528 hardcode_minus_L=$hardcode_minus_L
8530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8531 # the resulting binary.
8532 hardcode_shlibpath_var=$hardcode_shlibpath_var
8534 # Variables whose values should be saved in libtool wrapper scripts and
8535 # restored at relink time.
8536 variables_saved_for_relink="$variables_saved_for_relink"
8538 # Whether libtool must link a program against all its dependency libraries.
8539 link_all_deplibs=$link_all_deplibs
8541 # Compile-time system search path for libraries
8542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8544 # Run-time system search path for libraries
8545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8547 # Fix the shell variable \$srcfile for the compiler.
8548 fix_srcfile_path="$fix_srcfile_path"
8550 # Set to yes if exported symbols are required.
8551 always_export_symbols=$always_export_symbols
8553 # The commands to list exported symbols.
8554 export_symbols_cmds=$lt_export_symbols_cmds
8556 # The commands to extract the exported symbol list from a shared archive.
8557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8559 # Symbols that should not be listed in the preloaded symbols.
8560 exclude_expsyms=$lt_exclude_expsyms
8562 # Symbols that must always be exported.
8563 include_expsyms=$lt_include_expsyms
8565 # ### END LIBTOOL CONFIG
8572 cat <<\EOF >> "$cfgfile"
8574 # AIX sometimes has problems with the GCC collect2 program. For some
8575 # reason, if we set the COLLECT_NAMES environment variable, the problems
8576 # vanish in a puff of smoke.
8577 if test "X${COLLECT_NAMES+set}" != Xset; then
8579 export COLLECT_NAMES
8584 cygwin* | mingw* | pw32* | os2*)
8585 cat <<'EOF' >> "$cfgfile"
8586 # This is a source program that is used to create dlls on Windows
8587 # Don't remove nor modify the starting and closing comments
8589 # /* ltdll.c starts here */
8590 # #define WIN32_LEAN_AND_MEAN
8591 # #include <windows.h>
8592 # #undef WIN32_LEAN_AND_MEAN
8593 # #include <stdio.h>
8595 # #ifndef __CYGWIN__
8596 # # ifdef __CYGWIN32__
8597 # # define __CYGWIN__ __CYGWIN32__
8601 # #ifdef __cplusplus
8604 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8605 # #ifdef __cplusplus
8610 # #include <cygwin/cygwin_dll.h>
8611 # DECLARE_CYGWIN_DLL( DllMain );
8613 # HINSTANCE __hDllInstance_base;
8616 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8618 # __hDllInstance_base = hInst;
8621 # /* ltdll.c ends here */
8623 # This is a source program that is used to create import libraries
8624 # on Windows for dlls which lack them. Don't remove nor modify the
8625 # starting and closing comments
8627 # /* impgen.c starts here */
8628 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
8630 # This file is part of GNU libtool.
8632 # This program is free software; you can redistribute it and/or modify
8633 # it under the terms of the GNU General Public License as published by
8634 # the Free Software Foundation; either version 2 of the License, or
8635 # (at your option) any later version.
8637 # This program is distributed in the hope that it will be useful,
8638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8640 # GNU General Public License for more details.
8642 # You should have received a copy of the GNU General Public License
8643 # along with this program; if not, write to the Free Software
8644 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8647 # #include <stdio.h> /* for printf() */
8648 # #include <unistd.h> /* for open(), lseek(), read() */
8649 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8650 # #include <string.h> /* for strdup() */
8652 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8654 # #define O_BINARY 0
8657 # static unsigned int
8658 # pe_get16 (fd, offset)
8662 # unsigned char b[2];
8663 # lseek (fd, offset, SEEK_SET);
8665 # return b[0] + (b[1]<<8);
8668 # static unsigned int
8669 # pe_get32 (fd, offset)
8673 # unsigned char b[4];
8674 # lseek (fd, offset, SEEK_SET);
8676 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8679 # static unsigned int
8683 # unsigned char *b = ptr;
8684 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8693 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8694 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8695 # unsigned long name_rvas, nexp;
8696 # unsigned char *expdata, *erva;
8697 # char *filename, *dll_name;
8699 # filename = argv[1];
8701 # dll = open(filename, O_RDONLY|O_BINARY);
8705 # dll_name = filename;
8707 # for (i=0; filename[i]; i++)
8708 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8709 # dll_name = filename + i +1;
8711 # pe_header_offset = pe_get32 (dll, 0x3c);
8712 # opthdr_ofs = pe_header_offset + 4 + 20;
8713 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8715 # if (num_entries < 1) /* no exports */
8718 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8719 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8720 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8721 # secptr = (pe_header_offset + 4 + 20 +
8722 # pe_get16 (dll, pe_header_offset + 4 + 16));
8725 # for (i = 0; i < nsections; i++)
8728 # unsigned long secptr1 = secptr + 40 * i;
8729 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8730 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8731 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8732 # lseek(dll, secptr1, SEEK_SET);
8733 # read(dll, sname, 8);
8734 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8736 # expptr = fptr + (export_rva - vaddr);
8737 # if (export_rva + export_size > vaddr + vsize)
8738 # export_size = vsize - (export_rva - vaddr);
8743 # expdata = (unsigned char*)malloc(export_size);
8744 # lseek (dll, expptr, SEEK_SET);
8745 # read (dll, expdata, export_size);
8746 # erva = expdata - export_rva;
8748 # nexp = pe_as32 (expdata+24);
8749 # name_rvas = pe_as32 (expdata+32);
8751 # printf ("EXPORTS\n");
8752 # for (i = 0; i<nexp; i++)
8754 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8755 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8760 # /* impgen.c ends here */
8766 # We use sed instead of cat because bash on DJGPP gets confused if
8767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8768 # text mode, it properly converts lines to CR/LF. This bash problem
8769 # is reportedly fixed, but why not run on old versions too?
8770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8772 mv -f "$cfgfile" "$ofile" || \
8773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8777 # If there is no Makefile yet, we rely on a make rule to execute
8778 # `config.status --recheck' to rerun these tests and create the
8779 # libtool script then.
8780 test -f Makefile && make "$ltmain"
8785 ac_cpp='$CPP $CPPFLAGS'
8786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793 # Check whether --with-tags or --without-tags was given.
8794 if test "${with_tags+set}" = set; then
8795 withval="$with_tags"
8800 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8804 if test -f "$ltmain" && test -n "$tagnames"; then
8805 if test ! -f "${ofile}"; then
8806 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8807 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8810 if test -z "$LTCC"; then
8811 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8812 if test -z "$LTCC"; then
8813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8814 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8817 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8821 # Extract list of available tagged configurations in $ofile.
8822 # Note that this assumes the entire list is on one line.
8823 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8826 for tagname in $tagnames; do
8828 # Check whether tagname contains only valid characters
8829 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8831 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8832 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8833 { (exit 1); exit 1; }; }
8837 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8839 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8840 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8841 { (exit 1); exit 1; }; }
8844 # Update the list of available tags.
8845 if test -n "$tagname"; then
8846 echo appending configuration tag \"$tagname\" to $ofile
8851 ac_cpp='$CXXCPP $CPPFLAGS'
8852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8859 archive_cmds_need_lc_CXX=no
8860 allow_undefined_flag_CXX=
8861 always_export_symbols_CXX=no
8862 archive_expsym_cmds_CXX=
8863 export_dynamic_flag_spec_CXX=
8864 hardcode_direct_CXX=no
8865 hardcode_libdir_flag_spec_CXX=
8866 hardcode_libdir_separator_CXX=
8867 hardcode_minus_L_CXX=no
8868 link_all_deplibs_CXX=unknown
8869 old_archive_cmds_CXX=$old_archive_cmds
8870 no_undefined_flag_CXX=
8871 whole_archive_flag_spec_CXX=
8873 # Dependencies to place before and after the object being linked:
8875 postdep_objects_CXX=
8878 compiler_lib_search_path_CXX=
8880 # Source file extension for C test sources.
8883 # Object file extension for compiled C test sources.
8887 # Code to be used in simple compile tests
8888 lt_simple_compile_test_code="int some_variable = 0;"
8890 # Code to be used in simple link tests
8891 lt_simple_link_test_code='int main(int char *) { return(0); }'
8893 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8895 # If no C compiler was specified, use CC.
8898 # Allow CC to be a program name with arguments.
8903 # Allow CC to be a program name with arguments.
8909 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8911 # We don't want -fno-exception wen compiling C++ code, so set the
8912 # no_builtin_flag separately
8913 if test "$GXX" = yes; then
8914 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8916 lt_prog_compiler_no_builtin_flag_CXX=
8919 if test "$GXX" = yes; then
8920 # Set up default GNU C++ configuration
8922 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8923 # archiving commands below assume that GNU ld is being used.
8924 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8925 egrep 'GNU ld' > /dev/null; then
8928 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 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'
8931 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8934 # If archive_cmds runs LD, not CC, wlarc should be empty
8935 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8936 # investigate it a little bit more. (MM)
8939 # ancient GNU ld didn't support --whole-archive et. al.
8940 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8941 egrep 'no-whole-archive' > /dev/null; then
8942 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8944 whole_archive_flag_spec_CXX=
8950 # A generic and very simple default shared library creation
8951 # command for GNU C++ for the case where it uses the native
8952 # linker, instead of GNU ld. If possible, this setting should
8953 # overridden to take advantage of the native linker features on
8954 # the platform it is being used on.
8955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8958 # Commands to make compiler produce verbose output that lists
8959 # what "hidden" libraries, object files and flags are used when
8960 # linking a shared library.
8961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8969 # PORTME: fill in a description of your system's C++ link characteristics
8970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8975 # FIXME: insert proper C++ library support
8979 if test "$host_cpu" = ia64; then
8980 # On IA64, the linker does run time linking by default, so we don't
8981 # have to do anything special.
8982 aix_use_runtimelinking=no
8983 exp_sym_flag='-Bexport'
8986 # KDE requires run time linking. Make it the default.
8987 aix_use_runtimelinking=yes
8988 exp_sym_flag='-bexport'
8989 no_entry_flag='-bnoentry'
8992 # When large executables or shared objects are built, AIX ld can
8993 # have problems creating the table of contents. If linking a library
8994 # or program results in "error TOC overflow" add -mminimal-toc to
8995 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8996 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8999 hardcode_direct_CXX=yes
9000 hardcode_libdir_separator_CXX=':'
9001 link_all_deplibs_CXX=yes
9003 if test "$GXX" = yes; then
9004 case $host_os in aix4.012|aix4.012.*)
9005 # We only want to do this on AIX 4.2 and lower, the check
9006 # below for broken collect2 doesn't work under 4.3+
9007 collect2name=`${CC} -print-prog-name=collect2`
9008 if test -f "$collect2name" && \
9009 strings "$collect2name" | grep resolve_lib_name >/dev/null
9011 # We have reworked collect2
9012 hardcode_direct_CXX=yes
9014 # We have old collect2
9015 hardcode_direct_CXX=unsupported
9016 # It fails to find uninstalled libraries when the uninstalled
9017 # path is not listed in the libpath. Setting hardcode_minus_L
9018 # to unsupported forces relinking
9019 hardcode_minus_L_CXX=yes
9020 hardcode_libdir_flag_spec_CXX='-L$libdir'
9021 hardcode_libdir_separator_CXX=
9024 shared_flag='-shared'
9027 if test "$host_cpu" = ia64; then
9028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9029 # chokes on -Wl,-G. The following line is correct:
9032 if test "$aix_use_runtimelinking" = yes; then
9033 shared_flag='-qmkshrobj ${wl}-G'
9035 shared_flag='-qmkshrobj'
9040 # Let the compiler handle the export list.
9041 always_export_symbols_CXX=no
9042 if test "$aix_use_runtimelinking" = yes; then
9043 # Warning - without using the other runtime loading flags (-brtl),
9044 # -berok will link without error, but may produce a broken library.
9045 allow_undefined_flag_CXX='-berok'
9046 # Determine the default libpath from the value encoded in an empty executable.
9047 cat >conftest.$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9049 #include "confdefs.h"
9051 #ifdef F77_DUMMY_MAIN
9055 int F77_DUMMY_MAIN() { return 1; }
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9080 # Check for a 64-bit object if we didn't find anything.
9081 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9084 echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9092 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
9093 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9095 if test "$host_cpu" = ia64; then
9096 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9097 allow_undefined_flag_CXX="-z nodefs"
9098 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9100 # Determine the default libpath from the value encoded in an empty executable.
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9105 #ifdef F77_DUMMY_MAIN
9109 int F77_DUMMY_MAIN() { return 1; }
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -s conftest$ac_exeext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9134 # Check for a 64-bit object if we didn't find anything.
9135 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9138 echo "$as_me: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9145 # Warning - without using the other run time loading flags,
9146 # -berok will link without error, but may produce a broken library.
9147 no_undefined_flag_CXX=' ${wl}-bernotok'
9148 allow_undefined_flag_CXX=' ${wl}-berok'
9149 # -bexpall does not export symbols beginning with underscore (_)
9150 always_export_symbols_CXX=yes
9151 # Exported symbols can be pulled into shared objects from archives
9152 whole_archive_flag_spec_CXX=' '
9153 archive_cmds_need_lc_CXX=yes
9154 # This is similar to how AIX traditionally builds it's shared libraries.
9155 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9160 case $cc_basename in
9162 # FIXME: insert proper C++ library support
9168 case $cc_basename in
9170 # FIXME: insert proper C++ library support
9174 # Green Hills C++ Compiler
9175 # FIXME: insert proper C++ library support
9179 # FIXME: insert proper C++ library support
9185 # C++ shared libraries reported to be fairly broken before switch to ELF
9189 archive_cmds_need_lc_CXX=no
9192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9199 if test $with_gnu_ld = no; then
9200 if test "$host_cpu" = ia64; then
9201 hardcode_libdir_flag_spec_CXX='-L$libdir'
9203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9204 hardcode_libdir_separator_CXX=:
9205 export_dynamic_flag_spec_CXX='${wl}-E'
9208 if test "$host_cpu" = ia64; then
9209 hardcode_direct_CXX=no
9210 hardcode_shlibpath_var_CXX=no
9212 hardcode_direct_CXX=yes
9214 hardcode_minus_L_CXX=yes # Not in the search PATH,
9215 # but as the default
9216 # location of the library.
9218 case $cc_basename in
9220 # FIXME: insert proper C++ library support
9226 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'
9229 if test "$host_cpu" = ia64; then
9230 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9232 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9236 # Commands to make compiler produce verbose output that lists
9237 # what "hidden" libraries, object files and flags are used when
9238 # linking a shared library.
9240 # There doesn't appear to be a way to prevent this compiler from
9241 # explicitly linking system object files so we need to strip them
9242 # from the output so that they don't get included in the library
9244 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9247 if test "$GXX" = yes; then
9248 if test $with_gnu_ld = no; then
9251 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'
9254 if test "$host_cpu" = ia64; then
9255 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9257 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'
9263 # FIXME: insert proper C++ library support
9270 case $cc_basename in
9273 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9275 # Archives containing C++ object files must be created using
9276 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9277 # necessary to make sure instantiated templates are included
9279 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9282 if test "$GXX" = yes; then
9283 if test "$with_gnu_ld" = no; then
9284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9286 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9289 link_all_deplibs_CXX=yes
9292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator_CXX=:
9296 case $cc_basename in
9298 # Kuck and Associates, Inc. (KAI) C++ Compiler
9300 # KCC will only create a shared library if the output file
9301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9302 # to its proper name (with version) after linking.
9303 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9304 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9306 # Commands to make compiler produce verbose output that lists
9307 # what "hidden" libraries, object files and flags are used when
9308 # linking a shared library.
9310 # There doesn't appear to be a way to prevent this compiler from
9311 # explicitly linking system object files so we need to strip them
9312 # from the output so that they don't get included in the library
9314 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9316 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9319 # Archives containing C++ object files must be created using
9320 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9321 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 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'
9328 runpath_var=LD_RUN_PATH
9329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9330 hardcode_libdir_separator_CXX=:
9332 # Commands to make compiler produce verbose output that lists
9333 # what "hidden" libraries, object files and flags are used when
9334 # linking a shared library.
9336 # There doesn't appear to be a way to prevent this compiler from
9337 # explicitly linking system object files so we need to strip them
9338 # from the output so that they don't get included in the library
9340 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'
9345 # FIXME: insert proper C++ library support
9349 # FIXME: insert proper C++ library support
9353 case $cc_basename in
9355 # FIXME: insert proper C++ library support
9359 # FIXME: insert proper C++ library support
9365 # NetBSD uses g++ - do we need to do anything?
9368 case $cc_basename in
9370 # Kuck and Associates, Inc. (KAI) C++ Compiler
9372 # KCC will only create a shared library if the output file
9373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9374 # to its proper name (with version) after linking.
9375 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9378 hardcode_libdir_separator_CXX=:
9380 # Archives containing C++ object files must be created using
9381 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9382 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9386 # Rational C++ 2.4.1
9387 # FIXME: insert proper C++ library support
9391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9392 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9397 # Commands to make compiler produce verbose output that lists
9398 # what "hidden" libraries, object files and flags are used when
9399 # linking a shared library.
9401 # There doesn't appear to be a way to prevent this compiler from
9402 # explicitly linking system object files so we need to strip them
9403 # from the output so that they don't get included in the library
9405 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'
9408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9410 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9413 hardcode_libdir_separator_CXX=:
9415 # Commands to make compiler produce verbose output that lists
9416 # what "hidden" libraries, object files and flags are used when
9417 # linking a shared library.
9418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9421 # FIXME: insert proper C++ library support
9428 case $cc_basename in
9430 # Kuck and Associates, Inc. (KAI) C++ Compiler
9432 # KCC will only create a shared library if the output file
9433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9434 # to its proper name (with version) after linking.
9435 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9438 hardcode_libdir_separator_CXX=:
9440 # Archives containing C++ object files must be created using
9441 # the KAI C++ compiler.
9442 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9445 # Rational C++ 2.4.1
9446 # FIXME: insert proper C++ library support
9450 allow_undefined_flag_CXX=' -expect_unresolved \*'
9451 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9452 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9453 echo "-hidden">> $lib.exp~
9454 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9458 hardcode_libdir_separator_CXX=:
9460 # Commands to make compiler produce verbose output that lists
9461 # what "hidden" libraries, object files and flags are used when
9462 # linking a shared library.
9464 # There doesn't appear to be a way to prevent this compiler from
9465 # explicitly linking system object files so we need to strip them
9466 # from the output so that they don't get included in the library
9468 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'
9471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9473 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9476 hardcode_libdir_separator_CXX=:
9478 # Commands to make compiler produce verbose output that lists
9479 # what "hidden" libraries, object files and flags are used when
9480 # linking a shared library.
9481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
9484 # FIXME: insert proper C++ library support
9491 # FIXME: insert proper C++ library support
9495 archive_cmds_need_lc_CXX=no
9496 case $cc_basename in
9498 # FIXME: insert proper C++ library support
9502 # FIXME: insert proper C++ library support
9508 case $cc_basename in
9511 # FIXME: insert proper C++ library support
9516 # FIXME: insert proper C++ library support
9520 # FIXME: insert proper C++ library support
9526 case $cc_basename in
9528 # Sun C++ 4.2, 5.x and Centerline C++
9529 no_undefined_flag_CXX=' -zdefs'
9530 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9532 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9534 hardcode_libdir_flag_spec_CXX='-R$libdir'
9535 hardcode_shlibpath_var_CXX=no
9537 solaris2.0-5 | solaris2.0-5.*) ;;
9539 # The C++ compiler is used as linker so we must use $wl
9540 # flag to pass the commands to the underlying system
9542 # Supported since Solaris 2.6 (maybe 2.5.1?)
9543 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9546 link_all_deplibs_CXX=yes
9548 # Commands to make compiler produce verbose output that lists
9549 # what "hidden" libraries, object files and flags are used when
9550 # linking a shared library.
9552 # There doesn't appear to be a way to prevent this compiler from
9553 # explicitly linking system object files so we need to strip them
9554 # from the output so that they don't get included in the library
9556 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9558 # Archives containing C++ object files must be created using
9559 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9560 # necessary to make sure instantiated templates are included
9562 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9565 # Green Hills C++ Compiler
9566 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9568 # The C++ compiler must be used to create the archive.
9569 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9572 # GNU C++ compiler with Solaris linker
9573 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9574 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9575 if $CC --version | egrep -v '^2\.7' > /dev/null; then
9576 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9577 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9580 # Commands to make compiler produce verbose output that lists
9581 # what "hidden" libraries, object files and flags are used when
9582 # linking a shared library.
9583 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9585 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9587 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9589 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9591 # Commands to make compiler produce verbose output that lists
9592 # what "hidden" libraries, object files and flags are used when
9593 # linking a shared library.
9594 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
9597 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9602 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9603 archive_cmds_need_lc_CXX=no
9606 case $cc_basename in
9608 # NonStop-UX NCC 3.20
9609 # FIXME: insert proper C++ library support
9613 # FIXME: insert proper C++ library support
9619 # FIXME: insert proper C++ library support
9623 # FIXME: insert proper C++ library support
9627 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9628 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9629 test "$ld_shlibs_CXX" = no && can_build_shared=no
9631 # Figure out "hidden" C++ library dependencies from verbose
9632 # compiler output whening linking a shared library.
9633 cat > conftest.$ac_ext <<EOF
9637 Foo (void) { a = 0; }
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; then
9649 # Parse the compiler output and extract the necessary
9650 # objects, libraries and library flags.
9652 # Sentinel used to keep track of whether or not we are before
9653 # the conftest object file.
9654 pre_test_object_deps_done=no
9656 # The `*' in the case matches for architectures that use `case' in
9657 # $output_verbose_cmd can trigger glob expansion during the loop
9658 # eval without this substitution.
9659 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9661 for p in `eval $output_verbose_link_cmd`; do
9665 # Some compilers place space between "-{L,R}" and the path.
9668 || test $p = "-R"; then
9675 if test "$pre_test_object_deps_done" = no; then
9678 # Internal compiler library paths should come after those
9679 # provided the user. The postdeps already come after the
9680 # user supplied libs so there is no need to process them.
9681 if test -z "$compiler_lib_search_path_CXX"; then
9682 compiler_lib_search_path_CXX="${prev}${p}"
9684 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9687 # The "-l" case would never come before the object being
9688 # linked, so don't bother handling this case.
9691 if test -z "$postdeps_CXX"; then
9692 postdeps_CXX="${prev}${p}"
9694 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9699 *.$objext|*.$libext)
9700 # This assumes that the test object file only shows up
9701 # once in the compiler output.
9702 if test "$p" = "conftest.$objext"; then
9703 pre_test_object_deps_done=yes
9707 if test "$pre_test_object_deps_done" = no; then
9708 if test -z "$predep_objects_CXX"; then
9709 predep_objects_CXX="$p"
9711 predep_objects_CXX="$predep_objects_CXX $p"
9714 if test -z "$postdep_objects_CXX"; then
9715 postdep_objects_CXX="$p"
9717 postdep_objects_CXX="$postdep_objects_CXX $p"
9722 *) ;; # Ignore the rest.
9730 echo "libtool.m4: error: problem compiling C++ test program"
9733 $rm -f confest.$objext
9735 case " $postdeps_CXX " in
9736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9737 *) archive_cmds_need_lc_CXX=yes ;;
9743 lt_prog_compiler_wl_CXX=
9744 lt_prog_compiler_pic_CXX=
9745 lt_prog_compiler_static_CXX=
9747 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9750 # C++ specific cases for pic, static, wl, etc.
9751 if test "$GXX" = yes; then
9752 lt_prog_compiler_wl_CXX='-Wl,'
9753 lt_prog_compiler_static_CXX='-static'
9757 # All AIX code is PIC.
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 now supports IA64 processor
9760 lt_prog_compiler_static_CXX='-Bstatic'
9764 # FIXME: we need at least 68020 code to build shared libraries, but
9765 # adding the `-m68020' flag to GCC prevents building anything better,
9767 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9770 # PIC is the default for these OSes.
9772 cygwin* | mingw* | os2*)
9773 # This hack is so that the source file can tell whether it is being
9774 # built for inclusion in a dll (and should export symbols for example).
9775 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9777 darwin* | rhapsody*)
9778 # PIC is the default on this platform
9779 # Common symbols not allowed in MH_DYLIB files
9780 lt_prog_compiler_pic_CXX='-fno-common'
9783 # DJGPP does not support shared libraries at all
9784 lt_prog_compiler_pic_CXX=
9787 if test -d /usr/nec; then
9788 lt_prog_compiler_pic_CXX=-Kconform_pic
9792 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9793 if test "$host_cpu" != ia64; then
9794 lt_prog_compiler_pic_CXX='-fPIC'
9798 lt_prog_compiler_pic_CXX='-fPIC'
9804 # All AIX code is PIC.
9805 if test "$host_cpu" = ia64; then
9806 # AIX 5 now supports IA64 processor
9807 lt_prog_compiler_static_CXX='-Bstatic'
9809 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9813 case $cc_basename in
9815 # Green Hills C++ Compiler
9816 # _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"
9821 case $cc_basename in
9823 lt_prog_compiler_pic_CXX='-KPIC'
9826 # Green Hills C++ Compiler
9827 lt_prog_compiler_pic_CXX='-pic'
9834 # FreeBSD uses GNU C++
9836 hpux9* | hpux10* | hpux11*)
9837 case $cc_basename in
9839 lt_prog_compiler_wl_CXX='-Wl,'
9840 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9841 if test "$host_cpu" != ia64; then
9842 lt_prog_compiler_pic_CXX='+Z'
9846 lt_prog_compiler_wl_CXX='-Wl,'
9847 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9848 if test "$host_cpu" != ia64; then
9849 lt_prog_compiler_pic_CXX='+Z'
9856 irix5* | irix6* | nonstopux*)
9857 case $cc_basename in
9859 lt_prog_compiler_wl_CXX='-Wl,'
9860 lt_prog_compiler_static_CXX='-non_shared'
9861 # CC pic flag -KPIC is the default.
9868 case $cc_basename in
9871 lt_prog_compiler_wl_CXX='--backend -Wl,'
9872 lt_prog_compiler_pic_CXX='-fPIC'
9876 # Make sure the PIC flag is empty. It appears that all Alpha
9877 # Linux and Compaq Tru64 Unix objects are PIC.
9878 lt_prog_compiler_pic_CXX=
9879 lt_prog_compiler_static_CXX='-non_shared'
9890 case $cc_basename in
9892 lt_prog_compiler_pic_CXX='-W c,exportall'
9900 osf3* | osf4* | osf5*)
9901 case $cc_basename in
9903 lt_prog_compiler_wl_CXX='--backend -Wl,'
9906 # Rational C++ 2.4.1
9907 lt_prog_compiler_pic_CXX='-pic'
9910 # Digital/Compaq C++
9911 lt_prog_compiler_wl_CXX='-Wl,'
9912 # Make sure the PIC flag is empty. It appears that all Alpha
9913 # Linux and Compaq Tru64 Unix objects are PIC.
9914 lt_prog_compiler_pic_CXX=
9915 lt_prog_compiler_static_CXX='-non_shared'
9924 case $cc_basename in
9926 lt_prog_compiler_pic_CXX='-fPIC'
9933 case $cc_basename in
9935 # Sun C++ 4.2, 5.x and Centerline C++
9936 lt_prog_compiler_pic_CXX='-KPIC'
9937 lt_prog_compiler_static_CXX='-Bstatic'
9938 lt_prog_compiler_wl_CXX='-Qoption ld '
9941 # Green Hills C++ Compiler
9942 lt_prog_compiler_pic_CXX='-PIC'
9949 case $cc_basename in
9952 lt_prog_compiler_pic_CXX='-pic'
9953 lt_prog_compiler_static_CXX='-Bstatic'
9957 lt_prog_compiler_pic_CXX='-pic'
9964 case $cc_basename in
9966 # NonStop-UX NCC 3.20
9967 lt_prog_compiler_pic_CXX='-KPIC'
9978 lt_prog_compiler_can_build_shared_CXX=no
9983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9984 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9987 # Check to make sure the PIC flag actually works.
9989 if test -n "$lt_prog_compiler_pic_CXX"; then
9990 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9992 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 lt_prog_compiler_pic_works_CXX=no
9996 ac_outfile=conftest.$ac_objext
9997 save_CFLAGS="$CFLAGS"
9998 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10000 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10001 # The compiler can only warn and ignore the option if not recognized
10002 # So say no if there are warnings
10003 if test -s conftest.err; then
10004 # Append any errors to the config.log.
10005 cat conftest.err 1>&5
10007 lt_prog_compiler_pic_works_CXX=yes
10011 CFLAGS="$save_CFLAGS"
10014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10015 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10017 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10018 case $lt_prog_compiler_pic_CXX in
10020 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10023 lt_prog_compiler_pic_CXX=
10024 lt_prog_compiler_can_build_shared_CXX=no
10029 # For platforms which do not support PIC, -DPIC is meaningless:
10031 lt_prog_compiler_pic_CXX=
10034 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10040 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 lt_cv_prog_compiler_c_o_CXX=no
10044 $rm -r conftest 2>/dev/null
10048 save_CXXFLAGS="$CXXFLAGS"
10049 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
10050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10052 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10053 # that will create temporary files in the current directory regardless of
10054 # the output directory. Thus, making CWD read-only will cause this test
10055 # to fail, enabling locking or at least warning the user not to do parallel
10059 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10061 # The compiler can only warn and ignore the option if not recognized
10062 # So say no if there are warnings
10063 if test -s out/conftest.err; then
10064 # Append any errors to the config.log.
10065 cat out/conftest.err 1>&5
10067 lt_cv_prog_compiler_c_o_CXX=yes
10070 CXXFLAGS="$save_CXXFLAGS"
10072 $rm conftest* out/*
10079 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10080 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10083 hard_links="nottested"
10084 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10085 # do not overwrite the value of need_locks provided by the user
10086 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10092 ln conftest.a conftest.b 2>&5 || hard_links=no
10093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10094 echo "$as_me:$LINENO: result: $hard_links" >&5
10095 echo "${ECHO_T}$hard_links" >&6
10096 if test "$hard_links" = no; then
10097 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10105 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10106 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10111 # If we're using GNU nm, then we don't want the "-C" option.
10112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10113 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
10114 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'
10116 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'
10119 cygwin* | mingw* | pw32*)
10120 export_symbols_cmds_CXX="$ltdll_cmds"
10123 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10127 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10128 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10129 test "$ld_shlibs_CXX" = no && can_build_shared=no
10131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10132 if test "$GCC" = yes; then
10133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10137 # Do we need to explicitly link libc?
10139 archive_cmds_need_lc_CXX=yes
10140 if test "$enable_shared" = yes && test "$GCC" = yes; then
10141 case $archive_cmds_CXX in
10143 # FIXME: we may have to deal with multi-command sequences.
10146 # Test whether the compiler implicitly links with -lc since on some
10147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10148 # to ld, don't add -lc before -lgcc.
10149 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10152 echo 'static int dummy;' > conftest.$ac_ext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155 (eval $ac_compile) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } 2>conftest.err; then
10161 libobjs=conftest.$ac_objext
10163 wl=$lt_prog_compiler_wl_CXX
10169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10170 allow_undefined_flag_CXX=
10171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10172 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }
10177 archive_cmds_need_lc_CXX=no
10179 archive_cmds_need_lc_CXX=yes
10181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10183 cat conftest.err 1>&5
10186 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10187 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10192 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10193 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10194 hardcode_action_CXX=
10195 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10196 test -n "$runpath_var CXX"; then
10198 # We can hardcode non-existant directories.
10199 if test "$hardcode_direct_CXX" != no &&
10200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10201 # have to relink, otherwise we might link with an installed library
10202 # when we should be linking with a yet-to-be-installed one
10203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10204 test "$hardcode_minus_L_CXX" != no; then
10205 # Linking always hardcodes the temporary library directory.
10206 hardcode_action_CXX=relink
10208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10209 hardcode_action_CXX=immediate
10212 # We cannot hardcode anything, or else we can only hardcode existing
10214 hardcode_action_CXX=unsupported
10216 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10217 echo "${ECHO_T}$hardcode_action_CXX" >&6
10219 if test "$hardcode_action_CXX" = relink; then
10220 # Fast installation is not supported
10221 enable_fast_install=no
10222 elif test "$shlibpath_overrides_runpath" = yes ||
10223 test "$enable_shared" = no; then
10224 # Fast installation is not necessary
10225 enable_fast_install=needless
10230 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10231 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10235 echo "$as_me:$LINENO: result: yes" >&5
10236 echo "${ECHO_T}yes" >&6
10238 echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6
10242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10244 library_names_spec=
10245 libname_spec='lib$name'
10248 postuninstall_cmds=
10252 shlibpath_overrides_runpath=unknown
10254 dynamic_linker="$host_os ld.so"
10255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10256 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10257 need_lib_prefix=unknown
10258 hardcode_into_libs=no
10260 # when you set need_version to no, make sure it does not cause -set_version
10261 # flags to be left without arguments
10262 need_version=unknown
10267 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10268 shlibpath_var=LIBPATH
10270 # AIX 3 has no versioning support, so we append a major version to the name.
10271 soname_spec='${libname}${release}.so$major'
10276 if test "$host_cpu" = ia64; then
10277 # AIX 5 supports IA64
10278 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10279 shlibpath_var=LD_LIBRARY_PATH
10281 # With GCC up to 2.95.x, collect2 would create an import file
10282 # for dependence libraries. The import file would start with
10283 # the line `#! .'. This would cause the generated library to
10284 # depend on `.', always an invalid library. This was fixed in
10285 # development snapshots of GCC prior to 3.0.
10287 aix4 | aix4.[01] | aix4.[01].*)
10288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10293 can_build_shared=no
10297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10298 # soname into executable. Probably we can add versioning support to
10299 # collect2, so additional links can be useful in future.
10300 if test "$aix_use_runtimelinking" = yes; then
10301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10302 # instead of lib<name>.a to let people know that these are not
10303 # typical AIX shared libraries.
10304 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10306 # We preserve .a as extension for shared libraries through AIX4.2
10307 # and later when we are not doing run time linking.
10308 library_names_spec='${libname}${release}.a $libname.a'
10309 soname_spec='${libname}${release}.so$major'
10311 shlibpath_var=LIBPATH
10316 library_names_spec='$libname.ixlibrary $libname.a'
10317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10318 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'
10322 library_names_spec='${libname}.so'
10323 dynamic_linker="$host_os ld.so"
10324 shlibpath_var=LIBRARY_PATH
10330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10331 soname_spec='${libname}${release}.so$major'
10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10336 # the default ld.so.conf also contains /usr/contrib/lib and
10337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10338 # libtool to hard-code these into programs
10341 cygwin* | mingw* | pw32*)
10342 version_type=windows
10345 case $GCC,$host_os in
10347 library_names_spec='$libname.dll.a'
10348 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10350 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10351 dldir=$destdir/`dirname \$dlpath`~
10352 test -d \$dldir || mkdir -p \$dldir~
10353 $install_prog .libs/$dlname \$dldir/$dlname'
10354 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10355 dlpath=$dir/\$dldll~
10359 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
10361 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
10362 # It is most probably a Windows format PATH printed by
10363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10364 # path with ; separators, and with drive letters. We can handle the
10365 # drive letters (cygwin fileutils understands them), so leave them,
10366 # especially as we might pass files found there to a mingw objdump,
10367 # which wouldn't understand a cygwinified path. Ahh.
10368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10377 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10380 dynamic_linker='Win32 ld.exe'
10381 # FIXME: first we should search . and the directory the executable is in
10385 darwin* | rhapsody*)
10386 dynamic_linker="$host_os dyld"
10387 version_type=darwin
10390 # FIXME: Relying on posixy $() will cause problems for
10391 # cross-compilation, but unfortunately the echo tests do not
10392 # yet detect zsh echo's removal of \ escapes.
10393 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10394 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10395 shlibpath_overrides_runpath=yes
10396 shlibpath_var=DYLD_LIBRARY_PATH
10403 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10404 soname_spec='${libname}${release}.so$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10413 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10414 version_type=freebsd-$objformat
10415 case $version_type in
10417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10422 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10426 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes
10431 freebsd3.01* | freebsdelf3.01*)
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10436 shlibpath_overrides_runpath=no
10437 hardcode_into_libs=yes
10446 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10447 soname_spec='${libname}${release}.so$major'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 hardcode_into_libs=yes
10452 hpux9* | hpux10* | hpux11*)
10453 # Give a soname corresponding to the major version so that dld.sl refuses to
10454 # link against other versions.
10458 if test "$host_cpu" = ia64; then
10459 hardcode_into_libs=yes
10460 dynamic_linker="$host_os dld.so"
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10464 soname_spec='${libname}${release}.so$major'
10465 if test "X$HPUX_IA64_MODE" = X32; then
10466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10468 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10472 dynamic_linker="$host_os dld.sl"
10473 shlibpath_var=SHLIB_PATH
10474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10475 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10476 soname_spec='${libname}${release}.sl$major'
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10479 postinstall_cmds='chmod 555 $lib'
10482 irix5* | irix6* | nonstopux*)
10484 nonstopux*) version_type=nonstopux ;;
10485 *) version_type=irix ;;
10489 soname_spec='${libname}${release}.so$major'
10490 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10492 irix5* | nonstopux*)
10493 libsuff= shlibsuff=
10496 case $LD in # libtool.m4 will add one of these switches to LD
10497 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10498 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10499 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10500 *) libsuff= shlibsuff= libmagic=never-match;;
10504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10505 shlibpath_overrides_runpath=no
10506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10510 # No shared lib support for Linux oldld, aout, or coff.
10511 linux*oldld* | linux*aout* | linux*coff*)
10515 # This must be Linux ELF.
10520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10521 soname_spec='${libname}${release}.so$major'
10522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10524 if test "x$LINUX_64_MODE" = x64; then
10525 # Some platforms are per default 64-bit, so there's no /lib64
10526 if test -d /lib64; then
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10533 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10534 # This implies no fast_install, which is unacceptable.
10535 # Some rework will be needed to allow for fast_install
10536 # before this can be enabled.
10537 hardcode_into_libs=yes
10539 # We used to test for /lib/ld.so.1 and disable shared libraries on
10540 # powerpc, because MkLinux only supported shared libraries with the
10541 # GNU dynamic linker. Since this was broken with cross compilers,
10542 # most powerpc-linux boxes support dynamic linking these days and
10543 # people can always --disable-shared, the test was removed, and we
10544 # assume the GNU/Linux dynamic linker is in use.
10545 dynamic_linker='GNU/Linux ld.so'
10552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10553 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555 dynamic_linker='NetBSD (a.out) ld.so'
10557 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10558 soname_spec='${libname}${release}.so$major'
10559 dynamic_linker='NetBSD ld.elf_so'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 shlibpath_overrides_runpath=yes
10563 hardcode_into_libs=yes
10568 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=yes
10577 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10578 soname_spec='${libname}${release}.so$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10587 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10592 openbsd2.[89] | openbsd2.[89].*)
10593 shlibpath_overrides_runpath=no
10596 shlibpath_overrides_runpath=yes
10600 shlibpath_overrides_runpath=yes
10605 libname_spec='$name'
10607 library_names_spec='$libname.dll $libname.a'
10608 dynamic_linker='OS/2 ld.exe'
10609 shlibpath_var=LIBPATH
10612 osf3* | osf4* | osf5*)
10616 soname_spec='${libname}${release}.so'
10617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10625 soname_spec='${libname}${release}.so$major'
10626 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10627 shlibpath_var=LD_LIBRARY_PATH
10634 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10635 soname_spec='${libname}${release}.so$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10639 # ldd complains unless libraries are executable
10640 postinstall_cmds='chmod +x $lib'
10645 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10646 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 if test "$with_gnu_ld" = yes; then
10655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10657 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10658 soname_spec='${libname}${release}.so$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 case $host_vendor in
10662 shlibpath_overrides_runpath=no
10667 shlibpath_overrides_runpath=no
10668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10674 if test -d /usr/nec ;then
10676 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10677 soname_spec='$libname.so.$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10685 soname_spec='${libname}${release}.so$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694 echo "${ECHO_T}$dynamic_linker" >&6
10695 test "$dynamic_linker" = no && can_build_shared=no
10697 if test "x$enable_dlopen" != xyes; then
10698 enable_dlopen=unknown
10699 enable_dlopen_self=unknown
10700 enable_dlopen_self_static=unknown
10707 lt_cv_dlopen="load_add_on"
10709 lt_cv_dlopen_self=yes
10712 cygwin* | mingw* | pw32*)
10713 lt_cv_dlopen="LoadLibrary"
10718 echo "$as_me:$LINENO: checking for shl_load" >&5
10719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10720 if test "${ac_cv_func_shl_load+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 #include "confdefs.h"
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char shl_load (); below. */
10728 #include <assert.h>
10729 /* Override any gcc2 internal prototype to avoid an error. */
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10738 #ifdef F77_DUMMY_MAIN
10739 # ifdef __cplusplus
10742 int F77_DUMMY_MAIN() { return 1; }
10747 /* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -s conftest$ac_exeext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_func_shl_load=yes
10774 echo "$as_me: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 ac_cv_func_shl_load=no
10778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10780 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10782 if test $ac_cv_func_shl_load = yes; then
10783 lt_cv_dlopen="shl_load"
10785 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10786 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10787 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 ac_check_lib_save_LIBS=$LIBS
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10803 #ifdef F77_DUMMY_MAIN
10804 # ifdef __cplusplus
10807 int F77_DUMMY_MAIN() { return 1; }
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_lib_dld_shl_load=yes
10831 echo "$as_me: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 ac_cv_lib_dld_shl_load=no
10835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_lib_save_LIBS
10838 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10839 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10840 if test $ac_cv_lib_dld_shl_load = yes; then
10841 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10843 echo "$as_me:$LINENO: checking for dlopen" >&5
10844 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10845 if test "${ac_cv_func_dlopen+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 cat >conftest.$ac_ext <<_ACEOF
10849 #line $LINENO "configure"
10850 #include "confdefs.h"
10851 /* System header to define __stub macros and hopefully few prototypes,
10852 which can conflict with char dlopen (); below. */
10853 #include <assert.h>
10854 /* Override any gcc2 internal prototype to avoid an error. */
10858 /* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10863 #ifdef F77_DUMMY_MAIN
10864 # ifdef __cplusplus
10867 int F77_DUMMY_MAIN() { return 1; }
10872 /* The GNU C library defines this for functions which it implements
10873 to always fail with ENOSYS. Some functions are actually named
10874 something starting with __ and the normal name is an alias. */
10875 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10885 rm -f conftest.$ac_objext conftest$ac_exeext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887 (eval $ac_link) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -s conftest$ac_exeext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_cv_func_dlopen=yes
10899 echo "$as_me: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10901 ac_cv_func_dlopen=no
10903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10907 if test $ac_cv_func_dlopen = yes; then
10908 lt_cv_dlopen="dlopen"
10910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 ac_check_lib_save_LIBS=$LIBS
10917 cat >conftest.$ac_ext <<_ACEOF
10918 #line $LINENO "configure"
10919 #include "confdefs.h"
10921 /* Override any gcc2 internal prototype to avoid an error. */
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10928 #ifdef F77_DUMMY_MAIN
10929 # ifdef __cplusplus
10932 int F77_DUMMY_MAIN() { return 1; }
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_dl_dlopen=yes
10956 echo "$as_me: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 ac_cv_lib_dl_dlopen=no
10960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10965 if test $ac_cv_lib_dl_dlopen = yes; then
10966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10968 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10969 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-lsvld $LIBS"
10975 cat >conftest.$ac_ext <<_ACEOF
10976 #line $LINENO "configure"
10977 #include "confdefs.h"
10979 /* Override any gcc2 internal prototype to avoid an error. */
10983 /* We use char because int might match the return type of a gcc2
10984 builtin and then its argument prototype would still apply. */
10986 #ifdef F77_DUMMY_MAIN
10987 # ifdef __cplusplus
10990 int F77_DUMMY_MAIN() { return 1; }
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002 (eval $ac_link) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -s conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 ac_cv_lib_svld_dlopen=yes
11014 echo "$as_me: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 ac_cv_lib_svld_dlopen=no
11018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11023 if test $ac_cv_lib_svld_dlopen = yes; then
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_check_lib_save_LIBS=$LIBS
11033 cat >conftest.$ac_ext <<_ACEOF
11034 #line $LINENO "configure"
11035 #include "confdefs.h"
11037 /* Override any gcc2 internal prototype to avoid an error. */
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11044 #ifdef F77_DUMMY_MAIN
11045 # ifdef __cplusplus
11048 int F77_DUMMY_MAIN() { return 1; }
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060 (eval $ac_link) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_lib_dld_dld_link=yes
11072 echo "$as_me: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 ac_cv_lib_dld_dld_link=no
11076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11080 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11081 if test $ac_cv_lib_dld_dld_link = yes; then
11082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11103 if test "x$lt_cv_dlopen" != xno; then
11109 case $lt_cv_dlopen in
11111 save_CPPFLAGS="$CPPFLAGS"
11112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11114 save_LDFLAGS="$LDFLAGS"
11115 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11118 LIBS="$lt_cv_dlopen_libs $LIBS"
11120 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11121 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11122 if test "${lt_cv_dlopen_self+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 if test "$cross_compiling" = yes; then :
11126 lt_cv_dlopen_self=cross
11128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11129 lt_status=$lt_dlunknown
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11131 "configure"
11132 #include "confdefs.h"
11141 # define LT_DLGLOBAL RTLD_GLOBAL
11144 # define LT_DLGLOBAL DL_GLOBAL
11146 # define LT_DLGLOBAL 0
11150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151 find out it does not work in some platform. */
11152 #ifndef LT_DLLAZY_OR_NOW
11154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11157 # define LT_DLLAZY_OR_NOW DL_LAZY
11160 # define LT_DLLAZY_OR_NOW RTLD_NOW
11163 # define LT_DLLAZY_OR_NOW DL_NOW
11165 # define LT_DLLAZY_OR_NOW 0
11173 extern "C" void exit (int);
11176 void fnord() { int i=42;}
11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11180 int status = $lt_dlunknown;
11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11186 /* dlclose (self); */
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11197 (./conftest; exit; ) 2>/dev/null
11199 case x$lt_status in
11200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11202 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11205 # compilation failed
11206 lt_cv_dlopen_self=no
11213 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11216 if test "x$lt_cv_dlopen_self" = xyes; then
11217 LDFLAGS="$LDFLAGS $link_static_flag"
11218 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11220 if test "${lt_cv_dlopen_self_static+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self_static=cross
11226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227 lt_status=$lt_dlunknown
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11239 # define LT_DLGLOBAL RTLD_GLOBAL
11242 # define LT_DLGLOBAL DL_GLOBAL
11244 # define LT_DLGLOBAL 0
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11255 # define LT_DLLAZY_OR_NOW DL_LAZY
11258 # define LT_DLLAZY_OR_NOW RTLD_NOW
11261 # define LT_DLLAZY_OR_NOW DL_NOW
11263 # define LT_DLLAZY_OR_NOW 0
11271 extern "C" void exit (int);
11274 void fnord() { int i=42;}
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11284 /* dlclose (self); */
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291 (eval $ac_link) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11295 (./conftest; exit; ) 2>/dev/null
11297 case x$lt_status in
11298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11300 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11303 # compilation failed
11304 lt_cv_dlopen_self_static=no
11311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11315 CPPFLAGS="$save_CPPFLAGS"
11316 LDFLAGS="$save_LDFLAGS"
11321 case $lt_cv_dlopen_self in
11322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11323 *) enable_dlopen_self=unknown ;;
11326 case $lt_cv_dlopen_self_static in
11327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11328 *) enable_dlopen_self_static=unknown ;;
11333 # The else clause should only fire when bootstrapping the
11334 # libtool distribution, otherwise you forgot to ship ltmain.sh
11335 # with your package, and you will get complaints that there are
11336 # no rules to generate ltmain.sh.
11337 if test -f "$ltmain"; then
11338 # Now quote all the things that may contain metacharacters while being
11339 # careful not to overquote the AC_SUBSTed values. We take copies of the
11340 # variables and quote the copies for generation of the libtool script.
11341 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
11342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11344 deplibs_check_method reload_flag reload_cmds need_locks \
11345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11346 lt_cv_sys_global_symbol_to_c_name_address \
11347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11348 old_postinstall_cmds old_postuninstall_cmds \
11352 lt_prog_compiler_wl_CXX \
11353 lt_prog_compiler_pic_CXX \
11354 lt_prog_compiler_static_CXX \
11355 lt_prog_compiler_no_builtin_flag_CXX \
11356 export_dynamic_flag_spec_CXX \
11357 thread_safe_flag_spec_CXX \
11358 whole_archive_flag_spec_CXX \
11359 old_archive_cmds_CXX \
11360 old_archive_from_new_cmds_CXX \
11361 predep_objects_CXX \
11362 postdep_objects_CXX \
11365 compiler_lib_search_path_CXX \
11367 archive_expsym_cmds_CXX \
11368 postinstall_cmds_CXX \
11369 postuninstall_cmds_CXX \
11370 old_archive_from_expsyms_cmds_CXX \
11371 allow_undefined_flag_CXX \
11372 no_undefined_flag_CXX \
11373 export_symbols_cmds_CXX \
11374 hardcode_libdir_flag_spec_CXX \
11375 hardcode_libdir_separator_CXX \
11376 lt_cv_prog_compiler_c_o_CXX \
11377 exclude_expsyms_CXX \
11378 include_expsyms_CXX; do
11381 old_archive_cmds_CXX | \
11382 old_archive_from_new_cmds_CXX | \
11383 archive_cmds_CXX | \
11384 archive_expsym_cmds_CXX | \
11385 old_archive_from_expsyms_cmds_CXX | \
11386 export_symbols_cmds_CXX | \
11387 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11388 postinstall_cmds | postuninstall_cmds | \
11389 old_postinstall_cmds | old_postuninstall_cmds | \
11390 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11391 # Double-quote double-evaled strings.
11392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11401 *'\$0 --fallback-echo"')
11402 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11408 cat <<__EOF__ >> "$cfgfile"
11409 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11413 # Shell to use when invoking shell scripts.
11416 # Whether or not to build shared libraries.
11417 build_libtool_libs=$enable_shared
11419 # Whether or not to build static libraries.
11420 build_old_libs=$enable_static
11422 # Whether or not to add -lc for building shared libraries.
11423 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11425 # Whether or not to optimize for fast installation.
11426 fast_install=$enable_fast_install
11429 host_alias=$host_alias
11432 # An echo program that does not interpret backslashes.
11437 AR_FLAGS=$lt_AR_FLAGS
11442 # A language-specific compiler.
11443 CC=$lt_compiler_CXX
11445 # Is the compiler the GNU C compiler?
11448 # The linker used to build libraries.
11451 # Whether we need hard or soft links.
11454 # A BSD-compatible nm program.
11457 # A sed program that does not truncate output.
11460 # A symbol stripping program
11463 # Used to examine libraries when file_magic_cmd begins "file"
11464 MAGIC_CMD=$MAGIC_CMD
11466 # Used on cygwin: DLL creation program.
11469 # Used on cygwin: object dumper.
11472 # Used on cygwin: assembler.
11475 # The name of the directory that contains temporary libtool files.
11478 # How to create reloadable object files.
11479 reload_flag=$lt_reload_flag
11480 reload_cmds=$lt_reload_cmds
11482 # How to pass a linker flag through the compiler.
11483 wl=$lt_lt_prog_compiler_wl_CXX
11485 # Object file suffix (normally "o").
11486 objext="$ac_objext"
11488 # Old archive suffix (normally "a").
11491 # Executable file suffix (normally "").
11494 # Additional compiler flags for building library objects.
11495 pic_flag=$lt_lt_prog_compiler_pic_CXX
11498 # What is the maximum length of a command?
11499 max_cmd_len=$lt_cv_sys_max_cmd_len
11501 # Does compiler simultaneously support -c and -o options?
11502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11504 # Must we lock files when doing compilation ?
11505 need_locks=$lt_need_locks
11507 # Do we need the lib prefix for modules?
11508 need_lib_prefix=$need_lib_prefix
11510 # Do we need a version for libraries?
11511 need_version=$need_version
11513 # Whether dlopen is supported.
11514 dlopen_support=$enable_dlopen
11516 # Whether dlopen of programs is supported.
11517 dlopen_self=$enable_dlopen_self
11519 # Whether dlopen of statically linked programs is supported.
11520 dlopen_self_static=$enable_dlopen_self_static
11522 # Compiler flag to prevent dynamic linking.
11523 link_static_flag=$lt_lt_prog_compiler_static_CXX
11525 # Compiler flag to turn off builtin functions.
11526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11528 # Compiler flag to allow reflexive dlopens.
11529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11531 # Compiler flag to generate shared objects directly from archives.
11532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11534 # Compiler flag to generate thread-safe objects.
11535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11537 # Library versioning type.
11538 version_type=$version_type
11540 # Format of library name prefix.
11541 libname_spec=$lt_libname_spec
11543 # List of archive names. First name is the real one, the rest are links.
11544 # The last name is the one that the linker finds with -lNAME.
11545 library_names_spec=$lt_library_names_spec
11547 # The coded name of the library, if different from the real name.
11548 soname_spec=$lt_soname_spec
11550 # Commands used to build and install an old-style archive.
11552 old_archive_cmds=$lt_old_archive_cmds_CXX
11553 old_postinstall_cmds=$lt_old_postinstall_cmds
11554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11556 # Create an old-style archive from a shared archive.
11557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11559 # Create a temporary old-style archive to link instead of a shared archive.
11560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11562 # Commands used to build and install a shared archive.
11563 archive_cmds=$lt_archive_cmds_CXX
11564 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11565 postinstall_cmds=$lt_postinstall_cmds
11566 postuninstall_cmds=$lt_postuninstall_cmds
11568 # Commands to strip libraries.
11569 old_striplib=$lt_old_striplib
11570 striplib=$lt_striplib
11572 # Dependencies to place before the objects being linked to create a
11574 predep_objects=$lt_predep_objects_CXX
11576 # Dependencies to place after the objects being linked to create a
11578 postdep_objects=$lt_postdep_objects_CXX
11580 # Dependencies to place before the objects being linked to create a
11582 predeps=$lt_predeps_CXX
11584 # Dependencies to place after the objects being linked to create a
11586 postdeps=$lt_postdeps_CXX
11588 # The library search path used internally by the compiler when linking
11589 # a shared library.
11590 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11592 # Method to check whether dependent libraries are shared objects.
11593 deplibs_check_method=$lt_deplibs_check_method
11595 # Command to use when deplibs_check_method == file_magic.
11596 file_magic_cmd=$lt_file_magic_cmd
11598 # Flag that allows shared libraries with undefined symbols to be built.
11599 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11601 # Flag that forces no undefined symbols.
11602 no_undefined_flag=$lt_no_undefined_flag_CXX
11604 # Commands used to finish a libtool library installation in a directory.
11605 finish_cmds=$lt_finish_cmds
11607 # Same as above, but a single script fragment to be evaled but not shown.
11608 finish_eval=$lt_finish_eval
11610 # Take the output of nm and produce a listing of raw symbols and C names.
11611 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11613 # Transform the output of nm in a proper C declaration
11614 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11616 # Transform the output of nm in a C name address pair
11617 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11619 # This is the shared library runtime path variable.
11620 runpath_var=$runpath_var
11622 # This is the shared library path variable.
11623 shlibpath_var=$shlibpath_var
11625 # Is shlibpath searched before the hard-coded library search path?
11626 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11628 # How to hardcode a shared library path into an executable.
11629 hardcode_action=$hardcode_action_CXX
11631 # Whether we should hardcode library paths into libraries.
11632 hardcode_into_libs=$hardcode_into_libs
11634 # Flag to hardcode \$libdir into a binary during linking.
11635 # This must work even if \$libdir does not exist.
11636 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11638 # Whether we need a single -rpath flag with a separated argument.
11639 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11641 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11642 # resulting binary.
11643 hardcode_direct=$hardcode_direct_CXX
11645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11646 # resulting binary.
11647 hardcode_minus_L=$hardcode_minus_L_CXX
11649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11650 # the resulting binary.
11651 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11653 # Variables whose values should be saved in libtool wrapper scripts and
11654 # restored at relink time.
11655 variables_saved_for_relink="$variables_saved_for_relink"
11657 # Whether libtool must link a program against all its dependency libraries.
11658 link_all_deplibs=$link_all_deplibs_CXX
11660 # Compile-time system search path for libraries
11661 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11663 # Run-time system search path for libraries
11664 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11666 # Fix the shell variable \$srcfile for the compiler.
11667 fix_srcfile_path="$fix_srcfile_path_CXX"
11669 # Set to yes if exported symbols are required.
11670 always_export_symbols=$always_export_symbols_CXX
11672 # The commands to list exported symbols.
11673 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11675 # The commands to extract the exported symbol list from a shared archive.
11676 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11678 # Symbols that should not be listed in the preloaded symbols.
11679 exclude_expsyms=$lt_exclude_expsyms_CXX
11681 # Symbols that must always be exported.
11682 include_expsyms=$lt_include_expsyms_CXX
11684 # ### END LIBTOOL TAG CONFIG: $tagname
11690 # If there is no Makefile yet, we rely on a make rule to execute
11691 # `config.status --recheck' to rerun these tests and create the
11692 # libtool script then.
11693 test -f Makefile && make "$ltmain"
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711 # Source file extension for C test sources.
11714 # Object file extension for compiled C test sources.
11718 # Code to be used in simple compile tests
11719 lt_simple_compile_test_code="class foo {}"
11721 # Code to be used in simple link tests
11722 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
11724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11726 # If no C compiler was specified, use CC.
11729 # Allow CC to be a program name with arguments.
11734 # Allow CC to be a program name with arguments.
11741 # GCJ did not exist at the time GCC didn't implicitly link libc in.
11742 archive_cmds_need_lc_GCJ=no
11745 lt_prog_compiler_no_builtin_flag_GCJ=
11747 if test "$GCC" = yes; then
11748 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
11750 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11751 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11752 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 lt_cv_prog_compiler_rtti_exceptions=no
11756 ac_outfile=conftest.$ac_objext
11757 save_CFLAGS="$CFLAGS"
11758 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
11759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11760 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11761 # The compiler can only warn and ignore the option if not recognized
11762 # So say no if there are warnings
11763 if test -s conftest.err; then
11764 # Append any errors to the config.log.
11765 cat conftest.err 1>&5
11767 lt_cv_prog_compiler_rtti_exceptions=yes
11771 CFLAGS="$save_CFLAGS"
11774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11775 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11777 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11778 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
11785 lt_prog_compiler_wl_GCJ=
11786 lt_prog_compiler_pic_GCJ=
11787 lt_prog_compiler_static_GCJ=
11789 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11792 if test "$GCC" = yes; then
11793 lt_prog_compiler_wl_GCJ='-Wl,'
11794 lt_prog_compiler_static_GCJ='-static'
11798 # All AIX code is PIC.
11799 if test "$host_cpu" = ia64; then
11800 # AIX 5 now supports IA64 processor
11801 lt_prog_compiler_static_GCJ='-Bstatic'
11806 # FIXME: we need at least 68020 code to build shared libraries, but
11807 # adding the `-m68020' flag to GCC prevents building anything better,
11809 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11813 # PIC is the default for these OSes.
11816 cygwin* | mingw* | pw32* | os2*)
11817 # This hack is so that the source file can tell whether it is being
11818 # built for inclusion in a dll (and should export symbols for example).
11819 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11822 darwin* | rhapsody*)
11823 # PIC is the default on this platform
11824 # Common symbols not allowed in MH_DYLIB files
11825 lt_prog_compiler_pic_GCJ='-fno-common'
11829 # Just because we use GCC doesn't mean we suddenly get shared libraries
11830 # on systems that don't support them.
11831 lt_prog_compiler_can_build_shared_GCJ=no
11836 if test -d /usr/nec; then
11837 lt_prog_compiler_pic_GCJ=-Kconform_pic
11842 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11843 if test "$host_cpu" != ia64; then
11844 lt_prog_compiler_pic_GCJ='-fPIC'
11849 lt_prog_compiler_pic_GCJ='-fPIC'
11853 # PORTME Check for flag to pass linker flags through the system compiler.
11856 lt_prog_compiler_wl_GCJ='-Wl,'
11857 if test "$host_cpu" = ia64; then
11858 # AIX 5 now supports IA64 processor
11859 lt_prog_compiler_static_GCJ='-Bstatic'
11861 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11865 cygwin* | mingw* | pw32* | os2*)
11866 # This hack is so that the source file can tell whether it is being
11867 # built for inclusion in a dll (and should export symbols for example).
11868 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11871 hpux9* | hpux10* | hpux11*)
11872 lt_prog_compiler_wl_GCJ='-Wl,'
11873 if test "$host_cpu" != ia64; then
11874 lt_prog_compiler_pic_GCJ='+Z'
11876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11877 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11880 irix5* | irix6* | nonstopux*)
11881 lt_prog_compiler_wl_GCJ='-Wl,'
11882 # PIC (with -KPIC) is the default.
11883 lt_prog_compiler_static_GCJ='-non_shared'
11887 lt_prog_compiler_pic_GCJ='-KPIC'
11888 lt_prog_compiler_static_GCJ='-Bstatic'
11891 osf3* | osf4* | osf5*)
11892 lt_prog_compiler_wl_GCJ='-Wl,'
11893 # All OSF/1 code is PIC.
11894 lt_prog_compiler_static_GCJ='-non_shared'
11898 lt_prog_compiler_pic_GCJ='-Kpic'
11899 lt_prog_compiler_static_GCJ='-dn'
11903 lt_prog_compiler_wl_GCJ='-Wl,'
11904 lt_prog_compiler_pic_GCJ='-KPIC'
11905 lt_prog_compiler_static_GCJ='-Bstatic'
11909 lt_prog_compiler_wl_GCJ='-Qoption ld '
11910 lt_prog_compiler_pic_GCJ='-PIC'
11911 lt_prog_compiler_static_GCJ='-Bstatic'
11914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11915 if test "x$host_vendor" = xsni; then
11916 lt_prog_compiler_wl_GCJ='-LD'
11918 lt_prog_compiler_wl_GCJ='-Wl,'
11920 lt_prog_compiler_pic_GCJ='-KPIC'
11921 lt_prog_compiler_static_GCJ='-Bstatic'
11925 if test -d /usr/nec ;then
11926 lt_prog_compiler_pic_GCJ='-Kconform_pic'
11927 lt_prog_compiler_static_GCJ='-Bstatic'
11932 lt_prog_compiler_pic_GCJ='-pic'
11933 lt_prog_compiler_static_GCJ='-Bstatic'
11937 lt_prog_compiler_can_build_shared_GCJ=no
11942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
11943 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11946 # Check to make sure the PIC flag actually works.
11948 if test -n "$lt_prog_compiler_pic_GCJ"; then
11949 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11951 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 lt_prog_compiler_pic_works_GCJ=no
11955 ac_outfile=conftest.$ac_objext
11956 save_CFLAGS="$CFLAGS"
11957 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
11958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11959 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11960 # The compiler can only warn and ignore the option if not recognized
11961 # So say no if there are warnings
11962 if test -s conftest.err; then
11963 # Append any errors to the config.log.
11964 cat conftest.err 1>&5
11966 lt_prog_compiler_pic_works_GCJ=yes
11970 CFLAGS="$save_CFLAGS"
11973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
11974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
11977 case $lt_prog_compiler_pic_GCJ in
11979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
11982 lt_prog_compiler_pic_GCJ=
11983 lt_prog_compiler_can_build_shared_GCJ=no
11988 # For platforms which do not support PIC, -DPIC is meaningless:
11990 lt_prog_compiler_pic_GCJ=
11993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
11997 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11999 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 lt_cv_prog_compiler_c_o_GCJ=no
12003 $rm -r conftest 2>/dev/null
12007 save_GCJFLAGS="$GCJFLAGS"
12008 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
12009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12012 # that will create temporary files in the current directory regardless of
12013 # the output directory. Thus, making CWD read-only will cause this test
12014 # to fail, enabling locking or at least warning the user not to do parallel
12018 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings
12022 if test -s out/conftest.err; then
12023 # Append any errors to the config.log.
12024 cat out/conftest.err 1>&5
12026 lt_cv_prog_compiler_c_o_GCJ=yes
12029 GCJFLAGS="$save_GCJFLAGS"
12031 $rm conftest* out/*
12038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
12042 hard_links="nottested"
12043 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12044 # do not overwrite the value of need_locks provided by the user
12045 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12046 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12051 ln conftest.a conftest.b 2>&5 || hard_links=no
12052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12053 echo "$as_me:$LINENO: result: $hard_links" >&5
12054 echo "${ECHO_T}$hard_links" >&6
12055 if test "$hard_links" = no; then
12056 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12057 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12064 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12065 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12068 allow_undefined_flag_GCJ=
12071 archive_cmds_need_lc_GCJ=
12072 archive_expsym_cmds_GCJ=
12073 old_archive_From_new_cmds_GCJ=
12074 old_archive_from_expsyms_cmds_GCJ=
12075 export_dynamic_flag_spec_GCJ=
12076 whole_archive_flag_spec_GCJ=
12077 thread_safe_flag_spec_GCJ=
12078 hardcode_libdir_flag_spec_GCJ=
12079 hardcode_libdir_separator_GCJ=
12080 hardcode_direct_GCJ=no
12081 hardcode_minus_L_GCJ=no
12082 hardcode_shlibpath_var_GCJ=unsupported
12083 link_all_deplibs_GCJ=unknown
12084 always_export_symbols_GCJ=no
12085 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12086 # include_expsyms should be a list of space-separated symbols to be *always*
12087 # included in the symbol list
12088 include_expsyms_GCJ=
12089 # exclude_expsyms can be an egrep regular expression of symbols to exclude
12090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12092 # as well as any symbol that contains `d'.
12093 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12095 # platforms (ab)use it in PIC code, but their linkers get confused if
12096 # the symbol is explicitly referenced. Since portable code cannot
12097 # rely on this symbol name, it's probably fine to never include it in
12098 # preloaded symbol tables.
12099 extract_expsyms_cmds=
12102 cygwin* | mingw* | pw32*)
12103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12104 # When not using gcc, we currently assume that we are using
12105 # Microsoft Visual C++.
12106 if test "$GCC" != yes; then
12116 if test "$with_gnu_ld" = yes; then
12117 # If archive_cmds runs LD, not CC, wlarc should be empty
12120 # See if GNU ld supports shared libraries.
12122 aix3* | aix4* | aix5*)
12123 # On AIX/PPC, the GNU linker is very broken
12124 if test "$host_cpu" != ia64; then
12128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12129 *** to be unable to reliably create shared libraries on AIX.
12130 *** Therefore, libtool is disabling shared libraries support. If you
12131 *** really care for shared libraries, you may want to modify your PATH
12132 *** so that a non-GNU linker is found, and then restart.
12139 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)'
12140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12141 hardcode_minus_L_GCJ=yes
12143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12144 # that the semantics of dynamic libraries on AmigaOS, at least up
12145 # to version 4, is to share data among multiple programs linked
12146 # with the same dynamic library. Since this doesn't match the
12147 # behavior of shared libraries on other platforms, we can't use
12153 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12154 allow_undefined_flag_GCJ=unsupported
12155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12156 # support --undefined. This deserves some investigation. FIXME
12157 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12163 cygwin* | mingw* | pw32*)
12164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
12165 # no search path for DLLs.
12166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12167 allow_undefined_flag_GCJ=unsupported
12168 always_export_symbols_GCJ=yes
12170 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
12171 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
12172 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
12173 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
12174 else $CC -o impgen impgen.c ; fi)~
12175 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
12177 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
12179 # cygwin and mingw dlls have different entry points and sets of symbols
12181 # FIXME: what about values for MSVC?
12182 dll_entry=__cygwin_dll_entry@12
12183 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
12187 dll_entry=_DllMainCRTStartup@12
12188 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
12192 # mingw and cygwin differ, and it's simplest to just exclude the union
12193 # of the two symbol sets.
12194 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
12196 # recent cygwin and mingw systems supply a stub DllMain which the user
12197 # can override, but on older systems we have to supply one (in ltdll.c)
12198 if test "x$lt_cv_need_dllmain" = "xyes"; then
12199 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
12200 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
12201 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
12207 # Extract the symbol export list from an `--export-all' def file,
12208 # then regenerate the def file from the symbol export list, so that
12209 # the compiled dll only exports the symbol export list.
12210 # Be careful not to strip the DATA tag left by newer dlltools.
12211 export_symbols_cmds_GCJ="$ltdll_cmds"'
12212 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
12213 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
12215 # If the export-symbols file already is a .def file (1st line
12216 # is EXPORTS), use it as is.
12217 # If DATA tags from a recent dlltool are present, honour them!
12218 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
12219 cp $export_symbols $output_objdir/$soname-def;
12221 echo EXPORTS > $output_objdir/$soname-def;
12223 cat $export_symbols | while read symbol; do
12224 set dummy \$symbol;
12226 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
12227 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
12229 _lt_hint=`expr 1 + \$_lt_hint`;
12233 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12234 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
12235 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
12236 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
12237 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
12241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12242 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12245 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12251 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
12255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12256 *** create shared libraries on Solaris systems. Therefore, libtool
12257 *** is disabling shared libraries support. We urge you to upgrade GNU
12258 *** binutils to release 2.9.1 or newer. Another option is to modify
12259 *** your PATH or compiler configuration so that the native linker is
12260 *** used, and then restart.
12263 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12264 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12265 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12272 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12274 hardcode_direct_GCJ=yes
12275 hardcode_shlibpath_var_GCJ=no
12279 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12288 if test "$ld_shlibs_GCJ" = yes; then
12289 runpath_var=LD_RUN_PATH
12290 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12291 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12293 cygwin* | mingw* | pw32*)
12294 # dlltool doesn't understand --whole-archive et. al.
12295 whole_archive_flag_spec_GCJ=
12298 # ancient GNU ld didn't support --whole-archive et. al.
12299 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
12300 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12302 whole_archive_flag_spec_GCJ=
12308 # PORTME fill in a description of your system's linker (not GNU ld)
12311 allow_undefined_flag_GCJ=unsupported
12312 always_export_symbols_GCJ=yes
12313 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'
12314 # Note: this linker hardcodes the directories in LIBPATH if there
12315 # are no directories specified by -L.
12316 hardcode_minus_L_GCJ=yes
12317 if test "$GCC" = yes && test -z "$link_static_flag"; then
12318 # Neither direct hardcoding nor static linking is supported with a
12320 hardcode_direct_GCJ=unsupported
12325 if test "$host_cpu" = ia64; then
12326 # On IA64, the linker does run time linking by default, so we don't
12327 # have to do anything special.
12328 aix_use_runtimelinking=no
12329 exp_sym_flag='-Bexport'
12332 # If we're using GNU nm, then we don't want the "-C" option.
12333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12334 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
12335 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'
12337 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'
12340 # KDE requires run time linking. Make it the default.
12341 aix_use_runtimelinking=yes
12342 exp_sym_flag='-bexport'
12343 no_entry_flag='-bnoentry'
12346 # When large executables or shared objects are built, AIX ld can
12347 # have problems creating the table of contents. If linking a library
12348 # or program results in "error TOC overflow" add -mminimal-toc to
12349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12352 archive_cmds_GCJ=''
12353 hardcode_direct_GCJ=yes
12354 hardcode_libdir_separator_GCJ=':'
12355 link_all_deplibs_GCJ=yes
12357 if test "$GCC" = yes; then
12358 case $host_os in aix4.012|aix4.012.*)
12359 # We only want to do this on AIX 4.2 and lower, the check
12360 # below for broken collect2 doesn't work under 4.3+
12361 collect2name=`${CC} -print-prog-name=collect2`
12362 if test -f "$collect2name" && \
12363 strings "$collect2name" | grep resolve_lib_name >/dev/null
12365 # We have reworked collect2
12366 hardcode_direct_GCJ=yes
12368 # We have old collect2
12369 hardcode_direct_GCJ=unsupported
12370 # It fails to find uninstalled libraries when the uninstalled
12371 # path is not listed in the libpath. Setting hardcode_minus_L
12372 # to unsupported forces relinking
12373 hardcode_minus_L_GCJ=yes
12374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12375 hardcode_libdir_separator_GCJ=
12378 shared_flag='-shared'
12381 if test "$host_cpu" = ia64; then
12382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12383 # chokes on -Wl,-G. The following line is correct:
12386 if test "$aix_use_runtimelinking" = yes; then
12387 shared_flag='-qmkshrobj ${wl}-G'
12389 shared_flag='-qmkshrobj'
12394 # Let the compiler handle the export list.
12395 always_export_symbols_GCJ=no
12396 if test "$aix_use_runtimelinking" = yes; then
12397 # Warning - without using the other runtime loading flags (-brtl),
12398 # -berok will link without error, but may produce a broken library.
12399 allow_undefined_flag_GCJ='-berok'
12400 # Determine the default libpath from the value encoded in an empty executable.
12401 cat >conftest.$ac_ext <<_ACEOF
12402 #line $LINENO "configure"
12403 #include "confdefs.h"
12405 #ifdef F77_DUMMY_MAIN
12406 # ifdef __cplusplus
12409 int F77_DUMMY_MAIN() { return 1; }
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12434 # Check for a 64-bit object if we didn't find anything.
12435 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12438 echo "$as_me: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12444 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
12446 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12448 if test "$host_cpu" = ia64; then
12449 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
12450 allow_undefined_flag_GCJ="-z nodefs"
12451 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12453 # Determine the default libpath from the value encoded in an empty executable.
12454 cat >conftest.$ac_ext <<_ACEOF
12455 #line $LINENO "configure"
12456 #include "confdefs.h"
12458 #ifdef F77_DUMMY_MAIN
12459 # ifdef __cplusplus
12462 int F77_DUMMY_MAIN() { return 1; }
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12487 # Check for a 64-bit object if we didn't find anything.
12488 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12491 echo "$as_me: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12497 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
12498 # Warning - without using the other run time loading flags,
12499 # -berok will link without error, but may produce a broken library.
12500 no_undefined_flag_GCJ=' ${wl}-bernotok'
12501 allow_undefined_flag_GCJ=' ${wl}-berok'
12502 # -bexpall does not export symbols beginning with underscore (_)
12503 always_export_symbols_GCJ=yes
12504 # Exported symbols can be pulled into shared objects from archives
12505 whole_archive_flag_spec_GCJ=' '
12506 archive_cmds_need_lc_GCJ=yes
12507 # This is similar to how AIX traditionally builds it's shared libraries.
12508 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12514 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)'
12515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12516 hardcode_minus_L_GCJ=yes
12517 # see comment about different semantics on the GNU ld section
12522 export_dynamic_flag_spec_GCJ=-rdynamic
12525 cygwin* | mingw* | pw32*)
12526 # When not using gcc, we currently assume that we are using
12527 # Microsoft Visual C++.
12528 # hardcode_libdir_flag_spec is actually meaningless, as there is
12529 # no search path for DLLs.
12530 hardcode_libdir_flag_spec_GCJ=' '
12531 allow_undefined_flag_GCJ=unsupported
12532 # Tell ltmain to make .lib files, not .a files.
12534 # FIXME: Setting linknames here is a bad hack.
12535 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12536 # The linker will automatically build a .lib file if we build a DLL.
12537 old_archive_From_new_cmds_GCJ='true'
12538 # FIXME: Should let the user specify the lib program.
12539 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
12540 fix_srcfile_path='`cygpath -w "$srcfile"`'
12543 darwin* | rhapsody*)
12545 rhapsody* | darwin1.[012])
12546 allow_undefined_flag_GCJ='-undefined suppress'
12549 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
12553 # FIXME: Relying on posixy $() will cause problems for
12554 # cross-compilation, but unfortunately the echo tests do not
12555 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12556 # `"' quotes if we put them in here... so don't!
12557 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
12558 # We need to add '_' to the symbols in $export_symbols first
12559 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
12560 hardcode_direct_GCJ=yes
12561 hardcode_shlibpath_var_GCJ=no
12562 whole_archive_flag_spec_GCJ='-all_load $convenience'
12566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12568 hardcode_shlibpath_var_GCJ=no
12575 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12576 # support. Future versions do this automatically, but an explicit c++rt0.o
12577 # does not break anything, and helps significantly (at the cost of a little
12580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12582 hardcode_direct_GCJ=yes
12583 hardcode_shlibpath_var_GCJ=no
12586 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12589 hardcode_direct_GCJ=yes
12590 hardcode_minus_L_GCJ=yes
12591 hardcode_shlibpath_var_GCJ=no
12594 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12596 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12597 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12598 hardcode_direct_GCJ=yes
12599 hardcode_shlibpath_var_GCJ=no
12602 hpux9* | hpux10* | hpux11*)
12603 if test "$GCC" = yes; then
12606 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'
12609 if test "$host_cpu" = ia64; then
12610 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12619 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'
12622 if test "$host_cpu" = ia64; then
12623 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12625 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12630 if test "$host_cpu" = ia64; then
12631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12632 hardcode_direct_GCJ=no
12633 hardcode_shlibpath_var_GCJ=no
12635 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
12636 hardcode_libdir_separator_GCJ=:
12637 hardcode_direct_GCJ=yes
12639 # hardcode_minus_L: Not really in the search PATH,
12640 # but as the default location of the library.
12641 hardcode_minus_L_GCJ=yes
12642 export_dynamic_flag_spec_GCJ='${wl}-E'
12645 irix5* | irix6* | nonstopux*)
12646 if test "$GCC" = yes; then
12647 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'
12649 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'
12651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12652 hardcode_libdir_separator_GCJ=:
12653 link_all_deplibs_GCJ=yes
12657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12660 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12663 hardcode_direct_GCJ=yes
12664 hardcode_shlibpath_var_GCJ=no
12668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12669 hardcode_direct_GCJ=yes
12670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12671 hardcode_libdir_separator_GCJ=:
12672 hardcode_shlibpath_var_GCJ=no
12676 hardcode_direct_GCJ=yes
12677 hardcode_shlibpath_var_GCJ=no
12679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12682 export_dynamic_flag_spec_GCJ='${wl}-E'
12685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
12691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
12698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12699 hardcode_minus_L_GCJ=yes
12700 allow_undefined_flag_GCJ=unsupported
12701 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'
12702 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12706 if test "$GCC" = yes; then
12707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12708 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'
12710 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12711 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'
12713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12714 hardcode_libdir_separator_GCJ=:
12717 osf4* | osf5*) # as osf3* with the addition of -msym flag
12718 if test "$GCC" = yes; then
12719 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
12720 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'
12721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
12723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
12724 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'
12725 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12726 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12728 # Both c and cxx compiler support -rpath directly
12729 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
12731 hardcode_libdir_separator_GCJ=:
12735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12736 hardcode_shlibpath_var_GCJ=no
12737 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
12738 runpath_var=LD_RUN_PATH
12739 hardcode_runpath_var=yes
12743 no_undefined_flag_GCJ=' -z text'
12744 if test "$GCC" = yes; then
12745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12746 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
12754 hardcode_shlibpath_var_GCJ=no
12756 solaris2.[0-5] | solaris2.[0-5].*) ;;
12757 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12758 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
12760 link_all_deplibs_GCJ=yes
12764 if test "x$host_vendor" = xsequent; then
12765 # Use $CC to link under sequent, because it throws in some extra .o
12766 # files that make .init and .fini sections work.
12767 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12769 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12772 hardcode_direct_GCJ=yes
12773 hardcode_minus_L_GCJ=yes
12774 hardcode_shlibpath_var_GCJ=no
12778 if test "x$host_vendor" = xsni; then
12779 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct_GCJ=yes # is this really true???
12782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12783 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
12785 runpath_var='LD_RUN_PATH'
12786 hardcode_shlibpath_var_GCJ=no
12790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12791 hardcode_shlibpath_var_GCJ=no
12792 export_dynamic_flag_spec_GCJ='-Bexport'
12796 if test -d /usr/nec; then
12797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_shlibpath_var_GCJ=no
12799 runpath_var=LD_RUN_PATH
12800 hardcode_runpath_var=yes
12806 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12807 hardcode_direct_GCJ=yes
12808 hardcode_minus_L_GCJ=no
12809 hardcode_shlibpath_var_GCJ=no
12810 hardcode_runpath_var=yes
12811 runpath_var=LD_RUN_PATH
12814 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12815 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12816 if test "$GCC" = yes; then
12817 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12819 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12821 runpath_var='LD_RUN_PATH'
12822 hardcode_shlibpath_var_GCJ=no
12826 no_undefined_flag_GCJ=' -z text'
12827 # $CC -shared without GNU ld will not create a library from C++
12828 # object files and a static libstdc++, better avoid it by now
12829 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12832 hardcode_libdir_flag_spec_GCJ=
12833 hardcode_shlibpath_var_GCJ=no
12834 runpath_var='LD_RUN_PATH'
12838 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12840 hardcode_shlibpath_var_GCJ=no
12849 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
12850 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12851 test "$ld_shlibs_GCJ" = no && can_build_shared=no
12853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12854 if test "$GCC" = yes; then
12855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12859 # Do we need to explicitly link libc?
12861 archive_cmds_need_lc_GCJ=yes
12862 if test "$enable_shared" = yes && test "$GCC" = yes; then
12863 case $archive_cmds_GCJ in
12865 # FIXME: we may have to deal with multi-command sequences.
12868 # Test whether the compiler implicitly links with -lc since on some
12869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12870 # to ld, don't add -lc before -lgcc.
12871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12874 echo 'static int dummy;' > conftest.$ac_ext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } 2>conftest.err; then
12883 libobjs=conftest.$ac_objext
12885 wl=$lt_prog_compiler_wl_GCJ
12891 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12892 allow_undefined_flag_GCJ=
12893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12894 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }
12899 archive_cmds_need_lc_GCJ=no
12901 archive_cmds_need_lc_GCJ=yes
12903 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
12905 cat conftest.err 1>&5
12908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
12909 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12914 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12916 hardcode_action_GCJ=
12917 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12918 test -n "$runpath_var GCJ"; then
12920 # We can hardcode non-existant directories.
12921 if test "$hardcode_direct_GCJ" != no &&
12922 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12923 # have to relink, otherwise we might link with an installed library
12924 # when we should be linking with a yet-to-be-installed one
12925 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12926 test "$hardcode_minus_L_GCJ" != no; then
12927 # Linking always hardcodes the temporary library directory.
12928 hardcode_action_GCJ=relink
12930 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12931 hardcode_action_GCJ=immediate
12934 # We cannot hardcode anything, or else we can only hardcode existing
12936 hardcode_action_GCJ=unsupported
12938 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
12939 echo "${ECHO_T}$hardcode_action_GCJ" >&6
12941 if test "$hardcode_action_GCJ" = relink; then
12942 # Fast installation is not supported
12943 enable_fast_install=no
12944 elif test "$shlibpath_overrides_runpath" = yes ||
12945 test "$enable_shared" = no; then
12946 # Fast installation is not necessary
12947 enable_fast_install=needless
12952 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12953 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12954 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12955 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12956 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12957 echo "$as_me:$LINENO: result: yes" >&5
12958 echo "${ECHO_T}yes" >&6
12960 echo "$as_me:$LINENO: result: no" >&5
12961 echo "${ECHO_T}no" >&6
12964 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12965 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12966 library_names_spec=
12967 libname_spec='lib$name'
12970 postuninstall_cmds=
12974 shlibpath_overrides_runpath=unknown
12976 dynamic_linker="$host_os ld.so"
12977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12979 need_lib_prefix=unknown
12980 hardcode_into_libs=no
12982 # when you set need_version to no, make sure it does not cause -set_version
12983 # flags to be left without arguments
12984 need_version=unknown
12989 library_names_spec='${libname}${release}.so$versuffix $libname.a'
12990 shlibpath_var=LIBPATH
12992 # AIX 3 has no versioning support, so we append a major version to the name.
12993 soname_spec='${libname}${release}.so$major'
12998 if test "$host_cpu" = ia64; then
12999 # AIX 5 supports IA64
13000 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13001 shlibpath_var=LD_LIBRARY_PATH
13003 # With GCC up to 2.95.x, collect2 would create an import file
13004 # for dependence libraries. The import file would start with
13005 # the line `#! .'. This would cause the generated library to
13006 # depend on `.', always an invalid library. This was fixed in
13007 # development snapshots of GCC prior to 3.0.
13009 aix4 | aix4.[01] | aix4.[01].*)
13010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13012 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13015 can_build_shared=no
13019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13020 # soname into executable. Probably we can add versioning support to
13021 # collect2, so additional links can be useful in future.
13022 if test "$aix_use_runtimelinking" = yes; then
13023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13024 # instead of lib<name>.a to let people know that these are not
13025 # typical AIX shared libraries.
13026 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13028 # We preserve .a as extension for shared libraries through AIX4.2
13029 # and later when we are not doing run time linking.
13030 library_names_spec='${libname}${release}.a $libname.a'
13031 soname_spec='${libname}${release}.so$major'
13033 shlibpath_var=LIBPATH
13038 library_names_spec='$libname.ixlibrary $libname.a'
13039 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13040 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'
13044 library_names_spec='${libname}.so'
13045 dynamic_linker="$host_os ld.so"
13046 shlibpath_var=LIBRARY_PATH
13052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13053 soname_spec='${libname}${release}.so$major'
13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13058 # the default ld.so.conf also contains /usr/contrib/lib and
13059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13060 # libtool to hard-code these into programs
13063 cygwin* | mingw* | pw32*)
13064 version_type=windows
13067 case $GCC,$host_os in
13069 library_names_spec='$libname.dll.a'
13070 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13072 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
13073 dldir=$destdir/`dirname \$dlpath`~
13074 test -d \$dldir || mkdir -p \$dldir~
13075 $install_prog .libs/$dlname \$dldir/$dlname'
13076 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
13077 dlpath=$dir/\$dldll~
13081 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
13083 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
13084 # It is most probably a Windows format PATH printed by
13085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086 # path with ; separators, and with drive letters. We can handle the
13087 # drive letters (cygwin fileutils understands them), so leave them,
13088 # especially as we might pass files found there to a mingw objdump,
13089 # which wouldn't understand a cygwinified path. Ahh.
13090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13099 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13102 dynamic_linker='Win32 ld.exe'
13103 # FIXME: first we should search . and the directory the executable is in
13107 darwin* | rhapsody*)
13108 dynamic_linker="$host_os dyld"
13109 version_type=darwin
13112 # FIXME: Relying on posixy $() will cause problems for
13113 # cross-compilation, but unfortunately the echo tests do not
13114 # yet detect zsh echo's removal of \ escapes.
13115 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13116 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13117 shlibpath_overrides_runpath=yes
13118 shlibpath_var=DYLD_LIBRARY_PATH
13125 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13126 soname_spec='${libname}${release}.so$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13135 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13136 version_type=freebsd-$objformat
13137 case $version_type in
13139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13144 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13148 shlibpath_var=LD_LIBRARY_PATH
13151 shlibpath_overrides_runpath=yes
13153 freebsd3.01* | freebsdelf3.01*)
13154 shlibpath_overrides_runpath=yes
13155 hardcode_into_libs=yes
13158 shlibpath_overrides_runpath=no
13159 hardcode_into_libs=yes
13168 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13169 soname_spec='${libname}${release}.so$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 hardcode_into_libs=yes
13174 hpux9* | hpux10* | hpux11*)
13175 # Give a soname corresponding to the major version so that dld.sl refuses to
13176 # link against other versions.
13180 if test "$host_cpu" = ia64; then
13181 hardcode_into_libs=yes
13182 dynamic_linker="$host_os dld.so"
13183 shlibpath_var=LD_LIBRARY_PATH
13184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13185 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13186 soname_spec='${libname}${release}.so$major'
13187 if test "X$HPUX_IA64_MODE" = X32; then
13188 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13194 dynamic_linker="$host_os dld.sl"
13195 shlibpath_var=SHLIB_PATH
13196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13197 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13198 soname_spec='${libname}${release}.sl$major'
13200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13201 postinstall_cmds='chmod 555 $lib'
13204 irix5* | irix6* | nonstopux*)
13206 nonstopux*) version_type=nonstopux ;;
13207 *) version_type=irix ;;
13211 soname_spec='${libname}${release}.so$major'
13212 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13214 irix5* | nonstopux*)
13215 libsuff= shlibsuff=
13218 case $LD in # libtool.m4 will add one of these switches to LD
13219 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13220 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13221 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13222 *) libsuff= shlibsuff= libmagic=never-match;;
13226 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13227 shlibpath_overrides_runpath=no
13228 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13229 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13232 # No shared lib support for Linux oldld, aout, or coff.
13233 linux*oldld* | linux*aout* | linux*coff*)
13237 # This must be Linux ELF.
13242 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13243 soname_spec='${libname}${release}.so$major'
13244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13246 if test "x$LINUX_64_MODE" = x64; then
13247 # Some platforms are per default 64-bit, so there's no /lib64
13248 if test -d /lib64; then
13252 shlibpath_var=LD_LIBRARY_PATH
13253 shlibpath_overrides_runpath=no
13254 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13255 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13256 # This implies no fast_install, which is unacceptable.
13257 # Some rework will be needed to allow for fast_install
13258 # before this can be enabled.
13259 hardcode_into_libs=yes
13261 # We used to test for /lib/ld.so.1 and disable shared libraries on
13262 # powerpc, because MkLinux only supported shared libraries with the
13263 # GNU dynamic linker. Since this was broken with cross compilers,
13264 # most powerpc-linux boxes support dynamic linking these days and
13265 # people can always --disable-shared, the test was removed, and we
13266 # assume the GNU/Linux dynamic linker is in use.
13267 dynamic_linker='GNU/Linux ld.so'
13274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13277 dynamic_linker='NetBSD (a.out) ld.so'
13279 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13280 soname_spec='${libname}${release}.so$major'
13281 dynamic_linker='NetBSD ld.elf_so'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13290 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13299 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13300 soname_spec='${libname}${release}.so$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13309 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13311 shlibpath_var=LD_LIBRARY_PATH
13312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13314 openbsd2.[89] | openbsd2.[89].*)
13315 shlibpath_overrides_runpath=no
13318 shlibpath_overrides_runpath=yes
13322 shlibpath_overrides_runpath=yes
13327 libname_spec='$name'
13329 library_names_spec='$libname.dll $libname.a'
13330 dynamic_linker='OS/2 ld.exe'
13331 shlibpath_var=LIBPATH
13334 osf3* | osf4* | osf5*)
13338 soname_spec='${libname}${release}.so'
13339 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13347 soname_spec='${libname}${release}.so$major'
13348 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13349 shlibpath_var=LD_LIBRARY_PATH
13356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13357 soname_spec='${libname}${release}.so$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 # ldd complains unless libraries are executable
13362 postinstall_cmds='chmod +x $lib'
13367 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13371 if test "$with_gnu_ld" = yes; then
13377 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13379 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13380 soname_spec='${libname}${release}.so$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 case $host_vendor in
13384 shlibpath_overrides_runpath=no
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13396 if test -d /usr/nec ;then
13398 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13399 soname_spec='$libname.so.$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13406 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13407 soname_spec='${libname}${release}.so$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13415 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416 echo "${ECHO_T}$dynamic_linker" >&6
13417 test "$dynamic_linker" = no && can_build_shared=no
13419 if test "x$enable_dlopen" != xyes; then
13420 enable_dlopen=unknown
13421 enable_dlopen_self=unknown
13422 enable_dlopen_self_static=unknown
13429 lt_cv_dlopen="load_add_on"
13431 lt_cv_dlopen_self=yes
13434 cygwin* | mingw* | pw32*)
13435 lt_cv_dlopen="LoadLibrary"
13440 echo "$as_me:$LINENO: checking for shl_load" >&5
13441 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13442 if test "${ac_cv_func_shl_load+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 cat >conftest.$ac_ext <<_ACEOF
13446 #line $LINENO "configure"
13447 #include "confdefs.h"
13448 /* System header to define __stub macros and hopefully few prototypes,
13449 which can conflict with char shl_load (); below. */
13450 #include <assert.h>
13451 /* Override any gcc2 internal prototype to avoid an error. */
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13460 #ifdef F77_DUMMY_MAIN
13461 # ifdef __cplusplus
13464 int F77_DUMMY_MAIN() { return 1; }
13469 /* The GNU C library defines this for functions which it implements
13470 to always fail with ENOSYS. Some functions are actually named
13471 something starting with __ and the normal name is an alias. */
13472 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13484 (eval $ac_link) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_cv_func_shl_load=yes
13496 echo "$as_me: failed program was:" >&5
13497 cat conftest.$ac_ext >&5
13498 ac_cv_func_shl_load=no
13500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13503 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13504 if test $ac_cv_func_shl_load = yes; then
13505 lt_cv_dlopen="shl_load"
13507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13508 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13509 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 ac_check_lib_save_LIBS=$LIBS
13514 cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13525 #ifdef F77_DUMMY_MAIN
13526 # ifdef __cplusplus
13529 int F77_DUMMY_MAIN() { return 1; }
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -s conftest$ac_exeext'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }; then
13551 ac_cv_lib_dld_shl_load=yes
13553 echo "$as_me: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13555 ac_cv_lib_dld_shl_load=no
13557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13561 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13562 if test $ac_cv_lib_dld_shl_load = yes; then
13563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13565 echo "$as_me:$LINENO: checking for dlopen" >&5
13566 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13567 if test "${ac_cv_func_dlopen+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 #include "confdefs.h"
13573 /* System header to define __stub macros and hopefully few prototypes,
13574 which can conflict with char dlopen (); below. */
13575 #include <assert.h>
13576 /* Override any gcc2 internal prototype to avoid an error. */
13580 /* We use char because int might match the return type of a gcc2
13581 builtin and then its argument prototype would still apply. */
13585 #ifdef F77_DUMMY_MAIN
13586 # ifdef __cplusplus
13589 int F77_DUMMY_MAIN() { return 1; }
13594 /* The GNU C library defines this for functions which it implements
13595 to always fail with ENOSYS. Some functions are actually named
13596 something starting with __ and the normal name is an alias. */
13597 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_func_dlopen=yes
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 ac_cv_func_dlopen=no
13625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13628 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13629 if test $ac_cv_func_dlopen = yes; then
13630 lt_cv_dlopen="dlopen"
13632 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13633 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat >conftest.$ac_ext <<_ACEOF
13640 #line $LINENO "configure"
13641 #include "confdefs.h"
13643 /* Override any gcc2 internal prototype to avoid an error. */
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13650 #ifdef F77_DUMMY_MAIN
13651 # ifdef __cplusplus
13654 int F77_DUMMY_MAIN() { return 1; }
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_lib_dl_dlopen=yes
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 ac_cv_lib_dl_dlopen=no
13682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13687 if test $ac_cv_lib_dl_dlopen = yes; then
13688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13690 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lsvld $LIBS"
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13701 /* Override any gcc2 internal prototype to avoid an error. */
13705 /* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */
13708 #ifdef F77_DUMMY_MAIN
13709 # ifdef __cplusplus
13712 int F77_DUMMY_MAIN() { return 1; }
13722 rm -f conftest.$ac_objext conftest$ac_exeext
13723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -s conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_lib_svld_dlopen=yes
13736 echo "$as_me: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 ac_cv_lib_svld_dlopen=no
13740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13743 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13744 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13745 if test $ac_cv_lib_svld_dlopen = yes; then
13746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13748 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13749 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13750 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 ac_check_lib_save_LIBS=$LIBS
13755 cat >conftest.$ac_ext <<_ACEOF
13756 #line $LINENO "configure"
13757 #include "confdefs.h"
13759 /* Override any gcc2 internal prototype to avoid an error. */
13763 /* We use char because int might match the return type of a gcc2
13764 builtin and then its argument prototype would still apply. */
13766 #ifdef F77_DUMMY_MAIN
13767 # ifdef __cplusplus
13770 int F77_DUMMY_MAIN() { return 1; }
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_lib_dld_dld_link=yes
13794 echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 ac_cv_lib_dld_dld_link=no
13798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13801 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13802 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13803 if test $ac_cv_lib_dld_dld_link = yes; then
13804 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13825 if test "x$lt_cv_dlopen" != xno; then
13831 case $lt_cv_dlopen in
13833 save_CPPFLAGS="$CPPFLAGS"
13834 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13836 save_LDFLAGS="$LDFLAGS"
13837 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13840 LIBS="$lt_cv_dlopen_libs $LIBS"
13842 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13843 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13844 if test "${lt_cv_dlopen_self+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 if test "$cross_compiling" = yes; then :
13848 lt_cv_dlopen_self=cross
13850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13851 lt_status=$lt_dlunknown
13852 cat > conftest.$ac_ext <<EOF
13853 #line 13853 "configure"
13854 #include "confdefs.h"
13863 # define LT_DLGLOBAL RTLD_GLOBAL
13866 # define LT_DLGLOBAL DL_GLOBAL
13868 # define LT_DLGLOBAL 0
13872 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13873 find out it does not work in some platform. */
13874 #ifndef LT_DLLAZY_OR_NOW
13876 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13879 # define LT_DLLAZY_OR_NOW DL_LAZY
13882 # define LT_DLLAZY_OR_NOW RTLD_NOW
13885 # define LT_DLLAZY_OR_NOW DL_NOW
13887 # define LT_DLLAZY_OR_NOW 0
13895 extern "C" void exit (int);
13898 void fnord() { int i=42;}
13901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13902 int status = $lt_dlunknown;
13906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13907 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13908 /* dlclose (self); */
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13919 (./conftest; exit; ) 2>/dev/null
13921 case x$lt_status in
13922 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13923 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13924 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13927 # compilation failed
13928 lt_cv_dlopen_self=no
13935 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13936 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13938 if test "x$lt_cv_dlopen_self" = xyes; then
13939 LDFLAGS="$LDFLAGS $link_static_flag"
13940 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13941 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13942 if test "${lt_cv_dlopen_self_static+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 if test "$cross_compiling" = yes; then :
13946 lt_cv_dlopen_self_static=cross
13948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13949 lt_status=$lt_dlunknown
13950 cat > conftest.$ac_ext <<EOF
13951 #line 13951 "configure"
13952 #include "confdefs.h"
13961 # define LT_DLGLOBAL RTLD_GLOBAL
13964 # define LT_DLGLOBAL DL_GLOBAL
13966 # define LT_DLGLOBAL 0
13970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13971 find out it does not work in some platform. */
13972 #ifndef LT_DLLAZY_OR_NOW
13974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13977 # define LT_DLLAZY_OR_NOW DL_LAZY
13980 # define LT_DLLAZY_OR_NOW RTLD_NOW
13983 # define LT_DLLAZY_OR_NOW DL_NOW
13985 # define LT_DLLAZY_OR_NOW 0
13993 extern "C" void exit (int);
13996 void fnord() { int i=42;}
13999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14000 int status = $lt_dlunknown;
14004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14006 /* dlclose (self); */
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14017 (./conftest; exit; ) 2>/dev/null
14019 case x$lt_status in
14020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14022 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14025 # compilation failed
14026 lt_cv_dlopen_self_static=no
14033 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14034 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14037 CPPFLAGS="$save_CPPFLAGS"
14038 LDFLAGS="$save_LDFLAGS"
14043 case $lt_cv_dlopen_self in
14044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14045 *) enable_dlopen_self=unknown ;;
14048 case $lt_cv_dlopen_self_static in
14049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14050 *) enable_dlopen_self_static=unknown ;;
14055 # The else clause should only fire when bootstrapping the
14056 # libtool distribution, otherwise you forgot to ship ltmain.sh
14057 # with your package, and you will get complaints that there are
14058 # no rules to generate ltmain.sh.
14059 if test -f "$ltmain"; then
14060 # Now quote all the things that may contain metacharacters while being
14061 # careful not to overquote the AC_SUBSTed values. We take copies of the
14062 # variables and quote the copies for generation of the libtool script.
14063 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14066 deplibs_check_method reload_flag reload_cmds need_locks \
14067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14068 lt_cv_sys_global_symbol_to_c_name_address \
14069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14070 old_postinstall_cmds old_postuninstall_cmds \
14074 lt_prog_compiler_wl_GCJ \
14075 lt_prog_compiler_pic_GCJ \
14076 lt_prog_compiler_static_GCJ \
14077 lt_prog_compiler_no_builtin_flag_GCJ \
14078 export_dynamic_flag_spec_GCJ \
14079 thread_safe_flag_spec_GCJ \
14080 whole_archive_flag_spec_GCJ \
14081 old_archive_cmds_GCJ \
14082 old_archive_from_new_cmds_GCJ \
14083 predep_objects_GCJ \
14084 postdep_objects_GCJ \
14087 compiler_lib_search_path_GCJ \
14089 archive_expsym_cmds_GCJ \
14090 postinstall_cmds_GCJ \
14091 postuninstall_cmds_GCJ \
14092 old_archive_from_expsyms_cmds_GCJ \
14093 allow_undefined_flag_GCJ \
14094 no_undefined_flag_GCJ \
14095 export_symbols_cmds_GCJ \
14096 hardcode_libdir_flag_spec_GCJ \
14097 hardcode_libdir_separator_GCJ \
14098 lt_cv_prog_compiler_c_o_GCJ \
14099 exclude_expsyms_GCJ \
14100 include_expsyms_GCJ; do
14103 old_archive_cmds_GCJ | \
14104 old_archive_from_new_cmds_GCJ | \
14105 archive_cmds_GCJ | \
14106 archive_expsym_cmds_GCJ | \
14107 old_archive_from_expsyms_cmds_GCJ | \
14108 export_symbols_cmds_GCJ | \
14109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14110 postinstall_cmds | postuninstall_cmds | \
14111 old_postinstall_cmds | old_postuninstall_cmds | \
14112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14113 # Double-quote double-evaled strings.
14114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14123 *'\$0 --fallback-echo"')
14124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14130 cat <<__EOF__ >> "$cfgfile"
14131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135 # Shell to use when invoking shell scripts.
14138 # Whether or not to build shared libraries.
14139 build_libtool_libs=$enable_shared
14141 # Whether or not to build static libraries.
14142 build_old_libs=$enable_static
14144 # Whether or not to add -lc for building shared libraries.
14145 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14147 # Whether or not to optimize for fast installation.
14148 fast_install=$enable_fast_install
14151 host_alias=$host_alias
14154 # An echo program that does not interpret backslashes.
14159 AR_FLAGS=$lt_AR_FLAGS
14164 # A language-specific compiler.
14165 CC=$lt_compiler_GCJ
14167 # Is the compiler the GNU C compiler?
14170 # The linker used to build libraries.
14173 # Whether we need hard or soft links.
14176 # A BSD-compatible nm program.
14179 # A sed program that does not truncate output.
14182 # A symbol stripping program
14185 # Used to examine libraries when file_magic_cmd begins "file"
14186 MAGIC_CMD=$MAGIC_CMD
14188 # Used on cygwin: DLL creation program.
14191 # Used on cygwin: object dumper.
14194 # Used on cygwin: assembler.
14197 # The name of the directory that contains temporary libtool files.
14200 # How to create reloadable object files.
14201 reload_flag=$lt_reload_flag
14202 reload_cmds=$lt_reload_cmds
14204 # How to pass a linker flag through the compiler.
14205 wl=$lt_lt_prog_compiler_wl_GCJ
14207 # Object file suffix (normally "o").
14208 objext="$ac_objext"
14210 # Old archive suffix (normally "a").
14213 # Executable file suffix (normally "").
14216 # Additional compiler flags for building library objects.
14217 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14220 # What is the maximum length of a command?
14221 max_cmd_len=$lt_cv_sys_max_cmd_len
14223 # Does compiler simultaneously support -c and -o options?
14224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14226 # Must we lock files when doing compilation ?
14227 need_locks=$lt_need_locks
14229 # Do we need the lib prefix for modules?
14230 need_lib_prefix=$need_lib_prefix
14232 # Do we need a version for libraries?
14233 need_version=$need_version
14235 # Whether dlopen is supported.
14236 dlopen_support=$enable_dlopen
14238 # Whether dlopen of programs is supported.
14239 dlopen_self=$enable_dlopen_self
14241 # Whether dlopen of statically linked programs is supported.
14242 dlopen_self_static=$enable_dlopen_self_static
14244 # Compiler flag to prevent dynamic linking.
14245 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14247 # Compiler flag to turn off builtin functions.
14248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14250 # Compiler flag to allow reflexive dlopens.
14251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14253 # Compiler flag to generate shared objects directly from archives.
14254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14256 # Compiler flag to generate thread-safe objects.
14257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14259 # Library versioning type.
14260 version_type=$version_type
14262 # Format of library name prefix.
14263 libname_spec=$lt_libname_spec
14265 # List of archive names. First name is the real one, the rest are links.
14266 # The last name is the one that the linker finds with -lNAME.
14267 library_names_spec=$lt_library_names_spec
14269 # The coded name of the library, if different from the real name.
14270 soname_spec=$lt_soname_spec
14272 # Commands used to build and install an old-style archive.
14274 old_archive_cmds=$lt_old_archive_cmds_GCJ
14275 old_postinstall_cmds=$lt_old_postinstall_cmds
14276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14278 # Create an old-style archive from a shared archive.
14279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
14281 # Create a temporary old-style archive to link instead of a shared archive.
14282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
14284 # Commands used to build and install a shared archive.
14285 archive_cmds=$lt_archive_cmds_GCJ
14286 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
14287 postinstall_cmds=$lt_postinstall_cmds
14288 postuninstall_cmds=$lt_postuninstall_cmds
14290 # Commands to strip libraries.
14291 old_striplib=$lt_old_striplib
14292 striplib=$lt_striplib
14294 # Dependencies to place before the objects being linked to create a
14296 predep_objects=$lt_predep_objects_GCJ
14298 # Dependencies to place after the objects being linked to create a
14300 postdep_objects=$lt_postdep_objects_GCJ
14302 # Dependencies to place before the objects being linked to create a
14304 predeps=$lt_predeps_GCJ
14306 # Dependencies to place after the objects being linked to create a
14308 postdeps=$lt_postdeps_GCJ
14310 # The library search path used internally by the compiler when linking
14311 # a shared library.
14312 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
14314 # Method to check whether dependent libraries are shared objects.
14315 deplibs_check_method=$lt_deplibs_check_method
14317 # Command to use when deplibs_check_method == file_magic.
14318 file_magic_cmd=$lt_file_magic_cmd
14320 # Flag that allows shared libraries with undefined symbols to be built.
14321 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
14323 # Flag that forces no undefined symbols.
14324 no_undefined_flag=$lt_no_undefined_flag_GCJ
14326 # Commands used to finish a libtool library installation in a directory.
14327 finish_cmds=$lt_finish_cmds
14329 # Same as above, but a single script fragment to be evaled but not shown.
14330 finish_eval=$lt_finish_eval
14332 # Take the output of nm and produce a listing of raw symbols and C names.
14333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14335 # Transform the output of nm in a proper C declaration
14336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14338 # Transform the output of nm in a C name address pair
14339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14341 # This is the shared library runtime path variable.
14342 runpath_var=$runpath_var
14344 # This is the shared library path variable.
14345 shlibpath_var=$shlibpath_var
14347 # Is shlibpath searched before the hard-coded library search path?
14348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14350 # How to hardcode a shared library path into an executable.
14351 hardcode_action=$hardcode_action_GCJ
14353 # Whether we should hardcode library paths into libraries.
14354 hardcode_into_libs=$hardcode_into_libs
14356 # Flag to hardcode \$libdir into a binary during linking.
14357 # This must work even if \$libdir does not exist.
14358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
14360 # Whether we need a single -rpath flag with a separated argument.
14361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
14363 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14364 # resulting binary.
14365 hardcode_direct=$hardcode_direct_GCJ
14367 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14368 # resulting binary.
14369 hardcode_minus_L=$hardcode_minus_L_GCJ
14371 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14372 # the resulting binary.
14373 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
14375 # Variables whose values should be saved in libtool wrapper scripts and
14376 # restored at relink time.
14377 variables_saved_for_relink="$variables_saved_for_relink"
14379 # Whether libtool must link a program against all its dependency libraries.
14380 link_all_deplibs=$link_all_deplibs_GCJ
14382 # Compile-time system search path for libraries
14383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14385 # Run-time system search path for libraries
14386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14388 # Fix the shell variable \$srcfile for the compiler.
14389 fix_srcfile_path="$fix_srcfile_path_GCJ"
14391 # Set to yes if exported symbols are required.
14392 always_export_symbols=$always_export_symbols_GCJ
14394 # The commands to list exported symbols.
14395 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
14397 # The commands to extract the exported symbol list from a shared archive.
14398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14400 # Symbols that should not be listed in the preloaded symbols.
14401 exclude_expsyms=$lt_exclude_expsyms_GCJ
14403 # Symbols that must always be exported.
14404 include_expsyms=$lt_include_expsyms_GCJ
14406 # ### END LIBTOOL TAG CONFIG: $tagname
14412 # If there is no Makefile yet, we rely on a make rule to execute
14413 # `config.status --recheck' to rerun these tests and create the
14414 # libtool script then.
14415 test -f Makefile && make "$ltmain"
14420 ac_cpp='$CPP $CPPFLAGS'
14421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433 # Source file extension for RC test sources.
14436 # Object file extension for compiled RC test sources.
14440 # Code to be used in simple compile tests
14441 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14443 # Code to be used in simple link tests
14444 lt_simple_link_test_code="$lt_simple_compile_test_code"
14446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14448 # If no C compiler was specified, use CC.
14451 # Allow CC to be a program name with arguments.
14456 # Allow CC to be a program name with arguments.
14462 lt_cv_prog_compiler_c_o_RC=yes
14464 # The else clause should only fire when bootstrapping the
14465 # libtool distribution, otherwise you forgot to ship ltmain.sh
14466 # with your package, and you will get complaints that there are
14467 # no rules to generate ltmain.sh.
14468 if test -f "$ltmain"; then
14469 # Now quote all the things that may contain metacharacters while being
14470 # careful not to overquote the AC_SUBSTed values. We take copies of the
14471 # variables and quote the copies for generation of the libtool script.
14472 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
14473 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14474 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14475 deplibs_check_method reload_flag reload_cmds need_locks \
14476 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14477 lt_cv_sys_global_symbol_to_c_name_address \
14478 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14479 old_postinstall_cmds old_postuninstall_cmds \
14483 lt_prog_compiler_wl_RC \
14484 lt_prog_compiler_pic_RC \
14485 lt_prog_compiler_static_RC \
14486 lt_prog_compiler_no_builtin_flag_RC \
14487 export_dynamic_flag_spec_RC \
14488 thread_safe_flag_spec_RC \
14489 whole_archive_flag_spec_RC \
14490 old_archive_cmds_RC \
14491 old_archive_from_new_cmds_RC \
14492 predep_objects_RC \
14493 postdep_objects_RC \
14496 compiler_lib_search_path_RC \
14498 archive_expsym_cmds_RC \
14499 postinstall_cmds_RC \
14500 postuninstall_cmds_RC \
14501 old_archive_from_expsyms_cmds_RC \
14502 allow_undefined_flag_RC \
14503 no_undefined_flag_RC \
14504 export_symbols_cmds_RC \
14505 hardcode_libdir_flag_spec_RC \
14506 hardcode_libdir_separator_RC \
14507 lt_cv_prog_compiler_c_o_RC \
14508 exclude_expsyms_RC \
14509 include_expsyms_RC; do
14512 old_archive_cmds_RC | \
14513 old_archive_from_new_cmds_RC | \
14514 archive_cmds_RC | \
14515 archive_expsym_cmds_RC | \
14516 old_archive_from_expsyms_cmds_RC | \
14517 export_symbols_cmds_RC | \
14518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14519 postinstall_cmds | postuninstall_cmds | \
14520 old_postinstall_cmds | old_postuninstall_cmds | \
14521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14522 # Double-quote double-evaled strings.
14523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14532 *'\$0 --fallback-echo"')
14533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14539 cat <<__EOF__ >> "$cfgfile"
14540 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14544 # Shell to use when invoking shell scripts.
14547 # Whether or not to build shared libraries.
14548 build_libtool_libs=$enable_shared
14550 # Whether or not to build static libraries.
14551 build_old_libs=$enable_static
14553 # Whether or not to add -lc for building shared libraries.
14554 build_libtool_need_lc=$archive_cmds_need_lc_RC
14556 # Whether or not to optimize for fast installation.
14557 fast_install=$enable_fast_install
14560 host_alias=$host_alias
14563 # An echo program that does not interpret backslashes.
14568 AR_FLAGS=$lt_AR_FLAGS
14573 # A language-specific compiler.
14576 # Is the compiler the GNU C compiler?
14579 # The linker used to build libraries.
14582 # Whether we need hard or soft links.
14585 # A BSD-compatible nm program.
14588 # A sed program that does not truncate output.
14591 # A symbol stripping program
14594 # Used to examine libraries when file_magic_cmd begins "file"
14595 MAGIC_CMD=$MAGIC_CMD
14597 # Used on cygwin: DLL creation program.
14600 # Used on cygwin: object dumper.
14603 # Used on cygwin: assembler.
14606 # The name of the directory that contains temporary libtool files.
14609 # How to create reloadable object files.
14610 reload_flag=$lt_reload_flag
14611 reload_cmds=$lt_reload_cmds
14613 # How to pass a linker flag through the compiler.
14614 wl=$lt_lt_prog_compiler_wl_RC
14616 # Object file suffix (normally "o").
14617 objext="$ac_objext"
14619 # Old archive suffix (normally "a").
14622 # Executable file suffix (normally "").
14625 # Additional compiler flags for building library objects.
14626 pic_flag=$lt_lt_prog_compiler_pic_RC
14629 # What is the maximum length of a command?
14630 max_cmd_len=$lt_cv_sys_max_cmd_len
14632 # Does compiler simultaneously support -c and -o options?
14633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14635 # Must we lock files when doing compilation ?
14636 need_locks=$lt_need_locks
14638 # Do we need the lib prefix for modules?
14639 need_lib_prefix=$need_lib_prefix
14641 # Do we need a version for libraries?
14642 need_version=$need_version
14644 # Whether dlopen is supported.
14645 dlopen_support=$enable_dlopen
14647 # Whether dlopen of programs is supported.
14648 dlopen_self=$enable_dlopen_self
14650 # Whether dlopen of statically linked programs is supported.
14651 dlopen_self_static=$enable_dlopen_self_static
14653 # Compiler flag to prevent dynamic linking.
14654 link_static_flag=$lt_lt_prog_compiler_static_RC
14656 # Compiler flag to turn off builtin functions.
14657 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14659 # Compiler flag to allow reflexive dlopens.
14660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14662 # Compiler flag to generate shared objects directly from archives.
14663 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14665 # Compiler flag to generate thread-safe objects.
14666 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14668 # Library versioning type.
14669 version_type=$version_type
14671 # Format of library name prefix.
14672 libname_spec=$lt_libname_spec
14674 # List of archive names. First name is the real one, the rest are links.
14675 # The last name is the one that the linker finds with -lNAME.
14676 library_names_spec=$lt_library_names_spec
14678 # The coded name of the library, if different from the real name.
14679 soname_spec=$lt_soname_spec
14681 # Commands used to build and install an old-style archive.
14683 old_archive_cmds=$lt_old_archive_cmds_RC
14684 old_postinstall_cmds=$lt_old_postinstall_cmds
14685 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14687 # Create an old-style archive from a shared archive.
14688 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14690 # Create a temporary old-style archive to link instead of a shared archive.
14691 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14693 # Commands used to build and install a shared archive.
14694 archive_cmds=$lt_archive_cmds_RC
14695 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14696 postinstall_cmds=$lt_postinstall_cmds
14697 postuninstall_cmds=$lt_postuninstall_cmds
14699 # Commands to strip libraries.
14700 old_striplib=$lt_old_striplib
14701 striplib=$lt_striplib
14703 # Dependencies to place before the objects being linked to create a
14705 predep_objects=$lt_predep_objects_RC
14707 # Dependencies to place after the objects being linked to create a
14709 postdep_objects=$lt_postdep_objects_RC
14711 # Dependencies to place before the objects being linked to create a
14713 predeps=$lt_predeps_RC
14715 # Dependencies to place after the objects being linked to create a
14717 postdeps=$lt_postdeps_RC
14719 # The library search path used internally by the compiler when linking
14720 # a shared library.
14721 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14723 # Method to check whether dependent libraries are shared objects.
14724 deplibs_check_method=$lt_deplibs_check_method
14726 # Command to use when deplibs_check_method == file_magic.
14727 file_magic_cmd=$lt_file_magic_cmd
14729 # Flag that allows shared libraries with undefined symbols to be built.
14730 allow_undefined_flag=$lt_allow_undefined_flag_RC
14732 # Flag that forces no undefined symbols.
14733 no_undefined_flag=$lt_no_undefined_flag_RC
14735 # Commands used to finish a libtool library installation in a directory.
14736 finish_cmds=$lt_finish_cmds
14738 # Same as above, but a single script fragment to be evaled but not shown.
14739 finish_eval=$lt_finish_eval
14741 # Take the output of nm and produce a listing of raw symbols and C names.
14742 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14744 # Transform the output of nm in a proper C declaration
14745 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14747 # Transform the output of nm in a C name address pair
14748 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14750 # This is the shared library runtime path variable.
14751 runpath_var=$runpath_var
14753 # This is the shared library path variable.
14754 shlibpath_var=$shlibpath_var
14756 # Is shlibpath searched before the hard-coded library search path?
14757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14759 # How to hardcode a shared library path into an executable.
14760 hardcode_action=$hardcode_action_RC
14762 # Whether we should hardcode library paths into libraries.
14763 hardcode_into_libs=$hardcode_into_libs
14765 # Flag to hardcode \$libdir into a binary during linking.
14766 # This must work even if \$libdir does not exist.
14767 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14769 # Whether we need a single -rpath flag with a separated argument.
14770 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14772 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
14773 # resulting binary.
14774 hardcode_direct=$hardcode_direct_RC
14776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14777 # resulting binary.
14778 hardcode_minus_L=$hardcode_minus_L_RC
14780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14781 # the resulting binary.
14782 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14784 # Variables whose values should be saved in libtool wrapper scripts and
14785 # restored at relink time.
14786 variables_saved_for_relink="$variables_saved_for_relink"
14788 # Whether libtool must link a program against all its dependency libraries.
14789 link_all_deplibs=$link_all_deplibs_RC
14791 # Compile-time system search path for libraries
14792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14794 # Run-time system search path for libraries
14795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14797 # Fix the shell variable \$srcfile for the compiler.
14798 fix_srcfile_path="$fix_srcfile_path_RC"
14800 # Set to yes if exported symbols are required.
14801 always_export_symbols=$always_export_symbols_RC
14803 # The commands to list exported symbols.
14804 export_symbols_cmds=$lt_export_symbols_cmds_RC
14806 # The commands to extract the exported symbol list from a shared archive.
14807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14809 # Symbols that should not be listed in the preloaded symbols.
14810 exclude_expsyms=$lt_exclude_expsyms_RC
14812 # Symbols that must always be exported.
14813 include_expsyms=$lt_include_expsyms_RC
14815 # ### END LIBTOOL TAG CONFIG: $tagname
14821 # If there is no Makefile yet, we rely on a make rule to execute
14822 # `config.status --recheck' to rerun these tests and create the
14823 # libtool script then.
14824 test -f Makefile && make "$ltmain"
14829 ac_cpp='$CPP $CPPFLAGS'
14830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14840 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14841 { (exit 1); exit 1; }; }
14845 # Append the new tag name to the list of available tags.
14846 available_tags="$available_tags $tagname"
14851 # Now substitute the updated list of available tags.
14852 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14853 mv "${ofile}T" "$ofile"
14857 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14858 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14859 { (exit 1); exit 1; }; }
14865 # This can be used to rebuild libtool when needed
14866 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14868 # Always use our own libtool.
14869 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
14871 # Prevent multiple expansion
14887 ac_cpp='$CPP $CPPFLAGS'
14888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14909 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14911 # find the maximum length of command line arguments
14912 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14913 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14914 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 # On DJGPP, this test can blow up pretty badly due to problems in libc
14923 # (any single argument exceeding 2000 bytes causes a buffer overrun
14924 # during glob expansion). Even if it were fixed, the result of this
14925 # check would be larger than it should be.
14926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14930 # Under GNU Hurd, this test is not required because there is
14931 # no limit to the length of command line arguments.
14932 # Libtool will interpret -1 as no limit whatsoever
14933 lt_cv_sys_max_cmd_len=-1;
14937 # If test is not a shell built-in, we'll probably end up computing a
14938 # maximum length that is only half of the actual maximum length, but
14940 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
14941 = "XX$testring") >/dev/null 2>&1 &&
14942 new_result=`expr "X$testring" : ".*" 2>&1` &&
14943 lt_cv_sys_max_cmd_len=$new_result &&
14944 test $i != 17 # 1/2 MB should be enough
14947 testring=$testring$testring
14950 # Add a significant safety factor because C++ compilers can tack on massive
14951 # amounts of additional arguments before passing them to the linker.
14952 # It appears as though 1/2 is a usable value.
14953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14959 if test -n $lt_cv_sys_max_cmd_len ; then
14960 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14961 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14963 echo "$as_me:$LINENO: result: none" >&5
14964 echo "${ECHO_T}none" >&6
14970 # Check for command to grab the raw symbol name followed by C symbol from nm.
14971 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 # These are sane defaults that work on at least a few old systems.
14978 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14980 # Character class describing NM global symbol codes.
14981 symcode='[BCDEGRST]'
14983 # Regexp to match symbols that can be accessed directly from C.
14984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14986 # Transform the above into a raw symbol and a C symbol.
14987 symxfrm='\1 \2\3 \3'
14989 # Transform an extracted symbol line into a proper C declaration
14990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14992 # Transform an extracted symbol line into symbol name and symbol address
14993 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'"
14995 # Define system-specific variables.
15000 cygwin* | mingw* | pw32*)
15001 symcode='[ABCDGISTW]'
15003 hpux*) # Its linker distinguishes data from code symbols
15004 if test "$host_cpu" = ia64; then
15005 symcode='[ABCDEGRST]'
15007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15008 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'"
15010 irix* | nonstopux*)
15011 symcode='[BCDEGRST]'
15021 # Handle CRLF in mingw tool chain
15025 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15029 # If we're using GNU nm, then use its standard symbol codes.
15030 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
15031 symcode='[ABCDGISTW]'
15034 # Try without a prefix undercore, then with it.
15035 for ac_symprfx in "" "_"; do
15037 # Write the raw and C identifiers.
15038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
15040 # Check to see that the pipe works correctly.
15044 cat > conftest.$ac_ext <<EOF
15049 void nm_test_func(){}
15053 int main(){nm_test_var='a';nm_test_func();return(0);}
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; then
15061 # Now try to grab the symbols.
15063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && test -s "$nlist"; then
15068 # Try sorting and uniquifying the output.
15069 if sort "$nlist" | uniq > "$nlist"T; then
15070 mv -f "$nlist"T "$nlist"
15075 # Make sure that we snagged all the symbols we need.
15076 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
15077 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
15078 cat <<EOF > conftest.$ac_ext
15084 # Now generate the symbol file.
15085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
15087 cat <<EOF >> conftest.$ac_ext
15088 #if defined (__STDC__) && __STDC__
15089 # define lt_ptr_t void *
15091 # define lt_ptr_t char *
15095 /* The mapping between symbol names and symbols. */
15100 lt_preloaded_symbols[] =
15103 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
15104 cat <<\EOF >> conftest.$ac_ext
15112 # Now try linking the two files.
15113 mv conftest.$ac_objext conftstm.$ac_objext
15114 lt_save_LIBS="$LIBS"
15115 lt_save_CFLAGS="$CFLAGS"
15116 LIBS="conftstm.$ac_objext"
15117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119 (eval $ac_link) 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15125 LIBS="$lt_save_LIBS"
15126 CFLAGS="$lt_save_CFLAGS"
15128 echo "cannot find nm_test_func in $nlist" >&5
15131 echo "cannot find nm_test_var in $nlist" >&5
15134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15137 echo "$progname: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15140 rm -f conftest* conftst*
15142 # Do not use the global_symbol_pipe unless it works.
15143 if test "$pipe_works" = yes; then
15146 lt_cv_sys_global_symbol_pipe=
15152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15153 lt_cv_sys_global_symbol_to_cdecl=
15155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15156 echo "$as_me:$LINENO: result: failed" >&5
15157 echo "${ECHO_T}failed" >&6
15159 echo "$as_me:$LINENO: result: ok" >&5
15160 echo "${ECHO_T}ok" >&6
15163 echo "$as_me:$LINENO: checking for objdir" >&5
15164 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15165 if test "${lt_cv_objdir+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 rm -f .libs 2>/dev/null
15169 mkdir .libs 2>/dev/null
15170 if test -d .libs; then
15173 # MS-DOS does not allow filenames that begin with a dot.
15176 rmdir .libs 2>/dev/null
15178 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15179 echo "${ECHO_T}$lt_cv_objdir" >&6
15180 objdir=$lt_cv_objdir
15188 # AIX sometimes has problems with the GCC collect2 program. For some
15189 # reason, if we set the COLLECT_NAMES environment variable, the problems
15190 # vanish in a puff of smoke.
15191 if test "X${COLLECT_NAMES+set}" != Xset; then
15193 export COLLECT_NAMES
15198 # Sed substitution that helps us do robust quoting. It backslashifies
15199 # metacharacters that are still active within double-quoted strings.
15200 Xsed='sed -e s/^X//'
15201 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
15203 # Same as above, but do not quote variable references.
15204 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
15206 # Sed substitution to delay expansion of an escaped shell variable in a
15207 # double_quote_subst'ed string.
15208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15210 # Sed substitution to avoid accidental globbing in evaled expressions
15211 no_glob_subst='s/\*/\\\*/g'
15216 # Global variables:
15217 default_ofile=libtool
15218 can_build_shared=yes
15220 # All known linkers require a `.a' archive for static linking (except M$VC,
15221 # which needs '.lib').
15223 ltmain="$ac_aux_dir/ltmain.sh"
15224 ofile="$default_ofile"
15225 with_gnu_ld="$lt_cv_prog_gnu_ld"
15227 if test -n "$ac_tool_prefix"; then
15228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15230 echo "$as_me:$LINENO: checking for $ac_word" >&5
15231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15232 if test "${ac_cv_prog_RANLIB+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 if test -n "$RANLIB"; then
15236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239 for as_dir in $PATH
15242 test -z "$as_dir" && as_dir=.
15243 for ac_exec_ext in '' $ac_executable_extensions; do
15244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 RANLIB=$ac_cv_prog_RANLIB
15255 if test -n "$RANLIB"; then
15256 echo "$as_me:$LINENO: result: $RANLIB" >&5
15257 echo "${ECHO_T}$RANLIB" >&6
15259 echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6
15264 if test -z "$ac_cv_prog_RANLIB"; then
15265 ac_ct_RANLIB=$RANLIB
15266 # Extract the first word of "ranlib", so it can be a program name with args.
15267 set dummy ranlib; ac_word=$2
15268 echo "$as_me:$LINENO: checking for $ac_word" >&5
15269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15270 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 if test -n "$ac_ct_RANLIB"; then
15274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15277 for as_dir in $PATH
15280 test -z "$as_dir" && as_dir=.
15281 for ac_exec_ext in '' $ac_executable_extensions; do
15282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15283 ac_cv_prog_ac_ct_RANLIB="ranlib"
15284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15290 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15294 if test -n "$ac_ct_RANLIB"; then
15295 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15296 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15298 echo "$as_me:$LINENO: result: no" >&5
15299 echo "${ECHO_T}no" >&6
15302 RANLIB=$ac_ct_RANLIB
15304 RANLIB="$ac_cv_prog_RANLIB"
15307 if test -n "$ac_tool_prefix"; then
15308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15309 set dummy ${ac_tool_prefix}strip; ac_word=$2
15310 echo "$as_me:$LINENO: checking for $ac_word" >&5
15311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15312 if test "${ac_cv_prog_STRIP+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 if test -n "$STRIP"; then
15316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319 for as_dir in $PATH
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
15324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15334 STRIP=$ac_cv_prog_STRIP
15335 if test -n "$STRIP"; then
15336 echo "$as_me:$LINENO: result: $STRIP" >&5
15337 echo "${ECHO_T}$STRIP" >&6
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15344 if test -z "$ac_cv_prog_STRIP"; then
15346 # Extract the first word of "strip", so it can be a program name with args.
15347 set dummy strip; ac_word=$2
15348 echo "$as_me:$LINENO: checking for $ac_word" >&5
15349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 if test -n "$ac_ct_STRIP"; then
15354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15360 test -z "$as_dir" && as_dir=.
15361 for ac_exec_ext in '' $ac_executable_extensions; do
15362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363 ac_cv_prog_ac_ct_STRIP="strip"
15364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15370 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15374 if test -n "$ac_ct_STRIP"; then
15375 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15376 echo "${ECHO_T}$ac_ct_STRIP" >&6
15378 echo "$as_me:$LINENO: result: no" >&5
15379 echo "${ECHO_T}no" >&6
15384 STRIP="$ac_cv_prog_STRIP"
15389 old_CFLAGS="$CFLAGS"
15391 # Set sane defaults for various variables
15392 test -z "$AR" && AR=ar
15393 test -z "$AR_FLAGS" && AR_FLAGS=cru
15394 test -z "$AS" && AS=as
15395 test -z "$CC" && CC=cc
15396 test -z "$LTCC" && LTCC=$CC
15397 test -z "$DLLTOOL" && DLLTOOL=dlltool
15398 test -z "$LD" && LD=ld
15399 test -z "$LN_S" && LN_S="ln -s"
15400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15401 test -z "$NM" && NM=nm
15402 test -z "$SED" && SED=sed
15403 test -z "$OBJDUMP" && OBJDUMP=objdump
15404 test -z "$RANLIB" && RANLIB=:
15405 test -z "$STRIP" && STRIP=:
15406 test -z "$ac_objext" && ac_objext=o
15408 # Determine commands to create old-style static archives.
15409 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15410 old_postinstall_cmds='chmod 644 $oldlib'
15411 old_postuninstall_cmds=
15413 if test -n "$RANLIB"; then
15416 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
15419 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
15422 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15425 # Only perform the check for file, if the check method requires it
15426 case $deplibs_check_method in
15428 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15429 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15430 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15439 lt_save_MAGIC_CMD="$MAGIC_CMD"
15440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15442 for ac_dir in $ac_dummy; do
15444 test -z "$ac_dir" && ac_dir=.
15445 if test -f $ac_dir/${ac_tool_prefix}file; then
15446 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15447 if test -n "$file_magic_test_file"; then
15448 case $deplibs_check_method in
15450 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15453 egrep "$file_magic_regex" > /dev/null; then
15458 *** Warning: the command libtool uses to detect shared libraries,
15459 *** $file_magic_cmd, produces output that libtool cannot recognize.
15460 *** The result is that libtool may fail to recognize shared libraries
15461 *** as such. This will affect the creation of libtool libraries that
15462 *** depend on shared libraries, but programs linked with such libtool
15463 *** libraries will work regardless of this problem. Nevertheless, you
15464 *** may want to report the problem to your system manager and/or to
15465 *** bug-libtool@gnu.org
15475 MAGIC_CMD="$lt_save_MAGIC_CMD"
15480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15481 if test -n "$MAGIC_CMD"; then
15482 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15483 echo "${ECHO_T}$MAGIC_CMD" >&6
15485 echo "$as_me:$LINENO: result: no" >&5
15486 echo "${ECHO_T}no" >&6
15489 if test -z "$lt_cv_path_MAGIC_CMD"; then
15490 if test -n "$ac_tool_prefix"; then
15491 echo "$as_me:$LINENO: checking for file" >&5
15492 echo $ECHO_N "checking for file... $ECHO_C" >&6
15493 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15501 lt_save_MAGIC_CMD="$MAGIC_CMD"
15502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15504 for ac_dir in $ac_dummy; do
15506 test -z "$ac_dir" && ac_dir=.
15507 if test -f $ac_dir/file; then
15508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15509 if test -n "$file_magic_test_file"; then
15510 case $deplibs_check_method in
15512 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
15513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15515 egrep "$file_magic_regex" > /dev/null; then
15520 *** Warning: the command libtool uses to detect shared libraries,
15521 *** $file_magic_cmd, produces output that libtool cannot recognize.
15522 *** The result is that libtool may fail to recognize shared libraries
15523 *** as such. This will affect the creation of libtool libraries that
15524 *** depend on shared libraries, but programs linked with such libtool
15525 *** libraries will work regardless of this problem. Nevertheless, you
15526 *** may want to report the problem to your system manager and/or to
15527 *** bug-libtool@gnu.org
15537 MAGIC_CMD="$lt_save_MAGIC_CMD"
15542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15543 if test -n "$MAGIC_CMD"; then
15544 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15545 echo "${ECHO_T}$MAGIC_CMD" >&6
15547 echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6
15561 enable_win32_dll=no
15563 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15564 if test "${enable_libtool_lock+set}" = set; then
15565 enableval="$enable_libtool_lock"
15568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15571 # Check whether --with-pic or --without-pic was given.
15572 if test "${with_pic+set}" = set; then
15573 withval="$with_pic"
15574 pic_mode="$withval"
15578 test -z "$pic_mode" && pic_mode=default
15580 # Use C for the default configuration in the libtool script
15584 ac_cpp='$CPP $CPPFLAGS'
15585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15590 # Source file extension for C test sources.
15593 # Object file extension for compiled C test sources.
15597 # Code to be used in simple compile tests
15598 lt_simple_compile_test_code="int some_variable = 0;"
15600 # Code to be used in simple link tests
15601 lt_simple_link_test_code='main(){return(0);}'
15604 # If no C compiler was specified, use CC.
15607 # Allow CC to be a program name with arguments.
15613 # Check for any special shared library compilation flags.
15616 if test "$GCC" = no; then
15619 lt_prog_cc_shlib='-belf'
15623 if test -n "$lt_prog_cc_shlib"; then
15624 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
15625 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
15626 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
15628 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
15629 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
15630 lt_cv_prog_cc_can_build_shared=no
15636 # Check to make sure the static flag actually works.
15638 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
15639 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
15640 if test "${lt_prog_compiler_static_works+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 lt_prog_compiler_static_works=no
15644 save_LDFLAGS="$LDFLAGS"
15645 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
15646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15648 # The compiler can only warn and ignore the option if not recognized
15649 # So say no if there are warnings
15650 if test -s conftest.err; then
15651 # Append any errors to the config.log.
15652 cat conftest.err 1>&5
15654 lt_prog_compiler_static_works=yes
15658 LDFLAGS="$save_LDFLAGS"
15661 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15662 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15664 if test x"$lt_prog_compiler_static_works" = xyes; then
15667 lt_prog_compiler_static=
15673 lt_prog_compiler_no_builtin_flag=
15675 if test "$GCC" = yes; then
15676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 lt_cv_prog_compiler_rtti_exceptions=no
15684 ac_outfile=conftest.$ac_objext
15685 save_CFLAGS="$CFLAGS"
15686 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
15687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15688 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15689 # The compiler can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 if test -s conftest.err; then
15692 # Append any errors to the config.log.
15693 cat conftest.err 1>&5
15695 lt_cv_prog_compiler_rtti_exceptions=yes
15699 CFLAGS="$save_CFLAGS"
15702 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15703 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15713 lt_prog_compiler_wl=
15714 lt_prog_compiler_pic=
15715 lt_prog_compiler_static=
15717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15720 if test "$GCC" = yes; then
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_static='-static'
15726 # All AIX code is PIC.
15727 if test "$host_cpu" = ia64; then
15728 # AIX 5 now supports IA64 processor
15729 lt_prog_compiler_static='-Bstatic'
15734 # FIXME: we need at least 68020 code to build shared libraries, but
15735 # adding the `-m68020' flag to GCC prevents building anything better,
15737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15741 # PIC is the default for these OSes.
15744 cygwin* | mingw* | pw32* | os2*)
15745 # This hack is so that the source file can tell whether it is being
15746 # built for inclusion in a dll (and should export symbols for example).
15747 lt_prog_compiler_pic='-DDLL_EXPORT'
15750 darwin* | rhapsody*)
15751 # PIC is the default on this platform
15752 # Common symbols not allowed in MH_DYLIB files
15753 lt_prog_compiler_pic='-fno-common'
15757 # Just because we use GCC doesn't mean we suddenly get shared libraries
15758 # on systems that don't support them.
15759 lt_prog_compiler_can_build_shared=no
15764 if test -d /usr/nec; then
15765 lt_prog_compiler_pic=-Kconform_pic
15770 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
15771 if test "$host_cpu" != ia64; then
15772 lt_prog_compiler_pic='-fPIC'
15777 lt_prog_compiler_pic='-fPIC'
15781 # PORTME Check for flag to pass linker flags through the system compiler.
15784 lt_prog_compiler_wl='-Wl,'
15785 if test "$host_cpu" = ia64; then
15786 # AIX 5 now supports IA64 processor
15787 lt_prog_compiler_static='-Bstatic'
15789 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15793 cygwin* | mingw* | pw32* | os2*)
15794 # This hack is so that the source file can tell whether it is being
15795 # built for inclusion in a dll (and should export symbols for example).
15796 lt_prog_compiler_pic='-DDLL_EXPORT'
15799 hpux9* | hpux10* | hpux11*)
15800 lt_prog_compiler_wl='-Wl,'
15801 if test "$host_cpu" != ia64; then
15802 lt_prog_compiler_pic='+Z'
15804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15805 lt_prog_compiler_static='${wl}-a ${wl}archive'
15808 irix5* | irix6* | nonstopux*)
15809 lt_prog_compiler_wl='-Wl,'
15810 # PIC (with -KPIC) is the default.
15811 lt_prog_compiler_static='-non_shared'
15815 lt_prog_compiler_pic='-KPIC'
15816 lt_prog_compiler_static='-Bstatic'
15819 osf3* | osf4* | osf5*)
15820 lt_prog_compiler_wl='-Wl,'
15821 # All OSF/1 code is PIC.
15822 lt_prog_compiler_static='-non_shared'
15826 lt_prog_compiler_pic='-Kpic'
15827 lt_prog_compiler_static='-dn'
15831 lt_prog_compiler_wl='-Wl,'
15832 lt_prog_compiler_pic='-KPIC'
15833 lt_prog_compiler_static='-Bstatic'
15837 lt_prog_compiler_wl='-Qoption ld '
15838 lt_prog_compiler_pic='-PIC'
15839 lt_prog_compiler_static='-Bstatic'
15842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15843 if test "x$host_vendor" = xsni; then
15844 lt_prog_compiler_wl='-LD'
15846 lt_prog_compiler_wl='-Wl,'
15848 lt_prog_compiler_pic='-KPIC'
15849 lt_prog_compiler_static='-Bstatic'
15853 if test -d /usr/nec ;then
15854 lt_prog_compiler_pic='-Kconform_pic'
15855 lt_prog_compiler_static='-Bstatic'
15860 lt_prog_compiler_pic='-pic'
15861 lt_prog_compiler_static='-Bstatic'
15865 lt_prog_compiler_can_build_shared=no
15870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15871 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15874 # Check to make sure the PIC flag actually works.
15876 if test -n "$lt_prog_compiler_pic"; then
15877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15879 if test "${lt_prog_compiler_pic_works+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 lt_prog_compiler_pic_works=no
15883 ac_outfile=conftest.$ac_objext
15884 save_CFLAGS="$CFLAGS"
15885 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
15886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
15888 # The compiler can only warn and ignore the option if not recognized
15889 # So say no if there are warnings
15890 if test -s conftest.err; then
15891 # Append any errors to the config.log.
15892 cat conftest.err 1>&5
15894 lt_prog_compiler_pic_works=yes
15898 CFLAGS="$save_CFLAGS"
15901 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15902 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
15904 if test x"$lt_prog_compiler_pic_works" = xyes; then
15905 case $lt_prog_compiler_pic in
15907 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15910 lt_prog_compiler_pic=
15911 lt_prog_compiler_can_build_shared=no
15916 # For platforms which do not support PIC, -DPIC is meaningless:
15918 lt_prog_compiler_pic=
15921 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15925 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15927 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 lt_cv_prog_compiler_c_o=no
15931 $rm -r conftest 2>/dev/null
15935 save_CFLAGS="$CFLAGS"
15936 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
15937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15939 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15940 # that will create temporary files in the current directory regardless of
15941 # the output directory. Thus, making CWD read-only will cause this test
15942 # to fail, enabling locking or at least warning the user not to do parallel
15946 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 if test -s out/conftest.err; then
15951 # Append any errors to the config.log.
15952 cat out/conftest.err 1>&5
15954 lt_cv_prog_compiler_c_o=yes
15957 CFLAGS="$save_CFLAGS"
15959 $rm conftest* out/*
15966 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15967 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15970 hard_links="nottested"
15971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15972 # do not overwrite the value of need_locks provided by the user
15973 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15979 ln conftest.a conftest.b 2>&5 || hard_links=no
15980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 echo "$as_me:$LINENO: result: $hard_links" >&5
15982 echo "${ECHO_T}$hard_links" >&6
15983 if test "$hard_links" = no; then
15984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15992 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15996 allow_undefined_flag=
15999 archive_cmds_need_lc=
16000 archive_expsym_cmds=
16001 old_archive_From_new_cmds=
16002 old_archive_from_expsyms_cmds=
16003 export_dynamic_flag_spec=
16004 whole_archive_flag_spec=
16005 thread_safe_flag_spec=
16006 hardcode_libdir_flag_spec=
16007 hardcode_libdir_separator=
16009 hardcode_minus_L=no
16010 hardcode_shlibpath_var=unsupported
16011 link_all_deplibs=unknown
16012 always_export_symbols=no
16013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
16014 # include_expsyms should be a list of space-separated symbols to be *always*
16015 # included in the symbol list
16017 # exclude_expsyms can be an egrep regular expression of symbols to exclude
16018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16020 # as well as any symbol that contains `d'.
16021 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16023 # platforms (ab)use it in PIC code, but their linkers get confused if
16024 # the symbol is explicitly referenced. Since portable code cannot
16025 # rely on this symbol name, it's probably fine to never include it in
16026 # preloaded symbol tables.
16027 extract_expsyms_cmds=
16030 cygwin* | mingw* | pw32*)
16031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16032 # When not using gcc, we currently assume that we are using
16033 # Microsoft Visual C++.
16034 if test "$GCC" != yes; then
16044 if test "$with_gnu_ld" = yes; then
16045 # If archive_cmds runs LD, not CC, wlarc should be empty
16048 # See if GNU ld supports shared libraries.
16050 aix3* | aix4* | aix5*)
16051 # On AIX/PPC, the GNU linker is very broken
16052 if test "$host_cpu" != ia64; then
16056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16057 *** to be unable to reliably create shared libraries on AIX.
16058 *** Therefore, libtool is disabling shared libraries support. If you
16059 *** really care for shared libraries, you may want to modify your PATH
16060 *** so that a non-GNU linker is found, and then restart.
16067 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)'
16068 hardcode_libdir_flag_spec='-L$libdir'
16069 hardcode_minus_L=yes
16071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16072 # that the semantics of dynamic libraries on AmigaOS, at least up
16073 # to version 4, is to share data among multiple programs linked
16074 # with the same dynamic library. Since this doesn't match the
16075 # behavior of shared libraries on other platforms, we can't use
16081 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16082 allow_undefined_flag=unsupported
16083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16084 # support --undefined. This deserves some investigation. FIXME
16085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091 cygwin* | mingw* | pw32*)
16092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
16093 # no search path for DLLs.
16094 hardcode_libdir_flag_spec='-L$libdir'
16095 allow_undefined_flag=unsupported
16096 always_export_symbols=yes
16098 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
16099 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
16100 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
16101 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
16102 else $CC -o impgen impgen.c ; fi)~
16103 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
16105 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
16107 # cygwin and mingw dlls have different entry points and sets of symbols
16109 # FIXME: what about values for MSVC?
16110 dll_entry=__cygwin_dll_entry@12
16111 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
16115 dll_entry=_DllMainCRTStartup@12
16116 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
16120 # mingw and cygwin differ, and it's simplest to just exclude the union
16121 # of the two symbol sets.
16122 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
16124 # recent cygwin and mingw systems supply a stub DllMain which the user
16125 # can override, but on older systems we have to supply one (in ltdll.c)
16126 if test "x$lt_cv_need_dllmain" = "xyes"; then
16127 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
16128 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
16129 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
16135 # Extract the symbol export list from an `--export-all' def file,
16136 # then regenerate the def file from the symbol export list, so that
16137 # the compiled dll only exports the symbol export list.
16138 # Be careful not to strip the DATA tag left by newer dlltools.
16139 export_symbols_cmds="$ltdll_cmds"'
16140 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
16141 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
16143 # If the export-symbols file already is a .def file (1st line
16144 # is EXPORTS), use it as is.
16145 # If DATA tags from a recent dlltool are present, honour them!
16146 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
16147 cp $export_symbols $output_objdir/$soname-def;
16149 echo EXPORTS > $output_objdir/$soname-def;
16151 cat $export_symbols | while read symbol; do
16152 set dummy \$symbol;
16154 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
16155 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
16157 _lt_hint=`expr 1 + \$_lt_hint`;
16161 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
16162 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
16163 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
16164 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
16165 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
16169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16173 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16179 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
16183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16184 *** create shared libraries on Solaris systems. Therefore, libtool
16185 *** is disabling shared libraries support. We urge you to upgrade GNU
16186 *** binutils to release 2.9.1 or newer. Another option is to modify
16187 *** your PATH or compiler configuration so that the native linker is
16188 *** used, and then restart.
16191 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_direct=yes
16203 hardcode_shlibpath_var=no
16207 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16216 if test "$ld_shlibs" = yes; then
16217 runpath_var=LD_RUN_PATH
16218 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
16219 export_dynamic_flag_spec='${wl}--export-dynamic'
16221 cygwin* | mingw* | pw32*)
16222 # dlltool doesn't understand --whole-archive et. al.
16223 whole_archive_flag_spec=
16226 # ancient GNU ld didn't support --whole-archive et. al.
16227 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
16228 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16230 whole_archive_flag_spec=
16236 # PORTME fill in a description of your system's linker (not GNU ld)
16239 allow_undefined_flag=unsupported
16240 always_export_symbols=yes
16241 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'
16242 # Note: this linker hardcodes the directories in LIBPATH if there
16243 # are no directories specified by -L.
16244 hardcode_minus_L=yes
16245 if test "$GCC" = yes && test -z "$link_static_flag"; then
16246 # Neither direct hardcoding nor static linking is supported with a
16248 hardcode_direct=unsupported
16253 if test "$host_cpu" = ia64; then
16254 # On IA64, the linker does run time linking by default, so we don't
16255 # have to do anything special.
16256 aix_use_runtimelinking=no
16257 exp_sym_flag='-Bexport'
16260 # If we're using GNU nm, then we don't want the "-C" option.
16261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16262 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
16263 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'
16265 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'
16268 # KDE requires run time linking. Make it the default.
16269 aix_use_runtimelinking=yes
16270 exp_sym_flag='-bexport'
16271 no_entry_flag='-bnoentry'
16274 # When large executables or shared objects are built, AIX ld can
16275 # have problems creating the table of contents. If linking a library
16276 # or program results in "error TOC overflow" add -mminimal-toc to
16277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16281 hardcode_direct=yes
16282 hardcode_libdir_separator=':'
16283 link_all_deplibs=yes
16285 if test "$GCC" = yes; then
16286 case $host_os in aix4.012|aix4.012.*)
16287 # We only want to do this on AIX 4.2 and lower, the check
16288 # below for broken collect2 doesn't work under 4.3+
16289 collect2name=`${CC} -print-prog-name=collect2`
16290 if test -f "$collect2name" && \
16291 strings "$collect2name" | grep resolve_lib_name >/dev/null
16293 # We have reworked collect2
16294 hardcode_direct=yes
16296 # We have old collect2
16297 hardcode_direct=unsupported
16298 # It fails to find uninstalled libraries when the uninstalled
16299 # path is not listed in the libpath. Setting hardcode_minus_L
16300 # to unsupported forces relinking
16301 hardcode_minus_L=yes
16302 hardcode_libdir_flag_spec='-L$libdir'
16303 hardcode_libdir_separator=
16306 shared_flag='-shared'
16309 if test "$host_cpu" = ia64; then
16310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16311 # chokes on -Wl,-G. The following line is correct:
16314 if test "$aix_use_runtimelinking" = yes; then
16315 shared_flag='-qmkshrobj ${wl}-G'
16317 shared_flag='-qmkshrobj'
16322 # Let the compiler handle the export list.
16323 always_export_symbols=no
16324 if test "$aix_use_runtimelinking" = yes; then
16325 # Warning - without using the other runtime loading flags (-brtl),
16326 # -berok will link without error, but may produce a broken library.
16327 allow_undefined_flag='-berok'
16328 # Determine the default libpath from the value encoded in an empty executable.
16329 cat >conftest.$ac_ext <<_ACEOF
16330 #line $LINENO "configure"
16331 #include "confdefs.h"
16333 #ifdef F77_DUMMY_MAIN
16334 # ifdef __cplusplus
16337 int F77_DUMMY_MAIN() { return 1; }
16347 rm -f conftest.$ac_objext conftest$ac_exeext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349 (eval $ac_link) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -s conftest$ac_exeext'
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16362 # Check for a 64-bit object if we didn't find anything.
16363 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16366 echo "$as_me: failed program was:" >&5
16367 cat conftest.$ac_ext >&5
16369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16372 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16373 archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
16374 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16376 if test "$host_cpu" = ia64; then
16377 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16378 allow_undefined_flag="-z nodefs"
16379 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16384 #include "confdefs.h"
16386 #ifdef F77_DUMMY_MAIN
16387 # ifdef __cplusplus
16390 int F77_DUMMY_MAIN() { return 1; }
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -s conftest$ac_exeext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16415 # Check for a 64-bit object if we didn't find anything.
16416 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16419 echo "$as_me: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16425 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16426 # Warning - without using the other run time loading flags,
16427 # -berok will link without error, but may produce a broken library.
16428 no_undefined_flag=' ${wl}-bernotok'
16429 allow_undefined_flag=' ${wl}-berok'
16430 # -bexpall does not export symbols beginning with underscore (_)
16431 always_export_symbols=yes
16432 # Exported symbols can be pulled into shared objects from archives
16433 whole_archive_flag_spec=' '
16434 archive_cmds_need_lc=yes
16435 # This is similar to how AIX traditionally builds it's shared libraries.
16436 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16442 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)'
16443 hardcode_libdir_flag_spec='-L$libdir'
16444 hardcode_minus_L=yes
16445 # see comment about different semantics on the GNU ld section
16450 export_dynamic_flag_spec=-rdynamic
16453 cygwin* | mingw* | pw32*)
16454 # When not using gcc, we currently assume that we are using
16455 # Microsoft Visual C++.
16456 # hardcode_libdir_flag_spec is actually meaningless, as there is
16457 # no search path for DLLs.
16458 hardcode_libdir_flag_spec=' '
16459 allow_undefined_flag=unsupported
16460 # Tell ltmain to make .lib files, not .a files.
16462 # FIXME: Setting linknames here is a bad hack.
16463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16464 # The linker will automatically build a .lib file if we build a DLL.
16465 old_archive_From_new_cmds='true'
16466 # FIXME: Should let the user specify the lib program.
16467 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16468 fix_srcfile_path='`cygpath -w "$srcfile"`'
16471 darwin* | rhapsody*)
16473 rhapsody* | darwin1.[012])
16474 allow_undefined_flag='-undefined suppress'
16477 allow_undefined_flag='-flat_namespace -undefined suppress'
16481 # FIXME: Relying on posixy $() will cause problems for
16482 # cross-compilation, but unfortunately the echo tests do not
16483 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16484 # `"' quotes if we put them in here... so don't!
16485 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
16486 # We need to add '_' to the symbols in $export_symbols first
16487 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
16488 hardcode_direct=yes
16489 hardcode_shlibpath_var=no
16490 whole_archive_flag_spec='-all_load $convenience'
16494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_libdir_flag_spec='-L$libdir'
16496 hardcode_shlibpath_var=no
16503 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16504 # support. Future versions do this automatically, but an explicit c++rt0.o
16505 # does not break anything, and helps significantly (at the cost of a little
16508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16509 hardcode_libdir_flag_spec='-R$libdir'
16510 hardcode_direct=yes
16511 hardcode_shlibpath_var=no
16514 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct=yes
16518 hardcode_minus_L=yes
16519 hardcode_shlibpath_var=no
16522 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16524 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16525 hardcode_libdir_flag_spec='-R$libdir'
16526 hardcode_direct=yes
16527 hardcode_shlibpath_var=no
16530 hpux9* | hpux10* | hpux11*)
16531 if test "$GCC" = yes; then
16534 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'
16537 if test "$host_cpu" = ia64; then
16538 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16547 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'
16550 if test "$host_cpu" = ia64; then
16551 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16558 if test "$host_cpu" = ia64; then
16559 hardcode_libdir_flag_spec='-L$libdir'
16561 hardcode_shlibpath_var=no
16563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16564 hardcode_libdir_separator=:
16565 hardcode_direct=yes
16567 # hardcode_minus_L: Not really in the search PATH,
16568 # but as the default location of the library.
16569 hardcode_minus_L=yes
16570 export_dynamic_flag_spec='${wl}-E'
16573 irix5* | irix6* | nonstopux*)
16574 if test "$GCC" = yes; then
16575 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'
16577 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'
16579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator=:
16581 link_all_deplibs=yes
16585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16590 hardcode_libdir_flag_spec='-R$libdir'
16591 hardcode_direct=yes
16592 hardcode_shlibpath_var=no
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct=yes
16598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16599 hardcode_libdir_separator=:
16600 hardcode_shlibpath_var=no
16604 hardcode_direct=yes
16605 hardcode_shlibpath_var=no
16607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16610 export_dynamic_flag_spec='${wl}-E'
16613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_libdir_flag_spec='-R$libdir'
16618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16626 hardcode_libdir_flag_spec='-L$libdir'
16627 hardcode_minus_L=yes
16628 allow_undefined_flag=unsupported
16629 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'
16630 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16634 if test "$GCC" = yes; then
16635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16636 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'
16638 allow_undefined_flag=' -expect_unresolved \*'
16639 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'
16641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16642 hardcode_libdir_separator=:
16645 osf4* | osf5*) # as osf3* with the addition of -msym flag
16646 if test "$GCC" = yes; then
16647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16648 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'
16649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16651 allow_undefined_flag=' -expect_unresolved \*'
16652 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'
16653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16654 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16656 # Both c and cxx compiler support -rpath directly
16657 hardcode_libdir_flag_spec='-rpath $libdir'
16659 hardcode_libdir_separator=:
16663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_shlibpath_var=no
16665 export_dynamic_flag_spec='${wl}-Bexport'
16666 runpath_var=LD_RUN_PATH
16667 hardcode_runpath_var=yes
16671 no_undefined_flag=' -z text'
16672 if test "$GCC" = yes; then
16673 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16681 hardcode_libdir_flag_spec='-R$libdir'
16682 hardcode_shlibpath_var=no
16684 solaris2.[0-5] | solaris2.[0-5].*) ;;
16685 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16686 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16688 link_all_deplibs=yes
16692 if test "x$host_vendor" = xsequent; then
16693 # Use $CC to link under sequent, because it throws in some extra .o
16694 # files that make .init and .fini sections work.
16695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_libdir_flag_spec='-L$libdir'
16700 hardcode_direct=yes
16701 hardcode_minus_L=yes
16702 hardcode_shlibpath_var=no
16706 if test "x$host_vendor" = xsni; then
16707 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
16708 hardcode_direct=yes # is this really true???
16710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16713 runpath_var='LD_RUN_PATH'
16714 hardcode_shlibpath_var=no
16718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_shlibpath_var=no
16720 export_dynamic_flag_spec='-Bexport'
16724 if test -d /usr/nec; then
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_shlibpath_var=no
16727 runpath_var=LD_RUN_PATH
16728 hardcode_runpath_var=yes
16734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct=yes
16736 hardcode_minus_L=no
16737 hardcode_shlibpath_var=no
16738 hardcode_runpath_var=yes
16739 runpath_var=LD_RUN_PATH
16742 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16743 no_undefined_flag='${wl}-z ${wl}text'
16744 if test "$GCC" = yes; then
16745 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 runpath_var='LD_RUN_PATH'
16750 hardcode_shlibpath_var=no
16754 no_undefined_flag=' -z text'
16755 # $CC -shared without GNU ld will not create a library from C++
16756 # object files and a static libstdc++, better avoid it by now
16757 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16759 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16760 hardcode_libdir_flag_spec=
16761 hardcode_shlibpath_var=no
16762 runpath_var='LD_RUN_PATH'
16766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_libdir_flag_spec='-L$libdir'
16768 hardcode_shlibpath_var=no
16777 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16778 echo "${ECHO_T}$ld_shlibs" >&6
16779 test "$ld_shlibs" = no && can_build_shared=no
16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782 if test "$GCC" = yes; then
16783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16787 # Do we need to explicitly link libc?
16789 archive_cmds_need_lc=yes
16790 if test "$enable_shared" = yes && test "$GCC" = yes; then
16791 case $archive_cmds in
16793 # FIXME: we may have to deal with multi-command sequences.
16796 # Test whether the compiler implicitly links with -lc since on some
16797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16798 # to ld, don't add -lc before -lgcc.
16799 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16800 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16802 echo 'static int dummy;' > conftest.$ac_ext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } 2>conftest.err; then
16811 libobjs=conftest.$ac_objext
16813 wl=$lt_prog_compiler_wl
16819 lt_save_allow_undefined_flag=$allow_undefined_flag
16820 allow_undefined_flag=
16821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16822 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }
16827 archive_cmds_need_lc=no
16829 archive_cmds_need_lc=yes
16831 allow_undefined_flag=$lt_save_allow_undefined_flag
16833 cat conftest.err 1>&5
16836 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16837 echo "${ECHO_T}$archive_cmds_need_lc" >&6
16842 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16845 if test -n "$hardcode_libdir_flag_spec" || \
16846 test -n "$runpath_var "; then
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no &&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action=relink
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action=immediate
16862 # We cannot hardcode anything, or else we can only hardcode existing
16864 hardcode_action=unsupported
16866 echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867 echo "${ECHO_T}$hardcode_action" >&6
16869 if test "$hardcode_action" = relink; then
16870 # Fast installation is not supported
16871 enable_fast_install=no
16872 elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no; then
16874 # Fast installation is not necessary
16875 enable_fast_install=needless
16880 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16882 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16885 echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6
16888 echo "$as_me:$LINENO: result: no" >&5
16889 echo "${ECHO_T}no" >&6
16892 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16893 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16894 library_names_spec=
16895 libname_spec='lib$name'
16898 postuninstall_cmds=
16902 shlibpath_overrides_runpath=unknown
16904 dynamic_linker="$host_os ld.so"
16905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16907 need_lib_prefix=unknown
16908 hardcode_into_libs=no
16910 # when you set need_version to no, make sure it does not cause -set_version
16911 # flags to be left without arguments
16912 need_version=unknown
16917 library_names_spec='${libname}${release}.so$versuffix $libname.a'
16918 shlibpath_var=LIBPATH
16920 # AIX 3 has no versioning support, so we append a major version to the name.
16921 soname_spec='${libname}${release}.so$major'
16926 if test "$host_cpu" = ia64; then
16927 # AIX 5 supports IA64
16928 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
16929 shlibpath_var=LD_LIBRARY_PATH
16931 # With GCC up to 2.95.x, collect2 would create an import file
16932 # for dependence libraries. The import file would start with
16933 # the line `#! .'. This would cause the generated library to
16934 # depend on `.', always an invalid library. This was fixed in
16935 # development snapshots of GCC prior to 3.0.
16937 aix4 | aix4.[01] | aix4.[01].*)
16938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16943 can_build_shared=no
16947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16948 # soname into executable. Probably we can add versioning support to
16949 # collect2, so additional links can be useful in future.
16950 if test "$aix_use_runtimelinking" = yes; then
16951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16952 # instead of lib<name>.a to let people know that these are not
16953 # typical AIX shared libraries.
16954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16956 # We preserve .a as extension for shared libraries through AIX4.2
16957 # and later when we are not doing run time linking.
16958 library_names_spec='${libname}${release}.a $libname.a'
16959 soname_spec='${libname}${release}.so$major'
16961 shlibpath_var=LIBPATH
16966 library_names_spec='$libname.ixlibrary $libname.a'
16967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16968 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'
16972 library_names_spec='${libname}.so'
16973 dynamic_linker="$host_os ld.so"
16974 shlibpath_var=LIBRARY_PATH
16980 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16981 soname_spec='${libname}${release}.so$major'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16986 # the default ld.so.conf also contains /usr/contrib/lib and
16987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16988 # libtool to hard-code these into programs
16991 cygwin* | mingw* | pw32*)
16992 version_type=windows
16995 case $GCC,$host_os in
16997 library_names_spec='$libname.dll.a'
16998 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17000 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
17001 dldir=$destdir/`dirname \$dlpath`~
17002 test -d \$dldir || mkdir -p \$dldir~
17003 $install_prog .libs/$dlname \$dldir/$dlname'
17004 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005 dlpath=$dir/\$dldll~
17009 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
17010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
17011 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
17012 # It is most probably a Windows format PATH printed by
17013 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17014 # path with ; separators, and with drive letters. We can handle the
17015 # drive letters (cygwin fileutils understands them), so leave them,
17016 # especially as we might pass files found there to a mingw objdump,
17017 # which wouldn't understand a cygwinified path. Ahh.
17018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
17020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
17024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
17027 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
17030 dynamic_linker='Win32 ld.exe'
17031 # FIXME: first we should search . and the directory the executable is in
17035 darwin* | rhapsody*)
17036 dynamic_linker="$host_os dyld"
17037 version_type=darwin
17040 # FIXME: Relying on posixy $() will cause problems for
17041 # cross-compilation, but unfortunately the echo tests do not
17042 # yet detect zsh echo's removal of \ escapes.
17043 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
17044 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
17045 shlibpath_overrides_runpath=yes
17046 shlibpath_var=DYLD_LIBRARY_PATH
17053 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17054 soname_spec='${libname}${release}.so$major'
17055 shlibpath_var=LD_LIBRARY_PATH
17063 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17064 version_type=freebsd-$objformat
17065 case $version_type in
17067 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17072 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
17076 shlibpath_var=LD_LIBRARY_PATH
17079 shlibpath_overrides_runpath=yes
17081 freebsd3.01* | freebsdelf3.01*)
17082 shlibpath_overrides_runpath=yes
17083 hardcode_into_libs=yes
17086 shlibpath_overrides_runpath=no
17087 hardcode_into_libs=yes
17096 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
17097 soname_spec='${libname}${release}.so$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 hardcode_into_libs=yes
17102 hpux9* | hpux10* | hpux11*)
17103 # Give a soname corresponding to the major version so that dld.sl refuses to
17104 # link against other versions.
17108 if test "$host_cpu" = ia64; then
17109 hardcode_into_libs=yes
17110 dynamic_linker="$host_os dld.so"
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17113 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17114 soname_spec='${libname}${release}.so$major'
17115 if test "X$HPUX_IA64_MODE" = X32; then
17116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17122 dynamic_linker="$host_os dld.sl"
17123 shlibpath_var=SHLIB_PATH
17124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17125 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
17126 soname_spec='${libname}${release}.sl$major'
17128 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17129 postinstall_cmds='chmod 555 $lib'
17132 irix5* | irix6* | nonstopux*)
17134 nonstopux*) version_type=nonstopux ;;
17135 *) version_type=irix ;;
17139 soname_spec='${libname}${release}.so$major'
17140 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
17142 irix5* | nonstopux*)
17143 libsuff= shlibsuff=
17146 case $LD in # libtool.m4 will add one of these switches to LD
17147 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
17148 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
17149 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
17150 *) libsuff= shlibsuff= libmagic=never-match;;
17154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17155 shlibpath_overrides_runpath=no
17156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17160 # No shared lib support for Linux oldld, aout, or coff.
17161 linux*oldld* | linux*aout* | linux*coff*)
17165 # This must be Linux ELF.
17170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17171 soname_spec='${libname}${release}.so$major'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17174 if test "x$LINUX_64_MODE" = x64; then
17175 # Some platforms are per default 64-bit, so there's no /lib64
17176 if test -d /lib64; then
17180 shlibpath_var=LD_LIBRARY_PATH
17181 shlibpath_overrides_runpath=no
17182 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17183 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17184 # This implies no fast_install, which is unacceptable.
17185 # Some rework will be needed to allow for fast_install
17186 # before this can be enabled.
17187 hardcode_into_libs=yes
17189 # We used to test for /lib/ld.so.1 and disable shared libraries on
17190 # powerpc, because MkLinux only supported shared libraries with the
17191 # GNU dynamic linker. Since this was broken with cross compilers,
17192 # most powerpc-linux boxes support dynamic linking these days and
17193 # people can always --disable-shared, the test was removed, and we
17194 # assume the GNU/Linux dynamic linker is in use.
17195 dynamic_linker='GNU/Linux ld.so'
17202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17203 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17205 dynamic_linker='NetBSD (a.out) ld.so'
17207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
17208 soname_spec='${libname}${release}.so$major'
17209 dynamic_linker='NetBSD ld.elf_so'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=yes
17213 hardcode_into_libs=yes
17218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath=yes
17227 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17228 soname_spec='${libname}${release}.so$major'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17237 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17242 openbsd2.[89] | openbsd2.[89].*)
17243 shlibpath_overrides_runpath=no
17246 shlibpath_overrides_runpath=yes
17250 shlibpath_overrides_runpath=yes
17255 libname_spec='$name'
17257 library_names_spec='$libname.dll $libname.a'
17258 dynamic_linker='OS/2 ld.exe'
17259 shlibpath_var=LIBPATH
17262 osf3* | osf4* | osf5*)
17266 soname_spec='${libname}${release}.so'
17267 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17270 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17275 soname_spec='${libname}${release}.so$major'
17276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17277 shlibpath_var=LD_LIBRARY_PATH
17284 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17285 soname_spec='${libname}${release}.so$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17288 hardcode_into_libs=yes
17289 # ldd complains unless libraries are executable
17290 postinstall_cmds='chmod +x $lib'
17295 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
17296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17299 if test "$with_gnu_ld" = yes; then
17305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17307 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17308 soname_spec='${libname}${release}.so$major'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 case $host_vendor in
17312 shlibpath_overrides_runpath=no
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17324 if test -d /usr/nec ;then
17326 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
17327 soname_spec='$libname.so.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17334 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
17335 soname_spec='${libname}${release}.so$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344 echo "${ECHO_T}$dynamic_linker" >&6
17345 test "$dynamic_linker" = no && can_build_shared=no
17347 if test "x$enable_dlopen" != xyes; then
17348 enable_dlopen=unknown
17349 enable_dlopen_self=unknown
17350 enable_dlopen_self_static=unknown
17357 lt_cv_dlopen="load_add_on"
17359 lt_cv_dlopen_self=yes
17362 cygwin* | mingw* | pw32*)
17363 lt_cv_dlopen="LoadLibrary"
17368 echo "$as_me:$LINENO: checking for shl_load" >&5
17369 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17370 if test "${ac_cv_func_shl_load+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 cat >conftest.$ac_ext <<_ACEOF
17374 #line $LINENO "configure"
17375 #include "confdefs.h"
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char shl_load (); below. */
17378 #include <assert.h>
17379 /* Override any gcc2 internal prototype to avoid an error. */
17383 /* We use char because int might match the return type of a gcc2
17384 builtin and then its argument prototype would still apply. */
17388 #ifdef F77_DUMMY_MAIN
17389 # ifdef __cplusplus
17392 int F77_DUMMY_MAIN() { return 1; }
17397 /* The GNU C library defines this for functions which it implements
17398 to always fail with ENOSYS. Some functions are actually named
17399 something starting with __ and the normal name is an alias. */
17400 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17412 (eval $ac_link) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_shl_load=yes
17424 echo "$as_me: failed program was:" >&5
17425 cat conftest.$ac_ext >&5
17426 ac_cv_func_shl_load=no
17428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17431 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17432 if test $ac_cv_func_shl_load = yes; then
17433 lt_cv_dlopen="shl_load"
17435 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17436 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17437 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 ac_check_lib_save_LIBS=$LIBS
17442 cat >conftest.$ac_ext <<_ACEOF
17443 #line $LINENO "configure"
17444 #include "confdefs.h"
17446 /* Override any gcc2 internal prototype to avoid an error. */
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17453 #ifdef F77_DUMMY_MAIN
17454 # ifdef __cplusplus
17457 int F77_DUMMY_MAIN() { return 1; }
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -s conftest$ac_exeext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17481 echo "$as_me: failed program was:" >&5
17482 cat conftest.$ac_ext >&5
17483 ac_cv_lib_dld_shl_load=no
17485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17486 LIBS=$ac_check_lib_save_LIBS
17488 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17490 if test $ac_cv_lib_dld_shl_load = yes; then
17491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17493 echo "$as_me:$LINENO: checking for dlopen" >&5
17494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17495 if test "${ac_cv_func_dlopen+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17500 #include "confdefs.h"
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char dlopen (); below. */
17503 #include <assert.h>
17504 /* Override any gcc2 internal prototype to avoid an error. */
17508 /* We use char because int might match the return type of a gcc2
17509 builtin and then its argument prototype would still apply. */
17513 #ifdef F77_DUMMY_MAIN
17514 # ifdef __cplusplus
17517 int F77_DUMMY_MAIN() { return 1; }
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_func_dlopen=yes
17549 echo "$as_me: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 ac_cv_func_dlopen=no
17553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17555 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17556 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17557 if test $ac_cv_func_dlopen = yes; then
17558 lt_cv_dlopen="dlopen"
17560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 ac_check_lib_save_LIBS=$LIBS
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17569 #include "confdefs.h"
17571 /* Override any gcc2 internal prototype to avoid an error. */
17575 /* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17578 #ifdef F77_DUMMY_MAIN
17579 # ifdef __cplusplus
17582 int F77_DUMMY_MAIN() { return 1; }
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_dl_dlopen=yes
17606 echo "$as_me: failed program was:" >&5
17607 cat conftest.$ac_ext >&5
17608 ac_cv_lib_dl_dlopen=no
17610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17615 if test $ac_cv_lib_dl_dlopen = yes; then
17616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_check_lib_save_LIBS=$LIBS
17624 LIBS="-lsvld $LIBS"
17625 cat >conftest.$ac_ext <<_ACEOF
17626 #line $LINENO "configure"
17627 #include "confdefs.h"
17629 /* Override any gcc2 internal prototype to avoid an error. */
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17636 #ifdef F77_DUMMY_MAIN
17637 # ifdef __cplusplus
17640 int F77_DUMMY_MAIN() { return 1; }
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652 (eval $ac_link) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_lib_svld_dlopen=yes
17664 echo "$as_me: failed program was:" >&5
17665 cat conftest.$ac_ext >&5
17666 ac_cv_lib_svld_dlopen=no
17668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17671 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17673 if test $ac_cv_lib_svld_dlopen = yes; then
17674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17676 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 ac_check_lib_save_LIBS=$LIBS
17683 cat >conftest.$ac_ext <<_ACEOF
17684 #line $LINENO "configure"
17685 #include "confdefs.h"
17687 /* Override any gcc2 internal prototype to avoid an error. */
17691 /* We use char because int might match the return type of a gcc2
17692 builtin and then its argument prototype would still apply. */
17694 #ifdef F77_DUMMY_MAIN
17695 # ifdef __cplusplus
17698 int F77_DUMMY_MAIN() { return 1; }
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -s conftest$ac_exeext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_lib_dld_dld_link=yes
17722 echo "$as_me: failed program was:" >&5
17723 cat conftest.$ac_ext >&5
17724 ac_cv_lib_dld_dld_link=no
17726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17727 LIBS=$ac_check_lib_save_LIBS
17729 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17730 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17731 if test $ac_cv_lib_dld_dld_link = yes; then
17732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17753 if test "x$lt_cv_dlopen" != xno; then
17759 case $lt_cv_dlopen in
17761 save_CPPFLAGS="$CPPFLAGS"
17762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17764 save_LDFLAGS="$LDFLAGS"
17765 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17768 LIBS="$lt_cv_dlopen_libs $LIBS"
17770 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17771 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17772 if test "${lt_cv_dlopen_self+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 if test "$cross_compiling" = yes; then :
17776 lt_cv_dlopen_self=cross
17778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17779 lt_status=$lt_dlunknown
17780 cat > conftest.$ac_ext <<EOF
17781 #line 17781 "configure"
17782 #include "confdefs.h"
17791 # define LT_DLGLOBAL RTLD_GLOBAL
17794 # define LT_DLGLOBAL DL_GLOBAL
17796 # define LT_DLGLOBAL 0
17800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17801 find out it does not work in some platform. */
17802 #ifndef LT_DLLAZY_OR_NOW
17804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17807 # define LT_DLLAZY_OR_NOW DL_LAZY
17810 # define LT_DLLAZY_OR_NOW RTLD_NOW
17813 # define LT_DLLAZY_OR_NOW DL_NOW
17815 # define LT_DLLAZY_OR_NOW 0
17823 extern "C" void exit (int);
17826 void fnord() { int i=42;}
17829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17830 int status = $lt_dlunknown;
17834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17836 /* dlclose (self); */
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17847 (./conftest; exit; ) 2>/dev/null
17849 case x$lt_status in
17850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17852 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17855 # compilation failed
17856 lt_cv_dlopen_self=no
17863 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17864 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17866 if test "x$lt_cv_dlopen_self" = xyes; then
17867 LDFLAGS="$LDFLAGS $link_static_flag"
17868 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17869 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17870 if test "${lt_cv_dlopen_self_static+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 if test "$cross_compiling" = yes; then :
17874 lt_cv_dlopen_self_static=cross
17876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17877 lt_status=$lt_dlunknown
17878 cat > conftest.$ac_ext <<EOF
17879 #line 17879 "configure"
17880 #include "confdefs.h"
17889 # define LT_DLGLOBAL RTLD_GLOBAL
17892 # define LT_DLGLOBAL DL_GLOBAL
17894 # define LT_DLGLOBAL 0
17898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17899 find out it does not work in some platform. */
17900 #ifndef LT_DLLAZY_OR_NOW
17902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17905 # define LT_DLLAZY_OR_NOW DL_LAZY
17908 # define LT_DLLAZY_OR_NOW RTLD_NOW
17911 # define LT_DLLAZY_OR_NOW DL_NOW
17913 # define LT_DLLAZY_OR_NOW 0
17921 extern "C" void exit (int);
17924 void fnord() { int i=42;}
17927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17928 int status = $lt_dlunknown;
17932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17934 /* dlclose (self); */
17940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941 (eval $ac_link) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17945 (./conftest; exit; ) 2>/dev/null
17947 case x$lt_status in
17948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17950 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17953 # compilation failed
17954 lt_cv_dlopen_self_static=no
17961 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17962 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17965 CPPFLAGS="$save_CPPFLAGS"
17966 LDFLAGS="$save_LDFLAGS"
17971 case $lt_cv_dlopen_self in
17972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17973 *) enable_dlopen_self=unknown ;;
17976 case $lt_cv_dlopen_self_static in
17977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17978 *) enable_dlopen_self_static=unknown ;;
17983 # Report which librarie types wil actually be built
17984 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17985 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17986 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17987 echo "${ECHO_T}$can_build_shared" >&6
17989 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17990 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17991 test "$can_build_shared" = "no" && enable_shared=no
17993 # On AIX, shared libraries and static libraries use the same namespace, and
17994 # are all built from PIC.
17997 test "$enable_shared" = yes && enable_static=no
17998 if test -n "$RANLIB"; then
17999 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18000 postinstall_cmds='$RANLIB $lib'
18005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18006 test "$enable_shared" = yes && enable_static=no
18010 echo "$as_me:$LINENO: result: $enable_shared" >&5
18011 echo "${ECHO_T}$enable_shared" >&6
18013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18015 # Make sure either enable_shared or enable_static is yes.
18016 test "$enable_shared" = yes || enable_static=yes
18017 echo "$as_me:$LINENO: result: $enable_static" >&5
18018 echo "${ECHO_T}$enable_static" >&6
18020 # The else clause should only fire when bootstrapping the
18021 # libtool distribution, otherwise you forgot to ship ltmain.sh
18022 # with your package, and you will get complaints that there are
18023 # no rules to generate ltmain.sh.
18024 if test -f "$ltmain"; then
18025 # Now quote all the things that may contain metacharacters while being
18026 # careful not to overquote the AC_SUBSTed values. We take copies of the
18027 # variables and quote the copies for generation of the libtool script.
18028 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
18029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18031 deplibs_check_method reload_flag reload_cmds need_locks \
18032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18033 lt_cv_sys_global_symbol_to_c_name_address \
18034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18035 old_postinstall_cmds old_postuninstall_cmds \
18039 lt_prog_compiler_wl \
18040 lt_prog_compiler_pic \
18041 lt_prog_compiler_static \
18042 lt_prog_compiler_no_builtin_flag \
18043 export_dynamic_flag_spec \
18044 thread_safe_flag_spec \
18045 whole_archive_flag_spec \
18047 old_archive_from_new_cmds \
18052 compiler_lib_search_path \
18054 archive_expsym_cmds \
18056 postuninstall_cmds \
18057 old_archive_from_expsyms_cmds \
18058 allow_undefined_flag \
18059 no_undefined_flag \
18060 export_symbols_cmds \
18061 hardcode_libdir_flag_spec \
18062 hardcode_libdir_separator \
18063 lt_cv_prog_compiler_c_o \
18065 include_expsyms; do
18068 old_archive_cmds | \
18069 old_archive_from_new_cmds | \
18071 archive_expsym_cmds | \
18072 old_archive_from_expsyms_cmds | \
18073 export_symbols_cmds | \
18074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18075 postinstall_cmds | postuninstall_cmds | \
18076 old_postinstall_cmds | old_postuninstall_cmds | \
18077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18078 # Double-quote double-evaled strings.
18079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18088 *'\$0 --fallback-echo"')
18089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18093 cfgfile="${ofile}T"
18094 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18096 { echo "$as_me:$LINENO: creating $ofile" >&5
18097 echo "$as_me: creating $ofile" >&6;}
18099 cat <<__EOF__ >> "$cfgfile"
18102 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18103 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18104 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18106 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18107 # Free Software Foundation, Inc.
18109 # This file is part of GNU Libtool:
18110 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18112 # This program is free software; you can redistribute it and/or modify
18113 # it under the terms of the GNU General Public License as published by
18114 # the Free Software Foundation; either version 2 of the License, or
18115 # (at your option) any later version.
18117 # This program is distributed in the hope that it will be useful, but
18118 # WITHOUT ANY WARRANTY; without even the implied warranty of
18119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18120 # General Public License for more details.
18122 # You should have received a copy of the GNU General Public License
18123 # along with this program; if not, write to the Free Software
18124 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18126 # As a special exception to the GNU General Public License, if you
18127 # distribute this file as part of a program that contains a
18128 # configuration script generated by Autoconf, you may include it under
18129 # the same distribution terms that you use for the rest of that program.
18131 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18132 Xsed="sed -e s/^X//"
18134 # The HP-UX ksh and POSIX shell print the target directory to stdout
18135 # if CDPATH is set.
18136 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
18138 # The names of the tagged configurations supported by this script.
18141 # ### BEGIN LIBTOOL CONFIG
18143 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18145 # Shell to use when invoking shell scripts.
18148 # Whether or not to build shared libraries.
18149 build_libtool_libs=$enable_shared
18151 # Whether or not to build static libraries.
18152 build_old_libs=$enable_static
18154 # Whether or not to add -lc for building shared libraries.
18155 build_libtool_need_lc=$archive_cmds_need_lc
18157 # Whether or not to optimize for fast installation.
18158 fast_install=$enable_fast_install
18161 host_alias=$host_alias
18164 # An echo program that does not interpret backslashes.
18169 AR_FLAGS=$lt_AR_FLAGS
18174 # A language-specific compiler.
18177 # Is the compiler the GNU C compiler?
18180 # The linker used to build libraries.
18183 # Whether we need hard or soft links.
18186 # A BSD-compatible nm program.
18189 # A sed program that does not truncate output.
18192 # A symbol stripping program
18195 # Used to examine libraries when file_magic_cmd begins "file"
18196 MAGIC_CMD=$MAGIC_CMD
18198 # Used on cygwin: DLL creation program.
18201 # Used on cygwin: object dumper.
18204 # Used on cygwin: assembler.
18207 # The name of the directory that contains temporary libtool files.
18210 # How to create reloadable object files.
18211 reload_flag=$lt_reload_flag
18212 reload_cmds=$lt_reload_cmds
18214 # How to pass a linker flag through the compiler.
18215 wl=$lt_lt_prog_compiler_wl
18217 # Object file suffix (normally "o").
18218 objext="$ac_objext"
18220 # Old archive suffix (normally "a").
18223 # Executable file suffix (normally "").
18226 # Additional compiler flags for building library objects.
18227 pic_flag=$lt_lt_prog_compiler_pic
18230 # What is the maximum length of a command?
18231 max_cmd_len=$lt_cv_sys_max_cmd_len
18233 # Does compiler simultaneously support -c and -o options?
18234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18236 # Must we lock files when doing compilation ?
18237 need_locks=$lt_need_locks
18239 # Do we need the lib prefix for modules?
18240 need_lib_prefix=$need_lib_prefix
18242 # Do we need a version for libraries?
18243 need_version=$need_version
18245 # Whether dlopen is supported.
18246 dlopen_support=$enable_dlopen
18248 # Whether dlopen of programs is supported.
18249 dlopen_self=$enable_dlopen_self
18251 # Whether dlopen of statically linked programs is supported.
18252 dlopen_self_static=$enable_dlopen_self_static
18254 # Compiler flag to prevent dynamic linking.
18255 link_static_flag=$lt_lt_prog_compiler_static
18257 # Compiler flag to turn off builtin functions.
18258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18260 # Compiler flag to allow reflexive dlopens.
18261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18263 # Compiler flag to generate shared objects directly from archives.
18264 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18266 # Compiler flag to generate thread-safe objects.
18267 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18269 # Library versioning type.
18270 version_type=$version_type
18272 # Format of library name prefix.
18273 libname_spec=$lt_libname_spec
18275 # List of archive names. First name is the real one, the rest are links.
18276 # The last name is the one that the linker finds with -lNAME.
18277 library_names_spec=$lt_library_names_spec
18279 # The coded name of the library, if different from the real name.
18280 soname_spec=$lt_soname_spec
18282 # Commands used to build and install an old-style archive.
18284 old_archive_cmds=$lt_old_archive_cmds
18285 old_postinstall_cmds=$lt_old_postinstall_cmds
18286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18288 # Create an old-style archive from a shared archive.
18289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18291 # Create a temporary old-style archive to link instead of a shared archive.
18292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18294 # Commands used to build and install a shared archive.
18295 archive_cmds=$lt_archive_cmds
18296 archive_expsym_cmds=$lt_archive_expsym_cmds
18297 postinstall_cmds=$lt_postinstall_cmds
18298 postuninstall_cmds=$lt_postuninstall_cmds
18300 # Commands to strip libraries.
18301 old_striplib=$lt_old_striplib
18302 striplib=$lt_striplib
18304 # Dependencies to place before the objects being linked to create a
18306 predep_objects=$lt_predep_objects
18308 # Dependencies to place after the objects being linked to create a
18310 postdep_objects=$lt_postdep_objects
18312 # Dependencies to place before the objects being linked to create a
18314 predeps=$lt_predeps
18316 # Dependencies to place after the objects being linked to create a
18318 postdeps=$lt_postdeps
18320 # The library search path used internally by the compiler when linking
18321 # a shared library.
18322 compiler_lib_search_path=$lt_compiler_lib_search_path
18324 # Method to check whether dependent libraries are shared objects.
18325 deplibs_check_method=$lt_deplibs_check_method
18327 # Command to use when deplibs_check_method == file_magic.
18328 file_magic_cmd=$lt_file_magic_cmd
18330 # Flag that allows shared libraries with undefined symbols to be built.
18331 allow_undefined_flag=$lt_allow_undefined_flag
18333 # Flag that forces no undefined symbols.
18334 no_undefined_flag=$lt_no_undefined_flag
18336 # Commands used to finish a libtool library installation in a directory.
18337 finish_cmds=$lt_finish_cmds
18339 # Same as above, but a single script fragment to be evaled but not shown.
18340 finish_eval=$lt_finish_eval
18342 # Take the output of nm and produce a listing of raw symbols and C names.
18343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18345 # Transform the output of nm in a proper C declaration
18346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18348 # Transform the output of nm in a C name address pair
18349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18351 # This is the shared library runtime path variable.
18352 runpath_var=$runpath_var
18354 # This is the shared library path variable.
18355 shlibpath_var=$shlibpath_var
18357 # Is shlibpath searched before the hard-coded library search path?
18358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18360 # How to hardcode a shared library path into an executable.
18361 hardcode_action=$hardcode_action
18363 # Whether we should hardcode library paths into libraries.
18364 hardcode_into_libs=$hardcode_into_libs
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist.
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18370 # Whether we need a single -rpath flag with a separated argument.
18371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18373 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
18374 # resulting binary.
18375 hardcode_direct=$hardcode_direct
18377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_minus_L=$hardcode_minus_L
18381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18382 # the resulting binary.
18383 hardcode_shlibpath_var=$hardcode_shlibpath_var
18385 # Variables whose values should be saved in libtool wrapper scripts and
18386 # restored at relink time.
18387 variables_saved_for_relink="$variables_saved_for_relink"
18389 # Whether libtool must link a program against all its dependency libraries.
18390 link_all_deplibs=$link_all_deplibs
18392 # Compile-time system search path for libraries
18393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18395 # Run-time system search path for libraries
18396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18398 # Fix the shell variable \$srcfile for the compiler.
18399 fix_srcfile_path="$fix_srcfile_path"
18401 # Set to yes if exported symbols are required.
18402 always_export_symbols=$always_export_symbols
18404 # The commands to list exported symbols.
18405 export_symbols_cmds=$lt_export_symbols_cmds
18407 # The commands to extract the exported symbol list from a shared archive.
18408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18410 # Symbols that should not be listed in the preloaded symbols.
18411 exclude_expsyms=$lt_exclude_expsyms
18413 # Symbols that must always be exported.
18414 include_expsyms=$lt_include_expsyms
18416 # ### END LIBTOOL CONFIG
18423 cat <<\EOF >> "$cfgfile"
18425 # AIX sometimes has problems with the GCC collect2 program. For some
18426 # reason, if we set the COLLECT_NAMES environment variable, the problems
18427 # vanish in a puff of smoke.
18428 if test "X${COLLECT_NAMES+set}" != Xset; then
18430 export COLLECT_NAMES
18435 cygwin* | mingw* | pw32* | os2*)
18436 cat <<'EOF' >> "$cfgfile"
18437 # This is a source program that is used to create dlls on Windows
18438 # Don't remove nor modify the starting and closing comments
18440 # /* ltdll.c starts here */
18441 # #define WIN32_LEAN_AND_MEAN
18442 # #include <windows.h>
18443 # #undef WIN32_LEAN_AND_MEAN
18444 # #include <stdio.h>
18446 # #ifndef __CYGWIN__
18447 # # ifdef __CYGWIN32__
18448 # # define __CYGWIN__ __CYGWIN32__
18452 # #ifdef __cplusplus
18455 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
18456 # #ifdef __cplusplus
18460 # #ifdef __CYGWIN__
18461 # #include <cygwin/cygwin_dll.h>
18462 # DECLARE_CYGWIN_DLL( DllMain );
18464 # HINSTANCE __hDllInstance_base;
18467 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
18469 # __hDllInstance_base = hInst;
18472 # /* ltdll.c ends here */
18474 # This is a source program that is used to create import libraries
18475 # on Windows for dlls which lack them. Don't remove nor modify the
18476 # starting and closing comments
18478 # /* impgen.c starts here */
18479 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
18481 # This file is part of GNU libtool.
18483 # This program is free software; you can redistribute it and/or modify
18484 # it under the terms of the GNU General Public License as published by
18485 # the Free Software Foundation; either version 2 of the License, or
18486 # (at your option) any later version.
18488 # This program is distributed in the hope that it will be useful,
18489 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18490 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18491 # GNU General Public License for more details.
18493 # You should have received a copy of the GNU General Public License
18494 # along with this program; if not, write to the Free Software
18495 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18498 # #include <stdio.h> /* for printf() */
18499 # #include <unistd.h> /* for open(), lseek(), read() */
18500 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
18501 # #include <string.h> /* for strdup() */
18503 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
18505 # #define O_BINARY 0
18508 # static unsigned int
18509 # pe_get16 (fd, offset)
18513 # unsigned char b[2];
18514 # lseek (fd, offset, SEEK_SET);
18516 # return b[0] + (b[1]<<8);
18519 # static unsigned int
18520 # pe_get32 (fd, offset)
18524 # unsigned char b[4];
18525 # lseek (fd, offset, SEEK_SET);
18527 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18530 # static unsigned int
18534 # unsigned char *b = ptr;
18535 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
18539 # main (argc, argv)
18544 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
18545 # unsigned long export_rva, export_size, nsections, secptr, expptr;
18546 # unsigned long name_rvas, nexp;
18547 # unsigned char *expdata, *erva;
18548 # char *filename, *dll_name;
18550 # filename = argv[1];
18552 # dll = open(filename, O_RDONLY|O_BINARY);
18556 # dll_name = filename;
18558 # for (i=0; filename[i]; i++)
18559 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
18560 # dll_name = filename + i +1;
18562 # pe_header_offset = pe_get32 (dll, 0x3c);
18563 # opthdr_ofs = pe_header_offset + 4 + 20;
18564 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
18566 # if (num_entries < 1) /* no exports */
18569 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
18570 # export_size = pe_get32 (dll, opthdr_ofs + 100);
18571 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
18572 # secptr = (pe_header_offset + 4 + 20 +
18573 # pe_get16 (dll, pe_header_offset + 4 + 16));
18576 # for (i = 0; i < nsections; i++)
18579 # unsigned long secptr1 = secptr + 40 * i;
18580 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
18581 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
18582 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
18583 # lseek(dll, secptr1, SEEK_SET);
18584 # read(dll, sname, 8);
18585 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
18587 # expptr = fptr + (export_rva - vaddr);
18588 # if (export_rva + export_size > vaddr + vsize)
18589 # export_size = vsize - (export_rva - vaddr);
18594 # expdata = (unsigned char*)malloc(export_size);
18595 # lseek (dll, expptr, SEEK_SET);
18596 # read (dll, expdata, export_size);
18597 # erva = expdata - export_rva;
18599 # nexp = pe_as32 (expdata+24);
18600 # name_rvas = pe_as32 (expdata+32);
18602 # printf ("EXPORTS\n");
18603 # for (i = 0; i<nexp; i++)
18605 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
18606 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
18611 # /* impgen.c ends here */
18617 # We use sed instead of cat because bash on DJGPP gets confused if
18618 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18619 # text mode, it properly converts lines to CR/LF. This bash problem
18620 # is reportedly fixed, but why not run on old versions too?
18621 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18623 mv -f "$cfgfile" "$ofile" || \
18624 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18628 # If there is no Makefile yet, we rely on a make rule to execute
18629 # `config.status --recheck' to rerun these tests and create the
18630 # libtool script then.
18631 test -f Makefile && make "$ltmain"
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18644 # Check whether --with-tags or --without-tags was given.
18645 if test "${with_tags+set}" = set; then
18646 withval="$with_tags"
18647 tagnames="$withval"
18651 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
18655 if test -f "$ltmain" && test -n "$tagnames"; then
18656 if test ! -f "${ofile}"; then
18657 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18658 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18661 if test -z "$LTCC"; then
18662 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18663 if test -z "$LTCC"; then
18664 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18665 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18667 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18668 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18672 # Extract list of available tagged configurations in $ofile.
18673 # Note that this assumes the entire list is on one line.
18674 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18677 for tagname in $tagnames; do
18679 # Check whether tagname contains only valid characters
18680 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18682 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18683 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18684 { (exit 1); exit 1; }; }
18688 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18690 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18691 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18692 { (exit 1); exit 1; }; }
18695 # Update the list of available tags.
18696 if test -n "$tagname"; then
18697 echo appending configuration tag \"$tagname\" to $ofile
18702 ac_cpp='$CXXCPP $CPPFLAGS'
18703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18710 archive_cmds_need_lc_CXX=no
18711 allow_undefined_flag_CXX=
18712 always_export_symbols_CXX=no
18713 archive_expsym_cmds_CXX=
18714 export_dynamic_flag_spec_CXX=
18715 hardcode_direct_CXX=no
18716 hardcode_libdir_flag_spec_CXX=
18717 hardcode_libdir_separator_CXX=
18718 hardcode_minus_L_CXX=no
18719 link_all_deplibs_CXX=unknown
18720 old_archive_cmds_CXX=$old_archive_cmds
18721 no_undefined_flag_CXX=
18722 whole_archive_flag_spec_CXX=
18724 # Dependencies to place before and after the object being linked:
18725 predep_objects_CXX=
18726 postdep_objects_CXX=
18729 compiler_lib_search_path_CXX=
18731 # Source file extension for C test sources.
18734 # Object file extension for compiled C test sources.
18738 # Code to be used in simple compile tests
18739 lt_simple_compile_test_code="int some_variable = 0;"
18741 # Code to be used in simple link tests
18742 lt_simple_link_test_code='int main(int char *) { return(0); }'
18744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18746 # If no C compiler was specified, use CC.
18749 # Allow CC to be a program name with arguments.
18754 # Allow CC to be a program name with arguments.
18760 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18762 # We don't want -fno-exception wen compiling C++ code, so set the
18763 # no_builtin_flag separately
18764 if test "$GXX" = yes; then
18765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18767 lt_prog_compiler_no_builtin_flag_CXX=
18770 if test "$GXX" = yes; then
18771 # Set up default GNU C++ configuration
18773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18774 # archiving commands below assume that GNU ld is being used.
18775 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
18776 egrep 'GNU ld' > /dev/null; then
18779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18780 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'
18782 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18785 # If archive_cmds runs LD, not CC, wlarc should be empty
18786 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18787 # investigate it a little bit more. (MM)
18790 # ancient GNU ld didn't support --whole-archive et. al.
18791 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18792 egrep 'no-whole-archive' > /dev/null; then
18793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18795 whole_archive_flag_spec_CXX=
18801 # A generic and very simple default shared library creation
18802 # command for GNU C++ for the case where it uses the native
18803 # linker, instead of GNU ld. If possible, this setting should
18804 # overridden to take advantage of the native linker features on
18805 # the platform it is being used on.
18806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18809 # Commands to make compiler produce verbose output that lists
18810 # what "hidden" libraries, object files and flags are used when
18811 # linking a shared library.
18812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
18820 # PORTME: fill in a description of your system's C++ link characteristics
18821 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18822 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18826 # FIXME: insert proper C++ library support
18830 if test "$host_cpu" = ia64; then
18831 # On IA64, the linker does run time linking by default, so we don't
18832 # have to do anything special.
18833 aix_use_runtimelinking=no
18834 exp_sym_flag='-Bexport'
18837 # KDE requires run time linking. Make it the default.
18838 aix_use_runtimelinking=yes
18839 exp_sym_flag='-bexport'
18840 no_entry_flag='-bnoentry'
18843 # When large executables or shared objects are built, AIX ld can
18844 # have problems creating the table of contents. If linking a library
18845 # or program results in "error TOC overflow" add -mminimal-toc to
18846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18849 archive_cmds_CXX=''
18850 hardcode_direct_CXX=yes
18851 hardcode_libdir_separator_CXX=':'
18852 link_all_deplibs_CXX=yes
18854 if test "$GXX" = yes; then
18855 case $host_os in aix4.012|aix4.012.*)
18856 # We only want to do this on AIX 4.2 and lower, the check
18857 # below for broken collect2 doesn't work under 4.3+
18858 collect2name=`${CC} -print-prog-name=collect2`
18859 if test -f "$collect2name" && \
18860 strings "$collect2name" | grep resolve_lib_name >/dev/null
18862 # We have reworked collect2
18863 hardcode_direct_CXX=yes
18865 # We have old collect2
18866 hardcode_direct_CXX=unsupported
18867 # It fails to find uninstalled libraries when the uninstalled
18868 # path is not listed in the libpath. Setting hardcode_minus_L
18869 # to unsupported forces relinking
18870 hardcode_minus_L_CXX=yes
18871 hardcode_libdir_flag_spec_CXX='-L$libdir'
18872 hardcode_libdir_separator_CXX=
18875 shared_flag='-shared'
18878 if test "$host_cpu" = ia64; then
18879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18880 # chokes on -Wl,-G. The following line is correct:
18883 if test "$aix_use_runtimelinking" = yes; then
18884 shared_flag='-qmkshrobj ${wl}-G'
18886 shared_flag='-qmkshrobj'
18891 # Let the compiler handle the export list.
18892 always_export_symbols_CXX=no
18893 if test "$aix_use_runtimelinking" = yes; then
18894 # Warning - without using the other runtime loading flags (-brtl),
18895 # -berok will link without error, but may produce a broken library.
18896 allow_undefined_flag_CXX='-berok'
18897 # Determine the default libpath from the value encoded in an empty executable.
18898 cat >conftest.$ac_ext <<_ACEOF
18899 #line $LINENO "configure"
18900 #include "confdefs.h"
18902 #ifdef F77_DUMMY_MAIN
18903 # ifdef __cplusplus
18906 int F77_DUMMY_MAIN() { return 1; }
18916 rm -f conftest.$ac_objext conftest$ac_exeext
18917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18918 (eval $ac_link) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18931 # Check for a 64-bit object if we didn't find anything.
18932 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18935 echo "$as_me: failed program was:" >&5
18936 cat conftest.$ac_ext >&5
18938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18943 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
18944 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18946 if test "$host_cpu" = ia64; then
18947 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18948 allow_undefined_flag_CXX="-z nodefs"
18949 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18951 # Determine the default libpath from the value encoded in an empty executable.
18952 cat >conftest.$ac_ext <<_ACEOF
18953 #line $LINENO "configure"
18954 #include "confdefs.h"
18956 #ifdef F77_DUMMY_MAIN
18957 # ifdef __cplusplus
18960 int F77_DUMMY_MAIN() { return 1; }
18970 rm -f conftest.$ac_objext conftest$ac_exeext
18971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18972 (eval $ac_link) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -s conftest$ac_exeext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18985 # Check for a 64-bit object if we didn't find anything.
18986 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18989 echo "$as_me: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18996 # Warning - without using the other run time loading flags,
18997 # -berok will link without error, but may produce a broken library.
18998 no_undefined_flag_CXX=' ${wl}-bernotok'
18999 allow_undefined_flag_CXX=' ${wl}-berok'
19000 # -bexpall does not export symbols beginning with underscore (_)
19001 always_export_symbols_CXX=yes
19002 # Exported symbols can be pulled into shared objects from archives
19003 whole_archive_flag_spec_CXX=' '
19004 archive_cmds_need_lc_CXX=yes
19005 # This is similar to how AIX traditionally builds it's shared libraries.
19006 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19011 case $cc_basename in
19013 # FIXME: insert proper C++ library support
19019 case $cc_basename in
19021 # FIXME: insert proper C++ library support
19025 # Green Hills C++ Compiler
19026 # FIXME: insert proper C++ library support
19030 # FIXME: insert proper C++ library support
19036 # C++ shared libraries reported to be fairly broken before switch to ELF
19040 archive_cmds_need_lc_CXX=no
19043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19050 if test $with_gnu_ld = no; then
19051 if test "$host_cpu" = ia64; then
19052 hardcode_libdir_flag_spec_CXX='-L$libdir'
19054 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19055 hardcode_libdir_separator_CXX=:
19056 export_dynamic_flag_spec_CXX='${wl}-E'
19059 if test "$host_cpu" = ia64; then
19060 hardcode_direct_CXX=no
19061 hardcode_shlibpath_var_CXX=no
19063 hardcode_direct_CXX=yes
19065 hardcode_minus_L_CXX=yes # Not in the search PATH,
19066 # but as the default
19067 # location of the library.
19069 case $cc_basename in
19071 # FIXME: insert proper C++ library support
19077 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'
19080 if test "$host_cpu" = ia64; then
19081 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19083 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19087 # Commands to make compiler produce verbose output that lists
19088 # what "hidden" libraries, object files and flags are used when
19089 # linking a shared library.
19091 # There doesn't appear to be a way to prevent this compiler from
19092 # explicitly linking system object files so we need to strip them
19093 # from the output so that they don't get included in the library
19095 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19098 if test "$GXX" = yes; then
19099 if test $with_gnu_ld = no; then
19102 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'
19105 if test "$host_cpu" = ia64; then
19106 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19108 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'
19114 # FIXME: insert proper C++ library support
19121 case $cc_basename in
19124 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19126 # Archives containing C++ object files must be created using
19127 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19128 # necessary to make sure instantiated templates are included
19130 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19133 if test "$GXX" = yes; then
19134 if test "$with_gnu_ld" = no; then
19135 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
19140 link_all_deplibs_CXX=yes
19143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19147 case $cc_basename in
19149 # Kuck and Associates, Inc. (KAI) C++ Compiler
19151 # KCC will only create a shared library if the output file
19152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19153 # to its proper name (with version) after linking.
19154 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19155 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19157 # Commands to make compiler produce verbose output that lists
19158 # what "hidden" libraries, object files and flags are used when
19159 # linking a shared library.
19161 # There doesn't appear to be a way to prevent this compiler from
19162 # explicitly linking system object files so we need to strip them
19163 # from the output so that they don't get included in the library
19165 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19167 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170 # Archives containing C++ object files must be created using
19171 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19172 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19176 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19177 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'
19179 runpath_var=LD_RUN_PATH
19180 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19181 hardcode_libdir_separator_CXX=:
19183 # Commands to make compiler produce verbose output that lists
19184 # what "hidden" libraries, object files and flags are used when
19185 # linking a shared library.
19187 # There doesn't appear to be a way to prevent this compiler from
19188 # explicitly linking system object files so we need to strip them
19189 # from the output so that they don't get included in the library
19191 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'
19196 # FIXME: insert proper C++ library support
19200 # FIXME: insert proper C++ library support
19204 case $cc_basename in
19206 # FIXME: insert proper C++ library support
19210 # FIXME: insert proper C++ library support
19216 # NetBSD uses g++ - do we need to do anything?
19219 case $cc_basename in
19221 # Kuck and Associates, Inc. (KAI) C++ Compiler
19223 # KCC will only create a shared library if the output file
19224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19225 # to its proper name (with version) after linking.
19226 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19229 hardcode_libdir_separator_CXX=:
19231 # Archives containing C++ object files must be created using
19232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19237 # Rational C++ 2.4.1
19238 # FIXME: insert proper C++ library support
19242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19243 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19246 hardcode_libdir_separator_CXX=:
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19256 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'
19259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19261 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19264 hardcode_libdir_separator_CXX=:
19266 # Commands to make compiler produce verbose output that lists
19267 # what "hidden" libraries, object files and flags are used when
19268 # linking a shared library.
19269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19272 # FIXME: insert proper C++ library support
19279 case $cc_basename in
19281 # Kuck and Associates, Inc. (KAI) C++ Compiler
19283 # KCC will only create a shared library if the output file
19284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19285 # to its proper name (with version) after linking.
19286 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19289 hardcode_libdir_separator_CXX=:
19291 # Archives containing C++ object files must be created using
19292 # the KAI C++ compiler.
19293 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19296 # Rational C++ 2.4.1
19297 # FIXME: insert proper C++ library support
19301 allow_undefined_flag_CXX=' -expect_unresolved \*'
19302 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
19303 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
19304 echo "-hidden">> $lib.exp~
19305 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
19308 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19309 hardcode_libdir_separator_CXX=:
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19319 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'
19322 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19323 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19324 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19329 # Commands to make compiler produce verbose output that lists
19330 # what "hidden" libraries, object files and flags are used when
19331 # linking a shared library.
19332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
19335 # FIXME: insert proper C++ library support
19342 # FIXME: insert proper C++ library support
19346 archive_cmds_need_lc_CXX=no
19347 case $cc_basename in
19349 # FIXME: insert proper C++ library support
19353 # FIXME: insert proper C++ library support
19359 case $cc_basename in
19362 # FIXME: insert proper C++ library support
19367 # FIXME: insert proper C++ library support
19371 # FIXME: insert proper C++ library support
19377 case $cc_basename in
19379 # Sun C++ 4.2, 5.x and Centerline C++
19380 no_undefined_flag_CXX=' -zdefs'
19381 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19382 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19383 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19385 hardcode_libdir_flag_spec_CXX='-R$libdir'
19386 hardcode_shlibpath_var_CXX=no
19388 solaris2.0-5 | solaris2.0-5.*) ;;
19390 # The C++ compiler is used as linker so we must use $wl
19391 # flag to pass the commands to the underlying system
19393 # Supported since Solaris 2.6 (maybe 2.5.1?)
19394 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19397 link_all_deplibs_CXX=yes
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19403 # There doesn't appear to be a way to prevent this compiler from
19404 # explicitly linking system object files so we need to strip them
19405 # from the output so that they don't get included in the library
19407 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19409 # Archives containing C++ object files must be created using
19410 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19411 # necessary to make sure instantiated templates are included
19413 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19416 # Green Hills C++ Compiler
19417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19419 # The C++ compiler must be used to create the archive.
19420 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19423 # GNU C++ compiler with Solaris linker
19424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19425 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19426 if $CC --version | egrep -v '^2\.7' > /dev/null; then
19427 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19428 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19429 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19431 # Commands to make compiler produce verbose output that lists
19432 # what "hidden" libraries, object files and flags are used when
19433 # linking a shared library.
19434 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19436 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19438 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
19439 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19440 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
19442 # Commands to make compiler produce verbose output that lists
19443 # what "hidden" libraries, object files and flags are used when
19444 # linking a shared library.
19445 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
19448 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19453 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19454 archive_cmds_need_lc_CXX=no
19457 case $cc_basename in
19459 # NonStop-UX NCC 3.20
19460 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19470 # FIXME: insert proper C++ library support
19474 # FIXME: insert proper C++ library support
19478 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19479 echo "${ECHO_T}$ld_shlibs_CXX" >&6
19480 test "$ld_shlibs_CXX" = no && can_build_shared=no
19482 # Figure out "hidden" C++ library dependencies from verbose
19483 # compiler output whening linking a shared library.
19484 cat > conftest.$ac_ext <<EOF
19488 Foo (void) { a = 0; }
19495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19496 (eval $ac_compile) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; then
19500 # Parse the compiler output and extract the necessary
19501 # objects, libraries and library flags.
19503 # Sentinel used to keep track of whether or not we are before
19504 # the conftest object file.
19505 pre_test_object_deps_done=no
19507 # The `*' in the case matches for architectures that use `case' in
19508 # $output_verbose_cmd can trigger glob expansion during the loop
19509 # eval without this substitution.
19510 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
19512 for p in `eval $output_verbose_link_cmd`; do
19516 # Some compilers place space between "-{L,R}" and the path.
19517 # Remove the space.
19518 if test $p = "-L" \
19519 || test $p = "-R"; then
19526 if test "$pre_test_object_deps_done" = no; then
19529 # Internal compiler library paths should come after those
19530 # provided the user. The postdeps already come after the
19531 # user supplied libs so there is no need to process them.
19532 if test -z "$compiler_lib_search_path_CXX"; then
19533 compiler_lib_search_path_CXX="${prev}${p}"
19535 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19538 # The "-l" case would never come before the object being
19539 # linked, so don't bother handling this case.
19542 if test -z "$postdeps_CXX"; then
19543 postdeps_CXX="${prev}${p}"
19545 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19550 *.$objext|*.$libext)
19551 # This assumes that the test object file only shows up
19552 # once in the compiler output.
19553 if test "$p" = "conftest.$objext"; then
19554 pre_test_object_deps_done=yes
19558 if test "$pre_test_object_deps_done" = no; then
19559 if test -z "$predep_objects_CXX"; then
19560 predep_objects_CXX="$p"
19562 predep_objects_CXX="$predep_objects_CXX $p"
19565 if test -z "$postdep_objects_CXX"; then
19566 postdep_objects_CXX="$p"
19568 postdep_objects_CXX="$postdep_objects_CXX $p"
19573 *) ;; # Ignore the rest.
19581 echo "libtool.m4: error: problem compiling C++ test program"
19584 $rm -f confest.$objext
19586 case " $postdeps_CXX " in
19587 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19588 *) archive_cmds_need_lc_CXX=yes ;;
19594 lt_prog_compiler_wl_CXX=
19595 lt_prog_compiler_pic_CXX=
19596 lt_prog_compiler_static_CXX=
19598 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19601 # C++ specific cases for pic, static, wl, etc.
19602 if test "$GXX" = yes; then
19603 lt_prog_compiler_wl_CXX='-Wl,'
19604 lt_prog_compiler_static_CXX='-static'
19608 # All AIX code is PIC.
19609 if test "$host_cpu" = ia64; then
19610 # AIX 5 now supports IA64 processor
19611 lt_prog_compiler_static_CXX='-Bstatic'
19615 # FIXME: we need at least 68020 code to build shared libraries, but
19616 # adding the `-m68020' flag to GCC prevents building anything better,
19618 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19621 # PIC is the default for these OSes.
19623 cygwin* | mingw* | os2*)
19624 # This hack is so that the source file can tell whether it is being
19625 # built for inclusion in a dll (and should export symbols for example).
19626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19628 darwin* | rhapsody*)
19629 # PIC is the default on this platform
19630 # Common symbols not allowed in MH_DYLIB files
19631 lt_prog_compiler_pic_CXX='-fno-common'
19634 # DJGPP does not support shared libraries at all
19635 lt_prog_compiler_pic_CXX=
19638 if test -d /usr/nec; then
19639 lt_prog_compiler_pic_CXX=-Kconform_pic
19643 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
19644 if test "$host_cpu" != ia64; then
19645 lt_prog_compiler_pic_CXX='-fPIC'
19649 lt_prog_compiler_pic_CXX='-fPIC'
19655 # All AIX code is PIC.
19656 if test "$host_cpu" = ia64; then
19657 # AIX 5 now supports IA64 processor
19658 lt_prog_compiler_static_CXX='-Bstatic'
19660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19664 case $cc_basename in
19666 # Green Hills C++ Compiler
19667 # _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"
19672 case $cc_basename in
19674 lt_prog_compiler_pic_CXX='-KPIC'
19677 # Green Hills C++ Compiler
19678 lt_prog_compiler_pic_CXX='-pic'
19685 # FreeBSD uses GNU C++
19687 hpux9* | hpux10* | hpux11*)
19688 case $cc_basename in
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19692 if test "$host_cpu" != ia64; then
19693 lt_prog_compiler_pic_CXX='+Z'
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19699 if test "$host_cpu" != ia64; then
19700 lt_prog_compiler_pic_CXX='+Z'
19707 irix5* | irix6* | nonstopux*)
19708 case $cc_basename in
19710 lt_prog_compiler_wl_CXX='-Wl,'
19711 lt_prog_compiler_static_CXX='-non_shared'
19712 # CC pic flag -KPIC is the default.
19719 case $cc_basename in
19722 lt_prog_compiler_wl_CXX='--backend -Wl,'
19723 lt_prog_compiler_pic_CXX='-fPIC'
19727 # Make sure the PIC flag is empty. It appears that all Alpha
19728 # Linux and Compaq Tru64 Unix objects are PIC.
19729 lt_prog_compiler_pic_CXX=
19730 lt_prog_compiler_static_CXX='-non_shared'
19741 case $cc_basename in
19743 lt_prog_compiler_pic_CXX='-W c,exportall'
19751 osf3* | osf4* | osf5*)
19752 case $cc_basename in
19754 lt_prog_compiler_wl_CXX='--backend -Wl,'
19757 # Rational C++ 2.4.1
19758 lt_prog_compiler_pic_CXX='-pic'
19761 # Digital/Compaq C++
19762 lt_prog_compiler_wl_CXX='-Wl,'
19763 # Make sure the PIC flag is empty. It appears that all Alpha
19764 # Linux and Compaq Tru64 Unix objects are PIC.
19765 lt_prog_compiler_pic_CXX=
19766 lt_prog_compiler_static_CXX='-non_shared'
19775 case $cc_basename in
19777 lt_prog_compiler_pic_CXX='-fPIC'
19784 case $cc_basename in
19786 # Sun C++ 4.2, 5.x and Centerline C++
19787 lt_prog_compiler_pic_CXX='-KPIC'
19788 lt_prog_compiler_static_CXX='-Bstatic'
19789 lt_prog_compiler_wl_CXX='-Qoption ld '
19792 # Green Hills C++ Compiler
19793 lt_prog_compiler_pic_CXX='-PIC'
19800 case $cc_basename in
19803 lt_prog_compiler_pic_CXX='-pic'
19804 lt_prog_compiler_static_CXX='-Bstatic'
19808 lt_prog_compiler_pic_CXX='-pic'
19815 case $cc_basename in
19817 # NonStop-UX NCC 3.20
19818 lt_prog_compiler_pic_CXX='-KPIC'
19829 lt_prog_compiler_can_build_shared_CXX=no
19834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19835 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
19838 # Check to make sure the PIC flag actually works.
19840 if test -n "$lt_prog_compiler_pic_CXX"; then
19841 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
19843 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 lt_prog_compiler_pic_works_CXX=no
19847 ac_outfile=conftest.$ac_objext
19848 save_CFLAGS="$CFLAGS"
19849 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
19850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19851 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
19852 # The compiler can only warn and ignore the option if not recognized
19853 # So say no if there are warnings
19854 if test -s conftest.err; then
19855 # Append any errors to the config.log.
19856 cat conftest.err 1>&5
19858 lt_prog_compiler_pic_works_CXX=yes
19862 CFLAGS="$save_CFLAGS"
19865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19866 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
19868 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19869 case $lt_prog_compiler_pic_CXX in
19871 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19874 lt_prog_compiler_pic_CXX=
19875 lt_prog_compiler_can_build_shared_CXX=no
19880 # For platforms which do not support PIC, -DPIC is meaningless:
19882 lt_prog_compiler_pic_CXX=
19885 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19889 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19891 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 lt_cv_prog_compiler_c_o_CXX=no
19895 $rm -r conftest 2>/dev/null
19899 save_CXXFLAGS="$CXXFLAGS"
19900 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
19901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19903 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19904 # that will create temporary files in the current directory regardless of
19905 # the output directory. Thus, making CWD read-only will cause this test
19906 # to fail, enabling locking or at least warning the user not to do parallel
19910 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
19912 # The compiler can only warn and ignore the option if not recognized
19913 # So say no if there are warnings
19914 if test -s out/conftest.err; then
19915 # Append any errors to the config.log.
19916 cat out/conftest.err 1>&5
19918 lt_cv_prog_compiler_c_o_CXX=yes
19921 CXXFLAGS="$save_CXXFLAGS"
19923 $rm conftest* out/*
19930 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19931 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
19934 hard_links="nottested"
19935 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19936 # do not overwrite the value of need_locks provided by the user
19937 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19938 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943 ln conftest.a conftest.b 2>&5 || hard_links=no
19944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19945 echo "$as_me:$LINENO: result: $hard_links" >&5
19946 echo "${ECHO_T}$hard_links" >&6
19947 if test "$hard_links" = no; then
19948 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19949 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19956 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19957 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
19962 # If we're using GNU nm, then we don't want the "-C" option.
19963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19964 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
19965 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'
19967 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'
19970 cygwin* | mingw* | pw32*)
19971 export_symbols_cmds_CXX="$ltdll_cmds"
19974 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
19978 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19979 echo "${ECHO_T}$ld_shlibs_CXX" >&6
19980 test "$ld_shlibs_CXX" = no && can_build_shared=no
19982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19983 if test "$GCC" = yes; then
19984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19988 # Do we need to explicitly link libc?
19990 archive_cmds_need_lc_CXX=yes
19991 if test "$enable_shared" = yes && test "$GCC" = yes; then
19992 case $archive_cmds_CXX in
19994 # FIXME: we may have to deal with multi-command sequences.
19997 # Test whether the compiler implicitly links with -lc since on some
19998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19999 # to ld, don't add -lc before -lgcc.
20000 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20003 echo 'static int dummy;' > conftest.$ac_ext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } 2>conftest.err; then
20012 libobjs=conftest.$ac_objext
20014 wl=$lt_prog_compiler_wl_CXX
20020 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20021 allow_undefined_flag_CXX=
20022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20023 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }
20028 archive_cmds_need_lc_CXX=no
20030 archive_cmds_need_lc_CXX=yes
20032 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20034 cat conftest.err 1>&5
20037 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20038 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20043 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20044 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20045 hardcode_action_CXX=
20046 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20047 test -n "$runpath_var CXX"; then
20049 # We can hardcode non-existant directories.
20050 if test "$hardcode_direct_CXX" != no &&
20051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20052 # have to relink, otherwise we might link with an installed library
20053 # when we should be linking with a yet-to-be-installed one
20054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20055 test "$hardcode_minus_L_CXX" != no; then
20056 # Linking always hardcodes the temporary library directory.
20057 hardcode_action_CXX=relink
20059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20060 hardcode_action_CXX=immediate
20063 # We cannot hardcode anything, or else we can only hardcode existing
20065 hardcode_action_CXX=unsupported
20067 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20068 echo "${ECHO_T}$hardcode_action_CXX" >&6
20070 if test "$hardcode_action_CXX" = relink; then
20071 # Fast installation is not supported
20072 enable_fast_install=no
20073 elif test "$shlibpath_overrides_runpath" = yes ||
20074 test "$enable_shared" = no; then
20075 # Fast installation is not necessary
20076 enable_fast_install=needless
20081 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20082 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20083 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20086 echo "$as_me:$LINENO: result: yes" >&5
20087 echo "${ECHO_T}yes" >&6
20089 echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6
20093 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20095 library_names_spec=
20096 libname_spec='lib$name'
20099 postuninstall_cmds=
20103 shlibpath_overrides_runpath=unknown
20105 dynamic_linker="$host_os ld.so"
20106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20108 need_lib_prefix=unknown
20109 hardcode_into_libs=no
20111 # when you set need_version to no, make sure it does not cause -set_version
20112 # flags to be left without arguments
20113 need_version=unknown
20118 library_names_spec='${libname}${release}.so$versuffix $libname.a'
20119 shlibpath_var=LIBPATH
20121 # AIX 3 has no versioning support, so we append a major version to the name.
20122 soname_spec='${libname}${release}.so$major'
20127 if test "$host_cpu" = ia64; then
20128 # AIX 5 supports IA64
20129 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
20130 shlibpath_var=LD_LIBRARY_PATH
20132 # With GCC up to 2.95.x, collect2 would create an import file
20133 # for dependence libraries. The import file would start with
20134 # the line `#! .'. This would cause the generated library to
20135 # depend on `.', always an invalid library. This was fixed in
20136 # development snapshots of GCC prior to 3.0.
20138 aix4 | aix4.[01] | aix4.[01].*)
20139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20144 can_build_shared=no
20148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20149 # soname into executable. Probably we can add versioning support to
20150 # collect2, so additional links can be useful in future.
20151 if test "$aix_use_runtimelinking" = yes; then
20152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20153 # instead of lib<name>.a to let people know that these are not
20154 # typical AIX shared libraries.
20155 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20157 # We preserve .a as extension for shared libraries through AIX4.2
20158 # and later when we are not doing run time linking.
20159 library_names_spec='${libname}${release}.a $libname.a'
20160 soname_spec='${libname}${release}.so$major'
20162 shlibpath_var=LIBPATH
20167 library_names_spec='$libname.ixlibrary $libname.a'
20168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20169 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'
20173 library_names_spec='${libname}.so'
20174 dynamic_linker="$host_os ld.so"
20175 shlibpath_var=LIBRARY_PATH
20181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20182 soname_spec='${libname}${release}.so$major'
20183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20187 # the default ld.so.conf also contains /usr/contrib/lib and
20188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20189 # libtool to hard-code these into programs
20192 cygwin* | mingw* | pw32*)
20193 version_type=windows
20196 case $GCC,$host_os in
20198 library_names_spec='$libname.dll.a'
20199 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
20200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20201 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
20202 dldir=$destdir/`dirname \$dlpath`~
20203 test -d \$dldir || mkdir -p \$dldir~
20204 $install_prog .libs/$dlname \$dldir/$dlname'
20205 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
20206 dlpath=$dir/\$dldll~
20210 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
20211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
20212 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
20213 # It is most probably a Windows format PATH printed by
20214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20215 # path with ; separators, and with drive letters. We can handle the
20216 # drive letters (cygwin fileutils understands them), so leave them,
20217 # especially as we might pass files found there to a mingw objdump,
20218 # which wouldn't understand a cygwinified path. Ahh.
20219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
20221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
20225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
20228 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
20231 dynamic_linker='Win32 ld.exe'
20232 # FIXME: first we should search . and the directory the executable is in
20236 darwin* | rhapsody*)
20237 dynamic_linker="$host_os dyld"
20238 version_type=darwin
20241 # FIXME: Relying on posixy $() will cause problems for
20242 # cross-compilation, but unfortunately the echo tests do not
20243 # yet detect zsh echo's removal of \ escapes.
20244 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
20245 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
20246 shlibpath_overrides_runpath=yes
20247 shlibpath_var=DYLD_LIBRARY_PATH
20254 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20255 soname_spec='${libname}${release}.so$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20265 version_type=freebsd-$objformat
20266 case $version_type in
20268 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20273 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
20277 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20282 freebsd3.01* | freebsdelf3.01*)
20283 shlibpath_overrides_runpath=yes
20284 hardcode_into_libs=yes
20287 shlibpath_overrides_runpath=no
20288 hardcode_into_libs=yes
20297 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
20298 soname_spec='${libname}${release}.so$major'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 hardcode_into_libs=yes
20303 hpux9* | hpux10* | hpux11*)
20304 # Give a soname corresponding to the major version so that dld.sl refuses to
20305 # link against other versions.
20309 if test "$host_cpu" = ia64; then
20310 hardcode_into_libs=yes
20311 dynamic_linker="$host_os dld.so"
20312 shlibpath_var=LD_LIBRARY_PATH
20313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20315 soname_spec='${libname}${release}.so$major'
20316 if test "X$HPUX_IA64_MODE" = X32; then
20317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20323 dynamic_linker="$host_os dld.sl"
20324 shlibpath_var=SHLIB_PATH
20325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20326 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
20327 soname_spec='${libname}${release}.sl$major'
20329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20330 postinstall_cmds='chmod 555 $lib'
20333 irix5* | irix6* | nonstopux*)
20335 nonstopux*) version_type=nonstopux ;;
20336 *) version_type=irix ;;
20340 soname_spec='${libname}${release}.so$major'
20341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
20343 irix5* | nonstopux*)
20344 libsuff= shlibsuff=
20347 case $LD in # libtool.m4 will add one of these switches to LD
20348 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
20349 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
20350 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
20351 *) libsuff= shlibsuff= libmagic=never-match;;
20355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20356 shlibpath_overrides_runpath=no
20357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20361 # No shared lib support for Linux oldld, aout, or coff.
20362 linux*oldld* | linux*aout* | linux*coff*)
20366 # This must be Linux ELF.
20371 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20372 soname_spec='${libname}${release}.so$major'
20373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20375 if test "x$LINUX_64_MODE" = x64; then
20376 # Some platforms are per default 64-bit, so there's no /lib64
20377 if test -d /lib64; then
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=no
20383 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20384 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20385 # This implies no fast_install, which is unacceptable.
20386 # Some rework will be needed to allow for fast_install
20387 # before this can be enabled.
20388 hardcode_into_libs=yes
20390 # We used to test for /lib/ld.so.1 and disable shared libraries on
20391 # powerpc, because MkLinux only supported shared libraries with the
20392 # GNU dynamic linker. Since this was broken with cross compilers,
20393 # most powerpc-linux boxes support dynamic linking these days and
20394 # people can always --disable-shared, the test was removed, and we
20395 # assume the GNU/Linux dynamic linker is in use.
20396 dynamic_linker='GNU/Linux ld.so'
20403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20404 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20406 dynamic_linker='NetBSD (a.out) ld.so'
20408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
20409 soname_spec='${libname}${release}.so$major'
20410 dynamic_linker='NetBSD ld.elf_so'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=yes
20414 hardcode_into_libs=yes
20419 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 shlibpath_overrides_runpath=yes
20428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20429 soname_spec='${libname}${release}.so$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 shlibpath_overrides_runpath=yes
20438 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20443 openbsd2.[89] | openbsd2.[89].*)
20444 shlibpath_overrides_runpath=no
20447 shlibpath_overrides_runpath=yes
20451 shlibpath_overrides_runpath=yes
20456 libname_spec='$name'
20458 library_names_spec='$libname.dll $libname.a'
20459 dynamic_linker='OS/2 ld.exe'
20460 shlibpath_var=LIBPATH
20463 osf3* | osf4* | osf5*)
20467 soname_spec='${libname}${release}.so'
20468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20476 soname_spec='${libname}${release}.so$major'
20477 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20478 shlibpath_var=LD_LIBRARY_PATH
20485 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20486 soname_spec='${libname}${release}.so$major'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 hardcode_into_libs=yes
20490 # ldd complains unless libraries are executable
20491 postinstall_cmds='chmod +x $lib'
20496 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
20497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 shlibpath_overrides_runpath=yes
20500 if test "$with_gnu_ld" = yes; then
20506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20508 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20509 soname_spec='${libname}${release}.so$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 case $host_vendor in
20513 shlibpath_overrides_runpath=no
20518 shlibpath_overrides_runpath=no
20519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20525 if test -d /usr/nec ;then
20527 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
20528 soname_spec='$libname.so.$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20535 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
20536 soname_spec='${libname}${release}.so$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20544 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20545 echo "${ECHO_T}$dynamic_linker" >&6
20546 test "$dynamic_linker" = no && can_build_shared=no
20548 if test "x$enable_dlopen" != xyes; then
20549 enable_dlopen=unknown
20550 enable_dlopen_self=unknown
20551 enable_dlopen_self_static=unknown
20558 lt_cv_dlopen="load_add_on"
20560 lt_cv_dlopen_self=yes
20563 cygwin* | mingw* | pw32*)
20564 lt_cv_dlopen="LoadLibrary"
20569 echo "$as_me:$LINENO: checking for shl_load" >&5
20570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20571 if test "${ac_cv_func_shl_load+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 cat >conftest.$ac_ext <<_ACEOF
20575 #line $LINENO "configure"
20576 #include "confdefs.h"
20577 /* System header to define __stub macros and hopefully few prototypes,
20578 which can conflict with char shl_load (); below. */
20579 #include <assert.h>
20580 /* Override any gcc2 internal prototype to avoid an error. */
20584 /* We use char because int might match the return type of a gcc2
20585 builtin and then its argument prototype would still apply. */
20589 #ifdef F77_DUMMY_MAIN
20590 # ifdef __cplusplus
20593 int F77_DUMMY_MAIN() { return 1; }
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -s conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_func_shl_load=yes
20625 echo "$as_me: failed program was:" >&5
20626 cat conftest.$ac_ext >&5
20627 ac_cv_func_shl_load=no
20629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20633 if test $ac_cv_func_shl_load = yes; then
20634 lt_cv_dlopen="shl_load"
20636 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 ac_check_lib_save_LIBS=$LIBS
20643 cat >conftest.$ac_ext <<_ACEOF
20644 #line $LINENO "configure"
20645 #include "confdefs.h"
20647 /* Override any gcc2 internal prototype to avoid an error. */
20651 /* We use char because int might match the return type of a gcc2
20652 builtin and then its argument prototype would still apply. */
20654 #ifdef F77_DUMMY_MAIN
20655 # ifdef __cplusplus
20658 int F77_DUMMY_MAIN() { return 1; }
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
20674 { ac_try='test -s conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_lib_dld_shl_load=yes
20682 echo "$as_me: failed program was:" >&5
20683 cat conftest.$ac_ext >&5
20684 ac_cv_lib_dld_shl_load=no
20686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20687 LIBS=$ac_check_lib_save_LIBS
20689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20690 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20691 if test $ac_cv_lib_dld_shl_load = yes; then
20692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20694 echo "$as_me:$LINENO: checking for dlopen" >&5
20695 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20696 if test "${ac_cv_func_dlopen+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20700 #line $LINENO "configure"
20701 #include "confdefs.h"
20702 /* System header to define __stub macros and hopefully few prototypes,
20703 which can conflict with char dlopen (); below. */
20704 #include <assert.h>
20705 /* Override any gcc2 internal prototype to avoid an error. */
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20714 #ifdef F77_DUMMY_MAIN
20715 # ifdef __cplusplus
20718 int F77_DUMMY_MAIN() { return 1; }
20723 /* The GNU C library defines this for functions which it implements
20724 to always fail with ENOSYS. Some functions are actually named
20725 something starting with __ and the normal name is an alias. */
20726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20736 rm -f conftest.$ac_objext conftest$ac_exeext
20737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20738 (eval $ac_link) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } &&
20742 { ac_try='test -s conftest$ac_exeext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_cv_func_dlopen=yes
20750 echo "$as_me: failed program was:" >&5
20751 cat conftest.$ac_ext >&5
20752 ac_cv_func_dlopen=no
20754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20758 if test $ac_cv_func_dlopen = yes; then
20759 lt_cv_dlopen="dlopen"
20761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 ac_check_lib_save_LIBS=$LIBS
20768 cat >conftest.$ac_ext <<_ACEOF
20769 #line $LINENO "configure"
20770 #include "confdefs.h"
20772 /* Override any gcc2 internal prototype to avoid an error. */
20776 /* We use char because int might match the return type of a gcc2
20777 builtin and then its argument prototype would still apply. */
20779 #ifdef F77_DUMMY_MAIN
20780 # ifdef __cplusplus
20783 int F77_DUMMY_MAIN() { return 1; }
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795 (eval $ac_link) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -s conftest$ac_exeext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_cv_lib_dl_dlopen=yes
20807 echo "$as_me: failed program was:" >&5
20808 cat conftest.$ac_ext >&5
20809 ac_cv_lib_dl_dlopen=no
20811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20812 LIBS=$ac_check_lib_save_LIBS
20814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20816 if test $ac_cv_lib_dl_dlopen = yes; then
20817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20824 ac_check_lib_save_LIBS=$LIBS
20825 LIBS="-lsvld $LIBS"
20826 cat >conftest.$ac_ext <<_ACEOF
20827 #line $LINENO "configure"
20828 #include "confdefs.h"
20830 /* Override any gcc2 internal prototype to avoid an error. */
20834 /* We use char because int might match the return type of a gcc2
20835 builtin and then its argument prototype would still apply. */
20837 #ifdef F77_DUMMY_MAIN
20838 # ifdef __cplusplus
20841 int F77_DUMMY_MAIN() { return 1; }
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853 (eval $ac_link) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -s conftest$ac_exeext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
20863 ac_cv_lib_svld_dlopen=yes
20865 echo "$as_me: failed program was:" >&5
20866 cat conftest.$ac_ext >&5
20867 ac_cv_lib_svld_dlopen=no
20869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20873 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20874 if test $ac_cv_lib_svld_dlopen = yes; then
20875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20877 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 ac_check_lib_save_LIBS=$LIBS
20884 cat >conftest.$ac_ext <<_ACEOF
20885 #line $LINENO "configure"
20886 #include "confdefs.h"
20888 /* Override any gcc2 internal prototype to avoid an error. */
20892 /* We use char because int might match the return type of a gcc2
20893 builtin and then its argument prototype would still apply. */
20895 #ifdef F77_DUMMY_MAIN
20896 # ifdef __cplusplus
20899 int F77_DUMMY_MAIN() { return 1; }
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -s conftest$ac_exeext'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 ac_cv_lib_dld_dld_link=yes
20923 echo "$as_me: failed program was:" >&5
20924 cat conftest.$ac_ext >&5
20925 ac_cv_lib_dld_dld_link=no
20927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20928 LIBS=$ac_check_lib_save_LIBS
20930 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20931 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20932 if test $ac_cv_lib_dld_dld_link = yes; then
20933 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20954 if test "x$lt_cv_dlopen" != xno; then
20960 case $lt_cv_dlopen in
20962 save_CPPFLAGS="$CPPFLAGS"
20963 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20965 save_LDFLAGS="$LDFLAGS"
20966 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20969 LIBS="$lt_cv_dlopen_libs $LIBS"
20971 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20972 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20973 if test "${lt_cv_dlopen_self+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 if test "$cross_compiling" = yes; then :
20977 lt_cv_dlopen_self=cross
20979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20980 lt_status=$lt_dlunknown
20981 cat > conftest.$ac_ext <<EOF
20982 #line 20982 "configure"
20983 #include "confdefs.h"
20992 # define LT_DLGLOBAL RTLD_GLOBAL
20995 # define LT_DLGLOBAL DL_GLOBAL
20997 # define LT_DLGLOBAL 0
21001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21002 find out it does not work in some platform. */
21003 #ifndef LT_DLLAZY_OR_NOW
21005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21008 # define LT_DLLAZY_OR_NOW DL_LAZY
21011 # define LT_DLLAZY_OR_NOW RTLD_NOW
21014 # define LT_DLLAZY_OR_NOW DL_NOW
21016 # define LT_DLLAZY_OR_NOW 0
21024 extern "C" void exit (int);
21027 void fnord() { int i=42;}
21030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21031 int status = $lt_dlunknown;
21035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21037 /* dlclose (self); */
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21048 (./conftest; exit; ) 2>/dev/null
21050 case x$lt_status in
21051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21053 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21056 # compilation failed
21057 lt_cv_dlopen_self=no
21064 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21067 if test "x$lt_cv_dlopen_self" = xyes; then
21068 LDFLAGS="$LDFLAGS $link_static_flag"
21069 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21071 if test "${lt_cv_dlopen_self_static+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 if test "$cross_compiling" = yes; then :
21075 lt_cv_dlopen_self_static=cross
21077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21078 lt_status=$lt_dlunknown
21079 cat > conftest.$ac_ext <<EOF
21080 #line 21080 "configure"
21081 #include "confdefs.h"
21090 # define LT_DLGLOBAL RTLD_GLOBAL
21093 # define LT_DLGLOBAL DL_GLOBAL
21095 # define LT_DLGLOBAL 0
21099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21100 find out it does not work in some platform. */
21101 #ifndef LT_DLLAZY_OR_NOW
21103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21106 # define LT_DLLAZY_OR_NOW DL_LAZY
21109 # define LT_DLLAZY_OR_NOW RTLD_NOW
21112 # define LT_DLLAZY_OR_NOW DL_NOW
21114 # define LT_DLLAZY_OR_NOW 0
21122 extern "C" void exit (int);
21125 void fnord() { int i=42;}
21128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21129 int status = $lt_dlunknown;
21133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21135 /* dlclose (self); */
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142 (eval $ac_link) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21146 (./conftest; exit; ) 2>/dev/null
21148 case x$lt_status in
21149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21151 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21154 # compilation failed
21155 lt_cv_dlopen_self_static=no
21162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21166 CPPFLAGS="$save_CPPFLAGS"
21167 LDFLAGS="$save_LDFLAGS"
21172 case $lt_cv_dlopen_self in
21173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21174 *) enable_dlopen_self=unknown ;;
21177 case $lt_cv_dlopen_self_static in
21178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21179 *) enable_dlopen_self_static=unknown ;;
21184 # The else clause should only fire when bootstrapping the
21185 # libtool distribution, otherwise you forgot to ship ltmain.sh
21186 # with your package, and you will get complaints that there are
21187 # no rules to generate ltmain.sh.
21188 if test -f "$ltmain"; then
21189 # Now quote all the things that may contain metacharacters while being
21190 # careful not to overquote the AC_SUBSTed values. We take copies of the
21191 # variables and quote the copies for generation of the libtool script.
21192 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
21193 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21194 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21195 deplibs_check_method reload_flag reload_cmds need_locks \
21196 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21197 lt_cv_sys_global_symbol_to_c_name_address \
21198 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21199 old_postinstall_cmds old_postuninstall_cmds \
21203 lt_prog_compiler_wl_CXX \
21204 lt_prog_compiler_pic_CXX \
21205 lt_prog_compiler_static_CXX \
21206 lt_prog_compiler_no_builtin_flag_CXX \
21207 export_dynamic_flag_spec_CXX \
21208 thread_safe_flag_spec_CXX \
21209 whole_archive_flag_spec_CXX \
21210 old_archive_cmds_CXX \
21211 old_archive_from_new_cmds_CXX \
21212 predep_objects_CXX \
21213 postdep_objects_CXX \
21216 compiler_lib_search_path_CXX \
21218 archive_expsym_cmds_CXX \
21219 postinstall_cmds_CXX \
21220 postuninstall_cmds_CXX \
21221 old_archive_from_expsyms_cmds_CXX \
21222 allow_undefined_flag_CXX \
21223 no_undefined_flag_CXX \
21224 export_symbols_cmds_CXX \
21225 hardcode_libdir_flag_spec_CXX \
21226 hardcode_libdir_separator_CXX \
21227 lt_cv_prog_compiler_c_o_CXX \
21228 exclude_expsyms_CXX \
21229 include_expsyms_CXX; do
21232 old_archive_cmds_CXX | \
21233 old_archive_from_new_cmds_CXX | \
21234 archive_cmds_CXX | \
21235 archive_expsym_cmds_CXX | \
21236 old_archive_from_expsyms_cmds_CXX | \
21237 export_symbols_cmds_CXX | \
21238 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21239 postinstall_cmds | postuninstall_cmds | \
21240 old_postinstall_cmds | old_postuninstall_cmds | \
21241 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21242 # Double-quote double-evaled strings.
21243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21252 *'\$0 --fallback-echo"')
21253 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21259 cat <<__EOF__ >> "$cfgfile"
21260 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21262 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21264 # Shell to use when invoking shell scripts.
21267 # Whether or not to build shared libraries.
21268 build_libtool_libs=$enable_shared
21270 # Whether or not to build static libraries.
21271 build_old_libs=$enable_static
21273 # Whether or not to add -lc for building shared libraries.
21274 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21276 # Whether or not to optimize for fast installation.
21277 fast_install=$enable_fast_install
21280 host_alias=$host_alias
21283 # An echo program that does not interpret backslashes.
21288 AR_FLAGS=$lt_AR_FLAGS
21293 # A language-specific compiler.
21294 CC=$lt_compiler_CXX
21296 # Is the compiler the GNU C compiler?
21299 # The linker used to build libraries.
21302 # Whether we need hard or soft links.
21305 # A BSD-compatible nm program.
21308 # A sed program that does not truncate output.
21311 # A symbol stripping program
21314 # Used to examine libraries when file_magic_cmd begins "file"
21315 MAGIC_CMD=$MAGIC_CMD
21317 # Used on cygwin: DLL creation program.
21320 # Used on cygwin: object dumper.
21323 # Used on cygwin: assembler.
21326 # The name of the directory that contains temporary libtool files.
21329 # How to create reloadable object files.
21330 reload_flag=$lt_reload_flag
21331 reload_cmds=$lt_reload_cmds
21333 # How to pass a linker flag through the compiler.
21334 wl=$lt_lt_prog_compiler_wl_CXX
21336 # Object file suffix (normally "o").
21337 objext="$ac_objext"
21339 # Old archive suffix (normally "a").
21342 # Executable file suffix (normally "").
21345 # Additional compiler flags for building library objects.
21346 pic_flag=$lt_lt_prog_compiler_pic_CXX
21349 # What is the maximum length of a command?
21350 max_cmd_len=$lt_cv_sys_max_cmd_len
21352 # Does compiler simultaneously support -c and -o options?
21353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21355 # Must we lock files when doing compilation ?
21356 need_locks=$lt_need_locks
21358 # Do we need the lib prefix for modules?
21359 need_lib_prefix=$need_lib_prefix
21361 # Do we need a version for libraries?
21362 need_version=$need_version
21364 # Whether dlopen is supported.
21365 dlopen_support=$enable_dlopen
21367 # Whether dlopen of programs is supported.
21368 dlopen_self=$enable_dlopen_self
21370 # Whether dlopen of statically linked programs is supported.
21371 dlopen_self_static=$enable_dlopen_self_static
21373 # Compiler flag to prevent dynamic linking.
21374 link_static_flag=$lt_lt_prog_compiler_static_CXX
21376 # Compiler flag to turn off builtin functions.
21377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21379 # Compiler flag to allow reflexive dlopens.
21380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21382 # Compiler flag to generate shared objects directly from archives.
21383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21385 # Compiler flag to generate thread-safe objects.
21386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21388 # Library versioning type.
21389 version_type=$version_type
21391 # Format of library name prefix.
21392 libname_spec=$lt_libname_spec
21394 # List of archive names. First name is the real one, the rest are links.
21395 # The last name is the one that the linker finds with -lNAME.
21396 library_names_spec=$lt_library_names_spec
21398 # The coded name of the library, if different from the real name.
21399 soname_spec=$lt_soname_spec
21401 # Commands used to build and install an old-style archive.
21403 old_archive_cmds=$lt_old_archive_cmds_CXX
21404 old_postinstall_cmds=$lt_old_postinstall_cmds
21405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21407 # Create an old-style archive from a shared archive.
21408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21410 # Create a temporary old-style archive to link instead of a shared archive.
21411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21413 # Commands used to build and install a shared archive.
21414 archive_cmds=$lt_archive_cmds_CXX
21415 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21416 postinstall_cmds=$lt_postinstall_cmds
21417 postuninstall_cmds=$lt_postuninstall_cmds
21419 # Commands to strip libraries.
21420 old_striplib=$lt_old_striplib
21421 striplib=$lt_striplib
21423 # Dependencies to place before the objects being linked to create a
21425 predep_objects=$lt_predep_objects_CXX
21427 # Dependencies to place after the objects being linked to create a
21429 postdep_objects=$lt_postdep_objects_CXX
21431 # Dependencies to place before the objects being linked to create a
21433 predeps=$lt_predeps_CXX
21435 # Dependencies to place after the objects being linked to create a
21437 postdeps=$lt_postdeps_CXX
21439 # The library search path used internally by the compiler when linking
21440 # a shared library.
21441 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21443 # Method to check whether dependent libraries are shared objects.
21444 deplibs_check_method=$lt_deplibs_check_method
21446 # Command to use when deplibs_check_method == file_magic.
21447 file_magic_cmd=$lt_file_magic_cmd
21449 # Flag that allows shared libraries with undefined symbols to be built.
21450 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21452 # Flag that forces no undefined symbols.
21453 no_undefined_flag=$lt_no_undefined_flag_CXX
21455 # Commands used to finish a libtool library installation in a directory.
21456 finish_cmds=$lt_finish_cmds
21458 # Same as above, but a single script fragment to be evaled but not shown.
21459 finish_eval=$lt_finish_eval
21461 # Take the output of nm and produce a listing of raw symbols and C names.
21462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21464 # Transform the output of nm in a proper C declaration
21465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21467 # Transform the output of nm in a C name address pair
21468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21470 # This is the shared library runtime path variable.
21471 runpath_var=$runpath_var
21473 # This is the shared library path variable.
21474 shlibpath_var=$shlibpath_var
21476 # Is shlibpath searched before the hard-coded library search path?
21477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21479 # How to hardcode a shared library path into an executable.
21480 hardcode_action=$hardcode_action_CXX
21482 # Whether we should hardcode library paths into libraries.
21483 hardcode_into_libs=$hardcode_into_libs
21485 # Flag to hardcode \$libdir into a binary during linking.
21486 # This must work even if \$libdir does not exist.
21487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21489 # Whether we need a single -rpath flag with a separated argument.
21490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21492 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
21493 # resulting binary.
21494 hardcode_direct=$hardcode_direct_CXX
21496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21497 # resulting binary.
21498 hardcode_minus_L=$hardcode_minus_L_CXX
21500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21501 # the resulting binary.
21502 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21504 # Variables whose values should be saved in libtool wrapper scripts and
21505 # restored at relink time.
21506 variables_saved_for_relink="$variables_saved_for_relink"
21508 # Whether libtool must link a program against all its dependency libraries.
21509 link_all_deplibs=$link_all_deplibs_CXX
21511 # Compile-time system search path for libraries
21512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21514 # Run-time system search path for libraries
21515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21517 # Fix the shell variable \$srcfile for the compiler.
21518 fix_srcfile_path="$fix_srcfile_path_CXX"
21520 # Set to yes if exported symbols are required.
21521 always_export_symbols=$always_export_symbols_CXX
21523 # The commands to list exported symbols.
21524 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21526 # The commands to extract the exported symbol list from a shared archive.
21527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21529 # Symbols that should not be listed in the preloaded symbols.
21530 exclude_expsyms=$lt_exclude_expsyms_CXX
21532 # Symbols that must always be exported.
21533 include_expsyms=$lt_include_expsyms_CXX
21535 # ### END LIBTOOL TAG CONFIG: $tagname
21541 # If there is no Makefile yet, we rely on a make rule to execute
21542 # `config.status --recheck' to rerun these tests and create the
21543 # libtool script then.
21544 test -f Makefile && make "$ltmain"
21549 ac_cpp='$CPP $CPPFLAGS'
21550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21562 # Source file extension for C test sources.
21565 # Object file extension for compiled C test sources.
21569 # Code to be used in simple compile tests
21570 lt_simple_compile_test_code="class foo {}"
21572 # Code to be used in simple link tests
21573 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
21575 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21577 # If no C compiler was specified, use CC.
21580 # Allow CC to be a program name with arguments.
21585 # Allow CC to be a program name with arguments.
21592 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21593 archive_cmds_need_lc_GCJ=no
21596 lt_prog_compiler_no_builtin_flag_GCJ=
21598 if test "$GCC" = yes; then
21599 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21601 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21602 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21603 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 lt_cv_prog_compiler_rtti_exceptions=no
21607 ac_outfile=conftest.$ac_objext
21608 save_CFLAGS="$CFLAGS"
21609 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
21610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21611 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21612 # The compiler can only warn and ignore the option if not recognized
21613 # So say no if there are warnings
21614 if test -s conftest.err; then
21615 # Append any errors to the config.log.
21616 cat conftest.err 1>&5
21618 lt_cv_prog_compiler_rtti_exceptions=yes
21622 CFLAGS="$save_CFLAGS"
21625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21626 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21628 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21629 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21636 lt_prog_compiler_wl_GCJ=
21637 lt_prog_compiler_pic_GCJ=
21638 lt_prog_compiler_static_GCJ=
21640 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21641 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21643 if test "$GCC" = yes; then
21644 lt_prog_compiler_wl_GCJ='-Wl,'
21645 lt_prog_compiler_static_GCJ='-static'
21649 # All AIX code is PIC.
21650 if test "$host_cpu" = ia64; then
21651 # AIX 5 now supports IA64 processor
21652 lt_prog_compiler_static_GCJ='-Bstatic'
21657 # FIXME: we need at least 68020 code to build shared libraries, but
21658 # adding the `-m68020' flag to GCC prevents building anything better,
21660 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21664 # PIC is the default for these OSes.
21667 cygwin* | mingw* | pw32* | os2*)
21668 # This hack is so that the source file can tell whether it is being
21669 # built for inclusion in a dll (and should export symbols for example).
21670 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21673 darwin* | rhapsody*)
21674 # PIC is the default on this platform
21675 # Common symbols not allowed in MH_DYLIB files
21676 lt_prog_compiler_pic_GCJ='-fno-common'
21680 # Just because we use GCC doesn't mean we suddenly get shared libraries
21681 # on systems that don't support them.
21682 lt_prog_compiler_can_build_shared_GCJ=no
21687 if test -d /usr/nec; then
21688 lt_prog_compiler_pic_GCJ=-Kconform_pic
21693 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
21694 if test "$host_cpu" != ia64; then
21695 lt_prog_compiler_pic_GCJ='-fPIC'
21700 lt_prog_compiler_pic_GCJ='-fPIC'
21704 # PORTME Check for flag to pass linker flags through the system compiler.
21707 lt_prog_compiler_wl_GCJ='-Wl,'
21708 if test "$host_cpu" = ia64; then
21709 # AIX 5 now supports IA64 processor
21710 lt_prog_compiler_static_GCJ='-Bstatic'
21712 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21716 cygwin* | mingw* | pw32* | os2*)
21717 # This hack is so that the source file can tell whether it is being
21718 # built for inclusion in a dll (and should export symbols for example).
21719 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21722 hpux9* | hpux10* | hpux11*)
21723 lt_prog_compiler_wl_GCJ='-Wl,'
21724 if test "$host_cpu" != ia64; then
21725 lt_prog_compiler_pic_GCJ='+Z'
21727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21728 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21731 irix5* | irix6* | nonstopux*)
21732 lt_prog_compiler_wl_GCJ='-Wl,'
21733 # PIC (with -KPIC) is the default.
21734 lt_prog_compiler_static_GCJ='-non_shared'
21738 lt_prog_compiler_pic_GCJ='-KPIC'
21739 lt_prog_compiler_static_GCJ='-Bstatic'
21742 osf3* | osf4* | osf5*)
21743 lt_prog_compiler_wl_GCJ='-Wl,'
21744 # All OSF/1 code is PIC.
21745 lt_prog_compiler_static_GCJ='-non_shared'
21749 lt_prog_compiler_pic_GCJ='-Kpic'
21750 lt_prog_compiler_static_GCJ='-dn'
21754 lt_prog_compiler_wl_GCJ='-Wl,'
21755 lt_prog_compiler_pic_GCJ='-KPIC'
21756 lt_prog_compiler_static_GCJ='-Bstatic'
21760 lt_prog_compiler_wl_GCJ='-Qoption ld '
21761 lt_prog_compiler_pic_GCJ='-PIC'
21762 lt_prog_compiler_static_GCJ='-Bstatic'
21765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21766 if test "x$host_vendor" = xsni; then
21767 lt_prog_compiler_wl_GCJ='-LD'
21769 lt_prog_compiler_wl_GCJ='-Wl,'
21771 lt_prog_compiler_pic_GCJ='-KPIC'
21772 lt_prog_compiler_static_GCJ='-Bstatic'
21776 if test -d /usr/nec ;then
21777 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21778 lt_prog_compiler_static_GCJ='-Bstatic'
21783 lt_prog_compiler_pic_GCJ='-pic'
21784 lt_prog_compiler_static_GCJ='-Bstatic'
21788 lt_prog_compiler_can_build_shared_GCJ=no
21793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21794 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21797 # Check to make sure the PIC flag actually works.
21799 if test -n "$lt_prog_compiler_pic_GCJ"; then
21800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21802 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21805 lt_prog_compiler_pic_works_GCJ=no
21806 ac_outfile=conftest.$ac_objext
21807 save_CFLAGS="$CFLAGS"
21808 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
21809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21810 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
21811 # The compiler can only warn and ignore the option if not recognized
21812 # So say no if there are warnings
21813 if test -s conftest.err; then
21814 # Append any errors to the config.log.
21815 cat conftest.err 1>&5
21817 lt_prog_compiler_pic_works_GCJ=yes
21821 CFLAGS="$save_CFLAGS"
21824 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21825 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21827 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21828 case $lt_prog_compiler_pic_GCJ in
21830 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21833 lt_prog_compiler_pic_GCJ=
21834 lt_prog_compiler_can_build_shared_GCJ=no
21839 # For platforms which do not support PIC, -DPIC is meaningless:
21841 lt_prog_compiler_pic_GCJ=
21844 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
21848 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21850 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 lt_cv_prog_compiler_c_o_GCJ=no
21854 $rm -r conftest 2>/dev/null
21858 save_GCJFLAGS="$GCJFLAGS"
21859 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
21860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21862 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
21863 # that will create temporary files in the current directory regardless of
21864 # the output directory. Thus, making CWD read-only will cause this test
21865 # to fail, enabling locking or at least warning the user not to do parallel
21869 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
21871 # The compiler can only warn and ignore the option if not recognized
21872 # So say no if there are warnings
21873 if test -s out/conftest.err; then
21874 # Append any errors to the config.log.
21875 cat out/conftest.err 1>&5
21877 lt_cv_prog_compiler_c_o_GCJ=yes
21880 GCJFLAGS="$save_GCJFLAGS"
21882 $rm conftest* out/*
21889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21890 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21893 hard_links="nottested"
21894 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21895 # do not overwrite the value of need_locks provided by the user
21896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21897 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21902 ln conftest.a conftest.b 2>&5 || hard_links=no
21903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21904 echo "$as_me:$LINENO: result: $hard_links" >&5
21905 echo "${ECHO_T}$hard_links" >&6
21906 if test "$hard_links" = no; then
21907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21908 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21915 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21916 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21919 allow_undefined_flag_GCJ=
21922 archive_cmds_need_lc_GCJ=
21923 archive_expsym_cmds_GCJ=
21924 old_archive_From_new_cmds_GCJ=
21925 old_archive_from_expsyms_cmds_GCJ=
21926 export_dynamic_flag_spec_GCJ=
21927 whole_archive_flag_spec_GCJ=
21928 thread_safe_flag_spec_GCJ=
21929 hardcode_libdir_flag_spec_GCJ=
21930 hardcode_libdir_separator_GCJ=
21931 hardcode_direct_GCJ=no
21932 hardcode_minus_L_GCJ=no
21933 hardcode_shlibpath_var_GCJ=unsupported
21934 link_all_deplibs_GCJ=unknown
21935 always_export_symbols_GCJ=no
21936 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
21937 # include_expsyms should be a list of space-separated symbols to be *always*
21938 # included in the symbol list
21939 include_expsyms_GCJ=
21940 # exclude_expsyms can be an egrep regular expression of symbols to exclude
21941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21943 # as well as any symbol that contains `d'.
21944 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21946 # platforms (ab)use it in PIC code, but their linkers get confused if
21947 # the symbol is explicitly referenced. Since portable code cannot
21948 # rely on this symbol name, it's probably fine to never include it in
21949 # preloaded symbol tables.
21950 extract_expsyms_cmds=
21953 cygwin* | mingw* | pw32*)
21954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21955 # When not using gcc, we currently assume that we are using
21956 # Microsoft Visual C++.
21957 if test "$GCC" != yes; then
21967 if test "$with_gnu_ld" = yes; then
21968 # If archive_cmds runs LD, not CC, wlarc should be empty
21971 # See if GNU ld supports shared libraries.
21973 aix3* | aix4* | aix5*)
21974 # On AIX/PPC, the GNU linker is very broken
21975 if test "$host_cpu" != ia64; then
21979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21980 *** to be unable to reliably create shared libraries on AIX.
21981 *** Therefore, libtool is disabling shared libraries support. If you
21982 *** really care for shared libraries, you may want to modify your PATH
21983 *** so that a non-GNU linker is found, and then restart.
21990 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)'
21991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21992 hardcode_minus_L_GCJ=yes
21994 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21995 # that the semantics of dynamic libraries on AmigaOS, at least up
21996 # to version 4, is to share data among multiple programs linked
21997 # with the same dynamic library. Since this doesn't match the
21998 # behavior of shared libraries on other platforms, we can't use
22004 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22005 allow_undefined_flag_GCJ=unsupported
22006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22007 # support --undefined. This deserves some investigation. FIXME
22008 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22014 cygwin* | mingw* | pw32*)
22015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
22016 # no search path for DLLs.
22017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22018 allow_undefined_flag_GCJ=unsupported
22019 always_export_symbols_GCJ=yes
22021 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
22022 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
22023 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
22024 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
22025 else $CC -o impgen impgen.c ; fi)~
22026 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
22028 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
22030 # cygwin and mingw dlls have different entry points and sets of symbols
22032 # FIXME: what about values for MSVC?
22033 dll_entry=__cygwin_dll_entry@12
22034 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
22038 dll_entry=_DllMainCRTStartup@12
22039 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
22043 # mingw and cygwin differ, and it's simplest to just exclude the union
22044 # of the two symbol sets.
22045 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
22047 # recent cygwin and mingw systems supply a stub DllMain which the user
22048 # can override, but on older systems we have to supply one (in ltdll.c)
22049 if test "x$lt_cv_need_dllmain" = "xyes"; then
22050 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
22051 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
22052 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
22058 # Extract the symbol export list from an `--export-all' def file,
22059 # then regenerate the def file from the symbol export list, so that
22060 # the compiled dll only exports the symbol export list.
22061 # Be careful not to strip the DATA tag left by newer dlltools.
22062 export_symbols_cmds_GCJ="$ltdll_cmds"'
22063 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
22064 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
22066 # If the export-symbols file already is a .def file (1st line
22067 # is EXPORTS), use it as is.
22068 # If DATA tags from a recent dlltool are present, honour them!
22069 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
22070 cp $export_symbols $output_objdir/$soname-def;
22072 echo EXPORTS > $output_objdir/$soname-def;
22074 cat $export_symbols | while read symbol; do
22075 set dummy \$symbol;
22077 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
22078 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
22080 _lt_hint=`expr 1 + \$_lt_hint`;
22084 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
22085 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
22086 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
22087 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
22088 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
22092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22093 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22096 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22097 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22102 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
22106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22107 *** create shared libraries on Solaris systems. Therefore, libtool
22108 *** is disabling shared libraries support. We urge you to upgrade GNU
22109 *** binutils to release 2.9.1 or newer. Another option is to modify
22110 *** your PATH or compiler configuration so that the native linker is
22111 *** used, and then restart.
22114 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22123 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_direct_GCJ=yes
22126 hardcode_shlibpath_var_GCJ=no
22130 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22131 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22132 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22139 if test "$ld_shlibs_GCJ" = yes; then
22140 runpath_var=LD_RUN_PATH
22141 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22142 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22144 cygwin* | mingw* | pw32*)
22145 # dlltool doesn't understand --whole-archive et. al.
22146 whole_archive_flag_spec_GCJ=
22149 # ancient GNU ld didn't support --whole-archive et. al.
22150 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
22151 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22153 whole_archive_flag_spec_GCJ=
22159 # PORTME fill in a description of your system's linker (not GNU ld)
22162 allow_undefined_flag_GCJ=unsupported
22163 always_export_symbols_GCJ=yes
22164 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'
22165 # Note: this linker hardcodes the directories in LIBPATH if there
22166 # are no directories specified by -L.
22167 hardcode_minus_L_GCJ=yes
22168 if test "$GCC" = yes && test -z "$link_static_flag"; then
22169 # Neither direct hardcoding nor static linking is supported with a
22171 hardcode_direct_GCJ=unsupported
22176 if test "$host_cpu" = ia64; then
22177 # On IA64, the linker does run time linking by default, so we don't
22178 # have to do anything special.
22179 aix_use_runtimelinking=no
22180 exp_sym_flag='-Bexport'
22183 # If we're using GNU nm, then we don't want the "-C" option.
22184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22185 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
22186 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'
22188 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'
22191 # KDE requires run time linking. Make it the default.
22192 aix_use_runtimelinking=yes
22193 exp_sym_flag='-bexport'
22194 no_entry_flag='-bnoentry'
22197 # When large executables or shared objects are built, AIX ld can
22198 # have problems creating the table of contents. If linking a library
22199 # or program results in "error TOC overflow" add -mminimal-toc to
22200 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22201 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22203 archive_cmds_GCJ=''
22204 hardcode_direct_GCJ=yes
22205 hardcode_libdir_separator_GCJ=':'
22206 link_all_deplibs_GCJ=yes
22208 if test "$GCC" = yes; then
22209 case $host_os in aix4.012|aix4.012.*)
22210 # We only want to do this on AIX 4.2 and lower, the check
22211 # below for broken collect2 doesn't work under 4.3+
22212 collect2name=`${CC} -print-prog-name=collect2`
22213 if test -f "$collect2name" && \
22214 strings "$collect2name" | grep resolve_lib_name >/dev/null
22216 # We have reworked collect2
22217 hardcode_direct_GCJ=yes
22219 # We have old collect2
22220 hardcode_direct_GCJ=unsupported
22221 # It fails to find uninstalled libraries when the uninstalled
22222 # path is not listed in the libpath. Setting hardcode_minus_L
22223 # to unsupported forces relinking
22224 hardcode_minus_L_GCJ=yes
22225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22226 hardcode_libdir_separator_GCJ=
22229 shared_flag='-shared'
22232 if test "$host_cpu" = ia64; then
22233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22234 # chokes on -Wl,-G. The following line is correct:
22237 if test "$aix_use_runtimelinking" = yes; then
22238 shared_flag='-qmkshrobj ${wl}-G'
22240 shared_flag='-qmkshrobj'
22245 # Let the compiler handle the export list.
22246 always_export_symbols_GCJ=no
22247 if test "$aix_use_runtimelinking" = yes; then
22248 # Warning - without using the other runtime loading flags (-brtl),
22249 # -berok will link without error, but may produce a broken library.
22250 allow_undefined_flag_GCJ='-berok'
22251 # Determine the default libpath from the value encoded in an empty executable.
22252 cat >conftest.$ac_ext <<_ACEOF
22253 #line $LINENO "configure"
22254 #include "confdefs.h"
22256 #ifdef F77_DUMMY_MAIN
22257 # ifdef __cplusplus
22260 int F77_DUMMY_MAIN() { return 1; }
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22272 (eval $ac_link) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -s conftest$ac_exeext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22285 # Check for a 64-bit object if we didn't find anything.
22286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22289 echo "$as_me: failed program was:" >&5
22290 cat conftest.$ac_ext >&5
22292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22296 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
22297 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22299 if test "$host_cpu" = ia64; then
22300 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22301 allow_undefined_flag_GCJ="-z nodefs"
22302 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
22304 # Determine the default libpath from the value encoded in an empty executable.
22305 cat >conftest.$ac_ext <<_ACEOF
22306 #line $LINENO "configure"
22307 #include "confdefs.h"
22309 #ifdef F77_DUMMY_MAIN
22310 # ifdef __cplusplus
22313 int F77_DUMMY_MAIN() { return 1; }
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22325 (eval $ac_link) 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } &&
22329 { ac_try='test -s conftest$ac_exeext'
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }; then
22336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22338 # Check for a 64-bit object if we didn't find anything.
22339 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22342 echo "$as_me: failed program was:" >&5
22343 cat conftest.$ac_ext >&5
22345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22349 # Warning - without using the other run time loading flags,
22350 # -berok will link without error, but may produce a broken library.
22351 no_undefined_flag_GCJ=' ${wl}-bernotok'
22352 allow_undefined_flag_GCJ=' ${wl}-berok'
22353 # -bexpall does not export symbols beginning with underscore (_)
22354 always_export_symbols_GCJ=yes
22355 # Exported symbols can be pulled into shared objects from archives
22356 whole_archive_flag_spec_GCJ=' '
22357 archive_cmds_need_lc_GCJ=yes
22358 # This is similar to how AIX traditionally builds it's shared libraries.
22359 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22365 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)'
22366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22367 hardcode_minus_L_GCJ=yes
22368 # see comment about different semantics on the GNU ld section
22373 export_dynamic_flag_spec_GCJ=-rdynamic
22376 cygwin* | mingw* | pw32*)
22377 # When not using gcc, we currently assume that we are using
22378 # Microsoft Visual C++.
22379 # hardcode_libdir_flag_spec is actually meaningless, as there is
22380 # no search path for DLLs.
22381 hardcode_libdir_flag_spec_GCJ=' '
22382 allow_undefined_flag_GCJ=unsupported
22383 # Tell ltmain to make .lib files, not .a files.
22385 # FIXME: Setting linknames here is a bad hack.
22386 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22387 # The linker will automatically build a .lib file if we build a DLL.
22388 old_archive_From_new_cmds_GCJ='true'
22389 # FIXME: Should let the user specify the lib program.
22390 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22391 fix_srcfile_path='`cygpath -w "$srcfile"`'
22394 darwin* | rhapsody*)
22396 rhapsody* | darwin1.[012])
22397 allow_undefined_flag_GCJ='-undefined suppress'
22400 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22404 # FIXME: Relying on posixy $() will cause problems for
22405 # cross-compilation, but unfortunately the echo tests do not
22406 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
22407 # `"' quotes if we put them in here... so don't!
22408 archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
22409 # We need to add '_' to the symbols in $export_symbols first
22410 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
22411 hardcode_direct_GCJ=yes
22412 hardcode_shlibpath_var_GCJ=no
22413 whole_archive_flag_spec_GCJ='-all_load $convenience'
22417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22419 hardcode_shlibpath_var_GCJ=no
22426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22427 # support. Future versions do this automatically, but an explicit c++rt0.o
22428 # does not break anything, and helps significantly (at the cost of a little
22431 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22433 hardcode_direct_GCJ=yes
22434 hardcode_shlibpath_var_GCJ=no
22437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22440 hardcode_direct_GCJ=yes
22441 hardcode_minus_L_GCJ=yes
22442 hardcode_shlibpath_var_GCJ=no
22445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22447 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22449 hardcode_direct_GCJ=yes
22450 hardcode_shlibpath_var_GCJ=no
22453 hpux9* | hpux10* | hpux11*)
22454 if test "$GCC" = yes; then
22457 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'
22460 if test "$host_cpu" = ia64; then
22461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22470 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'
22473 if test "$host_cpu" = ia64; then
22474 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22476 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22481 if test "$host_cpu" = ia64; then
22482 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22483 hardcode_direct_GCJ=no
22484 hardcode_shlibpath_var_GCJ=no
22486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22487 hardcode_libdir_separator_GCJ=:
22488 hardcode_direct_GCJ=yes
22490 # hardcode_minus_L: Not really in the search PATH,
22491 # but as the default location of the library.
22492 hardcode_minus_L_GCJ=yes
22493 export_dynamic_flag_spec_GCJ='${wl}-E'
22496 irix5* | irix6* | nonstopux*)
22497 if test "$GCC" = yes; then
22498 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'
22500 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'
22502 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22503 hardcode_libdir_separator_GCJ=:
22504 link_all_deplibs_GCJ=yes
22508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22511 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22514 hardcode_direct_GCJ=yes
22515 hardcode_shlibpath_var_GCJ=no
22519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_direct_GCJ=yes
22521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22522 hardcode_libdir_separator_GCJ=:
22523 hardcode_shlibpath_var_GCJ=no
22527 hardcode_direct_GCJ=yes
22528 hardcode_shlibpath_var_GCJ=no
22530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22531 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22533 export_dynamic_flag_spec_GCJ='${wl}-E'
22536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
22542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22550 hardcode_minus_L_GCJ=yes
22551 allow_undefined_flag_GCJ=unsupported
22552 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'
22553 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22557 if test "$GCC" = yes; then
22558 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22559 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'
22561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22562 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'
22564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22565 hardcode_libdir_separator_GCJ=:
22568 osf4* | osf5*) # as osf3* with the addition of -msym flag
22569 if test "$GCC" = yes; then
22570 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22571 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'
22572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22574 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22575 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'
22576 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22577 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22579 # Both c and cxx compiler support -rpath directly
22580 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22582 hardcode_libdir_separator_GCJ=:
22586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22587 hardcode_shlibpath_var_GCJ=no
22588 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22589 runpath_var=LD_RUN_PATH
22590 hardcode_runpath_var=yes
22594 no_undefined_flag_GCJ=' -z text'
22595 if test "$GCC" = yes; then
22596 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22597 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22600 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22605 hardcode_shlibpath_var_GCJ=no
22607 solaris2.[0-5] | solaris2.[0-5].*) ;;
22608 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22609 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22611 link_all_deplibs_GCJ=yes
22615 if test "x$host_vendor" = xsequent; then
22616 # Use $CC to link under sequent, because it throws in some extra .o
22617 # files that make .init and .fini sections work.
22618 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22620 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22623 hardcode_direct_GCJ=yes
22624 hardcode_minus_L_GCJ=yes
22625 hardcode_shlibpath_var_GCJ=no
22629 if test "x$host_vendor" = xsni; then
22630 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
22631 hardcode_direct_GCJ=yes # is this really true???
22633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22634 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22636 runpath_var='LD_RUN_PATH'
22637 hardcode_shlibpath_var_GCJ=no
22641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22642 hardcode_shlibpath_var_GCJ=no
22643 export_dynamic_flag_spec_GCJ='-Bexport'
22647 if test -d /usr/nec; then
22648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22649 hardcode_shlibpath_var_GCJ=no
22650 runpath_var=LD_RUN_PATH
22651 hardcode_runpath_var=yes
22657 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_GCJ=yes
22659 hardcode_minus_L_GCJ=no
22660 hardcode_shlibpath_var_GCJ=no
22661 hardcode_runpath_var=yes
22662 runpath_var=LD_RUN_PATH
22665 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22666 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22667 if test "$GCC" = yes; then
22668 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22670 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22672 runpath_var='LD_RUN_PATH'
22673 hardcode_shlibpath_var_GCJ=no
22677 no_undefined_flag_GCJ=' -z text'
22678 # $CC -shared without GNU ld will not create a library from C++
22679 # object files and a static libstdc++, better avoid it by now
22680 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22681 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22682 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22683 hardcode_libdir_flag_spec_GCJ=
22684 hardcode_shlibpath_var_GCJ=no
22685 runpath_var='LD_RUN_PATH'
22689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22691 hardcode_shlibpath_var_GCJ=no
22700 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22701 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22702 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22705 if test "$GCC" = yes; then
22706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22710 # Do we need to explicitly link libc?
22712 archive_cmds_need_lc_GCJ=yes
22713 if test "$enable_shared" = yes && test "$GCC" = yes; then
22714 case $archive_cmds_GCJ in
22716 # FIXME: we may have to deal with multi-command sequences.
22719 # Test whether the compiler implicitly links with -lc since on some
22720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22721 # to ld, don't add -lc before -lgcc.
22722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22725 echo 'static int dummy;' > conftest.$ac_ext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728 (eval $ac_compile) 2>&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } 2>conftest.err; then
22734 libobjs=conftest.$ac_objext
22736 wl=$lt_prog_compiler_wl_GCJ
22742 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22743 allow_undefined_flag_GCJ=
22744 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22745 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }
22750 archive_cmds_need_lc_GCJ=no
22752 archive_cmds_need_lc_GCJ=yes
22754 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22756 cat conftest.err 1>&5
22759 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22765 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22767 hardcode_action_GCJ=
22768 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22769 test -n "$runpath_var GCJ"; then
22771 # We can hardcode non-existant directories.
22772 if test "$hardcode_direct_GCJ" != no &&
22773 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22774 # have to relink, otherwise we might link with an installed library
22775 # when we should be linking with a yet-to-be-installed one
22776 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22777 test "$hardcode_minus_L_GCJ" != no; then
22778 # Linking always hardcodes the temporary library directory.
22779 hardcode_action_GCJ=relink
22781 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22782 hardcode_action_GCJ=immediate
22785 # We cannot hardcode anything, or else we can only hardcode existing
22787 hardcode_action_GCJ=unsupported
22789 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22790 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22792 if test "$hardcode_action_GCJ" = relink; then
22793 # Fast installation is not supported
22794 enable_fast_install=no
22795 elif test "$shlibpath_overrides_runpath" = yes ||
22796 test "$enable_shared" = no; then
22797 # Fast installation is not necessary
22798 enable_fast_install=needless
22803 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22804 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22805 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22806 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22807 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22808 echo "$as_me:$LINENO: result: yes" >&5
22809 echo "${ECHO_T}yes" >&6
22811 echo "$as_me:$LINENO: result: no" >&5
22812 echo "${ECHO_T}no" >&6
22815 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22817 library_names_spec=
22818 libname_spec='lib$name'
22821 postuninstall_cmds=
22825 shlibpath_overrides_runpath=unknown
22827 dynamic_linker="$host_os ld.so"
22828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22830 need_lib_prefix=unknown
22831 hardcode_into_libs=no
22833 # when you set need_version to no, make sure it does not cause -set_version
22834 # flags to be left without arguments
22835 need_version=unknown
22840 library_names_spec='${libname}${release}.so$versuffix $libname.a'
22841 shlibpath_var=LIBPATH
22843 # AIX 3 has no versioning support, so we append a major version to the name.
22844 soname_spec='${libname}${release}.so$major'
22849 if test "$host_cpu" = ia64; then
22850 # AIX 5 supports IA64
22851 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
22852 shlibpath_var=LD_LIBRARY_PATH
22854 # With GCC up to 2.95.x, collect2 would create an import file
22855 # for dependence libraries. The import file would start with
22856 # the line `#! .'. This would cause the generated library to
22857 # depend on `.', always an invalid library. This was fixed in
22858 # development snapshots of GCC prior to 3.0.
22860 aix4 | aix4.[01] | aix4.[01].*)
22861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22863 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22866 can_build_shared=no
22870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22871 # soname into executable. Probably we can add versioning support to
22872 # collect2, so additional links can be useful in future.
22873 if test "$aix_use_runtimelinking" = yes; then
22874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22875 # instead of lib<name>.a to let people know that these are not
22876 # typical AIX shared libraries.
22877 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22879 # We preserve .a as extension for shared libraries through AIX4.2
22880 # and later when we are not doing run time linking.
22881 library_names_spec='${libname}${release}.a $libname.a'
22882 soname_spec='${libname}${release}.so$major'
22884 shlibpath_var=LIBPATH
22889 library_names_spec='$libname.ixlibrary $libname.a'
22890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22891 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'
22895 library_names_spec='${libname}.so'
22896 dynamic_linker="$host_os ld.so"
22897 shlibpath_var=LIBRARY_PATH
22903 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22904 soname_spec='${libname}${release}.so$major'
22905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22909 # the default ld.so.conf also contains /usr/contrib/lib and
22910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22911 # libtool to hard-code these into programs
22914 cygwin* | mingw* | pw32*)
22915 version_type=windows
22918 case $GCC,$host_os in
22920 library_names_spec='$libname.dll.a'
22921 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
22922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
22923 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
22924 dldir=$destdir/`dirname \$dlpath`~
22925 test -d \$dldir || mkdir -p \$dldir~
22926 $install_prog .libs/$dlname \$dldir/$dlname'
22927 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
22928 dlpath=$dir/\$dldll~
22932 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
22933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
22934 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
22935 # It is most probably a Windows format PATH printed by
22936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22937 # path with ; separators, and with drive letters. We can handle the
22938 # drive letters (cygwin fileutils understands them), so leave them,
22939 # especially as we might pass files found there to a mingw objdump,
22940 # which wouldn't understand a cygwinified path. Ahh.
22941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
22943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
22947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
22950 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
22953 dynamic_linker='Win32 ld.exe'
22954 # FIXME: first we should search . and the directory the executable is in
22958 darwin* | rhapsody*)
22959 dynamic_linker="$host_os dyld"
22960 version_type=darwin
22963 # FIXME: Relying on posixy $() will cause problems for
22964 # cross-compilation, but unfortunately the echo tests do not
22965 # yet detect zsh echo's removal of \ escapes.
22966 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
22967 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
22968 shlibpath_overrides_runpath=yes
22969 shlibpath_var=DYLD_LIBRARY_PATH
22976 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22977 soname_spec='${libname}${release}.so$major'
22978 shlibpath_var=LD_LIBRARY_PATH
22986 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22987 version_type=freebsd-$objformat
22988 case $version_type in
22990 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
22995 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
22999 shlibpath_var=LD_LIBRARY_PATH
23002 shlibpath_overrides_runpath=yes
23004 freebsd3.01* | freebsdelf3.01*)
23005 shlibpath_overrides_runpath=yes
23006 hardcode_into_libs=yes
23009 shlibpath_overrides_runpath=no
23010 hardcode_into_libs=yes
23019 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
23020 soname_spec='${libname}${release}.so$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23022 hardcode_into_libs=yes
23025 hpux9* | hpux10* | hpux11*)
23026 # Give a soname corresponding to the major version so that dld.sl refuses to
23027 # link against other versions.
23031 if test "$host_cpu" = ia64; then
23032 hardcode_into_libs=yes
23033 dynamic_linker="$host_os dld.so"
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23036 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23037 soname_spec='${libname}${release}.so$major'
23038 if test "X$HPUX_IA64_MODE" = X32; then
23039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23045 dynamic_linker="$host_os dld.sl"
23046 shlibpath_var=SHLIB_PATH
23047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23048 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
23049 soname_spec='${libname}${release}.sl$major'
23051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23052 postinstall_cmds='chmod 555 $lib'
23055 irix5* | irix6* | nonstopux*)
23057 nonstopux*) version_type=nonstopux ;;
23058 *) version_type=irix ;;
23062 soname_spec='${libname}${release}.so$major'
23063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
23065 irix5* | nonstopux*)
23066 libsuff= shlibsuff=
23069 case $LD in # libtool.m4 will add one of these switches to LD
23070 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
23071 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
23072 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
23073 *) libsuff= shlibsuff= libmagic=never-match;;
23077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23078 shlibpath_overrides_runpath=no
23079 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23080 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23083 # No shared lib support for Linux oldld, aout, or coff.
23084 linux*oldld* | linux*aout* | linux*coff*)
23088 # This must be Linux ELF.
23093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23094 soname_spec='${libname}${release}.so$major'
23095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23097 if test "x$LINUX_64_MODE" = x64; then
23098 # Some platforms are per default 64-bit, so there's no /lib64
23099 if test -d /lib64; then
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=no
23105 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
23106 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23107 # This implies no fast_install, which is unacceptable.
23108 # Some rework will be needed to allow for fast_install
23109 # before this can be enabled.
23110 hardcode_into_libs=yes
23112 # We used to test for /lib/ld.so.1 and disable shared libraries on
23113 # powerpc, because MkLinux only supported shared libraries with the
23114 # GNU dynamic linker. Since this was broken with cross compilers,
23115 # most powerpc-linux boxes support dynamic linking these days and
23116 # people can always --disable-shared, the test was removed, and we
23117 # assume the GNU/Linux dynamic linker is in use.
23118 dynamic_linker='GNU/Linux ld.so'
23125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23126 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23128 dynamic_linker='NetBSD (a.out) ld.so'
23130 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
23131 soname_spec='${libname}${release}.so$major'
23132 dynamic_linker='NetBSD ld.elf_so'
23134 shlibpath_var=LD_LIBRARY_PATH
23135 shlibpath_overrides_runpath=yes
23136 hardcode_into_libs=yes
23141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 shlibpath_overrides_runpath=yes
23150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23151 soname_spec='${libname}${release}.so$major'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 shlibpath_overrides_runpath=yes
23160 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23162 shlibpath_var=LD_LIBRARY_PATH
23163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23165 openbsd2.[89] | openbsd2.[89].*)
23166 shlibpath_overrides_runpath=no
23169 shlibpath_overrides_runpath=yes
23173 shlibpath_overrides_runpath=yes
23178 libname_spec='$name'
23180 library_names_spec='$libname.dll $libname.a'
23181 dynamic_linker='OS/2 ld.exe'
23182 shlibpath_var=LIBPATH
23185 osf3* | osf4* | osf5*)
23189 soname_spec='${libname}${release}.so'
23190 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
23191 shlibpath_var=LD_LIBRARY_PATH
23192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23198 soname_spec='${libname}${release}.so$major'
23199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23200 shlibpath_var=LD_LIBRARY_PATH
23207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23208 soname_spec='${libname}${release}.so$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 shlibpath_overrides_runpath=yes
23211 hardcode_into_libs=yes
23212 # ldd complains unless libraries are executable
23213 postinstall_cmds='chmod +x $lib'
23218 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
23219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23220 shlibpath_var=LD_LIBRARY_PATH
23221 shlibpath_overrides_runpath=yes
23222 if test "$with_gnu_ld" = yes; then
23228 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23230 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23231 soname_spec='${libname}${release}.so$major'
23232 shlibpath_var=LD_LIBRARY_PATH
23233 case $host_vendor in
23235 shlibpath_overrides_runpath=no
23240 shlibpath_overrides_runpath=no
23241 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23247 if test -d /usr/nec ;then
23249 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
23250 soname_spec='$libname.so.$major'
23251 shlibpath_var=LD_LIBRARY_PATH
23257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
23258 soname_spec='${libname}${release}.so$major'
23259 shlibpath_var=LD_LIBRARY_PATH
23266 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23267 echo "${ECHO_T}$dynamic_linker" >&6
23268 test "$dynamic_linker" = no && can_build_shared=no
23270 if test "x$enable_dlopen" != xyes; then
23271 enable_dlopen=unknown
23272 enable_dlopen_self=unknown
23273 enable_dlopen_self_static=unknown
23280 lt_cv_dlopen="load_add_on"
23282 lt_cv_dlopen_self=yes
23285 cygwin* | mingw* | pw32*)
23286 lt_cv_dlopen="LoadLibrary"
23291 echo "$as_me:$LINENO: checking for shl_load" >&5
23292 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23293 if test "${ac_cv_func_shl_load+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23297 #line $LINENO "configure"
23298 #include "confdefs.h"
23299 /* System header to define __stub macros and hopefully few prototypes,
23300 which can conflict with char shl_load (); below. */
23301 #include <assert.h>
23302 /* Override any gcc2 internal prototype to avoid an error. */
23306 /* We use char because int might match the return type of a gcc2
23307 builtin and then its argument prototype would still apply. */
23311 #ifdef F77_DUMMY_MAIN
23312 # ifdef __cplusplus
23315 int F77_DUMMY_MAIN() { return 1; }
23320 /* The GNU C library defines this for functions which it implements
23321 to always fail with ENOSYS. Some functions are actually named
23322 something starting with __ and the normal name is an alias. */
23323 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23333 rm -f conftest.$ac_objext conftest$ac_exeext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23335 (eval $ac_link) 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
23339 { ac_try='test -s conftest$ac_exeext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 ac_cv_func_shl_load=yes
23347 echo "$as_me: failed program was:" >&5
23348 cat conftest.$ac_ext >&5
23349 ac_cv_func_shl_load=no
23351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23353 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23354 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23355 if test $ac_cv_func_shl_load = yes; then
23356 lt_cv_dlopen="shl_load"
23358 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23359 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23360 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 ac_check_lib_save_LIBS=$LIBS
23365 cat >conftest.$ac_ext <<_ACEOF
23366 #line $LINENO "configure"
23367 #include "confdefs.h"
23369 /* Override any gcc2 internal prototype to avoid an error. */
23373 /* We use char because int might match the return type of a gcc2
23374 builtin and then its argument prototype would still apply. */
23376 #ifdef F77_DUMMY_MAIN
23377 # ifdef __cplusplus
23380 int F77_DUMMY_MAIN() { return 1; }
23390 rm -f conftest.$ac_objext conftest$ac_exeext
23391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392 (eval $ac_link) 2>&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -s conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_lib_dld_shl_load=yes
23404 echo "$as_me: failed program was:" >&5
23405 cat conftest.$ac_ext >&5
23406 ac_cv_lib_dld_shl_load=no
23408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23409 LIBS=$ac_check_lib_save_LIBS
23411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23412 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23413 if test $ac_cv_lib_dld_shl_load = yes; then
23414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23416 echo "$as_me:$LINENO: checking for dlopen" >&5
23417 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23418 if test "${ac_cv_func_dlopen+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23422 #line $LINENO "configure"
23423 #include "confdefs.h"
23424 /* System header to define __stub macros and hopefully few prototypes,
23425 which can conflict with char dlopen (); below. */
23426 #include <assert.h>
23427 /* Override any gcc2 internal prototype to avoid an error. */
23431 /* We use char because int might match the return type of a gcc2
23432 builtin and then its argument prototype would still apply. */
23436 #ifdef F77_DUMMY_MAIN
23437 # ifdef __cplusplus
23440 int F77_DUMMY_MAIN() { return 1; }
23445 /* The GNU C library defines this for functions which it implements
23446 to always fail with ENOSYS. Some functions are actually named
23447 something starting with __ and the normal name is an alias. */
23448 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -s conftest$ac_exeext'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; }; then
23470 ac_cv_func_dlopen=yes
23472 echo "$as_me: failed program was:" >&5
23473 cat conftest.$ac_ext >&5
23474 ac_cv_func_dlopen=no
23476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23478 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23479 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23480 if test $ac_cv_func_dlopen = yes; then
23481 lt_cv_dlopen="dlopen"
23483 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 ac_check_lib_save_LIBS=$LIBS
23490 cat >conftest.$ac_ext <<_ACEOF
23491 #line $LINENO "configure"
23492 #include "confdefs.h"
23494 /* Override any gcc2 internal prototype to avoid an error. */
23498 /* We use char because int might match the return type of a gcc2
23499 builtin and then its argument prototype would still apply. */
23501 #ifdef F77_DUMMY_MAIN
23502 # ifdef __cplusplus
23505 int F77_DUMMY_MAIN() { return 1; }
23515 rm -f conftest.$ac_objext conftest$ac_exeext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517 (eval $ac_link) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } &&
23521 { ac_try='test -s conftest$ac_exeext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 ac_cv_lib_dl_dlopen=yes
23529 echo "$as_me: failed program was:" >&5
23530 cat conftest.$ac_ext >&5
23531 ac_cv_lib_dl_dlopen=no
23533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23534 LIBS=$ac_check_lib_save_LIBS
23536 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23537 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23538 if test $ac_cv_lib_dl_dlopen = yes; then
23539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23541 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23542 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23543 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23546 ac_check_lib_save_LIBS=$LIBS
23547 LIBS="-lsvld $LIBS"
23548 cat >conftest.$ac_ext <<_ACEOF
23549 #line $LINENO "configure"
23550 #include "confdefs.h"
23552 /* Override any gcc2 internal prototype to avoid an error. */
23556 /* We use char because int might match the return type of a gcc2
23557 builtin and then its argument prototype would still apply. */
23559 #ifdef F77_DUMMY_MAIN
23560 # ifdef __cplusplus
23563 int F77_DUMMY_MAIN() { return 1; }
23573 rm -f conftest.$ac_objext conftest$ac_exeext
23574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23575 (eval $ac_link) 2>&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -s conftest$ac_exeext'
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; }; then
23585 ac_cv_lib_svld_dlopen=yes
23587 echo "$as_me: failed program was:" >&5
23588 cat conftest.$ac_ext >&5
23589 ac_cv_lib_svld_dlopen=no
23591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23594 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23595 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23596 if test $ac_cv_lib_svld_dlopen = yes; then
23597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23599 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23600 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23601 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 ac_check_lib_save_LIBS=$LIBS
23606 cat >conftest.$ac_ext <<_ACEOF
23607 #line $LINENO "configure"
23608 #include "confdefs.h"
23610 /* Override any gcc2 internal prototype to avoid an error. */
23614 /* We use char because int might match the return type of a gcc2
23615 builtin and then its argument prototype would still apply. */
23617 #ifdef F77_DUMMY_MAIN
23618 # ifdef __cplusplus
23621 int F77_DUMMY_MAIN() { return 1; }
23631 rm -f conftest.$ac_objext conftest$ac_exeext
23632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23633 (eval $ac_link) 2>&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -s conftest$ac_exeext'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; }; then
23643 ac_cv_lib_dld_dld_link=yes
23645 echo "$as_me: failed program was:" >&5
23646 cat conftest.$ac_ext >&5
23647 ac_cv_lib_dld_dld_link=no
23649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23650 LIBS=$ac_check_lib_save_LIBS
23652 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23653 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23654 if test $ac_cv_lib_dld_dld_link = yes; then
23655 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23676 if test "x$lt_cv_dlopen" != xno; then
23682 case $lt_cv_dlopen in
23684 save_CPPFLAGS="$CPPFLAGS"
23685 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23687 save_LDFLAGS="$LDFLAGS"
23688 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23691 LIBS="$lt_cv_dlopen_libs $LIBS"
23693 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23694 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23695 if test "${lt_cv_dlopen_self+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23698 if test "$cross_compiling" = yes; then :
23699 lt_cv_dlopen_self=cross
23701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23702 lt_status=$lt_dlunknown
23703 cat > conftest.$ac_ext <<EOF
23704 #line 23704 "configure"
23705 #include "confdefs.h"
23714 # define LT_DLGLOBAL RTLD_GLOBAL
23717 # define LT_DLGLOBAL DL_GLOBAL
23719 # define LT_DLGLOBAL 0
23723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23724 find out it does not work in some platform. */
23725 #ifndef LT_DLLAZY_OR_NOW
23727 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23730 # define LT_DLLAZY_OR_NOW DL_LAZY
23733 # define LT_DLLAZY_OR_NOW RTLD_NOW
23736 # define LT_DLLAZY_OR_NOW DL_NOW
23738 # define LT_DLLAZY_OR_NOW 0
23746 extern "C" void exit (int);
23749 void fnord() { int i=42;}
23752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23753 int status = $lt_dlunknown;
23757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23758 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23759 /* dlclose (self); */
23765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23766 (eval $ac_link) 2>&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23770 (./conftest; exit; ) 2>/dev/null
23772 case x$lt_status in
23773 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23774 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23775 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23778 # compilation failed
23779 lt_cv_dlopen_self=no
23786 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23787 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23789 if test "x$lt_cv_dlopen_self" = xyes; then
23790 LDFLAGS="$LDFLAGS $link_static_flag"
23791 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23792 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23793 if test "${lt_cv_dlopen_self_static+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23796 if test "$cross_compiling" = yes; then :
23797 lt_cv_dlopen_self_static=cross
23799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23800 lt_status=$lt_dlunknown
23801 cat > conftest.$ac_ext <<EOF
23802 #line 23802 "configure"
23803 #include "confdefs.h"
23812 # define LT_DLGLOBAL RTLD_GLOBAL
23815 # define LT_DLGLOBAL DL_GLOBAL
23817 # define LT_DLGLOBAL 0
23821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23822 find out it does not work in some platform. */
23823 #ifndef LT_DLLAZY_OR_NOW
23825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23828 # define LT_DLLAZY_OR_NOW DL_LAZY
23831 # define LT_DLLAZY_OR_NOW RTLD_NOW
23834 # define LT_DLLAZY_OR_NOW DL_NOW
23836 # define LT_DLLAZY_OR_NOW 0
23844 extern "C" void exit (int);
23847 void fnord() { int i=42;}
23850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23851 int status = $lt_dlunknown;
23855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23857 /* dlclose (self); */
23863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23864 (eval $ac_link) 2>&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23868 (./conftest; exit; ) 2>/dev/null
23870 case x$lt_status in
23871 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23872 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23873 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23876 # compilation failed
23877 lt_cv_dlopen_self_static=no
23884 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23888 CPPFLAGS="$save_CPPFLAGS"
23889 LDFLAGS="$save_LDFLAGS"
23894 case $lt_cv_dlopen_self in
23895 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23896 *) enable_dlopen_self=unknown ;;
23899 case $lt_cv_dlopen_self_static in
23900 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23901 *) enable_dlopen_self_static=unknown ;;
23906 # The else clause should only fire when bootstrapping the
23907 # libtool distribution, otherwise you forgot to ship ltmain.sh
23908 # with your package, and you will get complaints that there are
23909 # no rules to generate ltmain.sh.
23910 if test -f "$ltmain"; then
23911 # Now quote all the things that may contain metacharacters while being
23912 # careful not to overquote the AC_SUBSTed values. We take copies of the
23913 # variables and quote the copies for generation of the libtool script.
23914 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
23915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23917 deplibs_check_method reload_flag reload_cmds need_locks \
23918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23919 lt_cv_sys_global_symbol_to_c_name_address \
23920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23921 old_postinstall_cmds old_postuninstall_cmds \
23925 lt_prog_compiler_wl_GCJ \
23926 lt_prog_compiler_pic_GCJ \
23927 lt_prog_compiler_static_GCJ \
23928 lt_prog_compiler_no_builtin_flag_GCJ \
23929 export_dynamic_flag_spec_GCJ \
23930 thread_safe_flag_spec_GCJ \
23931 whole_archive_flag_spec_GCJ \
23932 old_archive_cmds_GCJ \
23933 old_archive_from_new_cmds_GCJ \
23934 predep_objects_GCJ \
23935 postdep_objects_GCJ \
23938 compiler_lib_search_path_GCJ \
23940 archive_expsym_cmds_GCJ \
23941 postinstall_cmds_GCJ \
23942 postuninstall_cmds_GCJ \
23943 old_archive_from_expsyms_cmds_GCJ \
23944 allow_undefined_flag_GCJ \
23945 no_undefined_flag_GCJ \
23946 export_symbols_cmds_GCJ \
23947 hardcode_libdir_flag_spec_GCJ \
23948 hardcode_libdir_separator_GCJ \
23949 lt_cv_prog_compiler_c_o_GCJ \
23950 exclude_expsyms_GCJ \
23951 include_expsyms_GCJ; do
23954 old_archive_cmds_GCJ | \
23955 old_archive_from_new_cmds_GCJ | \
23956 archive_cmds_GCJ | \
23957 archive_expsym_cmds_GCJ | \
23958 old_archive_from_expsyms_cmds_GCJ | \
23959 export_symbols_cmds_GCJ | \
23960 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23961 postinstall_cmds | postuninstall_cmds | \
23962 old_postinstall_cmds | old_postuninstall_cmds | \
23963 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23964 # Double-quote double-evaled strings.
23965 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23974 *'\$0 --fallback-echo"')
23975 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23981 cat <<__EOF__ >> "$cfgfile"
23982 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23984 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23986 # Shell to use when invoking shell scripts.
23989 # Whether or not to build shared libraries.
23990 build_libtool_libs=$enable_shared
23992 # Whether or not to build static libraries.
23993 build_old_libs=$enable_static
23995 # Whether or not to add -lc for building shared libraries.
23996 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23998 # Whether or not to optimize for fast installation.
23999 fast_install=$enable_fast_install
24002 host_alias=$host_alias
24005 # An echo program that does not interpret backslashes.
24010 AR_FLAGS=$lt_AR_FLAGS
24015 # A language-specific compiler.
24016 CC=$lt_compiler_GCJ
24018 # Is the compiler the GNU C compiler?
24021 # The linker used to build libraries.
24024 # Whether we need hard or soft links.
24027 # A BSD-compatible nm program.
24030 # A sed program that does not truncate output.
24033 # A symbol stripping program
24036 # Used to examine libraries when file_magic_cmd begins "file"
24037 MAGIC_CMD=$MAGIC_CMD
24039 # Used on cygwin: DLL creation program.
24042 # Used on cygwin: object dumper.
24045 # Used on cygwin: assembler.
24048 # The name of the directory that contains temporary libtool files.
24051 # How to create reloadable object files.
24052 reload_flag=$lt_reload_flag
24053 reload_cmds=$lt_reload_cmds
24055 # How to pass a linker flag through the compiler.
24056 wl=$lt_lt_prog_compiler_wl_GCJ
24058 # Object file suffix (normally "o").
24059 objext="$ac_objext"
24061 # Old archive suffix (normally "a").
24064 # Executable file suffix (normally "").
24067 # Additional compiler flags for building library objects.
24068 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24071 # What is the maximum length of a command?
24072 max_cmd_len=$lt_cv_sys_max_cmd_len
24074 # Does compiler simultaneously support -c and -o options?
24075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24077 # Must we lock files when doing compilation ?
24078 need_locks=$lt_need_locks
24080 # Do we need the lib prefix for modules?
24081 need_lib_prefix=$need_lib_prefix
24083 # Do we need a version for libraries?
24084 need_version=$need_version
24086 # Whether dlopen is supported.
24087 dlopen_support=$enable_dlopen
24089 # Whether dlopen of programs is supported.
24090 dlopen_self=$enable_dlopen_self
24092 # Whether dlopen of statically linked programs is supported.
24093 dlopen_self_static=$enable_dlopen_self_static
24095 # Compiler flag to prevent dynamic linking.
24096 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24098 # Compiler flag to turn off builtin functions.
24099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24101 # Compiler flag to allow reflexive dlopens.
24102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24104 # Compiler flag to generate shared objects directly from archives.
24105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24107 # Compiler flag to generate thread-safe objects.
24108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24110 # Library versioning type.
24111 version_type=$version_type
24113 # Format of library name prefix.
24114 libname_spec=$lt_libname_spec
24116 # List of archive names. First name is the real one, the rest are links.
24117 # The last name is the one that the linker finds with -lNAME.
24118 library_names_spec=$lt_library_names_spec
24120 # The coded name of the library, if different from the real name.
24121 soname_spec=$lt_soname_spec
24123 # Commands used to build and install an old-style archive.
24125 old_archive_cmds=$lt_old_archive_cmds_GCJ
24126 old_postinstall_cmds=$lt_old_postinstall_cmds
24127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24129 # Create an old-style archive from a shared archive.
24130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24132 # Create a temporary old-style archive to link instead of a shared archive.
24133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24135 # Commands used to build and install a shared archive.
24136 archive_cmds=$lt_archive_cmds_GCJ
24137 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24138 postinstall_cmds=$lt_postinstall_cmds
24139 postuninstall_cmds=$lt_postuninstall_cmds
24141 # Commands to strip libraries.
24142 old_striplib=$lt_old_striplib
24143 striplib=$lt_striplib
24145 # Dependencies to place before the objects being linked to create a
24147 predep_objects=$lt_predep_objects_GCJ
24149 # Dependencies to place after the objects being linked to create a
24151 postdep_objects=$lt_postdep_objects_GCJ
24153 # Dependencies to place before the objects being linked to create a
24155 predeps=$lt_predeps_GCJ
24157 # Dependencies to place after the objects being linked to create a
24159 postdeps=$lt_postdeps_GCJ
24161 # The library search path used internally by the compiler when linking
24162 # a shared library.
24163 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24165 # Method to check whether dependent libraries are shared objects.
24166 deplibs_check_method=$lt_deplibs_check_method
24168 # Command to use when deplibs_check_method == file_magic.
24169 file_magic_cmd=$lt_file_magic_cmd
24171 # Flag that allows shared libraries with undefined symbols to be built.
24172 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24174 # Flag that forces no undefined symbols.
24175 no_undefined_flag=$lt_no_undefined_flag_GCJ
24177 # Commands used to finish a libtool library installation in a directory.
24178 finish_cmds=$lt_finish_cmds
24180 # Same as above, but a single script fragment to be evaled but not shown.
24181 finish_eval=$lt_finish_eval
24183 # Take the output of nm and produce a listing of raw symbols and C names.
24184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24186 # Transform the output of nm in a proper C declaration
24187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24189 # Transform the output of nm in a C name address pair
24190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24192 # This is the shared library runtime path variable.
24193 runpath_var=$runpath_var
24195 # This is the shared library path variable.
24196 shlibpath_var=$shlibpath_var
24198 # Is shlibpath searched before the hard-coded library search path?
24199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24201 # How to hardcode a shared library path into an executable.
24202 hardcode_action=$hardcode_action_GCJ
24204 # Whether we should hardcode library paths into libraries.
24205 hardcode_into_libs=$hardcode_into_libs
24207 # Flag to hardcode \$libdir into a binary during linking.
24208 # This must work even if \$libdir does not exist.
24209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24211 # Whether we need a single -rpath flag with a separated argument.
24212 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24214 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24215 # resulting binary.
24216 hardcode_direct=$hardcode_direct_GCJ
24218 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24219 # resulting binary.
24220 hardcode_minus_L=$hardcode_minus_L_GCJ
24222 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24223 # the resulting binary.
24224 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24226 # Variables whose values should be saved in libtool wrapper scripts and
24227 # restored at relink time.
24228 variables_saved_for_relink="$variables_saved_for_relink"
24230 # Whether libtool must link a program against all its dependency libraries.
24231 link_all_deplibs=$link_all_deplibs_GCJ
24233 # Compile-time system search path for libraries
24234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24236 # Run-time system search path for libraries
24237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24239 # Fix the shell variable \$srcfile for the compiler.
24240 fix_srcfile_path="$fix_srcfile_path_GCJ"
24242 # Set to yes if exported symbols are required.
24243 always_export_symbols=$always_export_symbols_GCJ
24245 # The commands to list exported symbols.
24246 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24248 # The commands to extract the exported symbol list from a shared archive.
24249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24251 # Symbols that should not be listed in the preloaded symbols.
24252 exclude_expsyms=$lt_exclude_expsyms_GCJ
24254 # Symbols that must always be exported.
24255 include_expsyms=$lt_include_expsyms_GCJ
24257 # ### END LIBTOOL TAG CONFIG: $tagname
24263 # If there is no Makefile yet, we rely on a make rule to execute
24264 # `config.status --recheck' to rerun these tests and create the
24265 # libtool script then.
24266 test -f Makefile && make "$ltmain"
24271 ac_cpp='$CPP $CPPFLAGS'
24272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24284 # Source file extension for RC test sources.
24287 # Object file extension for compiled RC test sources.
24291 # Code to be used in simple compile tests
24292 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
24294 # Code to be used in simple link tests
24295 lt_simple_link_test_code="$lt_simple_compile_test_code"
24297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24299 # If no C compiler was specified, use CC.
24302 # Allow CC to be a program name with arguments.
24307 # Allow CC to be a program name with arguments.
24313 lt_cv_prog_compiler_c_o_RC=yes
24315 # The else clause should only fire when bootstrapping the
24316 # libtool distribution, otherwise you forgot to ship ltmain.sh
24317 # with your package, and you will get complaints that there are
24318 # no rules to generate ltmain.sh.
24319 if test -f "$ltmain"; then
24320 # Now quote all the things that may contain metacharacters while being
24321 # careful not to overquote the AC_SUBSTed values. We take copies of the
24322 # variables and quote the copies for generation of the libtool script.
24323 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
24324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24326 deplibs_check_method reload_flag reload_cmds need_locks \
24327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24328 lt_cv_sys_global_symbol_to_c_name_address \
24329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24330 old_postinstall_cmds old_postuninstall_cmds \
24334 lt_prog_compiler_wl_RC \
24335 lt_prog_compiler_pic_RC \
24336 lt_prog_compiler_static_RC \
24337 lt_prog_compiler_no_builtin_flag_RC \
24338 export_dynamic_flag_spec_RC \
24339 thread_safe_flag_spec_RC \
24340 whole_archive_flag_spec_RC \
24341 old_archive_cmds_RC \
24342 old_archive_from_new_cmds_RC \
24343 predep_objects_RC \
24344 postdep_objects_RC \
24347 compiler_lib_search_path_RC \
24349 archive_expsym_cmds_RC \
24350 postinstall_cmds_RC \
24351 postuninstall_cmds_RC \
24352 old_archive_from_expsyms_cmds_RC \
24353 allow_undefined_flag_RC \
24354 no_undefined_flag_RC \
24355 export_symbols_cmds_RC \
24356 hardcode_libdir_flag_spec_RC \
24357 hardcode_libdir_separator_RC \
24358 lt_cv_prog_compiler_c_o_RC \
24359 exclude_expsyms_RC \
24360 include_expsyms_RC; do
24363 old_archive_cmds_RC | \
24364 old_archive_from_new_cmds_RC | \
24365 archive_cmds_RC | \
24366 archive_expsym_cmds_RC | \
24367 old_archive_from_expsyms_cmds_RC | \
24368 export_symbols_cmds_RC | \
24369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24370 postinstall_cmds | postuninstall_cmds | \
24371 old_postinstall_cmds | old_postuninstall_cmds | \
24372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24373 # Double-quote double-evaled strings.
24374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24383 *'\$0 --fallback-echo"')
24384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24390 cat <<__EOF__ >> "$cfgfile"
24391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24395 # Shell to use when invoking shell scripts.
24398 # Whether or not to build shared libraries.
24399 build_libtool_libs=$enable_shared
24401 # Whether or not to build static libraries.
24402 build_old_libs=$enable_static
24404 # Whether or not to add -lc for building shared libraries.
24405 build_libtool_need_lc=$archive_cmds_need_lc_RC
24407 # Whether or not to optimize for fast installation.
24408 fast_install=$enable_fast_install
24411 host_alias=$host_alias
24414 # An echo program that does not interpret backslashes.
24419 AR_FLAGS=$lt_AR_FLAGS
24424 # A language-specific compiler.
24427 # Is the compiler the GNU C compiler?
24430 # The linker used to build libraries.
24433 # Whether we need hard or soft links.
24436 # A BSD-compatible nm program.
24439 # A sed program that does not truncate output.
24442 # A symbol stripping program
24445 # Used to examine libraries when file_magic_cmd begins "file"
24446 MAGIC_CMD=$MAGIC_CMD
24448 # Used on cygwin: DLL creation program.
24451 # Used on cygwin: object dumper.
24454 # Used on cygwin: assembler.
24457 # The name of the directory that contains temporary libtool files.
24460 # How to create reloadable object files.
24461 reload_flag=$lt_reload_flag
24462 reload_cmds=$lt_reload_cmds
24464 # How to pass a linker flag through the compiler.
24465 wl=$lt_lt_prog_compiler_wl_RC
24467 # Object file suffix (normally "o").
24468 objext="$ac_objext"
24470 # Old archive suffix (normally "a").
24473 # Executable file suffix (normally "").
24476 # Additional compiler flags for building library objects.
24477 pic_flag=$lt_lt_prog_compiler_pic_RC
24480 # What is the maximum length of a command?
24481 max_cmd_len=$lt_cv_sys_max_cmd_len
24483 # Does compiler simultaneously support -c and -o options?
24484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24486 # Must we lock files when doing compilation ?
24487 need_locks=$lt_need_locks
24489 # Do we need the lib prefix for modules?
24490 need_lib_prefix=$need_lib_prefix
24492 # Do we need a version for libraries?
24493 need_version=$need_version
24495 # Whether dlopen is supported.
24496 dlopen_support=$enable_dlopen
24498 # Whether dlopen of programs is supported.
24499 dlopen_self=$enable_dlopen_self
24501 # Whether dlopen of statically linked programs is supported.
24502 dlopen_self_static=$enable_dlopen_self_static
24504 # Compiler flag to prevent dynamic linking.
24505 link_static_flag=$lt_lt_prog_compiler_static_RC
24507 # Compiler flag to turn off builtin functions.
24508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24510 # Compiler flag to allow reflexive dlopens.
24511 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24513 # Compiler flag to generate shared objects directly from archives.
24514 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24516 # Compiler flag to generate thread-safe objects.
24517 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24519 # Library versioning type.
24520 version_type=$version_type
24522 # Format of library name prefix.
24523 libname_spec=$lt_libname_spec
24525 # List of archive names. First name is the real one, the rest are links.
24526 # The last name is the one that the linker finds with -lNAME.
24527 library_names_spec=$lt_library_names_spec
24529 # The coded name of the library, if different from the real name.
24530 soname_spec=$lt_soname_spec
24532 # Commands used to build and install an old-style archive.
24534 old_archive_cmds=$lt_old_archive_cmds_RC
24535 old_postinstall_cmds=$lt_old_postinstall_cmds
24536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24538 # Create an old-style archive from a shared archive.
24539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24541 # Create a temporary old-style archive to link instead of a shared archive.
24542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24544 # Commands used to build and install a shared archive.
24545 archive_cmds=$lt_archive_cmds_RC
24546 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24547 postinstall_cmds=$lt_postinstall_cmds
24548 postuninstall_cmds=$lt_postuninstall_cmds
24550 # Commands to strip libraries.
24551 old_striplib=$lt_old_striplib
24552 striplib=$lt_striplib
24554 # Dependencies to place before the objects being linked to create a
24556 predep_objects=$lt_predep_objects_RC
24558 # Dependencies to place after the objects being linked to create a
24560 postdep_objects=$lt_postdep_objects_RC
24562 # Dependencies to place before the objects being linked to create a
24564 predeps=$lt_predeps_RC
24566 # Dependencies to place after the objects being linked to create a
24568 postdeps=$lt_postdeps_RC
24570 # The library search path used internally by the compiler when linking
24571 # a shared library.
24572 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24574 # Method to check whether dependent libraries are shared objects.
24575 deplibs_check_method=$lt_deplibs_check_method
24577 # Command to use when deplibs_check_method == file_magic.
24578 file_magic_cmd=$lt_file_magic_cmd
24580 # Flag that allows shared libraries with undefined symbols to be built.
24581 allow_undefined_flag=$lt_allow_undefined_flag_RC
24583 # Flag that forces no undefined symbols.
24584 no_undefined_flag=$lt_no_undefined_flag_RC
24586 # Commands used to finish a libtool library installation in a directory.
24587 finish_cmds=$lt_finish_cmds
24589 # Same as above, but a single script fragment to be evaled but not shown.
24590 finish_eval=$lt_finish_eval
24592 # Take the output of nm and produce a listing of raw symbols and C names.
24593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24595 # Transform the output of nm in a proper C declaration
24596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24598 # Transform the output of nm in a C name address pair
24599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24601 # This is the shared library runtime path variable.
24602 runpath_var=$runpath_var
24604 # This is the shared library path variable.
24605 shlibpath_var=$shlibpath_var
24607 # Is shlibpath searched before the hard-coded library search path?
24608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24610 # How to hardcode a shared library path into an executable.
24611 hardcode_action=$hardcode_action_RC
24613 # Whether we should hardcode library paths into libraries.
24614 hardcode_into_libs=$hardcode_into_libs
24616 # Flag to hardcode \$libdir into a binary during linking.
24617 # This must work even if \$libdir does not exist.
24618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24620 # Whether we need a single -rpath flag with a separated argument.
24621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24623 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
24624 # resulting binary.
24625 hardcode_direct=$hardcode_direct_RC
24627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24628 # resulting binary.
24629 hardcode_minus_L=$hardcode_minus_L_RC
24631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24632 # the resulting binary.
24633 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24635 # Variables whose values should be saved in libtool wrapper scripts and
24636 # restored at relink time.
24637 variables_saved_for_relink="$variables_saved_for_relink"
24639 # Whether libtool must link a program against all its dependency libraries.
24640 link_all_deplibs=$link_all_deplibs_RC
24642 # Compile-time system search path for libraries
24643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24645 # Run-time system search path for libraries
24646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24648 # Fix the shell variable \$srcfile for the compiler.
24649 fix_srcfile_path="$fix_srcfile_path_RC"
24651 # Set to yes if exported symbols are required.
24652 always_export_symbols=$always_export_symbols_RC
24654 # The commands to list exported symbols.
24655 export_symbols_cmds=$lt_export_symbols_cmds_RC
24657 # The commands to extract the exported symbol list from a shared archive.
24658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24660 # Symbols that should not be listed in the preloaded symbols.
24661 exclude_expsyms=$lt_exclude_expsyms_RC
24663 # Symbols that must always be exported.
24664 include_expsyms=$lt_include_expsyms_RC
24666 # ### END LIBTOOL TAG CONFIG: $tagname
24672 # If there is no Makefile yet, we rely on a make rule to execute
24673 # `config.status --recheck' to rerun these tests and create the
24674 # libtool script then.
24675 test -f Makefile && make "$ltmain"
24680 ac_cpp='$CPP $CPPFLAGS'
24681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24690 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24691 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24692 { (exit 1); exit 1; }; }
24696 # Append the new tag name to the list of available tags.
24697 available_tags="$available_tags $tagname"
24702 # Now substitute the updated list of available tags.
24703 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24704 mv "${ofile}T" "$ofile"
24708 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24709 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24710 { (exit 1); exit 1; }; }
24716 LIBTOOL_SHELL="/bin/sh ./libtool"
24717 # LIBTOOL="$LIBTOOL --silent"
24723 all_libraries="$all_libraries $USER_LDFLAGS"
24724 all_includes="$all_includes $USER_INCLUDES"
24732 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
24734 if test ! -s $srcdir/subdirs; then
24736 files=`cd $srcdir && ls -1`
24737 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
24739 echo $i >> $srcdir/subdirs
24743 if test -s $srcdir/inst-apps; then
24744 ac_topsubdirs="`cat $srcdir/inst-apps`"
24746 ac_topsubdirs="`cat $srcdir/subdirs`"
24749 for i in $ac_topsubdirs; do
24750 echo "$as_me:$LINENO: checking if $i should be compiled" >&5
24751 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
24752 if test -d $srcdir/$i; then
24754 for j in $DO_NOT_COMPILE; do
24755 if test $i = $j; then
24762 echo "$as_me:$LINENO: result: $install_it" >&5
24763 echo "${ECHO_T}$install_it" >&6
24764 vari=`echo $i | sed -e 's,[-+.],_,g'`
24765 if test $install_it = "yes"; then
24766 TOPSUBDIRS="$TOPSUBDIRS $i"
24767 eval "$vari""_SUBDIR_included=yes"
24769 eval "$vari""_SUBDIR_included=no"
24775 ac_config_files="$ac_config_files Makefile"
24777 ac_config_files="$ac_config_files ftdi/Makefile"
24779 cat >confcache <<\_ACEOF
24780 # This file is a shell script that caches the results of configure
24781 # tests run on this system so they can be shared between configure
24782 # scripts and configure runs, see configure's option --config-cache.
24783 # It is not useful on other systems. If it contains results you don't
24784 # want to keep, you may remove or edit it.
24786 # config.status only pays attention to the cache file if you give it
24787 # the --recheck option to rerun configure.
24789 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24791 # following values.
24795 # The following way of writing the cache mishandles newlines in values,
24796 # but we know of no workaround that is simple, portable, and efficient.
24797 # So, don't put newlines in cache variables' values.
24798 # Ultrix sh set writes to stderr and can't be redirected directly,
24799 # and sets the high bit in the cache file unless we assign to the vars.
24802 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24804 # `set' does not quote correctly, so add quotes (double-quote
24805 # substitution turns \\\\ into \\, and sed turns \\ into \).
24808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24811 # `set' quotes correctly as required by POSIX, so do not add quotes.
24813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24822 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24824 if cmp -s $cache_file confcache; then :; else
24825 if test -w $cache_file; then
24826 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24827 cat confcache >$cache_file
24829 echo "not updating unwritable cache $cache_file"
24834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24835 # Let make expand exec_prefix.
24836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24838 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24839 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24840 # trailing colons and then remove the whole line if VPATH becomes empty
24841 # (actually we leave an empty line to preserve line numbers).
24842 if test "x$srcdir" = x.; then
24843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24844 s/:*\$(srcdir):*/:/;
24845 s/:*\${srcdir}:*/:/;
24847 s/^\([^=]*=[ ]*\):*/\1/;
24853 DEFS=-DHAVE_CONFIG_H
24856 : ${CONFIG_STATUS=./config.status}
24857 ac_clean_files_save=$ac_clean_files
24858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24859 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24860 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24861 cat >$CONFIG_STATUS <<_ACEOF
24863 # Generated by $as_me.
24864 # Run this file to recreate the current configuration.
24865 # Compiler output produced by configure, useful for debugging
24866 # configure, is in config.log if it exists.
24869 SHELL=\${CONFIG_SHELL-$SHELL}
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24874 ## --------------------- ##
24875 ## M4sh Initialization. ##
24876 ## --------------------- ##
24878 # Be Bourne compatible
24879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24887 # Support unset when possible.
24888 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24894 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24895 { $as_unset LANG || test "${LANG+set}" != set; } ||
24896 { LANG=C; export LANG; }
24897 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24898 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24899 { LC_ALL=C; export LC_ALL; }
24900 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24901 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24902 { LC_TIME=C; export LC_TIME; }
24903 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24904 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24905 { LC_CTYPE=C; export LC_CTYPE; }
24906 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24907 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24908 { LANGUAGE=C; export LANGUAGE; }
24909 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24910 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24911 { LC_COLLATE=C; export LC_COLLATE; }
24912 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24913 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24914 { LC_NUMERIC=C; export LC_NUMERIC; }
24915 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24916 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24917 { LC_MESSAGES=C; export LC_MESSAGES; }
24920 # Name of the executable.
24921 as_me=`(basename "$0") 2>/dev/null ||
24922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24923 X"$0" : 'X\(//\)$' \| \
24924 X"$0" : 'X\(/\)$' \| \
24925 . : '\(.\)' 2>/dev/null ||
24927 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24928 /^X\/\(\/\/\)$/{ s//\1/; q; }
24929 /^X\/\(\/\).*/{ s//\1/; q; }
24932 # PATH needs CR, and LINENO needs CR and PATH.
24933 # Avoid depending upon Character Ranges.
24934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24937 as_cr_digits='0123456789'
24938 as_cr_alnum=$as_cr_Letters$as_cr_digits
24940 # The user is always right.
24941 if test "${PATH_SEPARATOR+set}" != set; then
24942 echo "#! /bin/sh" >conftest.sh
24943 echo "exit 0" >>conftest.sh
24944 chmod +x conftest.sh
24945 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24954 as_lineno_1=$LINENO
24955 as_lineno_2=$LINENO
24956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24957 test "x$as_lineno_1" != "x$as_lineno_2" &&
24958 test "x$as_lineno_3" = "x$as_lineno_2" || {
24959 # Find who we are. Look in the path if we contain no path at all
24962 *[\\/]* ) as_myself=$0 ;;
24963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24964 for as_dir in $PATH
24967 test -z "$as_dir" && as_dir=.
24968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24973 # We did not find ourselves, most probably we were run as `sh COMMAND'
24974 # in which case we are not to be found in the path.
24975 if test "x$as_myself" = x; then
24978 if test ! -f "$as_myself"; then
24979 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24980 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24981 { (exit 1); exit 1; }; }
24983 case $CONFIG_SHELL in
24985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24989 test -z "$as_dir" && as_dir=.
24990 for as_base in sh bash ksh sh5; do
24993 if ("$as_dir/$as_base" -c '
24994 as_lineno_1=$LINENO
24995 as_lineno_2=$LINENO
24996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24997 test "x$as_lineno_1" != "x$as_lineno_2" &&
24998 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24999 CONFIG_SHELL=$as_dir/$as_base
25000 export CONFIG_SHELL
25001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25010 # uniformly replaced by the line number. The first 'sed' inserts a
25011 # line-number line before each line; the second 'sed' does the real
25012 # work. The second script uses 'N' to pair each line-number line
25013 # with the numbered line, and appends trailing '-' during
25014 # substitution so that $LINENO is not a special case at line end.
25015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25017 sed '=' <$as_myself |
25022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25025 s,^['$as_cr_digits']*\n,,
25026 ' >$as_me.lineno &&
25027 chmod +x $as_me.lineno ||
25028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25030 { (exit 1); exit 1; }; }
25032 # Don't try to exec as it changes $[0], causing all sort of problems
25033 # (the dirname of $[0] is not the place where we might find the
25034 # original and so on. Autoconf is especially sensible to this).
25036 # Exit status is that of the last command.
25041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25042 *c*,-n*) ECHO_N= ECHO_C='
25044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25048 if expr a : '\(a\)' >/dev/null 2>&1; then
25054 rm -f conf$$ conf$$.exe conf$$.file
25056 if ln -s conf$$.file conf$$ 2>/dev/null; then
25057 # We could just check for DJGPP; but this test a) works b) is more generic
25058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25059 if test -f conf$$.exe; then
25060 # Don't use ln at all; we don't have any links
25065 elif ln conf$$.file conf$$ 2>/dev/null; then
25070 rm -f conf$$ conf$$.exe conf$$.file
25072 as_executable_p="test -f"
25074 # Sed expression to map a string onto a valid CPP name.
25075 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25077 # Sed expression to map a string onto a valid variable name.
25078 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25082 # We need space, tab and new line, in precisely that order.
25088 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
25092 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25093 # report actual input values of CONFIG_FILES etc. instead of their
25094 # values after options handling. Logging --version etc. is OK.
25098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25099 ## Running $as_me. ##
25104 This file was extended by $as_me, which was
25105 generated by GNU Autoconf 2.53. Invocation command line was
25107 CONFIG_FILES = $CONFIG_FILES
25108 CONFIG_HEADERS = $CONFIG_HEADERS
25109 CONFIG_LINKS = $CONFIG_LINKS
25110 CONFIG_COMMANDS = $CONFIG_COMMANDS
25114 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25118 # Files that config.status was made for.
25119 if test -n "$ac_config_files"; then
25120 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25123 if test -n "$ac_config_headers"; then
25124 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25127 if test -n "$ac_config_links"; then
25128 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25131 if test -n "$ac_config_commands"; then
25132 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25135 cat >>$CONFIG_STATUS <<\_ACEOF
25138 \`$as_me' instantiates files from templates according to the
25139 current configuration.
25141 Usage: $0 [OPTIONS] [FILE]...
25143 -h, --help print this help, then exit
25144 -V, --version print version number, then exit
25145 -d, --debug don't remove temporary files
25146 --recheck update $as_me by reconfiguring in the same conditions
25147 --file=FILE[:TEMPLATE]
25148 instantiate the configuration file FILE
25149 --header=FILE[:TEMPLATE]
25150 instantiate the configuration header FILE
25152 Configuration files:
25155 Configuration headers:
25158 Configuration commands:
25161 Report bugs to <bug-autoconf@gnu.org>."
25164 cat >>$CONFIG_STATUS <<_ACEOF
25167 configured by $0, generated by GNU Autoconf 2.53,
25168 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25170 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25171 Free Software Foundation, Inc.
25172 This config.status script is free software; the Free Software Foundation
25173 gives unlimited permission to copy, distribute and modify it."
25178 cat >>$CONFIG_STATUS <<\_ACEOF
25179 # If no file are specified by the user, then we need to provide default
25180 # value. By we need to know if files were specified by the user.
25186 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25189 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25193 *) # This is not an option, so the user has probably given explicit
25195 ac_need_defaults=false;;
25199 # Handling of the options.
25201 cat >>$CONFIG_STATUS <<_ACEOF
25202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25203 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25204 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25206 cat >>$CONFIG_STATUS <<\_ACEOF
25207 --version | --vers* | -V )
25208 echo "$ac_cs_version"; exit 0 ;;
25210 # Conflict between --help and --header
25211 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25212 Try \`$0 --help' for more information." >&5
25213 echo "$as_me: error: ambiguous option: $1
25214 Try \`$0 --help' for more information." >&2;}
25215 { (exit 1); exit 1; }; };;
25216 --help | --hel | -h )
25217 echo "$ac_cs_usage"; exit 0 ;;
25218 --debug | --d* | -d )
25220 --file | --fil | --fi | --f )
25222 CONFIG_FILES="$CONFIG_FILES $1"
25223 ac_need_defaults=false;;
25224 --header | --heade | --head | --hea )
25226 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25227 ac_need_defaults=false;;
25229 # This is an error.
25230 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25231 Try \`$0 --help' for more information." >&5
25232 echo "$as_me: error: unrecognized option: $1
25233 Try \`$0 --help' for more information." >&2;}
25234 { (exit 1); exit 1; }; } ;;
25236 *) ac_config_targets="$ac_config_targets $1" ;;
25244 cat >>$CONFIG_STATUS <<_ACEOF
25246 # INIT-COMMANDS section.
25249 AMDEP_TRUE="$AMDEP_TRUE"
25250 ac_aux_dir="$ac_aux_dir"
25256 cat >>$CONFIG_STATUS <<\_ACEOF
25257 for ac_config_target in $ac_config_targets
25259 case "$ac_config_target" in
25260 # Handling of arguments.
25261 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25262 "ftdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi/Makefile" ;;
25263 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25264 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25267 { (exit 1); exit 1; }; };;
25271 # If the user did not use the arguments to specify the items to instantiate,
25272 # then the envvar interface is used. Set only those that are not.
25273 # We use the long form for the default assignment because of an extremely
25274 # bizarre bug on SunOS 4.1.3.
25275 if $ac_need_defaults; then
25276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25281 # Create a temporary directory, and hook for its removal unless debugging.
25284 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25285 trap '{ (exit 1); exit 1; }' 1 2 13 15
25288 # Create a (secure) tmp directory for tmp files.
25291 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25292 test -n "$tmp" && test -d "$tmp"
25295 tmp=$TMPDIR/cs$$-$RANDOM
25296 (umask 077 && mkdir $tmp)
25299 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25300 { (exit 1); exit 1; }
25305 cat >>$CONFIG_STATUS <<_ACEOF
25308 # CONFIG_FILES section.
25311 # No need to generate the scripts if there are no CONFIG_FILES.
25312 # This happens for instance when ./config.status config.h
25313 if test -n "\$CONFIG_FILES"; then
25314 # Protect against being on the right side of a sed subst in config.status.
25315 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25316 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25317 s,@SHELL@,$SHELL,;t t
25318 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25319 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25320 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25321 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25322 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25323 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25324 s,@exec_prefix@,$exec_prefix,;t t
25325 s,@prefix@,$prefix,;t t
25326 s,@program_transform_name@,$program_transform_name,;t t
25327 s,@bindir@,$bindir,;t t
25328 s,@sbindir@,$sbindir,;t t
25329 s,@libexecdir@,$libexecdir,;t t
25330 s,@datadir@,$datadir,;t t
25331 s,@sysconfdir@,$sysconfdir,;t t
25332 s,@sharedstatedir@,$sharedstatedir,;t t
25333 s,@localstatedir@,$localstatedir,;t t
25334 s,@libdir@,$libdir,;t t
25335 s,@includedir@,$includedir,;t t
25336 s,@oldincludedir@,$oldincludedir,;t t
25337 s,@infodir@,$infodir,;t t
25338 s,@mandir@,$mandir,;t t
25339 s,@build_alias@,$build_alias,;t t
25340 s,@host_alias@,$host_alias,;t t
25341 s,@target_alias@,$target_alias,;t t
25342 s,@DEFS@,$DEFS,;t t
25343 s,@ECHO_C@,$ECHO_C,;t t
25344 s,@ECHO_N@,$ECHO_N,;t t
25345 s,@ECHO_T@,$ECHO_T,;t t
25346 s,@LIBS@,$LIBS,;t t
25347 s,@build@,$build,;t t
25348 s,@build_cpu@,$build_cpu,;t t
25349 s,@build_vendor@,$build_vendor,;t t
25350 s,@build_os@,$build_os,;t t
25351 s,@host@,$host,;t t
25352 s,@host_cpu@,$host_cpu,;t t
25353 s,@host_vendor@,$host_vendor,;t t
25354 s,@host_os@,$host_os,;t t
25355 s,@target@,$target,;t t
25356 s,@target_cpu@,$target_cpu,;t t
25357 s,@target_vendor@,$target_vendor,;t t
25358 s,@target_os@,$target_os,;t t
25359 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25360 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25361 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25362 s,@PACKAGE@,$PACKAGE,;t t
25363 s,@VERSION@,$VERSION,;t t
25364 s,@EXEEXT@,$EXEEXT,;t t
25365 s,@OBJEXT@,$OBJEXT,;t t
25366 s,@ACLOCAL@,$ACLOCAL,;t t
25367 s,@AUTOCONF@,$AUTOCONF,;t t
25368 s,@AUTOMAKE@,$AUTOMAKE,;t t
25369 s,@AUTOHEADER@,$AUTOHEADER,;t t
25370 s,@MAKEINFO@,$MAKEINFO,;t t
25371 s,@AMTAR@,$AMTAR,;t t
25372 s,@install_sh@,$install_sh,;t t
25373 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25375 s,@SET_MAKE@,$SET_MAKE,;t t
25376 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25377 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25378 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25379 s,@DEPDIR@,$DEPDIR,;t t
25381 s,@CFLAGS@,$CFLAGS,;t t
25382 s,@LDFLAGS@,$LDFLAGS,;t t
25383 s,@CPPFLAGS@,$CPPFLAGS,;t t
25384 s,@ac_ct_CC@,$ac_ct_CC,;t t
25385 s,@am__include@,$am__include,;t t
25386 s,@am__quote@,$am__quote,;t t
25387 s,@CCDEPMODE@,$CCDEPMODE,;t t
25389 s,@CXXFLAGS@,$CXXFLAGS,;t t
25390 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25391 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25392 s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
25393 s,@USE_RTTI@,$USE_RTTI,;t t
25395 s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
25396 s,@REPO@,$REPO,;t t
25397 s,@NOREPO@,$NOREPO,;t t
25398 s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
25399 s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
25400 s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
25401 s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
25402 s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t
25403 s,@LN_S@,$LN_S,;t t
25404 s,@ECHO@,$ECHO,;t t
25405 s,@RANLIB@,$RANLIB,;t t
25406 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25407 s,@STRIP@,$STRIP,;t t
25408 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25409 s,@CXXCPP@,$CXXCPP,;t t
25410 s,@LIBTOOL@,$LIBTOOL,;t t
25411 s,@all_includes@,$all_includes,;t t
25412 s,@all_libraries@,$all_libraries,;t t
25413 s,@AUTODIRS@,$AUTODIRS,;t t
25414 s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420 # Split the substitutions into bite-sized pieces for seds with
25421 # small command number limits, like on Digital OSF/1 and HP-UX.
25422 ac_max_sed_lines=48
25423 ac_sed_frag=1 # Number of current file.
25424 ac_beg=1 # First line for current file.
25425 ac_end=$ac_max_sed_lines # Line after last line for current file.
25428 while $ac_more_lines; do
25429 if test $ac_beg -gt 1; then
25430 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25432 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25434 if test ! -s $tmp/subs.frag; then
25435 ac_more_lines=false
25437 # The purpose of the label and of the branching condition is to
25438 # speed up the sed processing (if there are no `@' at all, there
25439 # is no need to browse any of the substitutions).
25440 # These are the two extra sed commands mentioned above.
25442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25443 if test -z "$ac_sed_cmds"; then
25444 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25446 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25448 ac_sed_frag=`expr $ac_sed_frag + 1`
25450 ac_end=`expr $ac_end + $ac_max_sed_lines`
25453 if test -z "$ac_sed_cmds"; then
25456 fi # test -n "$CONFIG_FILES"
25459 cat >>$CONFIG_STATUS <<\_ACEOF
25460 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25463 - | *:- | *:-:* ) # input from stdin
25465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25469 * ) ac_file_in=$ac_file.in ;;
25472 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25475 X"$ac_file" : 'X\(//\)[^/]' \| \
25476 X"$ac_file" : 'X\(//\)$' \| \
25477 X"$ac_file" : 'X\(/\)' \| \
25478 . : '\(.\)' 2>/dev/null ||
25480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25482 /^X\(\/\/\)$/{ s//\1/; q; }
25483 /^X\(\/\).*/{ s//\1/; q; }
25485 { case "$ac_dir" in
25486 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25490 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25491 case $as_mkdir_dir in
25492 # Skip DOS drivespec
25493 ?:) as_incr_dir=$as_mkdir_dir ;;
25495 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25496 test -d "$as_incr_dir" ||
25497 mkdir "$as_incr_dir" ||
25498 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25499 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25500 { (exit 1); exit 1; }; }
25507 if test "$ac_dir" != .; then
25508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25509 # A "../" for each directory in $ac_dir_suffix.
25510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25512 ac_dir_suffix= ac_top_builddir=
25516 .) # No --srcdir option. We are building in place.
25518 if test -z "$ac_top_builddir"; then
25521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25523 [\\/]* | ?:[\\/]* ) # Absolute path.
25524 ac_srcdir=$srcdir$ac_dir_suffix;
25525 ac_top_srcdir=$srcdir ;;
25526 *) # Relative path.
25527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25530 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25532 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25533 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25534 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25535 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25540 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25543 if test x"$ac_file" != x-; then
25544 { echo "$as_me:$LINENO: creating $ac_file" >&5
25545 echo "$as_me: creating $ac_file" >&6;}
25548 # Let's still pretend it is `configure' which instantiates (i.e., don't
25549 # use $as_me), people would be surprised to read:
25550 # /* config.h. Generated by config.status. */
25551 if test x"$ac_file" = x-; then
25554 configure_input="$ac_file. "
25556 configure_input=$configure_input"Generated from `echo $ac_file_in |
25557 sed 's,.*/,,'` by configure."
25559 # First look for the input files in the build tree, otherwise in the
25561 ac_file_inputs=`IFS=:
25562 for f in $ac_file_in; do
25564 -) echo $tmp/stdin ;;
25566 # Absolute (can't be DOS-style, as IFS=:)
25567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25568 echo "$as_me: error: cannot find input file: $f" >&2;}
25569 { (exit 1); exit 1; }; }
25572 if test -f "$f"; then
25575 elif test -f "$srcdir/$f"; then
25580 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25581 echo "$as_me: error: cannot find input file: $f" >&2;}
25582 { (exit 1); exit 1; }; }
25585 done` || { (exit 1); exit 1; }
25587 cat >>$CONFIG_STATUS <<_ACEOF
25591 cat >>$CONFIG_STATUS <<\_ACEOF
25593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25594 s,@configure_input@,$configure_input,;t t
25595 s,@srcdir@,$ac_srcdir,;t t
25596 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25597 s,@top_srcdir@,$ac_top_srcdir,;t t
25598 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25599 s,@builddir@,$ac_builddir,;t t
25600 s,@abs_builddir@,$ac_abs_builddir,;t t
25601 s,@top_builddir@,$ac_top_builddir,;t t
25602 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25603 s,@INSTALL@,$ac_INSTALL,;t t
25604 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25606 if test x"$ac_file" != x-; then
25607 mv $tmp/out $ac_file
25615 cat >>$CONFIG_STATUS <<\_ACEOF
25618 # CONFIG_HEADER section.
25621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25624 # ac_d sets the value in "#define NAME VALUE" lines.
25625 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25626 ac_dB='[ ].*$,\1#\2'
25629 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25630 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25631 ac_uB='$,\1#\2define\3'
25635 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25638 - | *:- | *:-:* ) # input from stdin
25640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25644 * ) ac_file_in=$ac_file.in ;;
25647 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25648 echo "$as_me: creating $ac_file" >&6;}
25650 # First look for the input files in the build tree, otherwise in the
25652 ac_file_inputs=`IFS=:
25653 for f in $ac_file_in; do
25655 -) echo $tmp/stdin ;;
25657 # Absolute (can't be DOS-style, as IFS=:)
25658 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25659 echo "$as_me: error: cannot find input file: $f" >&2;}
25660 { (exit 1); exit 1; }; }
25663 if test -f "$f"; then
25666 elif test -f "$srcdir/$f"; then
25671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25672 echo "$as_me: error: cannot find input file: $f" >&2;}
25673 { (exit 1); exit 1; }; }
25676 done` || { (exit 1); exit 1; }
25677 # Remove the trailing spaces.
25678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25682 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25683 # `conftest.undefs', that substitutes the proper values into
25684 # config.h.in to produce config.h. The first handles `#define'
25685 # templates, and the second `#undef' templates.
25686 # And first: Protect against being on the right side of a sed subst in
25687 # config.status. Protect against being in an unquoted here document
25688 # in config.status.
25689 rm -f conftest.defines conftest.undefs
25690 # Using a here document instead of a string reduces the quoting nightmare.
25691 # Putting comments in sed scripts is not portable.
25693 # `end' is used to avoid that the second main sed command (meant for
25694 # 0-ary CPP macros) applies to n-ary macro definitions.
25695 # See the Autoconf documentation for `clear'.
25696 cat >confdef2sed.sed <<\_ACEOF
25701 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25703 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25706 # If some macros were called several times there might be several times
25707 # the same #defines, which is useless. Nevertheless, we may not want to
25708 # sort them, since we want the *last* AC-DEFINE to be honored.
25709 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25710 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25711 rm -f confdef2sed.sed
25713 # This sed command replaces #undef with comments. This is necessary, for
25714 # example, in the case of _POSIX_SOURCE, which is predefined and required
25715 # on some systems where configure will not decide to define it.
25716 cat >>conftest.undefs <<\_ACEOF
25717 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25720 # Break up conftest.defines because some shells have a limit on the size
25721 # of here documents, and old seds have small limits too (100 cmds).
25722 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25723 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25724 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25725 echo ' :' >>$CONFIG_STATUS
25726 rm -f conftest.tail
25727 while grep . conftest.defines >/dev/null
25729 # Write a limited-size here document to $tmp/defines.sed.
25730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25731 # Speed up: don't consider the non `#define' lines.
25732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25733 # Work around the forget-to-reset-the-flag bug.
25734 echo 't clr' >>$CONFIG_STATUS
25735 echo ': clr' >>$CONFIG_STATUS
25736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25740 mv $tmp/out $tmp/in
25742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25743 rm -f conftest.defines
25744 mv conftest.tail conftest.defines
25746 rm -f conftest.defines
25747 echo ' fi # egrep' >>$CONFIG_STATUS
25748 echo >>$CONFIG_STATUS
25750 # Break up conftest.undefs because some shells have a limit on the size
25751 # of here documents, and old seds have small limits too (100 cmds).
25752 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25753 rm -f conftest.tail
25754 while grep . conftest.undefs >/dev/null
25756 # Write a limited-size here document to $tmp/undefs.sed.
25757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25758 # Speed up: don't consider the non `#undef'
25759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25760 # Work around the forget-to-reset-the-flag bug.
25761 echo 't clr' >>$CONFIG_STATUS
25762 echo ': clr' >>$CONFIG_STATUS
25763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25767 mv $tmp/out $tmp/in
25769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25770 rm -f conftest.undefs
25771 mv conftest.tail conftest.undefs
25773 rm -f conftest.undefs
25775 cat >>$CONFIG_STATUS <<\_ACEOF
25776 # Let's still pretend it is `configure' which instantiates (i.e., don't
25777 # use $as_me), people would be surprised to read:
25778 # /* config.h. Generated by config.status. */
25779 if test x"$ac_file" = x-; then
25780 echo "/* Generated by configure. */" >$tmp/config.h
25782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25784 cat $tmp/in >>$tmp/config.h
25786 if test x"$ac_file" != x-; then
25787 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25789 echo "$as_me: $ac_file is unchanged" >&6;}
25791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25793 X"$ac_file" : 'X\(//\)[^/]' \| \
25794 X"$ac_file" : 'X\(//\)$' \| \
25795 X"$ac_file" : 'X\(/\)' \| \
25796 . : '\(.\)' 2>/dev/null ||
25798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25800 /^X\(\/\/\)$/{ s//\1/; q; }
25801 /^X\(\/\).*/{ s//\1/; q; }
25803 { case "$ac_dir" in
25804 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25808 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25809 case $as_mkdir_dir in
25810 # Skip DOS drivespec
25811 ?:) as_incr_dir=$as_mkdir_dir ;;
25813 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25814 test -d "$as_incr_dir" ||
25815 mkdir "$as_incr_dir" ||
25816 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25817 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25818 { (exit 1); exit 1; }; }
25824 mv $tmp/config.h $ac_file
25828 rm -f $tmp/config.h
25830 # Run the commands associated with the file.
25832 config.h ) # update the timestamp
25833 echo timestamp >"./stamp-h1"
25838 cat >>$CONFIG_STATUS <<\_ACEOF
25841 # CONFIG_COMMANDS section.
25843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25848 X"$ac_dest" : 'X\(//\)[^/]' \| \
25849 X"$ac_dest" : 'X\(//\)$' \| \
25850 X"$ac_dest" : 'X\(/\)' \| \
25851 . : '\(.\)' 2>/dev/null ||
25853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25855 /^X\(\/\/\)$/{ s//\1/; q; }
25856 /^X\(\/\).*/{ s//\1/; q; }
25860 if test "$ac_dir" != .; then
25861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25862 # A "../" for each directory in $ac_dir_suffix.
25863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25865 ac_dir_suffix= ac_top_builddir=
25869 .) # No --srcdir option. We are building in place.
25871 if test -z "$ac_top_builddir"; then
25874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25876 [\\/]* | ?:[\\/]* ) # Absolute path.
25877 ac_srcdir=$srcdir$ac_dir_suffix;
25878 ac_top_srcdir=$srcdir ;;
25879 *) # Relative path.
25880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25883 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25885 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25886 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25887 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25888 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25891 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25892 echo "$as_me: executing $ac_dest commands" >&6;}
25895 test x"$AMDEP_TRUE" != x"" ||
25896 for mf in $CONFIG_FILES; do
25898 Makefile) dirpart=.;;
25899 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
25902 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25903 # Extract the definition of DEP_FILES from the Makefile without
25905 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25906 test -z "$DEPDIR" && continue
25907 # When using ansi2knr, U may be empty or an underscore; expand it
25908 U=`sed -n -e '/^U = / s///p' < "$mf"`
25909 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25910 # We invoke sed twice because it is the simplest approach to
25911 # changing $(DEPDIR) to its actual value in the expansion.
25912 for file in `sed -n -e '
25913 /^DEP_FILES = .*\\\\$/ {
25922 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25923 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25924 # Make sure the directory exists.
25925 test -f "$dirpart/$file" && continue
25926 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
25927 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
25928 # echo "creating $dirpart/$file"
25929 echo '# dummy' > "$dirpart/$file"
25937 cat >>$CONFIG_STATUS <<\_ACEOF
25939 { (exit 0); exit 0; }
25941 if test "x$with_fast_perl" = "xyes"; then
25942 perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
25943 || mv $CONFIG_STATUS.bak $CONFIG_STATUS
25944 rm -f $CONFIG_STATUS.bak
25946 chmod +x $CONFIG_STATUS
25947 ac_clean_files=$ac_clean_files_save
25950 # configure is writing to config.log, and then calls config.status.
25951 # config.status does its own redirection, appending to config.log.
25952 # Unfortunately, on DOS this fails, as config.log is still kept open
25953 # by configure, so config.status won't be able to write to it; its
25954 # output is simply discarded. So we exec the FD to /dev/null,
25955 # effectively closing config.log, so it can be properly (re)opened and
25956 # appended to by config.status. When coming back to configure, we
25957 # need to make the FD available again.
25958 if test "$no_create" != yes; then
25961 $SHELL $CONFIG_STATUS || ac_cs_success=false
25963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25964 # would make configure fail if this is the last instruction.
25965 $ac_cs_success || { (exit 1); exit 1; }
25968 if test "$all_tests" = "bad"; then
25969 if test ! "$cache_file" = "/dev/null"; then
25971 echo "Please remove the file $cache_file after changing your setup"
25972 echo "so that configure will find the changes next time."
25977 echo "Good - your configure finished. Start make now"