2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Check that we are running under the correct shell.
11 SHELL=${CONFIG_SHELL-/bin/sh}
15 # Remove one level of quotation (which was required for Make).
16 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
21 if test "X$1" = X--no-reexec; then
22 # Discard the --no-reexec flag, and continue.
24 elif test "X$1" = X--fallback-echo; then
25 # Avoid inline document here, it may be left over
27 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
28 # Yippee, $echo works!
31 # Restart under the correct shell.
32 exec $SHELL "$0" --no-reexec ${1+"$@"}
35 if test "X$1" = X--fallback-echo; then
36 # used as fallback echo
44 # The HP-UX ksh and POSIX shell print the target directory to stdout
46 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
48 if test -z "$ECHO"; then
49 if test "X${echo_test_string+set}" != Xset; then
50 # find a string as large as possible, as long as the shell can cope with it
51 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
52 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
53 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
54 echo_test_string="`eval $cmd`" &&
55 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
62 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
63 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
64 test "X$echo_testing_string" = "X$echo_test_string"; then
67 # The Solaris, AIX, and Digital Unix default echo programs unquote
68 # backslashes. This makes it impossible to quote backslashes using
69 # echo "$something" | sed 's/\\/\\\\/g'
71 # So, first we look for a working echo in the user's PATH.
73 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
74 for dir in $PATH /usr/ucb; do
76 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
77 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
78 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
79 test "X$echo_testing_string" = "X$echo_test_string"; then
86 if test "X$echo" = Xecho; then
87 # We didn't find a better echo, so look for alternatives.
88 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
91 # This shell has a builtin print -r that does the trick.
93 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
94 test "X$CONFIG_SHELL" != X/bin/ksh; then
95 # If we have ksh, try running configure again with it.
96 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
97 export ORIGINAL_CONFIG_SHELL
100 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
104 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
105 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
106 test "X$echo_testing_string" = "X$echo_test_string"; then
109 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
110 test "X$echo_testing_string" = 'X\t' &&
111 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
112 test "X$echo_testing_string" = "X$echo_test_string"; then
113 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
115 SHELL="$CONFIG_SHELL"
117 echo="$CONFIG_SHELL $0 --fallback-echo"
118 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 echo="$CONFIG_SHELL $0 --fallback-echo"
124 # maybe with a smaller string...
127 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
128 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
135 if test "$prev" != 'sed 50q "$0"'; then
136 echo_test_string=`eval $prev`
137 export echo_test_string
138 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
140 # Oops. We lost completely, so just stick with echo.
149 # Copy echo and quote the copy suitably for passing to libtool from
150 # the Makefile, instead of quoting the original, which is used later.
152 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
153 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
156 # Check that we are running under the correct shell.
157 SHELL=${CONFIG_SHELL-/bin/sh}
161 # Remove one level of quotation (which was required for Make).
162 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
167 if test "X$1" = X--no-reexec; then
168 # Discard the --no-reexec flag, and continue.
170 elif test "X$1" = X--fallback-echo; then
171 # Avoid inline document here, it may be left over
173 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
174 # Yippee, $echo works!
177 # Restart under the correct shell.
178 exec $SHELL "$0" --no-reexec ${1+"$@"}
181 if test "X$1" = X--fallback-echo; then
182 # used as fallback echo
190 # The HP-UX ksh and POSIX shell print the target directory to stdout
192 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
194 if test -z "$ECHO"; then
195 if test "X${echo_test_string+set}" != Xset; then
196 # find a string as large as possible, as long as the shell can cope with it
197 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
198 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
199 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
200 echo_test_string="`eval $cmd`" &&
201 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
208 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
209 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
210 test "X$echo_testing_string" = "X$echo_test_string"; then
213 # The Solaris, AIX, and Digital Unix default echo programs unquote
214 # backslashes. This makes it impossible to quote backslashes using
215 # echo "$something" | sed 's/\\/\\\\/g'
217 # So, first we look for a working echo in the user's PATH.
219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
220 for dir in $PATH /usr/ucb; do
222 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
223 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
224 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
225 test "X$echo_testing_string" = "X$echo_test_string"; then
232 if test "X$echo" = Xecho; then
233 # We didn't find a better echo, so look for alternatives.
234 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
235 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
236 test "X$echo_testing_string" = "X$echo_test_string"; then
237 # This shell has a builtin print -r that does the trick.
239 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
240 test "X$CONFIG_SHELL" != X/bin/ksh; then
241 # If we have ksh, try running configure again with it.
242 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
243 export ORIGINAL_CONFIG_SHELL
244 CONFIG_SHELL=/bin/ksh
246 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
250 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
251 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
252 test "X$echo_testing_string" = "X$echo_test_string"; then
255 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
256 test "X$echo_testing_string" = 'X\t' &&
257 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
258 test "X$echo_testing_string" = "X$echo_test_string"; then
259 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
261 SHELL="$CONFIG_SHELL"
263 echo="$CONFIG_SHELL $0 --fallback-echo"
264 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
265 test "X$echo_testing_string" = 'X\t' &&
266 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
268 echo="$CONFIG_SHELL $0 --fallback-echo"
270 # maybe with a smaller string...
273 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
274 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
281 if test "$prev" != 'sed 50q "$0"'; then
282 echo_test_string=`eval $prev`
283 export echo_test_string
284 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
286 # Oops. We lost completely, so just stick with echo.
295 # Copy echo and quote the copy suitably for passing to libtool from
296 # the Makefile, instead of quoting the original, which is used later.
298 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
299 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
302 # Avoid depending upon Character Ranges.
303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
306 as_cr_digits='0123456789'
307 as_cr_alnum=$as_cr_Letters$as_cr_digits
309 # Sed expression to map a string onto a valid variable name.
310 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
312 # Sed expression to map a string onto a valid CPP name.
313 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
315 # Be Bourne compatible
316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
319 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
323 # Name of the executable.
324 as_me=`echo "$0" |sed 's,.*[\\/],,'`
326 if expr a : '\(a\)' >/dev/null 2>&1; then
332 rm -f conf$$ conf$$.exe conf$$.file
334 if ln -s conf$$.file conf$$ 2>/dev/null; then
335 # We could just check for DJGPP; but this test a) works b) is more generic
336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
337 if test -f conf$$.exe; then
338 # Don't use ln at all; we don't have any links
343 elif ln conf$$.file conf$$ 2>/dev/null; then
348 rm -f conf$$ conf$$.exe conf$$.file
350 as_executable_p="test -f"
352 # Support unset when possible.
353 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
360 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
361 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
362 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
363 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
364 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
365 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
366 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
367 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
370 # We need space, tab and new line, in precisely that order.
376 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
379 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
380 # so uname gets run too.
381 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
388 ac_default_prefix=/usr/local
392 SHELL=${CONFIG_SHELL-/bin/sh}
394 # Maximum number of lines to put in a shell here document.
395 # This variable seems obsolete. It should probably be removed, and
396 # only ac_max_sed_lines should be used.
397 : ${ac_max_here_lines=38}
399 ac_unique_file="acinclude.m4"
400 ac_default_prefix=/usr/local
402 # Initialize some variables set by options.
404 ac_init_version=false
405 # The variables have the same names as the options, with
406 # dashes changed to underlines.
414 program_transform_name=s,x,x,
422 # Installation directory options.
423 # These are left unexpanded so users can "make install exec_prefix=/foo"
424 # and all the variables that are supposed to be based on exec_prefix
425 # by default will actually change.
426 # Use braces instead of parens because sh, perl, etc. also accept them.
427 bindir='${exec_prefix}/bin'
428 sbindir='${exec_prefix}/sbin'
429 libexecdir='${exec_prefix}/libexec'
430 datadir='${prefix}/share'
431 sysconfdir='${prefix}/etc'
432 sharedstatedir='${prefix}/com'
433 localstatedir='${prefix}/var'
434 libdir='${exec_prefix}/lib'
435 includedir='${prefix}/include'
436 oldincludedir='/usr/include'
437 infodir='${prefix}/info'
438 mandir='${prefix}/man'
440 # Identity of this package.
450 # If the previous option needs an argument, assign it.
451 if test -n "$ac_prev"; then
452 eval "$ac_prev=\$ac_option"
457 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
459 # Accept the important Cygnus configure options, so we can diagnose typos.
463 -bindir | --bindir | --bindi | --bind | --bin | --bi)
465 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
468 -build | --build | --buil | --bui | --bu)
469 ac_prev=build_alias ;;
470 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
471 build_alias=$ac_optarg ;;
473 -cache-file | --cache-file | --cache-fil | --cache-fi \
474 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
475 ac_prev=cache_file ;;
476 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
477 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
478 cache_file=$ac_optarg ;;
481 cache_file=config.cache ;;
483 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
485 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
487 datadir=$ac_optarg ;;
489 -disable-* | --disable-*)
490 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
494 { (exit 1); exit 1; }; }
495 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
496 eval "enable_$ac_feature=no" ;;
498 -enable-* | --enable-*)
499 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
500 # Reject names that are not valid shell variable names.
501 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
502 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
503 { (exit 1); exit 1; }; }
504 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
506 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
509 eval "enable_$ac_feature='$ac_optarg'" ;;
511 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
512 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
513 | --exec | --exe | --ex)
514 ac_prev=exec_prefix ;;
515 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
516 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
517 | --exec=* | --exe=* | --ex=*)
518 exec_prefix=$ac_optarg ;;
520 -gas | --gas | --ga | --g)
521 # Obsolete; use --with-gas.
524 -help | --help | --hel | --he | -h)
526 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
527 ac_init_help=recursive ;;
528 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
529 ac_init_help=short ;;
531 -host | --host | --hos | --ho)
532 ac_prev=host_alias ;;
533 -host=* | --host=* | --hos=* | --ho=*)
534 host_alias=$ac_optarg ;;
536 -includedir | --includedir | --includedi | --included | --include \
537 | --includ | --inclu | --incl | --inc)
538 ac_prev=includedir ;;
539 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
540 | --includ=* | --inclu=* | --incl=* | --inc=*)
541 includedir=$ac_optarg ;;
543 -infodir | --infodir | --infodi | --infod | --info | --inf)
545 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
546 infodir=$ac_optarg ;;
548 -libdir | --libdir | --libdi | --libd)
550 -libdir=* | --libdir=* | --libdi=* | --libd=*)
553 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
554 | --libexe | --libex | --libe)
555 ac_prev=libexecdir ;;
556 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
557 | --libexe=* | --libex=* | --libe=*)
558 libexecdir=$ac_optarg ;;
560 -localstatedir | --localstatedir | --localstatedi | --localstated \
561 | --localstate | --localstat | --localsta | --localst \
562 | --locals | --local | --loca | --loc | --lo)
563 ac_prev=localstatedir ;;
564 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
565 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
566 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
567 localstatedir=$ac_optarg ;;
569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
575 # Obsolete; use --without-fp.
578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
588 | --oldin | --oldi | --old | --ol | --o)
589 ac_prev=oldincludedir ;;
590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
593 oldincludedir=$ac_optarg ;;
595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
600 -program-prefix | --program-prefix | --program-prefi | --program-pref \
601 | --program-pre | --program-pr | --program-p)
602 ac_prev=program_prefix ;;
603 -program-prefix=* | --program-prefix=* | --program-prefi=* \
604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
605 program_prefix=$ac_optarg ;;
607 -program-suffix | --program-suffix | --program-suffi | --program-suff \
608 | --program-suf | --program-su | --program-s)
609 ac_prev=program_suffix ;;
610 -program-suffix=* | --program-suffix=* | --program-suffi=* \
611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
612 program_suffix=$ac_optarg ;;
614 -program-transform-name | --program-transform-name \
615 | --program-transform-nam | --program-transform-na \
616 | --program-transform-n | --program-transform- \
617 | --program-transform | --program-transfor \
618 | --program-transfo | --program-transf \
619 | --program-trans | --program-tran \
620 | --progr-tra | --program-tr | --program-t)
621 ac_prev=program_transform_name ;;
622 -program-transform-name=* | --program-transform-name=* \
623 | --program-transform-nam=* | --program-transform-na=* \
624 | --program-transform-n=* | --program-transform-=* \
625 | --program-transform=* | --program-transfor=* \
626 | --program-transfo=* | --program-transf=* \
627 | --program-trans=* | --program-tran=* \
628 | --progr-tra=* | --program-tr=* | --program-t=*)
629 program_transform_name=$ac_optarg ;;
631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
632 | -silent | --silent | --silen | --sile | --sil)
635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
639 sbindir=$ac_optarg ;;
641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
643 | --sharedst | --shareds | --shared | --share | --shar \
645 ac_prev=sharedstatedir ;;
646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
650 sharedstatedir=$ac_optarg ;;
652 -site | --site | --sit)
654 -site=* | --site=* | --sit=*)
657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
663 | --syscon | --sysco | --sysc | --sys | --sy)
664 ac_prev=sysconfdir ;;
665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
667 sysconfdir=$ac_optarg ;;
669 -target | --target | --targe | --targ | --tar | --ta | --t)
670 ac_prev=target_alias ;;
671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
672 target_alias=$ac_optarg ;;
674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
677 -version | --version | --versio | --versi | --vers | -V)
681 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
682 # Reject names that are not valid shell variable names.
683 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
684 { echo "$as_me: error: invalid package name: $ac_package" >&2
685 { (exit 1); exit 1; }; }
686 ac_package=`echo $ac_package| sed 's/-/_/g'`
688 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
691 eval "with_$ac_package='$ac_optarg'" ;;
693 -without-* | --without-*)
694 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
695 # Reject names that are not valid shell variable names.
696 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
697 { echo "$as_me: error: invalid package name: $ac_package" >&2
698 { (exit 1); exit 1; }; }
699 ac_package=`echo $ac_package | sed 's/-/_/g'`
700 eval "with_$ac_package=no" ;;
703 # Obsolete; use --with-x.
706 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
707 | --x-incl | --x-inc | --x-in | --x-i)
708 ac_prev=x_includes ;;
709 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
710 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
711 x_includes=$ac_optarg ;;
713 -x-libraries | --x-libraries | --x-librarie | --x-librari \
714 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
715 ac_prev=x_libraries ;;
716 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
717 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
718 x_libraries=$ac_optarg ;;
720 -*) { echo "$as_me: error: unrecognized option: $ac_option
721 Try \`$0 --help' for more information." >&2
722 { (exit 1); exit 1; }; }
726 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
727 # Reject names that are not valid shell variable names.
728 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
729 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
730 { (exit 1); exit 1; }; }
731 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
732 eval "$ac_envvar='$ac_optarg'"
736 # FIXME: should be removed in autoconf 3.0.
737 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
738 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
739 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
740 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
746 if test -n "$ac_prev"; then
747 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
748 { echo "$as_me: error: missing argument to $ac_option" >&2
749 { (exit 1); exit 1; }; }
752 # Be sure to have absolute paths.
753 for ac_var in exec_prefix prefix
755 eval ac_val=$`echo $ac_var`
757 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
758 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
759 { (exit 1); exit 1; }; };;
763 # Be sure to have absolute paths.
764 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
765 localstatedir libdir includedir oldincludedir infodir mandir
767 eval ac_val=$`echo $ac_var`
769 [\\/$]* | ?:[\\/]* ) ;;
770 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
771 { (exit 1); exit 1; }; };;
775 # There might be people who depend on the old broken behavior: `$host'
776 # used to hold the argument of --host etc.
781 # FIXME: should be removed in autoconf 3.0.
782 if test "x$host_alias" != x; then
783 if test "x$build_alias" = x; then
784 cross_compiling=maybe
785 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
786 If a cross compiler is detected then cross compile mode will be used." >&2
787 elif test "x$build_alias" != "x$host_alias"; then
793 test -n "$host_alias" && ac_tool_prefix=$host_alias-
795 test "$silent" = yes && exec 6>/dev/null
797 # Find the source files, if location was not specified.
798 if test -z "$srcdir"; then
799 ac_srcdir_defaulted=yes
800 # Try the directory containing this script, then its parent.
802 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
803 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
805 if test ! -r $srcdir/$ac_unique_file; then
809 ac_srcdir_defaulted=no
811 if test ! -r $srcdir/$ac_unique_file; then
812 if test "$ac_srcdir_defaulted" = yes; then
813 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
814 { (exit 1); exit 1; }; }
816 { echo "$as_me: error: cannot find sources in $srcdir" >&2
817 { (exit 1); exit 1; }; }
820 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
821 ac_env_build_alias_set=${build_alias+set}
822 ac_env_build_alias_value=$build_alias
823 ac_cv_env_build_alias_set=${build_alias+set}
824 ac_cv_env_build_alias_value=$build_alias
825 ac_env_host_alias_set=${host_alias+set}
826 ac_env_host_alias_value=$host_alias
827 ac_cv_env_host_alias_set=${host_alias+set}
828 ac_cv_env_host_alias_value=$host_alias
829 ac_env_target_alias_set=${target_alias+set}
830 ac_env_target_alias_value=$target_alias
831 ac_cv_env_target_alias_set=${target_alias+set}
832 ac_cv_env_target_alias_value=$target_alias
833 ac_env_CC_set=${CC+set}
835 ac_cv_env_CC_set=${CC+set}
836 ac_cv_env_CC_value=$CC
837 ac_env_CFLAGS_set=${CFLAGS+set}
838 ac_env_CFLAGS_value=$CFLAGS
839 ac_cv_env_CFLAGS_set=${CFLAGS+set}
840 ac_cv_env_CFLAGS_value=$CFLAGS
841 ac_env_LDFLAGS_set=${LDFLAGS+set}
842 ac_env_LDFLAGS_value=$LDFLAGS
843 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
844 ac_cv_env_LDFLAGS_value=$LDFLAGS
845 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
846 ac_env_CPPFLAGS_value=$CPPFLAGS
847 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
848 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
849 ac_env_CXX_set=${CXX+set}
850 ac_env_CXX_value=$CXX
851 ac_cv_env_CXX_set=${CXX+set}
852 ac_cv_env_CXX_value=$CXX
853 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
854 ac_env_CXXFLAGS_value=$CXXFLAGS
855 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
856 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
857 ac_env_CPP_set=${CPP+set}
858 ac_env_CPP_value=$CPP
859 ac_cv_env_CPP_set=${CPP+set}
860 ac_cv_env_CPP_value=$CPP
861 ac_env_CXXCPP_set=${CXXCPP+set}
862 ac_env_CXXCPP_value=$CXXCPP
863 ac_cv_env_CXXCPP_set=${CXXCPP+set}
864 ac_cv_env_CXXCPP_value=$CXXCPP
867 # Report the --help message.
869 if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
873 \`configure' configures this package to adapt to many kinds of systems.
875 Usage: $0 [OPTION]... [VAR=VALUE]...
877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
878 VAR=VALUE. See below for descriptions of some of the useful variables.
880 Defaults for the options are specified in brackets.
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
896 Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
902 By default, \`make install' will install all the files in
903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905 for instance \`--prefix=\$HOME'.
907 For better control, use the options below.
909 Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
927 --program-prefix=PREFIX prepend PREFIX to installed program names
928 --program-suffix=SUFFIX append SUFFIX to installed program names
929 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
932 --build=BUILD configure for building on BUILD [guessed]
933 --host=HOST build programs to run on HOST [BUILD]
934 --target=TARGET configure for building compilers for TARGET [HOST]
938 if test -n "$ac_init_help"; then
943 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
944 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
945 --disable-fast-perl disable fast Makefile generation (needs perl)
946 --enable-debug enables debug symbols default=no
947 --disable-debug disables debug output and debug symbols default=no
948 --enable-strict compiles with strict compiler options (may not work!)
949 --enable-profile creates profiling infos default=no
950 --disable-dependency-tracking Speeds up one-time builds
951 --enable-dependency-tracking Do not reject slow dependency extractors
952 --enable-final build size optimized apps (experimental - needs lots of memory)
953 --disable-closure don't delay template instantiation
954 --enable-shared[=PKGS]
955 build shared libraries [default=yes]
956 --enable-static[=PKGS]
957 build static libraries [default=no]
958 --enable-fast-install[=PKGS]
959 optimize for fast installation [default=yes]
960 --disable-libtool-lock avoid locking (might break parallel builds)
963 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
964 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
965 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
966 --with-pic try to use only PIC/non-PIC objects [default=use
968 --with-tags=TAGS include additional configurations [CXX,GCJ]
969 --with-extra-includes=DIR
970 adds non standard include paths
971 --with-extra-libs=DIR adds non standard library paths
973 Some influential environment variables:
974 CC C compiler command
975 CFLAGS C compiler flags
976 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
977 nonstandard directory <lib dir>
978 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
979 headers in a nonstandard directory <include dir>
980 CXX C++ compiler command
981 CXXFLAGS C++ compiler flags
983 CXXCPP C++ preprocessor
985 Use these variables to override the choices made by `configure' or to help
986 it to find libraries and programs with nonstandard names/locations.
991 if test "$ac_init_help" = "recursive"; then
992 # If there are subdirs, report their specific --help.
994 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
996 # A "../" for each directory in /$ac_subdir.
997 ac_dots=`echo $ac_subdir |
998 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
1001 .) # No --srcdir option. We are building in place.
1002 ac_sub_srcdir=$srcdir ;;
1003 [\\/]* | ?:[\\/]* ) # Absolute path.
1004 ac_sub_srcdir=$srcdir/$ac_subdir ;;
1006 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
1009 # Check for guested configure; otherwise get Cygnus style configure.
1010 if test -f $ac_sub_srcdir/configure.gnu; then
1012 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
1013 elif test -f $ac_sub_srcdir/configure; then
1015 $SHELL $ac_sub_srcdir/configure --help=recursive
1016 elif test -f $ac_sub_srcdir/configure.ac ||
1017 test -f $ac_sub_srcdir/configure.in; then
1019 $ac_configure --help
1021 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
1027 test -n "$ac_init_help" && exit 0
1028 if $ac_init_version; then
1031 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1032 Free Software Foundation, Inc.
1033 This configure script is free software; the Free Software Foundation
1034 gives unlimited permission to copy, distribute and modify it.
1040 This file contains any messages produced by compilers while
1041 running configure, to aid debugging if configure makes a mistake.
1043 It was created by $as_me, which was
1044 generated by GNU Autoconf 2.52. Invocation command line was
1055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1062 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1064 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1065 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1067 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1068 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1069 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1070 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Also quote any args containing shell meta-characters.
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c) ;;
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1103 # Get rid of the leading space.
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1112 echo "## ----------------- ##" >&5
1113 echo "## Cache variables. ##" >&5
1114 echo "## ----------------- ##" >&5
1116 # The following way of writing the cache mishandles newlines in values,
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 sed "/^$/d" confdefs.h >conftest.log
1132 if test -s conftest.log; then
1134 echo "## ------------ ##" >&5
1135 echo "## confdefs.h. ##" >&5
1136 echo "## ------------ ##" >&5
1138 cat conftest.log >&5
1141 test "$ac_signal" != 0 &&
1142 echo "$as_me: caught signal $ac_signal" >&5
1143 echo "$as_me: exit $exit_status" >&5
1144 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160 if test "x$prefix" != xNONE; then
1161 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166 for ac_site_file in $CONFIG_SITE; do
1167 if test -r "$ac_site_file"; then
1168 { echo "$as_me:1168: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170 cat "$ac_site_file" >&5
1175 if test -r "$cache_file"; then
1176 # Some versions of bash will fail to source /dev/null (special
1177 # files actually), so we avoid doing that.
1178 if test -f "$cache_file"; then
1179 { echo "$as_me:1179: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1182 [\\/]* | ?:[\\/]* ) . $cache_file;;
1183 *) . ./$cache_file;;
1187 { echo "$as_me:1187: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1192 # Check that the precious variables saved in the cache have kept the same
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198 eval ac_new_set=\$ac_env_${ac_var}_set
1199 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200 eval ac_new_val="\$ac_env_${ac_var}_value"
1201 case $ac_old_set,$ac_new_set in
1203 { echo "$as_me:1203: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1207 { echo "$as_me:1207: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1212 if test "x$ac_old_val" != "x$ac_new_val"; then
1213 { echo "$as_me:1213: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215 { echo "$as_me:1215: former value: $ac_old_val" >&5
1216 echo "$as_me: former value: $ac_old_val" >&2;}
1217 { echo "$as_me:1217: current value: $ac_new_val" >&5
1218 echo "$as_me: current value: $ac_new_val" >&2;}
1219 ac_cache_corrupted=:
1222 # Pass precious variables to config.status. It doesn't matter if
1223 # we pass some twice (in addition to the command line arguments).
1224 if test "$ac_new_set" = set; then
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1228 ac_configure_args="$ac_configure_args '$ac_arg'"
1230 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:1236: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238 { { echo "$as_me:1238: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240 { (exit 1); exit 1; }; }
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1249 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1250 *c*,-n*) ECHO_N= ECHO_C='
1252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1255 echo "#! $SHELL" >conftest.sh
1256 echo "exit 0" >>conftest.sh
1257 chmod +x conftest.sh
1258 if { (echo "$as_me:1258: PATH=\".;.\"; conftest.sh") >&5
1259 (PATH=".;."; conftest.sh) 2>&5
1261 echo "$as_me:1261: \$? = $ac_status" >&5
1262 (exit $ac_status); }; then
1263 ac_path_separator=';'
1267 PATH_SEPARATOR="$ac_path_separator"
1271 for ac_dir in admin $srcdir/admin; do
1272 if test -f $ac_dir/install-sh; then
1274 ac_install_sh="$ac_aux_dir/install-sh -c"
1276 elif test -f $ac_dir/install.sh; then
1278 ac_install_sh="$ac_aux_dir/install.sh -c"
1280 elif test -f $ac_dir/shtool; then
1282 ac_install_sh="$ac_aux_dir/shtool install -c"
1286 if test -z "$ac_aux_dir"; then
1287 { { echo "$as_me:1287: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1288 echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1289 { (exit 1); exit 1; }; }
1291 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1292 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297 # Make sure we can run config.sub.
1298 $ac_config_sub sun4 >/dev/null 2>&1 ||
1299 { { echo "$as_me:1299: error: cannot run $ac_config_sub" >&5
1300 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1301 { (exit 1); exit 1; }; }
1303 echo "$as_me:1303: checking build system type" >&5
1304 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1305 if test "${ac_cv_build+set}" = set; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
1308 ac_cv_build_alias=$build_alias
1309 test -z "$ac_cv_build_alias" &&
1310 ac_cv_build_alias=`$ac_config_guess`
1311 test -z "$ac_cv_build_alias" &&
1312 { { echo "$as_me:1312: error: cannot guess build type; you must specify one" >&5
1313 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1314 { (exit 1); exit 1; }; }
1315 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1316 { { echo "$as_me:1316: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1317 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1318 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: $ac_cv_build" >&5
1322 echo "${ECHO_T}$ac_cv_build" >&6
1324 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1325 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1326 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1328 echo "$as_me:1328: checking host system type" >&5
1329 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1330 if test "${ac_cv_host+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 ac_cv_host_alias=$host_alias
1334 test -z "$ac_cv_host_alias" &&
1335 ac_cv_host_alias=$ac_cv_build_alias
1336 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1337 { { echo "$as_me:1337: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1338 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1339 { (exit 1); exit 1; }; }
1342 echo "$as_me:1342: result: $ac_cv_host" >&5
1343 echo "${ECHO_T}$ac_cv_host" >&6
1345 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349 echo "$as_me:1349: checking target system type" >&5
1350 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1351 if test "${ac_cv_target+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 ac_cv_target_alias=$target_alias
1355 test "x$ac_cv_target_alias" = "x" &&
1356 ac_cv_target_alias=$ac_cv_host_alias
1357 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1358 { { echo "$as_me:1358: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1360 { (exit 1); exit 1; }; }
1363 echo "$as_me:1363: result: $ac_cv_target" >&5
1364 echo "${ECHO_T}$ac_cv_target" >&6
1365 target=$ac_cv_target
1366 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 # The aliases save the names the user supplied, while $host etc.
1371 # will get canonicalized.
1372 test -n "$target_alias" &&
1373 test "$program_prefix$program_suffix$program_transform_name" = \
1375 program_prefix=${target_alias}-
1376 test "$program_prefix" != NONE &&
1377 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1378 # Use a double $ so make ignores it.
1379 test "$program_suffix" != NONE &&
1380 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1381 # Double any \ or $. echo might interpret backslashes.
1382 # By default was `s,x,x', remove it if useless.
1383 cat <<\_ACEOF >conftest.sed
1384 s/[\\$]/&&/g;s/;s,x,x,$//
1386 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1389 am__api_version="1.6"
1391 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1392 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1393 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1394 # Find a good install program. We prefer a C program (faster),
1395 # so one script is as good as another. But avoid the broken or
1396 # incompatible versions:
1397 # SysV /etc/install, /usr/sbin/install
1398 # SunOS /usr/etc/install
1399 # IRIX /sbin/install
1401 # AmigaOS /C/install, which installs bootblocks on floppy discs
1402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1405 # ./install, which can be erroneously created by make from ./install.sh.
1406 echo "$as_me:1406: checking for a BSD compatible install" >&5
1407 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1408 if test -z "$INSTALL"; then
1409 if test "${ac_cv_path_install+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413 for ac_dir in $PATH; do
1415 # Account for people who put trailing slashes in PATH elements.
1417 / | ./ | .// | /cC/* \
1418 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1421 # OSF1 and SCO ODT 3.0 have their own names for install.
1422 # Don't use installbsd from OSF since it installs stuff as root
1424 for ac_prog in ginstall scoinst install; do
1425 if $as_executable_p "$ac_dir/$ac_prog"; then
1426 if test $ac_prog = install &&
1427 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1428 # AIX install. It has an incompatible calling convention.
1430 elif test $ac_prog = install &&
1431 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1432 # program-specific install script used by HP pwplus--don't use.
1435 ac_cv_path_install="$ac_dir/$ac_prog -c"
1445 if test "${ac_cv_path_install+set}" = set; then
1446 INSTALL=$ac_cv_path_install
1448 # As a last resort, use the slow shell script. We don't cache a
1449 # path for INSTALL within a source directory, because that will
1450 # break other packages using the cache if that directory is
1451 # removed, or if the path is relative.
1452 INSTALL=$ac_install_sh
1455 echo "$as_me:1455: result: $INSTALL" >&5
1456 echo "${ECHO_T}$INSTALL" >&6
1458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459 # It thinks the first close brace ends the variable substitution.
1460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1466 if test -z "$kde_save_INSTALL_given" ; then
1467 # OK, user hasn't given any INSTALL, autoconf found one for us
1468 # now we test, if it supports the -p flag
1469 echo "$as_me:1469: checking for -p flag to install" >&5
1470 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1471 rm -f confinst.$$.* > /dev/null 2>&1
1472 echo "Testtest" > confinst.$$.orig
1474 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1475 if test -f confinst.$$.new ; then
1476 # OK, -p seems to do no harm to install
1477 INSTALL="${INSTALL} -p"
1482 echo "$as_me:1482: result: $ac_res" >&5
1483 echo "${ECHO_T}$ac_res" >&6
1486 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1487 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1489 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1490 INSTALL_SCRIPT='${INSTALL}'
1493 echo "$as_me:1493: checking whether build environment is sane" >&5
1494 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1497 echo timestamp > conftest.file
1498 # Do `set' in a subshell so we don't clobber the current shell's
1499 # arguments. Must try -L first in case configure is actually a
1500 # symlink; some systems play weird games with the mod time of symlinks
1501 # (eg FreeBSD returns the mod time of the symlink's containing
1504 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1505 if test "$*" = "X"; then
1507 set X `ls -t $srcdir/configure conftest.file`
1510 if test "$*" != "X $srcdir/configure conftest.file" \
1511 && test "$*" != "X conftest.file $srcdir/configure"; then
1513 # If neither matched, then we have a broken ls. This can happen
1514 # if, for instance, CONFIG_SHELL is bash and it inherits a
1515 # broken ls alias from the environment. This has actually
1516 # happened. Such a system could not be considered "sane".
1517 { { echo "$as_me:1517: error: ls -t appears to fail. Make sure there is not a broken
1518 alias in your environment" >&5
1519 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1520 alias in your environment" >&2;}
1521 { (exit 1); exit 1; }; }
1524 test "$2" = conftest.file
1530 { { echo "$as_me:1530: error: newly created file is older than distributed files!
1531 Check your system clock" >&5
1532 echo "$as_me: error: newly created file is older than distributed files!
1533 Check your system clock" >&2;}
1534 { (exit 1); exit 1; }; }
1536 echo "$as_me:1536: result: yes" >&5
1537 echo "${ECHO_T}yes" >&6
1539 # expand $ac_aux_dir to an absolute path
1540 am_aux_dir=`cd $ac_aux_dir && pwd`
1542 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1543 # Use eval to expand $SHELL
1544 if eval "$MISSING --run true"; then
1545 am_missing_run="$MISSING --run "
1548 { echo "$as_me:1548: WARNING: \`missing' script is too old or missing" >&5
1549 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1552 for ac_prog in mawk gawk nawk awk
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; ac_word=$2
1556 echo "$as_me:1556: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_AWK+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$AWK"; then
1562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1564 ac_save_IFS=$IFS; IFS=$ac_path_separator
1566 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 $as_executable_p "$ac_dir/$ac_word" || continue
1570 ac_cv_prog_AWK="$ac_prog"
1571 echo "$as_me:1571: found $ac_dir/$ac_word" >&5
1578 if test -n "$AWK"; then
1579 echo "$as_me:1579: result: $AWK" >&5
1580 echo "${ECHO_T}$AWK" >&6
1582 echo "$as_me:1582: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1586 test -n "$AWK" && break
1589 echo "$as_me:1589: checking whether ${MAKE-make} sets \${MAKE}" >&5
1590 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1591 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1592 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 cat >conftest.make <<\EOF
1597 @echo 'ac_maketemp="${MAKE}"'
1599 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1600 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1601 if test -n "$ac_maketemp"; then
1602 eval ac_cv_prog_make_${ac_make}_set=yes
1604 eval ac_cv_prog_make_${ac_make}_set=no
1608 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1609 echo "$as_me:1609: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1613 echo "$as_me:1613: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 SET_MAKE="MAKE=${MAKE-make}"
1618 # test to see if srcdir already configured
1619 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1620 test -f $srcdir/config.status; then
1621 { { echo "$as_me:1621: error: source directory already configured; run \"make distclean\" there first" >&5
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1623 { (exit 1); exit 1; }; }
1626 # Define the identity of the package.
1630 cat >>confdefs.h <<EOF
1631 #define PACKAGE "$PACKAGE"
1634 cat >>confdefs.h <<EOF
1635 #define VERSION "$VERSION"
1638 # Some tools Automake needs.
1640 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1650 AMTAR=${AMTAR-"${am_missing_run}tar"}
1652 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654 # Installed binaries are usually stripped using `strip' when the user
1655 # run `make install-strip'. However `strip' might not be the right
1656 # tool to use in cross-compilation environments, therefore Automake
1657 # will honor the `STRIP' environment variable to overrule this program.
1658 if test "$cross_compiling" != no; then
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1661 set dummy ${ac_tool_prefix}strip; ac_word=$2
1662 echo "$as_me:1662: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_STRIP+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$STRIP"; then
1668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 ac_save_IFS=$IFS; IFS=$ac_path_separator
1672 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 $as_executable_p "$ac_dir/$ac_word" || continue
1676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1677 echo "$as_me:1677: found $ac_dir/$ac_word" >&5
1683 STRIP=$ac_cv_prog_STRIP
1684 if test -n "$STRIP"; then
1685 echo "$as_me:1685: result: $STRIP" >&5
1686 echo "${ECHO_T}$STRIP" >&6
1688 echo "$as_me:1688: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1693 if test -z "$ac_cv_prog_STRIP"; then
1695 # Extract the first word of "strip", so it can be a program name with args.
1696 set dummy strip; ac_word=$2
1697 echo "$as_me:1697: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$ac_ct_STRIP"; then
1703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1705 ac_save_IFS=$IFS; IFS=$ac_path_separator
1707 for ac_dir in $ac_dummy; do
1709 test -z "$ac_dir" && ac_dir=.
1710 $as_executable_p "$ac_dir/$ac_word" || continue
1711 ac_cv_prog_ac_ct_STRIP="strip"
1712 echo "$as_me:1712: found $ac_dir/$ac_word" >&5
1716 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1720 if test -n "$ac_ct_STRIP"; then
1721 echo "$as_me:1721: result: $ac_ct_STRIP" >&5
1722 echo "${ECHO_T}$ac_ct_STRIP" >&6
1724 echo "$as_me:1724: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1730 STRIP="$ac_cv_prog_STRIP"
1734 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1736 # We need awk for the "check" target. The system "awk" is bad on
1741 if test "x$prefix" = "xNONE"; then
1742 prefix=$ac_default_prefix
1743 ac_configure_args="$ac_configure_args --prefix $prefix"
1746 # Check whether --enable-fast-perl or --disable-fast-perl was given.
1747 if test "${enable_fast_perl+set}" = set; then
1748 enableval="$enable_fast_perl"
1749 with_fast_perl=$enableval
1755 if test -f $srcdir/configure.files ; then
1756 val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
1759 if test -n "$val" ; then
1761 CONF_FILES="$CONF_FILES $i"
1765 # Add the stamp file to the list of files AC keeps track of,
1766 # along with our hook.
1767 ac_config_headers="$ac_config_headers config.h"
1769 rm -f .deps 2>/dev/null
1770 mkdir .deps 2>/dev/null
1771 if test -d .deps; then
1774 # MS-DOS does not allow filenames that begin with a dot.
1777 rmdir .deps 2>/dev/null
1779 ac_config_commands="$ac_config_commands depfiles"
1781 am_make=${MAKE-make}
1782 cat > confinc << 'END'
1786 # If we don't find an include directive, just comment out the code.
1787 echo "$as_me:1787: checking for style of include used by $am_make" >&5
1788 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1792 # First try GNU make style include.
1793 echo "include confinc" > confmf
1794 # We grep out `Entering directory' and `Leaving directory'
1795 # messages which can occur if `w' ends up in MAKEFLAGS.
1796 # In particular we don't look at `^make:' because GNU make might
1797 # be invoked under some other name (usually "gmake"), in which
1798 # case it prints its new name instead of `make'.
1799 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1804 # Now try BSD make style include.
1805 if test "$am__include" = "#"; then
1806 echo '.include "confinc"' > confmf
1807 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1808 am__include=.include
1814 echo "$as_me:1814: result: $_am_result" >&5
1815 echo "${ECHO_T}$_am_result" >&6
1816 rm -f confinc confmf
1818 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1819 if test "${enable_dependency_tracking+set}" = set; then
1820 enableval="$enable_dependency_tracking"
1823 if test "x$enable_dependency_tracking" != xno; then
1824 am_depcomp="$ac_aux_dir/depcomp"
1828 if test "x$enable_dependency_tracking" != xno; then
1837 ac_cpp='$CXXCPP $CPPFLAGS'
1838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1846 echo "$as_me:1846: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CXX+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$CXX"; then
1852 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1854 ac_save_IFS=$IFS; IFS=$ac_path_separator
1856 for ac_dir in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir=.
1859 $as_executable_p "$ac_dir/$ac_word" || continue
1860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1861 echo "$as_me:1861: found $ac_dir/$ac_word" >&5
1868 if test -n "$CXX"; then
1869 echo "$as_me:1869: result: $CXX" >&5
1870 echo "${ECHO_T}$CXX" >&6
1872 echo "$as_me:1872: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1876 test -n "$CXX" && break
1879 if test -z "$CXX"; then
1881 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1883 # Extract the first word of "$ac_prog", so it can be a program name with args.
1884 set dummy $ac_prog; ac_word=$2
1885 echo "$as_me:1885: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$ac_ct_CXX"; then
1891 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1893 ac_save_IFS=$IFS; IFS=$ac_path_separator
1895 for ac_dir in $ac_dummy; do
1897 test -z "$ac_dir" && ac_dir=.
1898 $as_executable_p "$ac_dir/$ac_word" || continue
1899 ac_cv_prog_ac_ct_CXX="$ac_prog"
1900 echo "$as_me:1900: found $ac_dir/$ac_word" >&5
1906 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1907 if test -n "$ac_ct_CXX"; then
1908 echo "$as_me:1908: result: $ac_ct_CXX" >&5
1909 echo "${ECHO_T}$ac_ct_CXX" >&6
1911 echo "$as_me:1911: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$ac_ct_CXX" && break
1917 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1922 # Provide some information about the compiler.
1923 echo "$as_me:1923:" \
1924 "checking for C++ compiler version" >&5
1925 ac_compiler=`set X $ac_compile; echo $2`
1926 { (eval echo "$as_me:1926: \"$ac_compiler --version </dev/null >&5\"") >&5
1927 (eval $ac_compiler --version </dev/null >&5) 2>&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:1931: \"$ac_compiler -v </dev/null >&5\"") >&5
1932 (eval $ac_compiler -v </dev/null >&5) 2>&5
1934 echo "$as_me:1934: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936 { (eval echo "$as_me:1936: \"$ac_compiler -V </dev/null >&5\"") >&5
1937 (eval $ac_compiler -V </dev/null >&5) 2>&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }
1942 echo "$as_me:1942: checking whether we are using the GNU C++ compiler" >&5
1943 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1944 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:1969: \"$ac_try\"") >&5
1972 echo "$as_me:1972: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1976 echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1980 rm -f conftest.$ac_objext conftest.$ac_ext
1981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1984 echo "$as_me:1984: result: $ac_cv_cxx_compiler_gnu" >&5
1985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1986 GXX=`test $ac_compiler_gnu = yes && echo yes`
1987 ac_test_CXXFLAGS=${CXXFLAGS+set}
1988 ac_save_CXXFLAGS=$CXXFLAGS
1990 echo "$as_me:1990: checking whether $CXX accepts -g" >&5
1991 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1992 if test "${ac_cv_prog_cxx_g+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 cat >conftest.$ac_ext <<_ACEOF
1996 #line 1996 "configure"
1997 #include "confdefs.h"
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5
2009 (eval $ac_compile) 2>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:2014: \"$ac_try\"") >&5
2017 echo "$as_me:2017: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 ac_cv_prog_cxx_g=yes
2021 echo "$as_me: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2025 rm -f conftest.$ac_objext conftest.$ac_ext
2027 echo "$as_me:2027: result: $ac_cv_prog_cxx_g" >&5
2028 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2029 if test "$ac_test_CXXFLAGS" = set; then
2030 CXXFLAGS=$ac_save_CXXFLAGS
2031 elif test $ac_cv_prog_cxx_g = yes; then
2032 if test "$GXX" = yes; then
2038 if test "$GXX" = yes; then
2044 for ac_declaration in \
2046 '#include <stdlib.h>' \
2047 'extern "C" void std::exit (int) throw (); using std::exit;' \
2048 'extern "C" void std::exit (int); using std::exit;' \
2049 'extern "C" void exit (int) throw ();' \
2050 'extern "C" void exit (int);' \
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2085 cat >conftest.$ac_ext <<_ACEOF
2086 #line 2086 "configure"
2087 #include "confdefs.h"
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:2098: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:2104: \"$ac_try\"") >&5
2107 echo "$as_me:2107: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2117 if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2124 ac_cpp='$CXXCPP $CPPFLAGS'
2125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2129 depcc="$CXX" am_compiler_list=
2131 echo "$as_me:2131: checking dependency style of $depcc" >&5
2132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2133 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2137 # We make a subdir and do the tests there. Otherwise we can end up
2138 # making bogus files that we don't know about and never remove. For
2139 # instance it was reported that on HP-UX the gcc test will end up
2140 # making a dummy file named `D' -- because `-MD' means `put the output
2143 # Copy depcomp to subdir because otherwise we won't find it if we're
2144 # using a relative directory.
2145 cp "$am_depcomp" conftest.dir
2148 am_cv_CXX_dependencies_compiler_type=none
2149 if test "$am_compiler_list" = ""; then
2150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2152 for depmode in $am_compiler_list; do
2153 # We need to recreate these files for each test, as the compiler may
2154 # overwrite some of them when testing with obscure command lines.
2155 # This happens at least with the AIX C compiler.
2156 echo '#include "conftest.h"' > conftest.c
2157 echo 'int i;' > conftest.h
2158 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2162 # after this tag, mechanisms are not by side-effect, so they'll
2163 # only be used when explicitly requested
2164 if test "x$enable_dependency_tracking" = xyes; then
2172 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2173 # mode. It turns out that the SunPro C++ compiler does not properly
2174 # handle `-M -o', and we need to detect this.
2175 if depmode=$depmode \
2176 source=conftest.c object=conftest.o \
2177 depfile=conftest.Po tmpdepfile=conftest.TPo \
2178 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2179 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2181 am_cv_CXX_dependencies_compiler_type=$depmode
2189 am_cv_CXX_dependencies_compiler_type=none
2193 echo "$as_me:2193: result: $am_cv_CXX_dependencies_compiler_type" >&5
2194 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2195 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2197 # Check whether --enable-debug or --disable-debug was given.
2198 if test "${enable_debug+set}" = set; then
2199 enableval="$enable_debug"
2201 if test $enableval = "no"; then
2202 kde_use_debug_code="no"
2203 kde_use_debug_define=yes
2205 kde_use_debug_code="yes"
2206 kde_use_debug_define=no
2210 kde_use_debug_code="no"
2211 kde_use_debug_define=no
2215 # Check whether --enable-dummyoption or --disable-dummyoption was given.
2216 if test "${enable_dummyoption+set}" = set; then
2217 enableval="$enable_dummyoption"
2221 # Check whether --enable-strict or --disable-strict was given.
2222 if test "${enable_strict+set}" = set; then
2223 enableval="$enable_strict"
2225 if test $enableval = "no"; then
2226 kde_use_strict_options="no"
2228 kde_use_strict_options="yes"
2232 kde_use_strict_options="no"
2235 # Check whether --enable-profile or --disable-profile was given.
2236 if test "${enable_profile+set}" = set; then
2237 enableval="$enable_profile"
2238 kde_use_profiling=$enableval
2240 kde_use_profiling="no"
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2254 echo "$as_me:2254: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2262 ac_save_IFS=$IFS; IFS=$ac_path_separator
2264 for ac_dir in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir=.
2267 $as_executable_p "$ac_dir/$ac_word" || continue
2268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2269 echo "$as_me:2269: found $ac_dir/$ac_word" >&5
2276 if test -n "$CC"; then
2277 echo "$as_me:2277: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6
2280 echo "$as_me:2280: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2285 if test -z "$ac_cv_prog_CC"; then
2287 # Extract the first word of "gcc", so it can be a program name with args.
2288 set dummy gcc; ac_word=$2
2289 echo "$as_me:2289: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2297 ac_save_IFS=$IFS; IFS=$ac_path_separator
2299 for ac_dir in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir=.
2302 $as_executable_p "$ac_dir/$ac_word" || continue
2303 ac_cv_prog_ac_ct_CC="gcc"
2304 echo "$as_me:2304: found $ac_dir/$ac_word" >&5
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 echo "$as_me:2312: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2315 echo "$as_me:2315: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2324 if test -z "$CC"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}cc; ac_word=$2
2328 echo "$as_me:2328: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 ac_save_IFS=$IFS; IFS=$ac_path_separator
2338 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 $as_executable_p "$ac_dir/$ac_word" || continue
2342 ac_cv_prog_CC="${ac_tool_prefix}cc"
2343 echo "$as_me:2343: found $ac_dir/$ac_word" >&5
2350 if test -n "$CC"; then
2351 echo "$as_me:2351: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2354 echo "$as_me:2354: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_CC"; then
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc; ac_word=$2
2363 echo "$as_me:2363: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 ac_save_IFS=$IFS; IFS=$ac_path_separator
2373 for ac_dir in $ac_dummy; do
2375 test -z "$ac_dir" && ac_dir=.
2376 $as_executable_p "$ac_dir/$ac_word" || continue
2377 ac_cv_prog_ac_ct_CC="cc"
2378 echo "$as_me:2378: found $ac_dir/$ac_word" >&5
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 echo "$as_me:2386: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2389 echo "$as_me:2389: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc; ac_word=$2
2402 echo "$as_me:2402: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 ac_save_IFS=$IFS; IFS=$ac_path_separator
2413 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 $as_executable_p "$ac_dir/$ac_word" || continue
2417 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2418 ac_prog_rejected=yes
2422 echo "$as_me:2422: found $ac_dir/$ac_word" >&5
2426 if test $ac_prog_rejected = yes; then
2427 # We found a bogon in the path, so make sure we never use it.
2428 set dummy $ac_cv_prog_CC
2430 if test $# != 0; then
2431 # We chose a different compiler from the bogus one.
2432 # However, it has the same basename, so the bogon will be chosen
2433 # first if we set CC to just the basename; use the full file name.
2435 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2443 if test -n "$CC"; then
2444 echo "$as_me:2444: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6
2447 echo "$as_me:2447: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2452 if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 ac_save_IFS=$IFS; IFS=$ac_path_separator
2468 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 $as_executable_p "$ac_dir/$ac_word" || continue
2472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:2473: found $ac_dir/$ac_word" >&5
2480 if test -n "$CC"; then
2481 echo "$as_me:2481: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6
2484 echo "$as_me:2484: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$CC" && break
2491 if test -z "$CC"; then
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo "$as_me:2497: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$ac_ct_CC"; then
2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505 ac_save_IFS=$IFS; IFS=$ac_path_separator
2507 for ac_dir in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir=.
2510 $as_executable_p "$ac_dir/$ac_word" || continue
2511 ac_cv_prog_ac_ct_CC="$ac_prog"
2512 echo "$as_me:2512: found $ac_dir/$ac_word" >&5
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 echo "$as_me:2520: result: $ac_ct_CC" >&5
2521 echo "${ECHO_T}$ac_ct_CC" >&6
2523 echo "$as_me:2523: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$ac_ct_CC" && break
2535 test -z "$CC" && { { echo "$as_me:2535: error: no acceptable cc found in \$PATH" >&5
2536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Provide some information about the compiler.
2540 echo "$as_me:2540:" \
2541 "checking for C compiler version" >&5
2542 ac_compiler=`set X $ac_compile; echo $2`
2543 { (eval echo "$as_me:2543: \"$ac_compiler --version </dev/null >&5\"") >&5
2544 (eval $ac_compiler --version </dev/null >&5) 2>&5
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (eval echo "$as_me:2548: \"$ac_compiler -v </dev/null >&5\"") >&5
2549 (eval $ac_compiler -v </dev/null >&5) 2>&5
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:2553: \"$ac_compiler -V </dev/null >&5\"") >&5
2554 (eval $ac_compiler -V </dev/null >&5) 2>&5
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line 2560 "configure"
2561 #include "confdefs.h"
2571 ac_clean_files_save=$ac_clean_files
2572 ac_clean_files="$ac_clean_files a.out a.exe"
2573 # Try to create an executable without -o first, disregard a.out.
2574 # It will help us diagnose broken compilers, and finding out an intuition
2576 echo "$as_me:2576: checking for C compiler default output" >&5
2577 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2578 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2579 if { (eval echo "$as_me:2579: \"$ac_link_default\"") >&5
2580 (eval $ac_link_default) 2>&5
2582 echo "$as_me:2582: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # Find the output, starting from the most likely. This scheme is
2585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2587 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2588 ls a.out conftest 2>/dev/null;
2589 ls a.* conftest.* 2>/dev/null`; do
2591 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2592 a.out ) # We found the default executable, but exeext='' is most
2595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 { { echo "$as_me:2605: error: C compiler cannot create executables" >&5
2606 echo "$as_me: error: C compiler cannot create executables" >&2;}
2607 { (exit 77); exit 77; }; }
2610 ac_exeext=$ac_cv_exeext
2611 echo "$as_me:2611: result: $ac_file" >&5
2612 echo "${ECHO_T}$ac_file" >&6
2614 # Check the compiler produces executables we can run. If not, either
2615 # the compiler is broken, or we cross compile.
2616 echo "$as_me:2616: checking whether the C compiler works" >&5
2617 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2618 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621 if { ac_try='./$ac_file'
2622 { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 if test "$cross_compiling" = maybe; then
2632 { { echo "$as_me:2632: error: cannot run C compiled programs.
2633 If you meant to cross compile, use \`--host'." >&5
2634 echo "$as_me: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'." >&2;}
2636 { (exit 1); exit 1; }; }
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 rm -f a.out a.exe conftest$ac_cv_exeext
2644 ac_clean_files=$ac_clean_files_save
2645 # Check the compiler produces executables we can run. If not, either
2646 # the compiler is broken, or we cross compile.
2647 echo "$as_me:2647: checking whether we are cross compiling" >&5
2648 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2649 echo "$as_me:2649: result: $cross_compiling" >&5
2650 echo "${ECHO_T}$cross_compiling" >&6
2652 echo "$as_me:2652: checking for executable suffix" >&5
2653 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2654 if { (eval echo "$as_me:2654: \"$ac_link\"") >&5
2655 (eval $ac_link) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2661 # work properly (i.e., refer to `conftest.exe'), while it won't with
2663 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2665 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673 { { echo "$as_me:2673: error: cannot compute EXEEXT: cannot compile and link" >&5
2674 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest$ac_cv_exeext
2679 echo "$as_me:2679: result: $ac_cv_exeext" >&5
2680 echo "${ECHO_T}$ac_cv_exeext" >&6
2682 rm -f conftest.$ac_ext
2683 EXEEXT=$ac_cv_exeext
2685 echo "$as_me:2685: checking for object suffix" >&5
2686 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2687 if test "${ac_cv_objext+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2702 rm -f conftest.o conftest.obj
2703 if { (eval echo "$as_me:2703: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>&5
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 { { echo "$as_me:2718: error: cannot compute OBJEXT: cannot compile" >&5
2719 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 echo "$as_me:2725: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6
2727 OBJEXT=$ac_cv_objext
2729 echo "$as_me:2729: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line 2735 "configure"
2736 #include "confdefs.h"
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771 echo "$as_me:2771: result: $ac_cv_c_compiler_gnu" >&5
2772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2773 GCC=`test $ac_compiler_gnu = yes && echo yes`
2774 ac_test_CFLAGS=${CFLAGS+set}
2775 ac_save_CFLAGS=$CFLAGS
2777 echo "$as_me:2777: checking whether $CC accepts -g" >&5
2778 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2779 if test "${ac_cv_prog_cc_g+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line 2783 "configure"
2784 #include "confdefs.h"
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:2801: \"$ac_try\"") >&5
2804 echo "$as_me:2804: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2812 rm -f conftest.$ac_objext conftest.$ac_ext
2814 echo "$as_me:2814: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2825 if test "$GCC" = yes; then
2831 # Some people use a C++ compiler to compile C. Since we use `exit',
2832 # in C++ we need to declare it. In case someone uses the same compiler
2833 # for both compiling C and C++ we need to have the C++ compiler decide
2834 # the declaration of exit, since it's the most demanding environment.
2835 cat >conftest.$ac_ext <<_ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2844 echo "$as_me:2844: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:2847: \"$ac_try\"") >&5
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 for ac_declaration in \
2854 '#include <stdlib.h>' \
2855 'extern "C" void std::exit (int) throw (); using std::exit;' \
2856 'extern "C" void std::exit (int); using std::exit;' \
2857 'extern "C" void exit (int) throw ();' \
2858 'extern "C" void exit (int);' \
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line 2862 "configure"
2863 #include "confdefs.h"
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:2881: \"$ac_try\"") >&5
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:2912: \"$ac_try\"") >&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2925 if test -n "$ac_declaration"; then
2926 echo '#ifdef __cplusplus' >>confdefs.h
2927 echo $ac_declaration >>confdefs.h
2928 echo '#endif' >>confdefs.h
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 depcc="$CC" am_compiler_list=
2944 echo "$as_me:2944: checking dependency style of $depcc" >&5
2945 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2961 am_cv_CC_dependencies_compiler_type=none
2962 if test "$am_compiler_list" = ""; then
2963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2965 for depmode in $am_compiler_list; do
2966 # We need to recreate these files for each test, as the compiler may
2967 # overwrite some of them when testing with obscure command lines.
2968 # This happens at least with the AIX C compiler.
2969 echo '#include "conftest.h"' > conftest.c
2970 echo 'int i;' > conftest.h
2971 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2975 # after this tag, mechanisms are not by side-effect, so they'll
2976 # only be used when explicitly requested
2977 if test "x$enable_dependency_tracking" = xyes; then
2985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2986 # mode. It turns out that the SunPro C++ compiler does not properly
2987 # handle `-M -o', and we need to detect this.
2988 if depmode=$depmode \
2989 source=conftest.c object=conftest.o \
2990 depfile=conftest.Po tmpdepfile=conftest.TPo \
2991 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2992 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2994 am_cv_CC_dependencies_compiler_type=$depmode
3002 am_cv_CC_dependencies_compiler_type=none
3006 echo "$as_me:3006: result: $am_cv_CC_dependencies_compiler_type" >&5
3007 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3008 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3010 if test "$GCC" = "yes"; then
3011 if test "$kde_use_debug_code" = "yes"; then
3012 CFLAGS="-g -O2 $CFLAGS"
3015 CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3019 CFLAGS="-O2 $CFLAGS"
3023 if test "$kde_use_debug_define" = "yes"; then
3024 CFLAGS="-DNDEBUG $CFLAGS"
3028 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3029 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3032 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3036 if test "$kde_use_profiling" = "yes"; then
3038 echo "$as_me:3038: checking whether $CXX supports -pg" >&5
3039 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3040 kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
3041 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 ac_cpp='$CXXCPP $CPPFLAGS'
3047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3051 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3053 save_CXXFLAGS="$CXXFLAGS"
3054 CXXFLAGS="$CXXFLAGS -pg"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line 3056 "configure"
3057 #include "confdefs.h"
3067 rm -f conftest.$ac_objext conftest$ac_exeext
3068 if { (eval echo "$as_me:3068: \"$ac_link\"") >&5
3069 (eval $ac_link) 2>&5
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -s conftest$ac_exeext'
3074 { (eval echo "$as_me:3074: \"$ac_try\"") >&5
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 eval "kde_cv_prog_cxx_$kde_cache=yes"
3081 echo "$as_me: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3085 CXXFLAGS="$save_CXXFLAGS"
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3095 echo "$as_me:3095: result: yes" >&5
3096 echo "${ECHO_T}yes" >&6
3099 CFLAGS="-pg $CFLAGS"
3102 echo "$as_me:3102: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 echo "$as_me:3119: checking how to run the C preprocessor" >&5
3120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3121 # On Suns, sometimes $CPP names a directory.
3122 if test -n "$CPP" && test -d "$CPP"; then
3125 if test -z "$CPP"; then
3126 if test "${ac_cv_prog_CPP+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 # Double quotes because CPP needs to be expanded
3130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3133 for ac_c_preproc_warn_flag in '' yes
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.$ac_ext <<_ACEOF
3140 #line 3140 "configure"
3141 #include "confdefs.h"
3145 if { (eval echo "$as_me:3145: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 egrep -v '^ *\+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3161 if test -z "$ac_cpp_err"; then
3164 echo "$as_me: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3166 # Broken: fails on valid input.
3169 rm -f conftest.err conftest.$ac_ext
3171 # OK, works on sane cases. Now check whether non-existent headers
3172 # can be detected and how.
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <ac_nonexistent.h>
3178 if { (eval echo "$as_me:3178: \"$ac_cpp conftest.$ac_ext\"") >&5
3179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181 egrep -v '^ *\+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev/null; then
3186 if test -s conftest.err; then
3187 ac_cpp_err=$ac_c_preproc_warn_flag
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3198 echo "$as_me: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 # Passes both tests.
3204 rm -f conftest.err conftest.$ac_ext
3207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208 rm -f conftest.err conftest.$ac_ext
3209 if $ac_preproc_ok; then
3221 echo "$as_me:3221: result: $CPP" >&5
3222 echo "${ECHO_T}$CPP" >&6
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat >conftest.$ac_ext <<_ACEOF
3231 #line 3231 "configure"
3232 #include "confdefs.h"
3236 if { (eval echo "$as_me:3236: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 egrep -v '^ *\+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:3242: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 # Broken: fails on valid input.
3260 rm -f conftest.err conftest.$ac_ext
3262 # OK, works on sane cases. Now check whether non-existent headers
3263 # can be detected and how.
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line 3265 "configure"
3266 #include "confdefs.h"
3267 #include <ac_nonexistent.h>
3269 if { (eval echo "$as_me:3269: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 egrep -v '^ *\+' conftest.er1 >conftest.err
3274 cat conftest.err >&5
3275 echo "$as_me:3275: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3285 if test -z "$ac_cpp_err"; then
3286 # Broken: success on invalid input.
3289 echo "$as_me: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 # Passes both tests.
3295 rm -f conftest.err conftest.$ac_ext
3298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299 rm -f conftest.err conftest.$ac_ext
3300 if $ac_preproc_ok; then
3303 { { echo "$as_me:3303: error: C preprocessor \"$CPP\" fails sanity check" >&5
3304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3305 { (exit 1); exit 1; }; }
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 # the following is to allow programs, that are known to
3315 # have problems when compiled with -O2
3316 if test -n "$CFLAGS"; then
3320 for i in $CFLAGS; do
3325 NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
3332 # Check whether --enable-final or --disable-final was given.
3333 if test "${enable_final+set}" = set; then
3334 enableval="$enable_final"
3335 kde_use_final=$enableval
3343 echo "$as_me:3343: checking whether $CXX supports -frepo" >&5
3344 echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
3345 kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
3346 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 ac_cpp='$CXXCPP $CPPFLAGS'
3352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3356 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3358 save_CXXFLAGS="$CXXFLAGS"
3359 CXXFLAGS="$CXXFLAGS -frepo"
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line 3361 "configure"
3362 #include "confdefs.h"
3372 rm -f conftest.$ac_objext conftest$ac_exeext
3373 if { (eval echo "$as_me:3373: \"$ac_link\"") >&5
3374 (eval $ac_link) 2>&5
3376 echo "$as_me:3376: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -s conftest$ac_exeext'
3379 { (eval echo "$as_me:3379: \"$ac_try\"") >&5
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 eval "kde_cv_prog_cxx_$kde_cache=yes"
3386 echo "$as_me: failed program was:" >&5
3387 cat conftest.$ac_ext >&5
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 CXXFLAGS="$save_CXXFLAGS"
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3400 echo "$as_me:3400: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6
3408 echo "$as_me:3408: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3414 if test -z "$REPO"; then
3416 echo "$as_me:3416: checking whether $CXX supports -instances=explicit" >&5
3417 echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
3418 kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
3419 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 ac_cpp='$CXXCPP $CPPFLAGS'
3425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3429 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3431 save_CXXFLAGS="$CXXFLAGS"
3432 CXXFLAGS="$CXXFLAGS -instances=explicit"
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3445 rm -f conftest.$ac_objext conftest$ac_exeext
3446 if { (eval echo "$as_me:3446: \"$ac_link\"") >&5
3447 (eval $ac_link) 2>&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest$ac_exeext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 eval "kde_cv_prog_cxx_$kde_cache=yes"
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3463 CXXFLAGS="$save_CXXFLAGS"
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3473 echo "$as_me:3473: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6
3477 REPO="-instances=explicit"
3478 NOREPO="-instances=extern"
3481 echo "$as_me:3481: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3489 if test -n "$REPO"; then
3491 cat >>confdefs.h <<EOF
3492 #define HAVE_TEMPLATE_REPOSITORY 1
3497 if test "x$kde_use_final" = "xyes"; then
3498 KDE_USE_FINAL_TRUE=""
3499 KDE_USE_FINAL_FALSE="#"
3501 KDE_USE_FINAL_TRUE="#"
3502 KDE_USE_FINAL_FALSE=""
3505 # Check whether --enable-closure or --disable-closure was given.
3506 if test "${enable_closure+set}" = set; then
3507 enableval="$enable_closure"
3508 kde_use_closure=$enableval
3513 if test "x$kde_use_closure" = "xyes"; then
3514 KDE_USE_CLOSURE_TRUE=""
3515 KDE_USE_CLOSURE_FALSE="#"
3516 # CXXFLAGS="$CXXFLAGS $REPO"
3518 KDE_USE_CLOSURE_TRUE="#"
3519 KDE_USE_CLOSURE_FALSE=""
3524 # Check whether --enable-shared or --disable-shared was given.
3525 if test "${enable_shared+set}" = set; then
3526 enableval="$enable_shared"
3527 p=${PACKAGE-default}
3529 yes) enable_shared=yes ;;
3530 no) enable_shared=no ;;
3533 # Look at the argument we got. We use all the common list separators.
3534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3535 for pkg in $enableval; do
3537 if test "X$pkg" = "X$p"; then
3548 # Check whether --enable-static or --disable-static was given.
3549 if test "${enable_static+set}" = set; then
3550 enableval="$enable_static"
3551 p=${PACKAGE-default}
3553 yes) enable_static=yes ;;
3554 no) enable_static=no ;;
3557 # Look at the argument we got. We use all the common list separators.
3558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3559 for pkg in $enableval; do
3561 if test "X$pkg" = "X$p"; then
3572 # Check whether --enable-fast-install or --disable-fast-install was given.
3573 if test "${enable_fast_install+set}" = set; then
3574 enableval="$enable_fast_install"
3575 p=${PACKAGE-default}
3577 yes) enable_fast_install=yes ;;
3578 no) enable_fast_install=no ;;
3580 enable_fast_install=no
3581 # Look at the argument we got. We use all the common list separators.
3582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3583 for pkg in $enableval; do
3585 if test "X$pkg" = "X$p"; then
3586 enable_fast_install=yes
3593 enable_fast_install=yes
3596 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3597 if test "${with_gnu_ld+set}" = set; then
3598 withval="$with_gnu_ld"
3599 test "$withval" = no || with_gnu_ld=yes
3604 if test "$GCC" = yes; then
3605 # Check if gcc -print-prog-name=ld gives a path.
3606 echo "$as_me:3606: checking for ld used by GCC" >&5
3607 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3610 # gcc leaves a trailing carriage return which upsets mingw
3611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3616 # Accept absolute paths.
3618 re_direlt='/[^/][^/]*/\.\./'
3619 # Canonicalize the path of ld
3620 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3621 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3622 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3624 test -z "$LD" && LD="$ac_prog"
3627 # If it fails, then pretend we aren't using GCC.
3631 # If it is relative, then search for the first ld in PATH.
3635 elif test "$with_gnu_ld" = yes; then
3636 echo "$as_me:3636: checking for GNU ld" >&5
3637 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3639 echo "$as_me:3639: checking for non-GNU ld" >&5
3640 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3642 if test "${lt_cv_path_LD+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 if test -z "$LD"; then
3646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3647 for ac_dir in $PATH; do
3649 test -z "$ac_dir" && ac_dir=.
3650 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3651 lt_cv_path_LD="$ac_dir/$ac_prog"
3652 # Check to see if the program is GNU ld. I'd rather use --version,
3653 # but apparently some GNU ld's only accept -v.
3654 # Break only if it was the GNU/non-GNU ld that we prefer.
3655 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3656 test "$with_gnu_ld" != no && break
3658 test "$with_gnu_ld" != yes && break
3664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3669 if test -n "$LD"; then
3670 echo "$as_me:3670: result: $LD" >&5
3671 echo "${ECHO_T}$LD" >&6
3673 echo "$as_me:3673: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3676 test -z "$LD" && { { echo "$as_me:3676: error: no acceptable ld found in \$PATH" >&5
3677 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3678 { (exit 1); exit 1; }; }
3679 echo "$as_me:3679: checking if the linker ($LD) is GNU ld" >&5
3680 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3681 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3685 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3686 lt_cv_prog_gnu_ld=yes
3688 lt_cv_prog_gnu_ld=no
3691 echo "$as_me:3691: result: $lt_cv_prog_gnu_ld" >&5
3692 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3693 with_gnu_ld=$lt_cv_prog_gnu_ld
3695 echo "$as_me:3695: checking for $LD option to reload object files" >&5
3696 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3697 if test "${lt_cv_ld_reload_flag+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 lt_cv_ld_reload_flag='-r'
3702 echo "$as_me:3702: result: $lt_cv_ld_reload_flag" >&5
3703 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3704 reload_flag=$lt_cv_ld_reload_flag
3705 case $reload_flag in
3707 *) reload_flag=" $reload_flag" ;;
3709 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3711 echo "$as_me:3711: checking for BSD-compatible nm" >&5
3712 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3713 if test "${lt_cv_path_NM+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$NM"; then
3717 # Let the user override the test.
3720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3721 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3723 test -z "$ac_dir" && ac_dir=.
3724 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3725 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3726 # Check to see if the nm accepts a BSD-compat flag.
3727 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3728 # nm: unknown option "B" ignored
3729 # Tru64's nm complains that /dev/null is an invalid object file
3730 if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3731 lt_cv_path_NM="$tmp_nm -B"
3733 elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3734 lt_cv_path_NM="$tmp_nm -p"
3737 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3738 continue # so that we can try to find one that supports BSD flags
3743 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3746 echo "$as_me:3746: result: $lt_cv_path_NM" >&5
3747 echo "${ECHO_T}$lt_cv_path_NM" >&6
3750 echo "$as_me:3750: checking for a sed that does not truncate output" >&5
3751 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3752 if test "${lt_cv_path_SED+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 # Loop through the user's path and test for sed and gsed.
3756 # Then use that list of sed's as ones to test for truncation.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_prog in sed gsed; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3765 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3771 # Create a temporary directory, and hook for its removal unless debugging.
3774 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3775 trap '{ (exit 1); exit 1; }' 1 2 13 15
3778 # Create a (secure) tmp directory for tmp files.
3781 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3782 test -n "$tmp" && test -d "$tmp"
3785 tmp=$TMPDIR/sed$$-$RANDOM
3786 (umask 077 && mkdir $tmp)
3789 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3790 { (exit 1); exit 1; }
3794 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3795 # along with /bin/sed that truncates output.
3796 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3797 test ! -f ${_sed} && break
3798 cat /dev/null > "$tmp/sed.in"
3800 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
3801 # Check for GNU sed and select it if it is found.
3802 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3803 lt_cv_path_SED=${_sed}
3807 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3808 mv "$tmp/sed.tmp" "$tmp/sed.in"
3809 cp "$tmp/sed.in" "$tmp/sed.nl"
3810 echo >>"$tmp/sed.nl"
3811 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3812 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3813 # 10000 chars as input seems more than enough
3814 test $_count -gt 10 && break
3815 _count=`expr $_count + 1`
3816 if test $_count -gt $_max; then
3818 lt_cv_path_SED=$_sed
3826 echo "$as_me:3826: result: $SED" >&5
3827 echo "${ECHO_T}$SED" >&6
3829 echo "$as_me:3829: checking whether ln -s works" >&5
3830 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3832 if test "$LN_S" = "ln -s"; then
3833 echo "$as_me:3833: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6
3836 echo "$as_me:3836: result: no, using $LN_S" >&5
3837 echo "${ECHO_T}no, using $LN_S" >&6
3840 echo "$as_me:3840: checking how to recognise dependant libraries" >&5
3841 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3842 if test "${lt_cv_deplibs_check_method+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 lt_cv_file_magic_cmd='$MAGIC_CMD'
3846 lt_cv_file_magic_test_file=
3847 lt_cv_deplibs_check_method='unknown'
3848 # Need to set the preceding variable on all platforms that support
3849 # interlibrary dependencies.
3850 # 'none' -- dependencies not supported.
3851 # `unknown' -- same as none, but documents that we really don't know.
3852 # 'pass_all' -- all dependencies passed with no checks.
3853 # 'test_compile' -- check by making test program.
3854 # 'file_magic [[regex]]' -- check by looking for files in library path
3855 # which responds to the $file_magic_cmd with a given egrep regex.
3856 # If you have `file' or equivalent on your system and you're not sure
3857 # whether `pass_all' will *always* work, you probably want this one.
3861 lt_cv_deplibs_check_method=pass_all
3865 lt_cv_deplibs_check_method=pass_all
3869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3870 lt_cv_file_magic_cmd='/usr/bin/file -L'
3871 lt_cv_file_magic_test_file=/shlib/libc.so
3874 cygwin* | mingw* | pw32*)
3875 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3876 lt_cv_file_magic_cmd='$OBJDUMP -f'
3879 darwin* | rhapsody*)
3880 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3881 lt_cv_file_magic_cmd='/usr/bin/file -L'
3883 rhapsody* | darwin1.[012])
3884 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3887 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3893 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3896 # Not sure whether the presence of OpenBSD here was a mistake.
3897 # Let's accept both of them until this is cleared up.
3898 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3899 lt_cv_file_magic_cmd=/usr/bin/file
3900 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3904 lt_cv_deplibs_check_method=pass_all
3909 lt_cv_deplibs_check_method=pass_all
3912 hpux10.20* | hpux11*)
3913 lt_cv_file_magic_cmd=/usr/bin/file
3914 if test "$host_cpu" = ia64; then
3915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3923 irix5* | irix6* | nonstopux*)
3925 irix5* | nonstopux*)
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3931 *-32|*"-32 ") libmagic=32-bit;;
3932 *-n32|*"-n32 ") libmagic=N32;;
3933 *-64|*"-64 ") libmagic=64-bit;;
3934 *) libmagic=never-match;;
3936 # this will be overridden with pass_all, but let us keep it just in case
3937 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3940 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3941 lt_cv_deplibs_check_method=pass_all
3944 # This must be Linux ELF.
3947 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
3948 lt_cv_deplibs_check_method=pass_all ;;
3950 # glibc up to 2.1.1 does not perform some relocations on ARM
3951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3953 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3957 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3958 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3960 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3966 lt_cv_file_magic_cmd=/usr/bin/file
3967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3971 lt_cv_deplibs_check_method=unknown
3975 lt_cv_file_magic_cmd=/usr/bin/file
3976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3980 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3984 osf3* | osf4* | osf5*)
3985 # this will be overridden with pass_all, but let us keep it just in case
3986 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3987 lt_cv_file_magic_test_file=/shlib/libc.so
3988 lt_cv_deplibs_check_method=pass_all
3992 lt_cv_deplibs_check_method=pass_all
3996 lt_cv_deplibs_check_method=pass_all
3997 lt_cv_file_magic_test_file=/lib/libc.so
4000 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4001 case $host_vendor in
4003 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]'
4004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4007 lt_cv_deplibs_check_method=pass_all
4010 lt_cv_file_magic_cmd='/bin/file'
4011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4014 lt_cv_file_magic_cmd='/bin/file'
4015 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4016 lt_cv_file_magic_test_file=/lib/libc.so
4021 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4022 lt_cv_deplibs_check_method=pass_all
4027 echo "$as_me:4027: result: $lt_cv_deplibs_check_method" >&5
4028 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4029 file_magic_cmd=$lt_cv_file_magic_cmd
4030 deplibs_check_method=$lt_cv_deplibs_check_method
4031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4033 # If no C compiler was specified, use CC.
4036 # Allow CC to be a program name with arguments.
4040 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4041 if test "${enable_libtool_lock+set}" = set; then
4042 enableval="$enable_libtool_lock"
4045 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4047 # Some flags need to be propagated to the compiler or linker for good
4051 # Find out which ABI we are using.
4052 echo 'int i;' > conftest.$ac_ext
4053 if { (eval echo "$as_me:4053: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>&5
4056 echo "$as_me:4056: \$? = $ac_status" >&5
4057 (exit $ac_status); }; then
4058 case `/usr/bin/file conftest.$ac_objext` in
4070 # Find out which ABI we are using.
4071 echo '#line 4071 "configure"' > conftest.$ac_ext
4072 if { (eval echo "$as_me:4072: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4075 echo "$as_me:4075: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4077 case `/usr/bin/file conftest.$ac_objext` in
4093 # Test if the compiler is 64bit
4094 echo 'int i;' > conftest.$ac_ext
4095 if { (eval echo "$as_me:4095: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>&5
4098 echo "$as_me:4098: \$? = $ac_status" >&5
4099 (exit $ac_status); }; then
4100 case `/usr/bin/file conftest.$ac_objext` in
4113 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4114 SAVE_CFLAGS="$CFLAGS"
4115 CFLAGS="$CFLAGS -belf"
4116 echo "$as_me:4116: checking whether the C compiler needs -belf" >&5
4117 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4118 if test "${lt_cv_cc_needs_belf+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line 4128 "configure"
4129 #include "confdefs.h"
4139 rm -f conftest.$ac_objext conftest$ac_exeext
4140 if { (eval echo "$as_me:4140: \"$ac_link\"") >&5
4141 (eval $ac_link) 2>&5
4143 echo "$as_me:4143: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -s conftest$ac_exeext'
4146 { (eval echo "$as_me:4146: \"$ac_try\"") >&5
4149 echo "$as_me:4149: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 lt_cv_cc_needs_belf=yes
4153 echo "$as_me: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4155 lt_cv_cc_needs_belf=no
4157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 echo "$as_me:4165: result: $lt_cv_cc_needs_belf" >&5
4166 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4167 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4168 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4169 CFLAGS="$SAVE_CFLAGS"
4175 need_locks="$enable_libtool_lock"
4177 for ac_header in dlfcn.h
4179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4180 echo "$as_me:4180: checking for $ac_header" >&5
4181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line 4186 "configure"
4187 #include "confdefs.h"
4188 #include <$ac_header>
4190 if { (eval echo "$as_me:4190: \"$ac_cpp conftest.$ac_ext\"") >&5
4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 egrep -v '^ *\+' conftest.er1 >conftest.err
4195 cat conftest.err >&5
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit $ac_status); } >/dev/null; then
4198 if test -s conftest.err; then
4199 ac_cpp_err=$ac_c_preproc_warn_flag
4206 if test -z "$ac_cpp_err"; then
4207 eval "$as_ac_Header=yes"
4209 echo "$as_me: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 eval "$as_ac_Header=no"
4213 rm -f conftest.err conftest.$ac_ext
4215 echo "$as_me:4215: result: `eval echo '${'$as_ac_Header'}'`" >&5
4216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4218 cat >>confdefs.h <<EOF
4219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226 ac_cpp='$CXXCPP $CPPFLAGS'
4227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4230 echo "$as_me:4230: checking how to run the C++ preprocessor" >&5
4231 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4232 if test -z "$CXXCPP"; then
4233 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 # Double quotes because CXXCPP needs to be expanded
4237 for CXXCPP in "$CXX -E" "/lib/cpp"
4240 for ac_cxx_preproc_warn_flag in '' yes
4242 # Use a header file that comes with gcc, so configuring glibc
4243 # with a fresh cross-compiler works.
4244 # On the NeXT, cc -E runs the code through the compiler's parser,
4245 # not just through cpp. "Syntax error" is here to catch this case.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line 4247 "configure"
4248 #include "confdefs.h"
4252 if { (eval echo "$as_me:4252: \"$ac_cpp conftest.$ac_ext\"") >&5
4253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4255 egrep -v '^ *\+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:4258: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev/null; then
4260 if test -s conftest.err; then
4261 ac_cpp_err=$ac_cxx_preproc_warn_flag
4268 if test -z "$ac_cpp_err"; then
4271 echo "$as_me: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether non-existent headers
4279 # can be detected and how.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line 4281 "configure"
4282 #include "confdefs.h"
4283 #include <ac_nonexistent.h>
4285 if { (eval echo "$as_me:4285: \"$ac_cpp conftest.$ac_ext\"") >&5
4286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288 egrep -v '^ *\+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:4291: \$? = $ac_status" >&5
4292 (exit $ac_status); } >/dev/null; then
4293 if test -s conftest.err; then
4294 ac_cpp_err=$ac_cxx_preproc_warn_flag
4301 if test -z "$ac_cpp_err"; then
4302 # Broken: success on invalid input.
4305 echo "$as_me: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 # Passes both tests.
4311 rm -f conftest.err conftest.$ac_ext
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4321 ac_cv_prog_CXXCPP=$CXXCPP
4324 CXXCPP=$ac_cv_prog_CXXCPP
4326 ac_cv_prog_CXXCPP=$CXXCPP
4328 echo "$as_me:4328: result: $CXXCPP" >&5
4329 echo "${ECHO_T}$CXXCPP" >&6
4331 for ac_cxx_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # On the NeXT, cc -E runs the code through the compiler's parser,
4336 # not just through cpp. "Syntax error" is here to catch this case.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 #line 4338 "configure"
4339 #include "confdefs.h"
4343 if { (eval echo "$as_me:4343: \"$ac_cpp conftest.$ac_ext\"") >&5
4344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346 egrep -v '^ *\+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:4349: \$? = $ac_status" >&5
4350 (exit $ac_status); } >/dev/null; then
4351 if test -s conftest.err; then
4352 ac_cpp_err=$ac_cxx_preproc_warn_flag
4359 if test -z "$ac_cpp_err"; then
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 # Broken: fails on valid input.
4367 rm -f conftest.err conftest.$ac_ext
4369 # OK, works on sane cases. Now check whether non-existent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line 4372 "configure"
4373 #include "confdefs.h"
4374 #include <ac_nonexistent.h>
4376 if { (eval echo "$as_me:4376: \"$ac_cpp conftest.$ac_ext\"") >&5
4377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4379 egrep -v '^ *\+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:4382: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null; then
4384 if test -s conftest.err; then
4385 ac_cpp_err=$ac_cxx_preproc_warn_flag
4392 if test -z "$ac_cpp_err"; then
4393 # Broken: success on invalid input.
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 # Passes both tests.
4402 rm -f conftest.err conftest.$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then
4410 { { echo "$as_me:4410: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4411 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4412 { (exit 1); exit 1; }; }
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4423 # find the maximum length of command line arguments
4424 echo "$as_me:4424: checking the maximum length of command line arguments" >&5
4425 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4426 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 # On DJGPP, this test can blow up pretty badly due to problems in libc
4435 # (any single argument exceeding 2000 bytes causes a buffer overrun
4436 # during glob expansion). Even if it were fixed, the result of this
4437 # check would be larger than it should be.
4438 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4442 # Under GNU Hurd, this test is not required because there is
4443 # no limit to the length of command line arguments.
4444 # Libtool will interpret -1 as no limit whatsoever
4445 lt_cv_sys_max_cmd_len=-1;
4449 # If test is not a shell built-in, we'll probably end up computing a
4450 # maximum length that is only half of the actual maximum length, but
4452 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4453 = "XX$testring") >/dev/null 2>&1 &&
4454 new_result=`expr "X$testring" : ".*" 2>&1` &&
4455 lt_cv_sys_max_cmd_len=$new_result &&
4456 test $i != 17 # 1/2 MB should be enough
4459 testring=$testring$testring
4462 # Add a significant safety factor because C++ compilers can tack on massive
4463 # amounts of additional arguments before passing them to the linker.
4464 # It appears as though 1/2 is a usable value.
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4471 if test -n $lt_cv_sys_max_cmd_len ; then
4472 echo "$as_me:4472: result: $lt_cv_sys_max_cmd_len" >&5
4473 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4475 echo "$as_me:4475: result: none" >&5
4476 echo "${ECHO_T}none" >&6
4479 # Check for command to grab the raw symbol name followed by C symbol from nm.
4480 echo "$as_me:4480: checking command to parse $NM output from $compiler object" >&5
4481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 # These are sane defaults that work on at least a few old systems.
4487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4489 # Character class describing NM global symbol codes.
4490 symcode='[BCDEGRST]'
4492 # Regexp to match symbols that can be accessed directly from C.
4493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4495 # Transform the above into a raw symbol and a C symbol.
4496 symxfrm='\1 \2\3 \3'
4498 # Transform an extracted symbol line into a proper C declaration
4499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4501 # Transform an extracted symbol line into symbol name and symbol address
4502 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'"
4504 # Define system-specific variables.
4509 cygwin* | mingw* | pw32*)
4510 symcode='[ABCDGISTW]'
4512 hpux*) # Its linker distinguishes data from code symbols
4513 if test "$host_cpu" = ia64; then
4514 symcode='[ABCDEGRST]'
4516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4517 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'"
4520 symcode='[BCDEGRST]'
4530 # Handle CRLF in mingw tool chain
4534 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4538 # If we're using GNU nm, then use its standard symbol codes.
4539 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4540 symcode='[ABCDGISTW]'
4543 # Try without a prefix undercore, then with it.
4544 for ac_symprfx in "" "_"; do
4546 # Write the raw and C identifiers.
4547 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4549 # Check to see that the pipe works correctly.
4553 cat > conftest.$ac_ext <<EOF
4558 void nm_test_func(){}
4562 int main(){nm_test_var='a';nm_test_func();return(0);}
4565 if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4568 echo "$as_me:4568: \$? = $ac_status" >&5
4569 (exit $ac_status); }; then
4570 # Now try to grab the symbols.
4572 if { (eval echo "$as_me:4572: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4575 echo "$as_me:4575: \$? = $ac_status" >&5
4576 (exit $ac_status); } && test -s "$nlist"; then
4577 # Try sorting and uniquifying the output.
4578 if sort "$nlist" | uniq > "$nlist"T; then
4579 mv -f "$nlist"T "$nlist"
4584 # Make sure that we snagged all the symbols we need.
4585 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4586 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4587 cat <<EOF > conftest.$ac_ext
4593 # Now generate the symbol file.
4594 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4596 cat <<EOF >> conftest.$ac_ext
4597 #if defined (__STDC__) && __STDC__
4598 # define lt_ptr_t void *
4600 # define lt_ptr_t char *
4604 /* The mapping between symbol names and symbols. */
4609 lt_preloaded_symbols[] =
4612 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4613 cat <<\EOF >> conftest.$ac_ext
4621 # Now try linking the two files.
4622 mv conftest.$ac_objext conftstm.$ac_objext
4623 lt_save_LIBS="$LIBS"
4624 lt_save_CFLAGS="$CFLAGS"
4625 LIBS="conftstm.$ac_objext"
4626 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4627 if { (eval echo "$as_me:4627: \"$ac_link\"") >&5
4628 (eval $ac_link) 2>&5
4630 echo "$as_me:4630: \$? = $ac_status" >&5
4631 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4634 LIBS="$lt_save_LIBS"
4635 CFLAGS="$lt_save_CFLAGS"
4637 echo "cannot find nm_test_func in $nlist" >&5
4640 echo "cannot find nm_test_var in $nlist" >&5
4643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4646 echo "$progname: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 rm -f conftest* conftst*
4651 # Do not use the global_symbol_pipe unless it works.
4652 if test "$pipe_works" = yes; then
4655 lt_cv_sys_global_symbol_pipe=
4661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4662 lt_cv_sys_global_symbol_to_cdecl=
4664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4665 echo "$as_me:4665: result: failed" >&5
4666 echo "${ECHO_T}failed" >&6
4668 echo "$as_me:4668: result: ok" >&5
4669 echo "${ECHO_T}ok" >&6
4672 echo "$as_me:4672: checking for objdir" >&5
4673 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4674 if test "${lt_cv_objdir+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 rm -f .libs 2>/dev/null
4678 mkdir .libs 2>/dev/null
4679 if test -d .libs; then
4682 # MS-DOS does not allow filenames that begin with a dot.
4685 rmdir .libs 2>/dev/null
4687 echo "$as_me:4687: result: $lt_cv_objdir" >&5
4688 echo "${ECHO_T}$lt_cv_objdir" >&6
4689 objdir=$lt_cv_objdir
4693 # AIX sometimes has problems with the GCC collect2 program. For some
4694 # reason, if we set the COLLECT_NAMES environment variable, the problems
4695 # vanish in a puff of smoke.
4696 if test "X${COLLECT_NAMES+set}" != Xset; then
4698 export COLLECT_NAMES
4703 # Sed substitution that helps us do robust quoting. It backslashifies
4704 # metacharacters that are still active within double-quoted strings.
4705 Xsed='sed -e s/^X//'
4706 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4708 # Same as above, but do not quote variable references.
4709 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4711 # Sed substitution to delay expansion of an escaped shell variable in a
4712 # double_quote_subst'ed string.
4713 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4715 # Sed substitution to avoid accidental globbing in evaled expressions
4716 no_glob_subst='s/\*/\\\*/g'
4722 default_ofile=libtool
4723 can_build_shared=yes
4725 # All known linkers require a `.a' archive for static linking (except M$VC,
4726 # which needs '.lib').
4728 ltmain="$ac_aux_dir/ltmain.sh"
4729 ofile="$default_ofile"
4730 with_gnu_ld="$lt_cv_prog_gnu_ld"
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4735 echo "$as_me:4735: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737 if test "${ac_cv_prog_RANLIB+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$RANLIB"; then
4741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4743 ac_save_IFS=$IFS; IFS=$ac_path_separator
4745 for ac_dir in $ac_dummy; do
4747 test -z "$ac_dir" && ac_dir=.
4748 $as_executable_p "$ac_dir/$ac_word" || continue
4749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4750 echo "$as_me:4750: found $ac_dir/$ac_word" >&5
4756 RANLIB=$ac_cv_prog_RANLIB
4757 if test -n "$RANLIB"; then
4758 echo "$as_me:4758: result: $RANLIB" >&5
4759 echo "${ECHO_T}$RANLIB" >&6
4761 echo "$as_me:4761: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4766 if test -z "$ac_cv_prog_RANLIB"; then
4767 ac_ct_RANLIB=$RANLIB
4768 # Extract the first word of "ranlib", so it can be a program name with args.
4769 set dummy ranlib; ac_word=$2
4770 echo "$as_me:4770: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -n "$ac_ct_RANLIB"; then
4776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4778 ac_save_IFS=$IFS; IFS=$ac_path_separator
4780 for ac_dir in $ac_dummy; do
4782 test -z "$ac_dir" && ac_dir=.
4783 $as_executable_p "$ac_dir/$ac_word" || continue
4784 ac_cv_prog_ac_ct_RANLIB="ranlib"
4785 echo "$as_me:4785: found $ac_dir/$ac_word" >&5
4789 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4793 if test -n "$ac_ct_RANLIB"; then
4794 echo "$as_me:4794: result: $ac_ct_RANLIB" >&5
4795 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4797 echo "$as_me:4797: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4801 RANLIB=$ac_ct_RANLIB
4803 RANLIB="$ac_cv_prog_RANLIB"
4806 if test -n "$ac_tool_prefix"; then
4807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4808 set dummy ${ac_tool_prefix}strip; ac_word=$2
4809 echo "$as_me:4809: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_prog_STRIP+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test -n "$STRIP"; then
4815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4817 ac_save_IFS=$IFS; IFS=$ac_path_separator
4819 for ac_dir in $ac_dummy; do
4821 test -z "$ac_dir" && ac_dir=.
4822 $as_executable_p "$ac_dir/$ac_word" || continue
4823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4824 echo "$as_me:4824: found $ac_dir/$ac_word" >&5
4830 STRIP=$ac_cv_prog_STRIP
4831 if test -n "$STRIP"; then
4832 echo "$as_me:4832: result: $STRIP" >&5
4833 echo "${ECHO_T}$STRIP" >&6
4835 echo "$as_me:4835: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4840 if test -z "$ac_cv_prog_STRIP"; then
4842 # Extract the first word of "strip", so it can be a program name with args.
4843 set dummy strip; ac_word=$2
4844 echo "$as_me:4844: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$ac_ct_STRIP"; then
4850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4852 ac_save_IFS=$IFS; IFS=$ac_path_separator
4854 for ac_dir in $ac_dummy; do
4856 test -z "$ac_dir" && ac_dir=.
4857 $as_executable_p "$ac_dir/$ac_word" || continue
4858 ac_cv_prog_ac_ct_STRIP="strip"
4859 echo "$as_me:4859: found $ac_dir/$ac_word" >&5
4863 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4867 if test -n "$ac_ct_STRIP"; then
4868 echo "$as_me:4868: result: $ac_ct_STRIP" >&5
4869 echo "${ECHO_T}$ac_ct_STRIP" >&6
4871 echo "$as_me:4871: result: no" >&5
4872 echo "${ECHO_T}no" >&6
4877 STRIP="$ac_cv_prog_STRIP"
4881 old_CFLAGS="$CFLAGS"
4883 # Set sane defaults for various variables
4884 test -z "$AR" && AR=ar
4885 test -z "$AR_FLAGS" && AR_FLAGS=cru
4886 test -z "$AS" && AS=as
4887 test -z "$CC" && CC=cc
4888 test -z "$LTCC" && LTCC=$CC
4889 test -z "$DLLTOOL" && DLLTOOL=dlltool
4890 test -z "$LD" && LD=ld
4891 test -z "$LN_S" && LN_S="ln -s"
4892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4893 test -z "$NM" && NM=nm
4894 test -z "$SED" && SED=sed
4895 test -z "$OBJDUMP" && OBJDUMP=objdump
4896 test -z "$RANLIB" && RANLIB=:
4897 test -z "$STRIP" && STRIP=:
4898 test -z "$ac_objext" && ac_objext=o
4900 # Determine commands to create old-style static archives.
4901 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4902 old_postinstall_cmds='chmod 644 $oldlib'
4903 old_postuninstall_cmds=
4905 if test -n "$RANLIB"; then
4908 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4911 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4914 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4917 # Only perform the check for file, if the check method requires it
4918 case $deplibs_check_method in
4920 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4921 echo "$as_me:4921: checking for ${ac_tool_prefix}file" >&5
4922 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4931 lt_save_MAGIC_CMD="$MAGIC_CMD"
4932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
4934 for ac_dir in $ac_dummy; do
4936 test -z "$ac_dir" && ac_dir=.
4937 if test -f $ac_dir/${ac_tool_prefix}file; then
4938 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4939 if test -n "$file_magic_test_file"; then
4940 case $deplibs_check_method in
4942 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4945 egrep "$file_magic_regex" > /dev/null; then
4950 *** Warning: the command libtool uses to detect shared libraries,
4951 *** $file_magic_cmd, produces output that libtool cannot recognize.
4952 *** The result is that libtool may fail to recognize shared libraries
4953 *** as such. This will affect the creation of libtool libraries that
4954 *** depend on shared libraries, but programs linked with such libtool
4955 *** libraries will work regardless of this problem. Nevertheless, you
4956 *** may want to report the problem to your system manager and/or to
4957 *** bug-libtool@gnu.org
4967 MAGIC_CMD="$lt_save_MAGIC_CMD"
4972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4973 if test -n "$MAGIC_CMD"; then
4974 echo "$as_me:4974: result: $MAGIC_CMD" >&5
4975 echo "${ECHO_T}$MAGIC_CMD" >&6
4977 echo "$as_me:4977: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4981 if test -z "$lt_cv_path_MAGIC_CMD"; then
4982 if test -n "$ac_tool_prefix"; then
4983 echo "$as_me:4983: checking for file" >&5
4984 echo $ECHO_N "checking for file... $ECHO_C" >&6
4985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4993 lt_save_MAGIC_CMD="$MAGIC_CMD"
4994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
4996 for ac_dir in $ac_dummy; do
4998 test -z "$ac_dir" && ac_dir=.
4999 if test -f $ac_dir/file; then
5000 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5001 if test -n "$file_magic_test_file"; then
5002 case $deplibs_check_method in
5004 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5007 egrep "$file_magic_regex" > /dev/null; then
5012 *** Warning: the command libtool uses to detect shared libraries,
5013 *** $file_magic_cmd, produces output that libtool cannot recognize.
5014 *** The result is that libtool may fail to recognize shared libraries
5015 *** as such. This will affect the creation of libtool libraries that
5016 *** depend on shared libraries, but programs linked with such libtool
5017 *** libraries will work regardless of this problem. Nevertheless, you
5018 *** may want to report the problem to your system manager and/or to
5019 *** bug-libtool@gnu.org
5029 MAGIC_CMD="$lt_save_MAGIC_CMD"
5034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5035 if test -n "$MAGIC_CMD"; then
5036 echo "$as_me:5036: result: $MAGIC_CMD" >&5
5037 echo "${ECHO_T}$MAGIC_CMD" >&6
5039 echo "$as_me:5039: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5055 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5056 if test "${enable_libtool_lock+set}" = set; then
5057 enableval="$enable_libtool_lock"
5060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5062 # Check whether --with-pic or --without-pic was given.
5063 if test "${with_pic+set}" = set; then
5069 test -z "$pic_mode" && pic_mode=default
5071 # Use C for the default configuration in the libtool script
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 # Source file extension for C test sources.
5083 # Object file extension for compiled C test sources.
5087 # Code to be used in simple compile tests
5088 lt_simple_compile_test_code="int some_variable = 0;"
5090 # Code to be used in simple link tests
5091 lt_simple_link_test_code='main(){return(0);}'
5093 # If no C compiler was specified, use CC.
5096 # Allow CC to be a program name with arguments.
5101 # Check for any special shared library compilation flags.
5104 if test "$GCC" = no; then
5107 lt_prog_cc_shlib='-belf'
5111 if test -n "$lt_prog_cc_shlib"; then
5112 { echo "$as_me:5112: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5113 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5114 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5116 { echo "$as_me:5116: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5117 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5118 lt_cv_prog_cc_can_build_shared=no
5123 # Check to make sure the static flag actually works.
5125 echo "$as_me:5125: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5126 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5127 if test "${lt_prog_compiler_static_works+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 lt_prog_compiler_static_works=no
5131 save_LDFLAGS="$LDFLAGS"
5132 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
5134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5135 # The compiler can only warn and ignore the option if not recognized
5136 # So say no if there are warnings
5137 if test -s conftest.err; then
5138 # Append any errors to the config.log.
5139 cat conftest.err 1>&5
5141 lt_prog_compiler_static_works=yes
5145 LDFLAGS="$save_LDFLAGS"
5148 echo "$as_me:5148: result: $lt_prog_compiler_static_works" >&5
5149 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5151 if test x"$lt_prog_compiler_static_works" = xyes; then
5154 lt_prog_compiler_static=
5157 lt_prog_compiler_no_builtin_flag=
5159 if test "$GCC" = yes; then
5160 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5162 echo "$as_me:5162: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5163 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5164 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 lt_cv_prog_compiler_rtti_exceptions=no
5168 ac_outfile=conftest.$ac_objext
5169 save_CFLAGS="$CFLAGS"
5170 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5172 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5173 # The compiler can only warn and ignore the option if not recognized
5174 # So say no if there are warnings
5175 if test -s conftest.err; then
5176 # Append any errors to the config.log.
5177 cat conftest.err 1>&5
5179 lt_cv_prog_compiler_rtti_exceptions=yes
5183 CFLAGS="$save_CFLAGS"
5186 echo "$as_me:5186: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5187 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5189 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5190 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5197 lt_prog_compiler_wl=
5198 lt_prog_compiler_pic=
5199 lt_prog_compiler_static=
5201 echo "$as_me:5201: checking for $compiler option to produce PIC" >&5
5202 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5204 if test "$GCC" = yes; then
5205 lt_prog_compiler_wl='-Wl,'
5206 lt_prog_compiler_static='-static'
5210 # All AIX code is PIC.
5211 if test "$host_cpu" = ia64; then
5212 # AIX 5 now supports IA64 processor
5213 lt_prog_compiler_static='-Bstatic'
5218 # FIXME: we need at least 68020 code to build shared libraries, but
5219 # adding the `-m68020' flag to GCC prevents building anything better,
5221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5224 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5225 # PIC is the default for these OSes.
5228 cygwin* | mingw* | pw32* | os2*)
5229 # This hack is so that the source file can tell whether it is being
5230 # built for inclusion in a dll (and should export symbols for example).
5231 lt_prog_compiler_pic='-DDLL_EXPORT'
5234 darwin* | rhapsody*)
5235 # PIC is the default on this platform
5236 # Common symbols not allowed in MH_DYLIB files
5237 lt_prog_compiler_pic='-fno-common'
5241 # Just because we use GCC doesn't mean we suddenly get shared libraries
5242 # on systems that don't support them.
5243 lt_prog_compiler_can_build_shared=no
5248 if test -d /usr/nec; then
5249 lt_prog_compiler_pic=-Kconform_pic
5254 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
5255 if test "$host_cpu" != ia64; then
5256 lt_prog_compiler_pic='-fPIC'
5261 lt_prog_compiler_pic='-fPIC'
5265 # PORTME Check for flag to pass linker flags through the system compiler.
5268 lt_prog_compiler_wl='-Wl,'
5269 if test "$host_cpu" = ia64; then
5270 # AIX 5 now supports IA64 processor
5271 lt_prog_compiler_static='-Bstatic'
5273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5277 cygwin* | mingw* | pw32* | os2*)
5278 # This hack is so that the source file can tell whether it is being
5279 # built for inclusion in a dll (and should export symbols for example).
5280 lt_prog_compiler_pic='-DDLL_EXPORT'
5283 hpux9* | hpux10* | hpux11*)
5284 lt_prog_compiler_wl='-Wl,'
5285 if test "$host_cpu" != ia64; then
5286 lt_prog_compiler_pic='+Z'
5288 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5289 lt_prog_compiler_static='${wl}-a ${wl}archive'
5292 irix5* | irix6* | nonstopux*)
5293 lt_prog_compiler_wl='-Wl,'
5294 # PIC (with -KPIC) is the default.
5295 lt_prog_compiler_static='-non_shared'
5299 lt_prog_compiler_pic='-KPIC'
5300 lt_prog_compiler_static='-Bstatic'
5303 osf3* | osf4* | osf5*)
5304 lt_prog_compiler_wl='-Wl,'
5305 # All OSF/1 code is PIC.
5306 lt_prog_compiler_static='-non_shared'
5310 lt_prog_compiler_pic='-Kpic'
5311 lt_prog_compiler_static='-dn'
5315 lt_prog_compiler_wl='-Wl,'
5316 lt_prog_compiler_pic='-KPIC'
5317 lt_prog_compiler_static='-Bstatic'
5321 lt_prog_compiler_wl='-Qoption ld '
5322 lt_prog_compiler_pic='-PIC'
5323 lt_prog_compiler_static='-Bstatic'
5326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5327 if test "x$host_vendor" = xsni; then
5328 lt_prog_compiler_wl='-LD'
5330 lt_prog_compiler_wl='-Wl,'
5332 lt_prog_compiler_pic='-KPIC'
5333 lt_prog_compiler_static='-Bstatic'
5337 if test -d /usr/nec ;then
5338 lt_prog_compiler_pic='-Kconform_pic'
5339 lt_prog_compiler_static='-Bstatic'
5344 lt_prog_compiler_pic='-pic'
5345 lt_prog_compiler_static='-Bstatic'
5349 lt_prog_compiler_can_build_shared=no
5354 echo "$as_me:5354: result: $lt_prog_compiler_pic" >&5
5355 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5358 # Check to make sure the PIC flag actually works.
5360 if test -n "$lt_prog_compiler_pic"; then
5361 echo "$as_me:5361: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5363 if test "${lt_prog_compiler_pic_works+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 lt_prog_compiler_pic_works=no
5367 ac_outfile=conftest.$ac_objext
5368 save_CFLAGS="$CFLAGS"
5369 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
5370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5371 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
5372 # The compiler can only warn and ignore the option if not recognized
5373 # So say no if there are warnings
5374 if test -s conftest.err; then
5375 # Append any errors to the config.log.
5376 cat conftest.err 1>&5
5378 lt_prog_compiler_pic_works=yes
5382 CFLAGS="$save_CFLAGS"
5385 echo "$as_me:5385: result: $lt_prog_compiler_pic_works" >&5
5386 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5388 if test x"$lt_prog_compiler_pic_works" = xyes; then
5389 case $lt_prog_compiler_pic in
5391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5394 lt_prog_compiler_pic=
5395 lt_prog_compiler_can_build_shared=no
5400 # For platforms which do not support PIC, -DPIC is meaningless:
5402 lt_prog_compiler_pic=
5405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5409 echo "$as_me:5409: checking if $compiler supports -c -o file.$ac_objext" >&5
5410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5411 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 lt_cv_prog_compiler_c_o=no
5415 $rm -r conftest 2>/dev/null
5419 save_CFLAGS="$CFLAGS"
5420 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5423 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5424 # that will create temporary files in the current directory regardless of
5425 # the output directory. Thus, making CWD read-only will cause this test
5426 # to fail, enabling locking or at least warning the user not to do parallel
5430 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
5432 # The compiler can only warn and ignore the option if not recognized
5433 # So say no if there are warnings
5434 if test -s out/conftest.err; then
5435 # Append any errors to the config.log.
5436 cat out/conftest.err 1>&5
5438 lt_cv_prog_compiler_c_o=yes
5441 CFLAGS="$save_CFLAGS"
5450 echo "$as_me:5450: result: $lt_cv_prog_compiler_c_o" >&5
5451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5453 hard_links="nottested"
5454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5455 # do not overwrite the value of need_locks provided by the user
5456 echo "$as_me:5456: checking if we can lock with hard links" >&5
5457 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5462 ln conftest.a conftest.b 2>&5 || hard_links=no
5463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5464 echo "$as_me:5464: result: $hard_links" >&5
5465 echo "${ECHO_T}$hard_links" >&6
5466 if test "$hard_links" = no; then
5467 { echo "$as_me:5467: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5468 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5475 echo "$as_me:5475: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5476 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5479 allow_undefined_flag=
5482 archive_cmds_need_lc=
5483 archive_expsym_cmds=
5484 old_archive_From_new_cmds=
5485 old_archive_from_expsyms_cmds=
5486 export_dynamic_flag_spec=
5487 whole_archive_flag_spec=
5488 thread_safe_flag_spec=
5489 hardcode_libdir_flag_spec=
5490 hardcode_libdir_separator=
5493 hardcode_shlibpath_var=unsupported
5494 link_all_deplibs=unknown
5495 always_export_symbols=no
5496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5497 # include_expsyms should be a list of space-separated symbols to be *always*
5498 # included in the symbol list
5500 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5501 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5502 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5503 # as well as any symbol that contains `d'.
5504 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5505 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5506 # platforms (ab)use it in PIC code, but their linkers get confused if
5507 # the symbol is explicitly referenced. Since portable code cannot
5508 # rely on this symbol name, it's probably fine to never include it in
5509 # preloaded symbol tables.
5510 extract_expsyms_cmds=
5513 cygwin* | mingw* | pw32*)
5514 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5515 # When not using gcc, we currently assume that we are using
5516 # Microsoft Visual C++.
5517 if test "$GCC" != yes; then
5527 if test "$with_gnu_ld" = yes; then
5528 # If archive_cmds runs LD, not CC, wlarc should be empty
5531 # See if GNU ld supports shared libraries.
5533 aix3* | aix4* | aix5*)
5534 # On AIX/PPC, the GNU linker is very broken
5535 if test "$host_cpu" != ia64; then
5539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5540 *** to be unable to reliably create shared libraries on AIX.
5541 *** Therefore, libtool is disabling shared libraries support. If you
5542 *** really care for shared libraries, you may want to modify your PATH
5543 *** so that a non-GNU linker is found, and then restart.
5550 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)'
5551 hardcode_libdir_flag_spec='-L$libdir'
5552 hardcode_minus_L=yes
5554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5555 # that the semantics of dynamic libraries on AmigaOS, at least up
5556 # to version 4, is to share data among multiple programs linked
5557 # with the same dynamic library. Since this doesn't match the
5558 # behavior of shared libraries on other platforms, we can't use
5564 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5565 allow_undefined_flag=unsupported
5566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5567 # support --undefined. This deserves some investigation. FIXME
5568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5574 cygwin* | mingw* | pw32*)
5575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
5576 # no search path for DLLs.
5577 hardcode_libdir_flag_spec='-L$libdir'
5578 allow_undefined_flag=unsupported
5579 always_export_symbols=yes
5581 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5582 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5583 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5584 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5585 else $CC -o impgen impgen.c ; fi)~
5586 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5588 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5590 # cygwin and mingw dlls have different entry points and sets of symbols
5592 # FIXME: what about values for MSVC?
5593 dll_entry=__cygwin_dll_entry@12
5594 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5598 dll_entry=_DllMainCRTStartup@12
5599 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5603 # mingw and cygwin differ, and it's simplest to just exclude the union
5604 # of the two symbol sets.
5605 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5607 # recent cygwin and mingw systems supply a stub DllMain which the user
5608 # can override, but on older systems we have to supply one (in ltdll.c)
5609 if test "x$lt_cv_need_dllmain" = "xyes"; then
5610 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5611 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~
5612 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5618 # Extract the symbol export list from an `--export-all' def file,
5619 # then regenerate the def file from the symbol export list, so that
5620 # the compiled dll only exports the symbol export list.
5621 # Be careful not to strip the DATA tag left by newer dlltools.
5622 export_symbols_cmds="$ltdll_cmds"'
5623 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5624 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5626 # If the export-symbols file already is a .def file (1st line
5627 # is EXPORTS), use it as is.
5628 # If DATA tags from a recent dlltool are present, honour them!
5629 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5630 cp $export_symbols $output_objdir/$soname-def;
5632 echo EXPORTS > $output_objdir/$soname-def;
5634 cat $export_symbols | while read symbol; do
5637 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5638 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5640 _lt_hint=`expr 1 + \$_lt_hint`;
5644 $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~
5645 $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~
5646 $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~
5647 $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~
5648 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5656 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5657 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5662 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5667 *** create shared libraries on Solaris systems. Therefore, libtool
5668 *** is disabling shared libraries support. We urge you to upgrade GNU
5669 *** binutils to release 2.9.1 or newer. Another option is to modify
5670 *** your PATH or compiler configuration so that the native linker is
5671 *** used, and then restart.
5674 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5683 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5686 hardcode_shlibpath_var=no
5690 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5699 if test "$ld_shlibs" = yes; then
5700 runpath_var=LD_RUN_PATH
5701 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5702 export_dynamic_flag_spec='${wl}--export-dynamic'
5704 cygwin* | mingw* | pw32*)
5705 # dlltool doesn't understand --whole-archive et. al.
5706 whole_archive_flag_spec=
5709 # ancient GNU ld didn't support --whole-archive et. al.
5710 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5711 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5713 whole_archive_flag_spec=
5719 # PORTME fill in a description of your system's linker (not GNU ld)
5722 allow_undefined_flag=unsupported
5723 always_export_symbols=yes
5724 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'
5725 # Note: this linker hardcodes the directories in LIBPATH if there
5726 # are no directories specified by -L.
5727 hardcode_minus_L=yes
5728 if test "$GCC" = yes && test -z "$link_static_flag"; then
5729 # Neither direct hardcoding nor static linking is supported with a
5731 hardcode_direct=unsupported
5736 if test "$host_cpu" = ia64; then
5737 # On IA64, the linker does run time linking by default, so we don't
5738 # have to do anything special.
5739 aix_use_runtimelinking=no
5740 exp_sym_flag='-Bexport'
5743 # If we're using GNU nm, then we don't want the "-C" option.
5744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5745 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
5746 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'
5748 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'
5751 # KDE requires run time linking. Make it the default.
5752 aix_use_runtimelinking=yes
5753 exp_sym_flag='-bexport'
5754 no_entry_flag='-bnoentry'
5757 # When large executables or shared objects are built, AIX ld can
5758 # have problems creating the table of contents. If linking a library
5759 # or program results in "error TOC overflow" add -mminimal-toc to
5760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5765 hardcode_libdir_separator=':'
5766 link_all_deplibs=yes
5768 if test "$GCC" = yes; then
5769 case $host_os in aix4.012|aix4.012.*)
5770 # We only want to do this on AIX 4.2 and lower, the check
5771 # below for broken collect2 doesn't work under 4.3+
5772 collect2name=`${CC} -print-prog-name=collect2`
5773 if test -f "$collect2name" && \
5774 strings "$collect2name" | grep resolve_lib_name >/dev/null
5776 # We have reworked collect2
5779 # We have old collect2
5780 hardcode_direct=unsupported
5781 # It fails to find uninstalled libraries when the uninstalled
5782 # path is not listed in the libpath. Setting hardcode_minus_L
5783 # to unsupported forces relinking
5784 hardcode_minus_L=yes
5785 hardcode_libdir_flag_spec='-L$libdir'
5786 hardcode_libdir_separator=
5789 shared_flag='-shared'
5792 if test "$host_cpu" = ia64; then
5793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5794 # chokes on -Wl,-G. The following line is correct:
5797 if test "$aix_use_runtimelinking" = yes; then
5798 shared_flag='-qmkshrobj ${wl}-G'
5800 shared_flag='-qmkshrobj'
5805 # Let the compiler handle the export list.
5806 always_export_symbols=no
5807 if test "$aix_use_runtimelinking" = yes; then
5808 # Warning - without using the other runtime loading flags (-brtl),
5809 # -berok will link without error, but may produce a broken library.
5810 allow_undefined_flag='-berok'
5811 # Determine the default libpath from the value encoded in an empty executable.
5812 cat >conftest.$ac_ext <<_ACEOF
5813 #line 5813 "configure"
5814 #include "confdefs.h"
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:5825: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>&5
5828 echo "$as_me:5828: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:5831: \"$ac_try\"") >&5
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
5839 # Check for a 64-bit object if we didn't find anything.
5840 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; }
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5849 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5850 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"
5851 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"
5853 if test "$host_cpu" = ia64; then
5854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5855 allow_undefined_flag="-z nodefs"
5856 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"
5858 # Determine the default libpath from the value encoded in an empty executable.
5859 cat >conftest.$ac_ext <<_ACEOF
5860 #line 5860 "configure"
5861 #include "confdefs.h"
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:5872: \"$ac_link\"") >&5
5873 (eval $ac_link) 2>&5
5875 echo "$as_me:5875: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -s conftest$ac_exeext'
5878 { (eval echo "$as_me:5878: \"$ac_try\"") >&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
5886 # Check for a 64-bit object if we didn't find anything.
5887 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; }
5890 echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5897 # Warning - without using the other run time loading flags,
5898 # -berok will link without error, but may produce a broken library.
5899 no_undefined_flag=' ${wl}-bernotok'
5900 allow_undefined_flag=' ${wl}-berok'
5901 # -bexpall does not export symbols beginning with underscore (_)
5902 always_export_symbols=yes
5903 # Exported symbols can be pulled into shared objects from archives
5904 whole_archive_flag_spec=' '
5905 archive_cmds_need_lc=yes
5906 # This is similar to how AIX traditionally builds it's shared libraries.
5907 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'
5913 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)'
5914 hardcode_libdir_flag_spec='-L$libdir'
5915 hardcode_minus_L=yes
5916 # see comment about different semantics on the GNU ld section
5921 export_dynamic_flag_spec=-rdynamic
5924 cygwin* | mingw* | pw32*)
5925 # When not using gcc, we currently assume that we are using
5926 # Microsoft Visual C++.
5927 # hardcode_libdir_flag_spec is actually meaningless, as there is
5928 # no search path for DLLs.
5929 hardcode_libdir_flag_spec=' '
5930 allow_undefined_flag=unsupported
5931 # Tell ltmain to make .lib files, not .a files.
5933 # FIXME: Setting linknames here is a bad hack.
5934 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5935 # The linker will automatically build a .lib file if we build a DLL.
5936 old_archive_From_new_cmds='true'
5937 # FIXME: Should let the user specify the lib program.
5938 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5939 fix_srcfile_path='`cygpath -w "$srcfile"`'
5942 darwin* | rhapsody*)
5944 rhapsody* | darwin1.[012])
5945 allow_undefined_flag='-undefined suppress'
5948 allow_undefined_flag='-flat_namespace -undefined suppress'
5952 # FIXME: Relying on posixy $() will cause problems for
5953 # cross-compilation, but unfortunately the echo tests do not
5954 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5955 # `"' quotes if we put them in here... so don't!
5956 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5957 # We need to add '_' to the symbols in $export_symbols first
5958 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
5960 hardcode_shlibpath_var=no
5961 whole_archive_flag_spec='-all_load $convenience'
5965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5966 hardcode_libdir_flag_spec='-L$libdir'
5967 hardcode_shlibpath_var=no
5974 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5975 # support. Future versions do this automatically, but an explicit c++rt0.o
5976 # does not break anything, and helps significantly (at the cost of a little
5979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5980 hardcode_libdir_flag_spec='-R$libdir'
5982 hardcode_shlibpath_var=no
5985 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5989 hardcode_minus_L=yes
5990 hardcode_shlibpath_var=no
5993 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5995 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5996 hardcode_libdir_flag_spec='-R$libdir'
5998 hardcode_shlibpath_var=no
6001 hpux9* | hpux10* | hpux11*)
6002 if test "$GCC" = yes; then
6005 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'
6008 if test "$host_cpu" = ia64; then
6009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6018 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'
6021 if test "$host_cpu" = ia64; then
6022 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6029 if test "$host_cpu" = ia64; then
6030 hardcode_libdir_flag_spec='-L$libdir'
6032 hardcode_shlibpath_var=no
6034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6035 hardcode_libdir_separator=:
6038 # hardcode_minus_L: Not really in the search PATH,
6039 # but as the default location of the library.
6040 hardcode_minus_L=yes
6041 export_dynamic_flag_spec='${wl}-E'
6044 irix5* | irix6* | nonstopux*)
6045 if test "$GCC" = yes; then
6046 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'
6048 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'
6050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6051 hardcode_libdir_separator=:
6052 link_all_deplibs=yes
6056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6059 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6061 hardcode_libdir_flag_spec='-R$libdir'
6063 hardcode_shlibpath_var=no
6067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6070 hardcode_libdir_separator=:
6071 hardcode_shlibpath_var=no
6076 hardcode_shlibpath_var=no
6078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6081 export_dynamic_flag_spec='${wl}-E'
6084 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6086 hardcode_libdir_flag_spec='-R$libdir'
6089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6097 hardcode_libdir_flag_spec='-L$libdir'
6098 hardcode_minus_L=yes
6099 allow_undefined_flag=unsupported
6100 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'
6101 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6105 if test "$GCC" = yes; then
6106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6107 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'
6109 allow_undefined_flag=' -expect_unresolved \*'
6110 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'
6112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6113 hardcode_libdir_separator=:
6116 osf4* | osf5*) # as osf3* with the addition of -msym flag
6117 if test "$GCC" = yes; then
6118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6119 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'
6120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6122 allow_undefined_flag=' -expect_unresolved \*'
6123 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'
6124 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6125 $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'
6127 # Both c and cxx compiler support -rpath directly
6128 hardcode_libdir_flag_spec='-rpath $libdir'
6130 hardcode_libdir_separator=:
6134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6135 hardcode_shlibpath_var=no
6136 export_dynamic_flag_spec='${wl}-Bexport'
6137 runpath_var=LD_RUN_PATH
6138 hardcode_runpath_var=yes
6142 no_undefined_flag=' -z text'
6143 if test "$GCC" = yes; then
6144 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6145 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6146 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6148 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6149 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6150 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6152 hardcode_libdir_flag_spec='-R$libdir'
6153 hardcode_shlibpath_var=no
6155 solaris2.[0-5] | solaris2.[0-5].*) ;;
6156 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6157 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6159 link_all_deplibs=yes
6163 if test "x$host_vendor" = xsequent; then
6164 # Use $CC to link under sequent, because it throws in some extra .o
6165 # files that make .init and .fini sections work.
6166 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6168 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6170 hardcode_libdir_flag_spec='-L$libdir'
6172 hardcode_minus_L=yes
6173 hardcode_shlibpath_var=no
6177 if test "x$host_vendor" = xsni; then
6178 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6179 hardcode_direct=yes # is this really true???
6181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6182 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6184 runpath_var='LD_RUN_PATH'
6185 hardcode_shlibpath_var=no
6189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6190 hardcode_shlibpath_var=no
6191 export_dynamic_flag_spec='-Bexport'
6195 if test -d /usr/nec; then
6196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6197 hardcode_shlibpath_var=no
6198 runpath_var=LD_RUN_PATH
6199 hardcode_runpath_var=yes
6205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6208 hardcode_shlibpath_var=no
6209 hardcode_runpath_var=yes
6210 runpath_var=LD_RUN_PATH
6213 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6214 no_undefined_flag='${wl}-z ${wl}text'
6215 if test "$GCC" = yes; then
6216 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6218 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6220 runpath_var='LD_RUN_PATH'
6221 hardcode_shlibpath_var=no
6225 no_undefined_flag=' -z text'
6226 # $CC -shared without GNU ld will not create a library from C++
6227 # object files and a static libstdc++, better avoid it by now
6228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6231 hardcode_libdir_flag_spec=
6232 hardcode_shlibpath_var=no
6233 runpath_var='LD_RUN_PATH'
6237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 hardcode_libdir_flag_spec='-L$libdir'
6239 hardcode_shlibpath_var=no
6248 echo "$as_me:6248: result: $ld_shlibs" >&5
6249 echo "${ECHO_T}$ld_shlibs" >&6
6250 test "$ld_shlibs" = no && can_build_shared=no
6252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6253 if test "$GCC" = yes; then
6254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6258 # Do we need to explicitly link libc?
6260 archive_cmds_need_lc=yes
6261 if test "$enable_shared" = yes && test "$GCC" = yes; then
6262 case $archive_cmds in
6264 # FIXME: we may have to deal with multi-command sequences.
6267 # Test whether the compiler implicitly links with -lc since on some
6268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6269 # to ld, don't add -lc before -lgcc.
6270 echo "$as_me:6270: checking whether -lc should be explicitly linked in" >&5
6271 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6273 echo 'static int dummy;' > conftest.$ac_ext
6275 if { (eval echo "$as_me:6275: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:6278: \$? = $ac_status" >&5
6279 (exit $ac_status); } 2>conftest.err; then
6282 libobjs=conftest.$ac_objext
6284 wl=$lt_prog_compiler_wl
6290 lt_save_allow_undefined_flag=$allow_undefined_flag
6291 allow_undefined_flag=
6292 if { (eval echo "$as_me:6292: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6293 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6295 echo "$as_me:6295: \$? = $ac_status" >&5
6296 (exit $ac_status); }
6298 archive_cmds_need_lc=no
6300 archive_cmds_need_lc=yes
6302 allow_undefined_flag=$lt_save_allow_undefined_flag
6304 cat conftest.err 1>&5
6307 echo "$as_me:6307: result: $archive_cmds_need_lc" >&5
6308 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6313 echo "$as_me:6313: checking how to hardcode library paths into programs" >&5
6314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6316 if test -n "$hardcode_libdir_flag_spec" || \
6317 test -n "$runpath_var "; then
6319 # We can hardcode non-existant directories.
6320 if test "$hardcode_direct" != no &&
6321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6322 # have to relink, otherwise we might link with an installed library
6323 # when we should be linking with a yet-to-be-installed one
6324 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6325 test "$hardcode_minus_L" != no; then
6326 # Linking always hardcodes the temporary library directory.
6327 hardcode_action=relink
6329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6330 hardcode_action=immediate
6333 # We cannot hardcode anything, or else we can only hardcode existing
6335 hardcode_action=unsupported
6337 echo "$as_me:6337: result: $hardcode_action" >&5
6338 echo "${ECHO_T}$hardcode_action" >&6
6340 if test "$hardcode_action" = relink; then
6341 # Fast installation is not supported
6342 enable_fast_install=no
6343 elif test "$shlibpath_overrides_runpath" = yes ||
6344 test "$enable_shared" = no; then
6345 # Fast installation is not necessary
6346 enable_fast_install=needless
6351 echo "$as_me:6351: checking whether stripping libraries is possible" >&5
6352 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6353 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6355 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6356 echo "$as_me:6356: result: yes" >&5
6357 echo "${ECHO_T}yes" >&6
6359 echo "$as_me:6359: result: no" >&5
6360 echo "${ECHO_T}no" >&6
6363 echo "$as_me:6363: checking dynamic linker characteristics" >&5
6364 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6366 libname_spec='lib$name'
6373 shlibpath_overrides_runpath=unknown
6375 dynamic_linker="$host_os ld.so"
6376 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6378 need_lib_prefix=unknown
6379 hardcode_into_libs=no
6381 # when you set need_version to no, make sure it does not cause -set_version
6382 # flags to be left without arguments
6383 need_version=unknown
6388 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6389 shlibpath_var=LIBPATH
6391 # AIX 3 has no versioning support, so we append a major version to the name.
6392 soname_spec='${libname}${release}.so$major'
6397 if test "$host_cpu" = ia64; then
6398 # AIX 5 supports IA64
6399 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6400 shlibpath_var=LD_LIBRARY_PATH
6402 # With GCC up to 2.95.x, collect2 would create an import file
6403 # for dependence libraries. The import file would start with
6404 # the line `#! .'. This would cause the generated library to
6405 # depend on `.', always an invalid library. This was fixed in
6406 # development snapshots of GCC prior to 3.0.
6408 aix4 | aix4.[01] | aix4.[01].*)
6409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6419 # soname into executable. Probably we can add versioning support to
6420 # collect2, so additional links can be useful in future.
6421 if test "$aix_use_runtimelinking" = yes; then
6422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6423 # instead of lib<name>.a to let people know that these are not
6424 # typical AIX shared libraries.
6425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427 # We preserve .a as extension for shared libraries through AIX4.2
6428 # and later when we are not doing run time linking.
6429 library_names_spec='${libname}${release}.a $libname.a'
6430 soname_spec='${libname}${release}.so$major'
6432 shlibpath_var=LIBPATH
6437 library_names_spec='$libname.ixlibrary $libname.a'
6438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439 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'
6443 library_names_spec='${libname}.so'
6444 dynamic_linker="$host_os ld.so"
6445 shlibpath_var=LIBRARY_PATH
6451 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452 soname_spec='${libname}${release}.so$major'
6453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457 # the default ld.so.conf also contains /usr/contrib/lib and
6458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6459 # libtool to hard-code these into programs
6462 cygwin* | mingw* | pw32*)
6463 version_type=windows
6466 case $GCC,$host_os in
6468 library_names_spec='$libname.dll.a'
6469 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6471 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6472 dldir=$destdir/`dirname \$dlpath`~
6473 test -d \$dldir || mkdir -p \$dldir~
6474 $install_prog .libs/$dlname \$dldir/$dlname'
6475 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6476 dlpath=$dir/\$dldll~
6480 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
6482 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
6483 # It is most probably a Windows format PATH printed by
6484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6485 # path with ; separators, and with drive letters. We can handle the
6486 # drive letters (cygwin fileutils understands them), so leave them,
6487 # especially as we might pass files found there to a mingw objdump,
6488 # which wouldn't understand a cygwinified path. Ahh.
6489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6495 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6498 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6501 dynamic_linker='Win32 ld.exe'
6502 # FIXME: first we should search . and the directory the executable is in
6506 darwin* | rhapsody*)
6507 dynamic_linker="$host_os dyld"
6511 # FIXME: Relying on posixy $() will cause problems for
6512 # cross-compilation, but unfortunately the echo tests do not
6513 # yet detect zsh echo's removal of \ escapes.
6514 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)'
6515 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6516 shlibpath_overrides_runpath=yes
6517 shlibpath_var=DYLD_LIBRARY_PATH
6524 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6525 soname_spec='${libname}${release}.so$major'
6526 shlibpath_var=LD_LIBRARY_PATH
6534 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6535 version_type=freebsd-$objformat
6536 case $version_type in
6538 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6543 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6547 shlibpath_var=LD_LIBRARY_PATH
6550 shlibpath_overrides_runpath=yes
6552 freebsd3.01* | freebsdelf3.01*)
6553 shlibpath_overrides_runpath=yes
6554 hardcode_into_libs=yes
6557 shlibpath_overrides_runpath=no
6558 hardcode_into_libs=yes
6567 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6568 soname_spec='${libname}${release}.so$major'
6569 shlibpath_var=LD_LIBRARY_PATH
6570 hardcode_into_libs=yes
6573 hpux9* | hpux10* | hpux11*)
6574 # Give a soname corresponding to the major version so that dld.sl refuses to
6575 # link against other versions.
6579 if test "$host_cpu" = ia64; then
6580 hardcode_into_libs=yes
6581 dynamic_linker="$host_os dld.so"
6582 shlibpath_var=LD_LIBRARY_PATH
6583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6584 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6585 soname_spec='${libname}${release}.so$major'
6586 if test "X$HPUX_IA64_MODE" = X32; then
6587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6589 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6593 dynamic_linker="$host_os dld.sl"
6594 shlibpath_var=SHLIB_PATH
6595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6596 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6597 soname_spec='${libname}${release}.sl$major'
6599 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6600 postinstall_cmds='chmod 555 $lib'
6603 irix5* | irix6* | nonstopux*)
6605 nonstopux*) version_type=nonstopux ;;
6606 *) version_type=irix ;;
6610 soname_spec='${libname}${release}.so$major'
6611 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6613 irix5* | nonstopux*)
6617 case $LD in # libtool.m4 will add one of these switches to LD
6618 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6619 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6620 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6621 *) libsuff= shlibsuff= libmagic=never-match;;
6625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6626 shlibpath_overrides_runpath=no
6627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6631 # No shared lib support for Linux oldld, aout, or coff.
6632 linux*oldld* | linux*aout* | linux*coff*)
6636 # This must be Linux ELF.
6641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6642 soname_spec='${libname}${release}.so$major'
6643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6645 if test "x$LINUX_64_MODE" = x64; then
6646 # Some platforms are per default 64-bit, so there's no /lib64
6647 if test -d /lib64; then
6651 shlibpath_var=LD_LIBRARY_PATH
6652 shlibpath_overrides_runpath=no
6653 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6654 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6655 # This implies no fast_install, which is unacceptable.
6656 # Some rework will be needed to allow for fast_install
6657 # before this can be enabled.
6658 hardcode_into_libs=yes
6660 # We used to test for /lib/ld.so.1 and disable shared libraries on
6661 # powerpc, because MkLinux only supported shared libraries with the
6662 # GNU dynamic linker. Since this was broken with cross compilers,
6663 # most powerpc-linux boxes support dynamic linking these days and
6664 # people can always --disable-shared, the test was removed, and we
6665 # assume the GNU/Linux dynamic linker is in use.
6666 dynamic_linker='GNU/Linux ld.so'
6673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6674 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6676 dynamic_linker='NetBSD (a.out) ld.so'
6678 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6679 soname_spec='${libname}${release}.so$major'
6680 dynamic_linker='NetBSD ld.elf_so'
6682 shlibpath_var=LD_LIBRARY_PATH
6683 shlibpath_overrides_runpath=yes
6684 hardcode_into_libs=yes
6689 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690 shlibpath_var=LD_LIBRARY_PATH
6691 shlibpath_overrides_runpath=yes
6698 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6699 soname_spec='${libname}${release}.so$major'
6700 shlibpath_var=LD_LIBRARY_PATH
6701 shlibpath_overrides_runpath=yes
6708 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6710 shlibpath_var=LD_LIBRARY_PATH
6711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6713 openbsd2.[89] | openbsd2.[89].*)
6714 shlibpath_overrides_runpath=no
6717 shlibpath_overrides_runpath=yes
6721 shlibpath_overrides_runpath=yes
6726 libname_spec='$name'
6728 library_names_spec='$libname.dll $libname.a'
6729 dynamic_linker='OS/2 ld.exe'
6730 shlibpath_var=LIBPATH
6733 osf3* | osf4* | osf5*)
6737 soname_spec='${libname}${release}.so'
6738 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6739 shlibpath_var=LD_LIBRARY_PATH
6740 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6741 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6746 soname_spec='${libname}${release}.so$major'
6747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6748 shlibpath_var=LD_LIBRARY_PATH
6755 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6756 soname_spec='${libname}${release}.so$major'
6757 shlibpath_var=LD_LIBRARY_PATH
6758 shlibpath_overrides_runpath=yes
6759 hardcode_into_libs=yes
6760 # ldd complains unless libraries are executable
6761 postinstall_cmds='chmod +x $lib'
6766 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6768 shlibpath_var=LD_LIBRARY_PATH
6769 shlibpath_overrides_runpath=yes
6770 if test "$with_gnu_ld" = yes; then
6776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6778 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6779 soname_spec='${libname}${release}.so$major'
6780 shlibpath_var=LD_LIBRARY_PATH
6781 case $host_vendor in
6783 shlibpath_overrides_runpath=no
6788 shlibpath_overrides_runpath=no
6789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6795 if test -d /usr/nec ;then
6797 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6798 soname_spec='$libname.so.$major'
6799 shlibpath_var=LD_LIBRARY_PATH
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6806 soname_spec='${libname}${release}.so$major'
6807 shlibpath_var=LD_LIBRARY_PATH
6814 echo "$as_me:6814: result: $dynamic_linker" >&5
6815 echo "${ECHO_T}$dynamic_linker" >&6
6816 test "$dynamic_linker" = no && can_build_shared=no
6818 if test "x$enable_dlopen" != xyes; then
6819 enable_dlopen=unknown
6820 enable_dlopen_self=unknown
6821 enable_dlopen_self_static=unknown
6828 lt_cv_dlopen="load_add_on"
6830 lt_cv_dlopen_self=yes
6833 cygwin* | mingw* | pw32*)
6834 lt_cv_dlopen="LoadLibrary"
6839 echo "$as_me:6839: checking for shl_load" >&5
6840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6841 if test "${ac_cv_func_shl_load+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line 6845 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char shl_load (); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:6876: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6879 echo "$as_me:6879: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:6882: \"$ac_try\"") >&5
6885 echo "$as_me:6885: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_func_shl_load=yes
6889 echo "$as_me: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 ac_cv_func_shl_load=no
6893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895 echo "$as_me:6895: result: $ac_cv_func_shl_load" >&5
6896 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6897 if test $ac_cv_func_shl_load = yes; then
6898 lt_cv_dlopen="shl_load"
6900 echo "$as_me:6900: checking for shl_load in -ldld" >&5
6901 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6902 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 ac_check_lib_save_LIBS=$LIBS
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line 6908 "configure"
6909 #include "confdefs.h"
6911 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6926 rm -f conftest.$ac_objext conftest$ac_exeext
6927 if { (eval echo "$as_me:6927: \"$ac_link\"") >&5
6928 (eval $ac_link) 2>&5
6930 echo "$as_me:6930: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -s conftest$ac_exeext'
6933 { (eval echo "$as_me:6933: \"$ac_try\"") >&5
6936 echo "$as_me:6936: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_lib_dld_shl_load=yes
6940 echo "$as_me: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 ac_cv_lib_dld_shl_load=no
6944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6945 LIBS=$ac_check_lib_save_LIBS
6947 echo "$as_me:6947: result: $ac_cv_lib_dld_shl_load" >&5
6948 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6949 if test $ac_cv_lib_dld_shl_load = yes; then
6950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6952 echo "$as_me:6952: checking for dlopen" >&5
6953 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6954 if test "${ac_cv_func_dlopen+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 cat >conftest.$ac_ext <<_ACEOF
6958 #line 6958 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char dlopen (); below. */
6963 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6975 /* The GNU C library defines this for functions which it implements
6976 to always fail with ENOSYS. Some functions are actually named
6977 something starting with __ and the normal name is an alias. */
6978 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:6989: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6992 echo "$as_me:6992: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:6995: \"$ac_try\"") >&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_func_dlopen=yes
7002 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 ac_cv_func_dlopen=no
7006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008 echo "$as_me:7008: result: $ac_cv_func_dlopen" >&5
7009 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7010 if test $ac_cv_func_dlopen = yes; then
7011 lt_cv_dlopen="dlopen"
7013 echo "$as_me:7013: checking for dlopen in -ldl" >&5
7014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_check_lib_save_LIBS=$LIBS
7020 cat >conftest.$ac_ext <<_ACEOF
7021 #line 7021 "configure"
7022 #include "confdefs.h"
7024 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:7040: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:7046: \"$ac_try\"") >&5
7049 echo "$as_me:7049: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_cv_lib_dl_dlopen=yes
7053 echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 ac_cv_lib_dl_dlopen=no
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7060 echo "$as_me:7060: result: $ac_cv_lib_dl_dlopen" >&5
7061 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7062 if test $ac_cv_lib_dl_dlopen = yes; then
7063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7065 echo "$as_me:7065: checking for dlopen in -lsvld" >&5
7066 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7067 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 ac_check_lib_save_LIBS=$LIBS
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line 7073 "configure"
7074 #include "confdefs.h"
7076 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
7091 rm -f conftest.$ac_objext conftest$ac_exeext
7092 if { (eval echo "$as_me:7092: \"$ac_link\"") >&5
7093 (eval $ac_link) 2>&5
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -s conftest$ac_exeext'
7098 { (eval echo "$as_me:7098: \"$ac_try\"") >&5
7101 echo "$as_me:7101: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_lib_svld_dlopen=yes
7105 echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 ac_cv_lib_svld_dlopen=no
7109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7110 LIBS=$ac_check_lib_save_LIBS
7112 echo "$as_me:7112: result: $ac_cv_lib_svld_dlopen" >&5
7113 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7114 if test $ac_cv_lib_svld_dlopen = yes; then
7115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7117 echo "$as_me:7117: checking for dld_link in -ldld" >&5
7118 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_check_lib_save_LIBS=$LIBS
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line 7125 "configure"
7126 #include "confdefs.h"
7128 /* Override any gcc2 internal prototype to avoid an error. */
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:7144: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>&5
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -s conftest$ac_exeext'
7150 { (eval echo "$as_me:7150: \"$ac_try\"") >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 ac_cv_lib_dld_dld_link=yes
7157 echo "$as_me: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7159 ac_cv_lib_dld_dld_link=no
7161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7162 LIBS=$ac_check_lib_save_LIBS
7164 echo "$as_me:7164: result: $ac_cv_lib_dld_dld_link" >&5
7165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7166 if test $ac_cv_lib_dld_dld_link = yes; then
7167 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7183 if test "x$lt_cv_dlopen" != xno; then
7189 case $lt_cv_dlopen in
7191 save_CPPFLAGS="$CPPFLAGS"
7192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7194 save_LDFLAGS="$LDFLAGS"
7195 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7198 LIBS="$lt_cv_dlopen_libs $LIBS"
7200 echo "$as_me:7200: checking whether a program can dlopen itself" >&5
7201 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7202 if test "${lt_cv_dlopen_self+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 if test "$cross_compiling" = yes; then :
7206 lt_cv_dlopen_self=cross
7208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7209 lt_status=$lt_dlunknown
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7211 "configure"
7212 #include "confdefs.h"
7221 # define LT_DLGLOBAL RTLD_GLOBAL
7224 # define LT_DLGLOBAL DL_GLOBAL
7226 # define LT_DLGLOBAL 0
7230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7231 find out it does not work in some platform. */
7232 #ifndef LT_DLLAZY_OR_NOW
7234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7237 # define LT_DLLAZY_OR_NOW DL_LAZY
7240 # define LT_DLLAZY_OR_NOW RTLD_NOW
7243 # define LT_DLLAZY_OR_NOW DL_NOW
7245 # define LT_DLLAZY_OR_NOW 0
7253 extern "C" void exit (int);
7256 void fnord() { int i=42;}
7259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7260 int status = $lt_dlunknown;
7264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7266 /* dlclose (self); */
7272 if { (eval echo "$as_me:7272: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7275 echo "$as_me:7275: \$? = $ac_status" >&5
7276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7277 (./conftest; exit; ) 2>/dev/null
7280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7282 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7285 # compilation failed
7286 lt_cv_dlopen_self=no
7292 echo "$as_me:7292: result: $lt_cv_dlopen_self" >&5
7293 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7295 if test "x$lt_cv_dlopen_self" = xyes; then
7296 LDFLAGS="$LDFLAGS $link_static_flag"
7297 echo "$as_me:7297: checking whether a statically linked program can dlopen itself" >&5
7298 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7299 if test "${lt_cv_dlopen_self_static+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 if test "$cross_compiling" = yes; then :
7303 lt_cv_dlopen_self_static=cross
7305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7306 lt_status=$lt_dlunknown
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7308 "configure"
7309 #include "confdefs.h"
7318 # define LT_DLGLOBAL RTLD_GLOBAL
7321 # define LT_DLGLOBAL DL_GLOBAL
7323 # define LT_DLGLOBAL 0
7327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7328 find out it does not work in some platform. */
7329 #ifndef LT_DLLAZY_OR_NOW
7331 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7334 # define LT_DLLAZY_OR_NOW DL_LAZY
7337 # define LT_DLLAZY_OR_NOW RTLD_NOW
7340 # define LT_DLLAZY_OR_NOW DL_NOW
7342 # define LT_DLLAZY_OR_NOW 0
7350 extern "C" void exit (int);
7353 void fnord() { int i=42;}
7356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7357 int status = $lt_dlunknown;
7361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7363 /* dlclose (self); */
7369 if { (eval echo "$as_me:7369: \"$ac_link\"") >&5
7370 (eval $ac_link) 2>&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7374 (./conftest; exit; ) 2>/dev/null
7377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7379 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7382 # compilation failed
7383 lt_cv_dlopen_self_static=no
7389 echo "$as_me:7389: result: $lt_cv_dlopen_self_static" >&5
7390 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7393 CPPFLAGS="$save_CPPFLAGS"
7394 LDFLAGS="$save_LDFLAGS"
7399 case $lt_cv_dlopen_self in
7400 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7401 *) enable_dlopen_self=unknown ;;
7404 case $lt_cv_dlopen_self_static in
7405 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7406 *) enable_dlopen_self_static=unknown ;;
7410 # Report which librarie types wil actually be built
7411 echo "$as_me:7411: checking if libtool supports shared libraries" >&5
7412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7413 echo "$as_me:7413: result: $can_build_shared" >&5
7414 echo "${ECHO_T}$can_build_shared" >&6
7416 echo "$as_me:7416: checking whether to build shared libraries" >&5
7417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7418 test "$can_build_shared" = "no" && enable_shared=no
7420 # On AIX, shared libraries and static libraries use the same namespace, and
7421 # are all built from PIC.
7424 test "$enable_shared" = yes && enable_static=no
7425 if test -n "$RANLIB"; then
7426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7427 postinstall_cmds='$RANLIB $lib'
7432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7433 test "$enable_shared" = yes && enable_static=no
7437 echo "$as_me:7437: result: $enable_shared" >&5
7438 echo "${ECHO_T}$enable_shared" >&6
7440 echo "$as_me:7440: checking whether to build static libraries" >&5
7441 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7442 # Make sure either enable_shared or enable_static is yes.
7443 test "$enable_shared" = yes || enable_static=yes
7444 echo "$as_me:7444: result: $enable_static" >&5
7445 echo "${ECHO_T}$enable_static" >&6
7447 # The else clause should only fire when bootstrapping the
7448 # libtool distribution, otherwise you forgot to ship ltmain.sh
7449 # with your package, and you will get complaints that there are
7450 # no rules to generate ltmain.sh.
7451 if test -f "$ltmain"; then
7452 # Now quote all the things that may contain metacharacters while being
7453 # careful not to overquote the AC_SUBSTed values. We take copies of the
7454 # variables and quote the copies for generation of the libtool script.
7455 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
7456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7458 deplibs_check_method reload_flag reload_cmds need_locks \
7459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7460 lt_cv_sys_global_symbol_to_c_name_address \
7461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7462 old_postinstall_cmds old_postuninstall_cmds \
7466 lt_prog_compiler_wl \
7467 lt_prog_compiler_pic \
7468 lt_prog_compiler_static \
7469 lt_prog_compiler_no_builtin_flag \
7470 export_dynamic_flag_spec \
7471 thread_safe_flag_spec \
7472 whole_archive_flag_spec \
7474 old_archive_from_new_cmds \
7479 compiler_lib_search_path \
7481 archive_expsym_cmds \
7483 postuninstall_cmds \
7484 old_archive_from_expsyms_cmds \
7485 allow_undefined_flag \
7487 export_symbols_cmds \
7488 hardcode_libdir_flag_spec \
7489 hardcode_libdir_separator \
7490 lt_cv_prog_compiler_c_o \
7495 old_archive_cmds | \
7496 old_archive_from_new_cmds | \
7498 archive_expsym_cmds | \
7499 old_archive_from_expsyms_cmds | \
7500 export_symbols_cmds | \
7501 extract_expsyms_cmds | reload_cmds | finish_cmds | \
7502 postinstall_cmds | postuninstall_cmds | \
7503 old_postinstall_cmds | old_postuninstall_cmds | \
7504 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7505 # Double-quote double-evaled strings.
7506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7515 *'\$0 --fallback-echo"')
7516 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
7521 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7523 { echo "$as_me:7523: creating $ofile" >&5
7524 echo "$as_me: creating $ofile" >&6;}
7526 cat <<__EOF__ >> "$cfgfile"
7529 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7530 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7531 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7533 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
7534 # Free Software Foundation, Inc.
7536 # This file is part of GNU Libtool:
7537 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7539 # This program is free software; you can redistribute it and/or modify
7540 # it under the terms of the GNU General Public License as published by
7541 # the Free Software Foundation; either version 2 of the License, or
7542 # (at your option) any later version.
7544 # This program is distributed in the hope that it will be useful, but
7545 # WITHOUT ANY WARRANTY; without even the implied warranty of
7546 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7547 # General Public License for more details.
7549 # You should have received a copy of the GNU General Public License
7550 # along with this program; if not, write to the Free Software
7551 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7553 # As a special exception to the GNU General Public License, if you
7554 # distribute this file as part of a program that contains a
7555 # configuration script generated by Autoconf, you may include it under
7556 # the same distribution terms that you use for the rest of that program.
7558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7559 Xsed="sed -e s/^X//"
7561 # The HP-UX ksh and POSIX shell print the target directory to stdout
7563 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7565 # The names of the tagged configurations supported by this script.
7568 # ### BEGIN LIBTOOL CONFIG
7570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7572 # Shell to use when invoking shell scripts.
7575 # Whether or not to build shared libraries.
7576 build_libtool_libs=$enable_shared
7578 # Whether or not to build static libraries.
7579 build_old_libs=$enable_static
7581 # Whether or not to add -lc for building shared libraries.
7582 build_libtool_need_lc=$archive_cmds_need_lc
7584 # Whether or not to optimize for fast installation.
7585 fast_install=$enable_fast_install
7588 host_alias=$host_alias
7591 # An echo program that does not interpret backslashes.
7596 AR_FLAGS=$lt_AR_FLAGS
7601 # A language-specific compiler.
7604 # Is the compiler the GNU C compiler?
7607 # The linker used to build libraries.
7610 # Whether we need hard or soft links.
7613 # A BSD-compatible nm program.
7616 # A sed program that does not truncate output.
7619 # A symbol stripping program
7622 # Used to examine libraries when file_magic_cmd begins "file"
7623 MAGIC_CMD=$MAGIC_CMD
7625 # Used on cygwin: DLL creation program.
7628 # Used on cygwin: object dumper.
7631 # Used on cygwin: assembler.
7634 # The name of the directory that contains temporary libtool files.
7637 # How to create reloadable object files.
7638 reload_flag=$lt_reload_flag
7639 reload_cmds=$lt_reload_cmds
7641 # How to pass a linker flag through the compiler.
7642 wl=$lt_lt_prog_compiler_wl
7644 # Object file suffix (normally "o").
7647 # Old archive suffix (normally "a").
7650 # Executable file suffix (normally "").
7653 # Additional compiler flags for building library objects.
7654 pic_flag=$lt_lt_prog_compiler_pic
7657 # What is the maximum length of a command?
7658 max_cmd_len=$lt_cv_sys_max_cmd_len
7660 # Does compiler simultaneously support -c and -o options?
7661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
7663 # Must we lock files when doing compilation ?
7664 need_locks=$lt_need_locks
7666 # Do we need the lib prefix for modules?
7667 need_lib_prefix=$need_lib_prefix
7669 # Do we need a version for libraries?
7670 need_version=$need_version
7672 # Whether dlopen is supported.
7673 dlopen_support=$enable_dlopen
7675 # Whether dlopen of programs is supported.
7676 dlopen_self=$enable_dlopen_self
7678 # Whether dlopen of statically linked programs is supported.
7679 dlopen_self_static=$enable_dlopen_self_static
7681 # Compiler flag to prevent dynamic linking.
7682 link_static_flag=$lt_lt_prog_compiler_static
7684 # Compiler flag to turn off builtin functions.
7685 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7687 # Compiler flag to allow reflexive dlopens.
7688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7690 # Compiler flag to generate shared objects directly from archives.
7691 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7693 # Compiler flag to generate thread-safe objects.
7694 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7696 # Library versioning type.
7697 version_type=$version_type
7699 # Format of library name prefix.
7700 libname_spec=$lt_libname_spec
7702 # List of archive names. First name is the real one, the rest are links.
7703 # The last name is the one that the linker finds with -lNAME.
7704 library_names_spec=$lt_library_names_spec
7706 # The coded name of the library, if different from the real name.
7707 soname_spec=$lt_soname_spec
7709 # Commands used to build and install an old-style archive.
7711 old_archive_cmds=$lt_old_archive_cmds
7712 old_postinstall_cmds=$lt_old_postinstall_cmds
7713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7715 # Create an old-style archive from a shared archive.
7716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7718 # Create a temporary old-style archive to link instead of a shared archive.
7719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7721 # Commands used to build and install a shared archive.
7722 archive_cmds=$lt_archive_cmds
7723 archive_expsym_cmds=$lt_archive_expsym_cmds
7724 postinstall_cmds=$lt_postinstall_cmds
7725 postuninstall_cmds=$lt_postuninstall_cmds
7727 # Commands to strip libraries.
7728 old_striplib=$lt_old_striplib
7729 striplib=$lt_striplib
7731 # Dependencies to place before the objects being linked to create a
7733 predep_objects=$lt_predep_objects
7735 # Dependencies to place after the objects being linked to create a
7737 postdep_objects=$lt_postdep_objects
7739 # Dependencies to place before the objects being linked to create a
7743 # Dependencies to place after the objects being linked to create a
7745 postdeps=$lt_postdeps
7747 # The library search path used internally by the compiler when linking
7749 compiler_lib_search_path=$lt_compiler_lib_search_path
7751 # Method to check whether dependent libraries are shared objects.
7752 deplibs_check_method=$lt_deplibs_check_method
7754 # Command to use when deplibs_check_method == file_magic.
7755 file_magic_cmd=$lt_file_magic_cmd
7757 # Flag that allows shared libraries with undefined symbols to be built.
7758 allow_undefined_flag=$lt_allow_undefined_flag
7760 # Flag that forces no undefined symbols.
7761 no_undefined_flag=$lt_no_undefined_flag
7763 # Commands used to finish a libtool library installation in a directory.
7764 finish_cmds=$lt_finish_cmds
7766 # Same as above, but a single script fragment to be evaled but not shown.
7767 finish_eval=$lt_finish_eval
7769 # Take the output of nm and produce a listing of raw symbols and C names.
7770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7772 # Transform the output of nm in a proper C declaration
7773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7775 # Transform the output of nm in a C name address pair
7776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7778 # This is the shared library runtime path variable.
7779 runpath_var=$runpath_var
7781 # This is the shared library path variable.
7782 shlibpath_var=$shlibpath_var
7784 # Is shlibpath searched before the hard-coded library search path?
7785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7787 # How to hardcode a shared library path into an executable.
7788 hardcode_action=$hardcode_action
7790 # Whether we should hardcode library paths into libraries.
7791 hardcode_into_libs=$hardcode_into_libs
7793 # Flag to hardcode \$libdir into a binary during linking.
7794 # This must work even if \$libdir does not exist.
7795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7797 # Whether we need a single -rpath flag with a separated argument.
7798 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7800 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7802 hardcode_direct=$hardcode_direct
7804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7806 hardcode_minus_L=$hardcode_minus_L
7808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7809 # the resulting binary.
7810 hardcode_shlibpath_var=$hardcode_shlibpath_var
7812 # Variables whose values should be saved in libtool wrapper scripts and
7813 # restored at relink time.
7814 variables_saved_for_relink="$variables_saved_for_relink"
7816 # Whether libtool must link a program against all its dependency libraries.
7817 link_all_deplibs=$link_all_deplibs
7819 # Compile-time system search path for libraries
7820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7822 # Run-time system search path for libraries
7823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7825 # Fix the shell variable \$srcfile for the compiler.
7826 fix_srcfile_path="$fix_srcfile_path"
7828 # Set to yes if exported symbols are required.
7829 always_export_symbols=$always_export_symbols
7831 # The commands to list exported symbols.
7832 export_symbols_cmds=$lt_export_symbols_cmds
7834 # The commands to extract the exported symbol list from a shared archive.
7835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7837 # Symbols that should not be listed in the preloaded symbols.
7838 exclude_expsyms=$lt_exclude_expsyms
7840 # Symbols that must always be exported.
7841 include_expsyms=$lt_include_expsyms
7843 # ### END LIBTOOL CONFIG
7849 cat <<\EOF >> "$cfgfile"
7851 # AIX sometimes has problems with the GCC collect2 program. For some
7852 # reason, if we set the COLLECT_NAMES environment variable, the problems
7853 # vanish in a puff of smoke.
7854 if test "X${COLLECT_NAMES+set}" != Xset; then
7856 export COLLECT_NAMES
7861 cygwin* | mingw* | pw32* | os2*)
7862 cat <<'EOF' >> "$cfgfile"
7863 # This is a source program that is used to create dlls on Windows
7864 # Don't remove nor modify the starting and closing comments
7866 # /* ltdll.c starts here */
7867 # #define WIN32_LEAN_AND_MEAN
7868 # #include <windows.h>
7869 # #undef WIN32_LEAN_AND_MEAN
7870 # #include <stdio.h>
7872 # #ifndef __CYGWIN__
7873 # # ifdef __CYGWIN32__
7874 # # define __CYGWIN__ __CYGWIN32__
7878 # #ifdef __cplusplus
7881 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7882 # #ifdef __cplusplus
7887 # #include <cygwin/cygwin_dll.h>
7888 # DECLARE_CYGWIN_DLL( DllMain );
7890 # HINSTANCE __hDllInstance_base;
7893 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7895 # __hDllInstance_base = hInst;
7898 # /* ltdll.c ends here */
7900 # This is a source program that is used to create import libraries
7901 # on Windows for dlls which lack them. Don't remove nor modify the
7902 # starting and closing comments
7904 # /* impgen.c starts here */
7905 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
7907 # This file is part of GNU libtool.
7909 # This program is free software; you can redistribute it and/or modify
7910 # it under the terms of the GNU General Public License as published by
7911 # the Free Software Foundation; either version 2 of the License, or
7912 # (at your option) any later version.
7914 # This program is distributed in the hope that it will be useful,
7915 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7916 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7917 # GNU General Public License for more details.
7919 # You should have received a copy of the GNU General Public License
7920 # along with this program; if not, write to the Free Software
7921 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7924 # #include <stdio.h> /* for printf() */
7925 # #include <unistd.h> /* for open(), lseek(), read() */
7926 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7927 # #include <string.h> /* for strdup() */
7929 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7931 # #define O_BINARY 0
7934 # static unsigned int
7935 # pe_get16 (fd, offset)
7939 # unsigned char b[2];
7940 # lseek (fd, offset, SEEK_SET);
7942 # return b[0] + (b[1]<<8);
7945 # static unsigned int
7946 # pe_get32 (fd, offset)
7950 # unsigned char b[4];
7951 # lseek (fd, offset, SEEK_SET);
7953 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7956 # static unsigned int
7960 # unsigned char *b = ptr;
7961 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7970 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7971 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7972 # unsigned long name_rvas, nexp;
7973 # unsigned char *expdata, *erva;
7974 # char *filename, *dll_name;
7976 # filename = argv[1];
7978 # dll = open(filename, O_RDONLY|O_BINARY);
7982 # dll_name = filename;
7984 # for (i=0; filename[i]; i++)
7985 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7986 # dll_name = filename + i +1;
7988 # pe_header_offset = pe_get32 (dll, 0x3c);
7989 # opthdr_ofs = pe_header_offset + 4 + 20;
7990 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7992 # if (num_entries < 1) /* no exports */
7995 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7996 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7997 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7998 # secptr = (pe_header_offset + 4 + 20 +
7999 # pe_get16 (dll, pe_header_offset + 4 + 16));
8002 # for (i = 0; i < nsections; i++)
8005 # unsigned long secptr1 = secptr + 40 * i;
8006 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8007 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8008 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8009 # lseek(dll, secptr1, SEEK_SET);
8010 # read(dll, sname, 8);
8011 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8013 # expptr = fptr + (export_rva - vaddr);
8014 # if (export_rva + export_size > vaddr + vsize)
8015 # export_size = vsize - (export_rva - vaddr);
8020 # expdata = (unsigned char*)malloc(export_size);
8021 # lseek (dll, expptr, SEEK_SET);
8022 # read (dll, expdata, export_size);
8023 # erva = expdata - export_rva;
8025 # nexp = pe_as32 (expdata+24);
8026 # name_rvas = pe_as32 (expdata+32);
8028 # printf ("EXPORTS\n");
8029 # for (i = 0; i<nexp; i++)
8031 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8032 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8037 # /* impgen.c ends here */
8043 # We use sed instead of cat because bash on DJGPP gets confused if
8044 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8045 # text mode, it properly converts lines to CR/LF. This bash problem
8046 # is reportedly fixed, but why not run on old versions too?
8047 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8049 mv -f "$cfgfile" "$ofile" || \
8050 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8054 # If there is no Makefile yet, we rely on a make rule to execute
8055 # `config.status --recheck' to rerun these tests and create the
8056 # libtool script then.
8057 test -f Makefile && make "$ltmain"
8061 ac_cpp='$CPP $CPPFLAGS'
8062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068 # Check whether --with-tags or --without-tags was given.
8069 if test "${with_tags+set}" = set; then
8070 withval="$with_tags"
8075 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
8079 if test -f "$ltmain" && test -n "$tagnames"; then
8080 if test ! -f "${ofile}"; then
8081 { echo "$as_me:8081: WARNING: output file \`$ofile' does not exist" >&5
8082 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8085 if test -z "$LTCC"; then
8086 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8087 if test -z "$LTCC"; then
8088 { echo "$as_me:8088: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8089 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8091 { echo "$as_me:8091: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8092 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8096 # Extract list of available tagged configurations in $ofile.
8097 # Note that this assumes the entire list is on one line.
8098 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101 for tagname in $tagnames; do
8103 # Check whether tagname contains only valid characters
8104 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8106 *) { { echo "$as_me:8106: error: invalid tag name: $tagname" >&5
8107 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8108 { (exit 1); exit 1; }; }
8112 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8114 { { echo "$as_me:8114: error: tag name \"$tagname\" already exists" >&5
8115 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8116 { (exit 1); exit 1; }; }
8119 # Update the list of available tags.
8120 if test -n "$tagname"; then
8121 echo appending configuration tag \"$tagname\" to $ofile
8126 ac_cpp='$CXXCPP $CPPFLAGS'
8127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8131 archive_cmds_need_lc_CXX=no
8132 allow_undefined_flag_CXX=
8133 always_export_symbols_CXX=no
8134 archive_expsym_cmds_CXX=
8135 export_dynamic_flag_spec_CXX=
8136 hardcode_direct_CXX=no
8137 hardcode_libdir_flag_spec_CXX=
8138 hardcode_libdir_separator_CXX=
8139 hardcode_minus_L_CXX=no
8140 link_all_deplibs_CXX=unknown
8141 old_archive_cmds_CXX=$old_archive_cmds
8142 no_undefined_flag_CXX=
8143 whole_archive_flag_spec_CXX=
8145 # Dependencies to place before and after the object being linked:
8147 postdep_objects_CXX=
8150 compiler_lib_search_path_CXX=
8152 # Source file extension for C test sources.
8155 # Object file extension for compiled C test sources.
8159 # Code to be used in simple compile tests
8160 lt_simple_compile_test_code="int some_variable = 0;"
8162 # Code to be used in simple link tests
8163 lt_simple_link_test_code='int main(int char *) { return(0); }'
8165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8167 # If no C compiler was specified, use CC.
8170 # Allow CC to be a program name with arguments.
8174 # Allow CC to be a program name with arguments.
8180 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8182 # We don't want -fno-exception wen compiling C++ code, so set the
8183 # no_builtin_flag separately
8184 if test "$GXX" = yes; then
8185 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8187 lt_prog_compiler_no_builtin_flag_CXX=
8190 if test "$GXX" = yes; then
8191 # Set up default GNU C++ configuration
8193 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8194 # archiving commands below assume that GNU ld is being used.
8195 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8196 egrep 'GNU ld' > /dev/null; then
8199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 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'
8202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8205 # If archive_cmds runs LD, not CC, wlarc should be empty
8206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8207 # investigate it a little bit more. (MM)
8210 # ancient GNU ld didn't support --whole-archive et. al.
8211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8212 egrep 'no-whole-archive' > /dev/null; then
8213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8215 whole_archive_flag_spec_CXX=
8221 # A generic and very simple default shared library creation
8222 # command for GNU C++ for the case where it uses the native
8223 # linker, instead of GNU ld. If possible, this setting should
8224 # overridden to take advantage of the native linker features on
8225 # the platform it is being used on.
8226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8229 # Commands to make compiler produce verbose output that lists
8230 # what "hidden" libraries, object files and flags are used when
8231 # linking a shared library.
8232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8240 # PORTME: fill in a description of your system's C++ link characteristics
8241 echo "$as_me:8241: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8246 # FIXME: insert proper C++ library support
8250 if test "$host_cpu" = ia64; then
8251 # On IA64, the linker does run time linking by default, so we don't
8252 # have to do anything special.
8253 aix_use_runtimelinking=no
8254 exp_sym_flag='-Bexport'
8257 # KDE requires run time linking. Make it the default.
8258 aix_use_runtimelinking=yes
8259 exp_sym_flag='-bexport'
8260 no_entry_flag='-bnoentry'
8263 # When large executables or shared objects are built, AIX ld can
8264 # have problems creating the table of contents. If linking a library
8265 # or program results in "error TOC overflow" add -mminimal-toc to
8266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8270 hardcode_direct_CXX=yes
8271 hardcode_libdir_separator_CXX=':'
8272 link_all_deplibs_CXX=yes
8274 if test "$GXX" = yes; then
8275 case $host_os in aix4.012|aix4.012.*)
8276 # We only want to do this on AIX 4.2 and lower, the check
8277 # below for broken collect2 doesn't work under 4.3+
8278 collect2name=`${CC} -print-prog-name=collect2`
8279 if test -f "$collect2name" && \
8280 strings "$collect2name" | grep resolve_lib_name >/dev/null
8282 # We have reworked collect2
8283 hardcode_direct_CXX=yes
8285 # We have old collect2
8286 hardcode_direct_CXX=unsupported
8287 # It fails to find uninstalled libraries when the uninstalled
8288 # path is not listed in the libpath. Setting hardcode_minus_L
8289 # to unsupported forces relinking
8290 hardcode_minus_L_CXX=yes
8291 hardcode_libdir_flag_spec_CXX='-L$libdir'
8292 hardcode_libdir_separator_CXX=
8295 shared_flag='-shared'
8298 if test "$host_cpu" = ia64; then
8299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300 # chokes on -Wl,-G. The following line is correct:
8303 if test "$aix_use_runtimelinking" = yes; then
8304 shared_flag='-qmkshrobj ${wl}-G'
8306 shared_flag='-qmkshrobj'
8311 # Let the compiler handle the export list.
8312 always_export_symbols_CXX=no
8313 if test "$aix_use_runtimelinking" = yes; then
8314 # Warning - without using the other runtime loading flags (-brtl),
8315 # -berok will link without error, but may produce a broken library.
8316 allow_undefined_flag_CXX='-berok'
8317 # Determine the default libpath from the value encoded in an empty executable.
8318 cat >conftest.$ac_ext <<_ACEOF
8319 #line 8319 "configure"
8320 #include "confdefs.h"
8330 rm -f conftest.$ac_objext conftest$ac_exeext
8331 if { (eval echo "$as_me:8331: \"$ac_link\"") >&5
8332 (eval $ac_link) 2>&5
8334 echo "$as_me:8334: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:8337: \"$ac_try\"") >&5
8340 echo "$as_me:8340: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8345 # Check for a 64-bit object if we didn't find anything.
8346 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; }
8349 echo "$as_me: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8355 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8357 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"
8358 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"
8360 if test "$host_cpu" = ia64; then
8361 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8362 allow_undefined_flag_CXX="-z nodefs"
8363 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"
8365 # Determine the default libpath from the value encoded in an empty executable.
8366 cat >conftest.$ac_ext <<_ACEOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:8379: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:8385: \"$ac_try\"") >&5
8388 echo "$as_me:8388: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8393 # Check for a 64-bit object if we didn't find anything.
8394 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; }
8397 echo "$as_me: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8403 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 # Warning - without using the other run time loading flags,
8405 # -berok will link without error, but may produce a broken library.
8406 no_undefined_flag_CXX=' ${wl}-bernotok'
8407 allow_undefined_flag_CXX=' ${wl}-berok'
8408 # -bexpall does not export symbols beginning with underscore (_)
8409 always_export_symbols_CXX=yes
8410 # Exported symbols can be pulled into shared objects from archives
8411 whole_archive_flag_spec_CXX=' '
8412 archive_cmds_need_lc_CXX=yes
8413 # This is similar to how AIX traditionally builds it's shared libraries.
8414 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'
8419 case $cc_basename in
8421 # FIXME: insert proper C++ library support
8427 case $cc_basename in
8429 # FIXME: insert proper C++ library support
8433 # Green Hills C++ Compiler
8434 # FIXME: insert proper C++ library support
8438 # FIXME: insert proper C++ library support
8444 # C++ shared libraries reported to be fairly broken before switch to ELF
8448 archive_cmds_need_lc_CXX=no
8451 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8458 if test $with_gnu_ld = no; then
8459 if test "$host_cpu" = ia64; then
8460 hardcode_libdir_flag_spec_CXX='-L$libdir'
8462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
8463 hardcode_libdir_separator_CXX=:
8464 export_dynamic_flag_spec_CXX='${wl}-E'
8467 if test "$host_cpu" = ia64; then
8468 hardcode_direct_CXX=no
8469 hardcode_shlibpath_var_CXX=no
8471 hardcode_direct_CXX=yes
8473 hardcode_minus_L_CXX=yes # Not in the search PATH,
8474 # but as the default
8475 # location of the library.
8477 case $cc_basename in
8479 # FIXME: insert proper C++ library support
8485 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'
8488 if test "$host_cpu" = ia64; then
8489 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8491 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8495 # Commands to make compiler produce verbose output that lists
8496 # what "hidden" libraries, object files and flags are used when
8497 # linking a shared library.
8499 # There doesn't appear to be a way to prevent this compiler from
8500 # explicitly linking system object files so we need to strip them
8501 # from the output so that they don't get included in the library
8503 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'
8506 if test "$GXX" = yes; then
8507 if test $with_gnu_ld = no; then
8510 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'
8513 if test "$host_cpu" = ia64; then
8514 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8516 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'
8522 # FIXME: insert proper C++ library support
8529 case $cc_basename in
8532 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'
8534 # Archives containing C++ object files must be created using
8535 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
8536 # necessary to make sure instantiated templates are included
8538 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
8541 if test "$GXX" = yes; then
8542 if test "$with_gnu_ld" = no; then
8543 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'
8545 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'
8548 link_all_deplibs_CXX=yes
8551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
8552 hardcode_libdir_separator_CXX=:
8555 case $cc_basename in
8557 # Kuck and Associates, Inc. (KAI) C++ Compiler
8559 # KCC will only create a shared library if the output file
8560 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8561 # to its proper name (with version) after linking.
8562 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'
8563 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'
8565 # Commands to make compiler produce verbose output that lists
8566 # what "hidden" libraries, object files and flags are used when
8567 # linking a shared library.
8569 # There doesn't appear to be a way to prevent this compiler from
8570 # explicitly linking system object files so we need to strip them
8571 # from the output so that they don't get included in the library
8573 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'
8575 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
8576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8578 # Archives containing C++ object files must be created using
8579 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8580 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
8584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585 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'
8587 runpath_var=LD_RUN_PATH
8588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
8589 hardcode_libdir_separator_CXX=:
8591 # Commands to make compiler produce verbose output that lists
8592 # what "hidden" libraries, object files and flags are used when
8593 # linking a shared library.
8595 # There doesn't appear to be a way to prevent this compiler from
8596 # explicitly linking system object files so we need to strip them
8597 # from the output so that they don't get included in the library
8599 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'
8604 # FIXME: insert proper C++ library support
8608 # FIXME: insert proper C++ library support
8612 case $cc_basename in
8614 # FIXME: insert proper C++ library support
8618 # FIXME: insert proper C++ library support
8624 # NetBSD uses g++ - do we need to do anything?
8627 case $cc_basename in
8629 # Kuck and Associates, Inc. (KAI) C++ Compiler
8631 # KCC will only create a shared library if the output file
8632 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8633 # to its proper name (with version) after linking.
8634 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'
8636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
8637 hardcode_libdir_separator_CXX=:
8639 # Archives containing C++ object files must be created using
8640 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8641 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
8645 # Rational C++ 2.4.1
8646 # FIXME: insert proper C++ library support
8650 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
8651 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'
8653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
8654 hardcode_libdir_separator_CXX=:
8656 # Commands to make compiler produce verbose output that lists
8657 # what "hidden" libraries, object files and flags are used when
8658 # linking a shared library.
8660 # There doesn't appear to be a way to prevent this compiler from
8661 # explicitly linking system object files so we need to strip them
8662 # from the output so that they don't get included in the library
8664 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'
8667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
8669 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'
8671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
8672 hardcode_libdir_separator_CXX=:
8674 # Commands to make compiler produce verbose output that lists
8675 # what "hidden" libraries, object files and flags are used when
8676 # linking a shared library.
8677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8680 # FIXME: insert proper C++ library support
8687 case $cc_basename in
8689 # Kuck and Associates, Inc. (KAI) C++ Compiler
8691 # KCC will only create a shared library if the output file
8692 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8693 # to its proper name (with version) after linking.
8694 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'
8696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
8697 hardcode_libdir_separator_CXX=:
8699 # Archives containing C++ object files must be created using
8700 # the KAI C++ compiler.
8701 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
8704 # Rational C++ 2.4.1
8705 # FIXME: insert proper C++ library support
8709 allow_undefined_flag_CXX=' -expect_unresolved \*'
8710 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'
8711 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
8712 echo "-hidden">> $lib.exp~
8713 $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~
8716 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
8717 hardcode_libdir_separator_CXX=:
8719 # Commands to make compiler produce verbose output that lists
8720 # what "hidden" libraries, object files and flags are used when
8721 # linking a shared library.
8723 # There doesn't appear to be a way to prevent this compiler from
8724 # explicitly linking system object files so we need to strip them
8725 # from the output so that they don't get included in the library
8727 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'
8730 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8731 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
8732 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'
8734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
8735 hardcode_libdir_separator_CXX=:
8737 # Commands to make compiler produce verbose output that lists
8738 # what "hidden" libraries, object files and flags are used when
8739 # linking a shared library.
8740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
8743 # FIXME: insert proper C++ library support
8750 # FIXME: insert proper C++ library support
8754 archive_cmds_need_lc_CXX=no
8755 case $cc_basename in
8757 # FIXME: insert proper C++ library support
8761 # FIXME: insert proper C++ library support
8767 case $cc_basename in
8770 # FIXME: insert proper C++ library support
8775 # FIXME: insert proper C++ library support
8779 # FIXME: insert proper C++ library support
8785 case $cc_basename in
8787 # Sun C++ 4.2, 5.x and Centerline C++
8788 no_undefined_flag_CXX=' -zdefs'
8789 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8790 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8791 $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'
8793 hardcode_libdir_flag_spec_CXX='-R$libdir'
8794 hardcode_shlibpath_var_CXX=no
8796 solaris2.0-5 | solaris2.0-5.*) ;;
8798 # The C++ compiler is used as linker so we must use $wl
8799 # flag to pass the commands to the underlying system
8801 # Supported since Solaris 2.6 (maybe 2.5.1?)
8802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8805 link_all_deplibs_CXX=yes
8807 # Commands to make compiler produce verbose output that lists
8808 # what "hidden" libraries, object files and flags are used when
8809 # linking a shared library.
8811 # There doesn't appear to be a way to prevent this compiler from
8812 # explicitly linking system object files so we need to strip them
8813 # from the output so that they don't get included in the library
8815 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'
8817 # Archives containing C++ object files must be created using
8818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8819 # necessary to make sure instantiated templates are included
8821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
8824 # Green Hills C++ Compiler
8825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8827 # The C++ compiler must be used to create the archive.
8828 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8831 # GNU C++ compiler with Solaris linker
8832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8833 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
8834 if $CC --version | egrep -v '^2\.7' > /dev/null; then
8835 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
8836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8837 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
8839 # Commands to make compiler produce verbose output that lists
8840 # what "hidden" libraries, object files and flags are used when
8841 # linking a shared library.
8842 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
8844 # g++ 2.7 appears to require `-G' NOT `-shared' on this
8846 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
8847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8848 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
8850 # Commands to make compiler produce verbose output that lists
8851 # what "hidden" libraries, object files and flags are used when
8852 # linking a shared library.
8853 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
8856 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
8861 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8862 archive_cmds_need_lc_CXX=no
8865 case $cc_basename in
8867 # NonStop-UX NCC 3.20
8868 # FIXME: insert proper C++ library support
8872 # FIXME: insert proper C++ library support
8878 # FIXME: insert proper C++ library support
8882 # FIXME: insert proper C++ library support
8886 echo "$as_me:8886: result: $ld_shlibs_CXX" >&5
8887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
8888 test "$ld_shlibs_CXX" = no && can_build_shared=no
8890 # Figure out "hidden" C++ library dependencies from verbose
8891 # compiler output whening linking a shared library.
8892 cat > conftest.$ac_ext <<EOF
8896 Foo (void) { a = 0; }
8902 if { (eval echo "$as_me:8902: \"$ac_compile\"") >&5
8903 (eval $ac_compile) 2>&5
8905 echo "$as_me:8905: \$? = $ac_status" >&5
8906 (exit $ac_status); }; then
8907 # Parse the compiler output and extract the necessary
8908 # objects, libraries and library flags.
8910 # Sentinel used to keep track of whether or not we are before
8911 # the conftest object file.
8912 pre_test_object_deps_done=no
8914 # The `*' in the case matches for architectures that use `case' in
8915 # $output_verbose_cmd can trigger glob expansion during the loop
8916 # eval without this substitution.
8917 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
8919 for p in `eval $output_verbose_link_cmd`; do
8923 # Some compilers place space between "-{L,R}" and the path.
8926 || test $p = "-R"; then
8933 if test "$pre_test_object_deps_done" = no; then
8936 # Internal compiler library paths should come after those
8937 # provided the user. The postdeps already come after the
8938 # user supplied libs so there is no need to process them.
8939 if test -z "$compiler_lib_search_path_CXX"; then
8940 compiler_lib_search_path_CXX="${prev}${p}"
8942 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
8945 # The "-l" case would never come before the object being
8946 # linked, so don't bother handling this case.
8949 if test -z "$postdeps_CXX"; then
8950 postdeps_CXX="${prev}${p}"
8952 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
8957 *.$objext|*.$libext)
8958 # This assumes that the test object file only shows up
8959 # once in the compiler output.
8960 if test "$p" = "conftest.$objext"; then
8961 pre_test_object_deps_done=yes
8965 if test "$pre_test_object_deps_done" = no; then
8966 if test -z "$predep_objects_CXX"; then
8967 predep_objects_CXX="$p"
8969 predep_objects_CXX="$predep_objects_CXX $p"
8972 if test -z "$postdep_objects_CXX"; then
8973 postdep_objects_CXX="$p"
8975 postdep_objects_CXX="$postdep_objects_CXX $p"
8980 *) ;; # Ignore the rest.
8988 echo "libtool.m4: error: problem compiling C++ test program"
8991 $rm -f confest.$objext
8993 case " $postdeps_CXX " in
8994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
8995 *) archive_cmds_need_lc_CXX=yes ;;
9001 lt_prog_compiler_wl_CXX=
9002 lt_prog_compiler_pic_CXX=
9003 lt_prog_compiler_static_CXX=
9005 echo "$as_me:9005: checking for $compiler option to produce PIC" >&5
9006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9008 # C++ specific cases for pic, static, wl, etc.
9009 if test "$GXX" = yes; then
9010 lt_prog_compiler_wl_CXX='-Wl,'
9011 lt_prog_compiler_static_CXX='-static'
9015 # All AIX code is PIC.
9016 if test "$host_cpu" = ia64; then
9017 # AIX 5 now supports IA64 processor
9018 lt_prog_compiler_static_CXX='-Bstatic'
9022 # FIXME: we need at least 68020 code to build shared libraries, but
9023 # adding the `-m68020' flag to GCC prevents building anything better,
9025 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9027 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9028 # PIC is the default for these OSes.
9030 cygwin* | mingw* | os2*)
9031 # This hack is so that the source file can tell whether it is being
9032 # built for inclusion in a dll (and should export symbols for example).
9033 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9035 darwin* | rhapsody*)
9036 # PIC is the default on this platform
9037 # Common symbols not allowed in MH_DYLIB files
9038 lt_prog_compiler_pic_CXX='-fno-common'
9041 # DJGPP does not support shared libraries at all
9042 lt_prog_compiler_pic_CXX=
9045 if test -d /usr/nec; then
9046 lt_prog_compiler_pic_CXX=-Kconform_pic
9050 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9051 if test "$host_cpu" != ia64; then
9052 lt_prog_compiler_pic_CXX='-fPIC'
9056 lt_prog_compiler_pic_CXX='-fPIC'
9062 # All AIX code is PIC.
9063 if test "$host_cpu" = ia64; then
9064 # AIX 5 now supports IA64 processor
9065 lt_prog_compiler_static_CXX='-Bstatic'
9067 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9071 case $cc_basename in
9073 # Green Hills C++ Compiler
9074 # _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"
9079 case $cc_basename in
9081 lt_prog_compiler_pic_CXX='-KPIC'
9084 # Green Hills C++ Compiler
9085 lt_prog_compiler_pic_CXX='-pic'
9092 # FreeBSD uses GNU C++
9094 hpux9* | hpux10* | hpux11*)
9095 case $cc_basename in
9097 lt_prog_compiler_wl_CXX='-Wl,'
9098 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9099 if test "$host_cpu" != ia64; then
9100 lt_prog_compiler_pic_CXX='+Z'
9104 lt_prog_compiler_wl_CXX='-Wl,'
9105 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9106 if test "$host_cpu" != ia64; then
9107 lt_prog_compiler_pic_CXX='+Z'
9114 irix5* | irix6* | nonstopux*)
9115 case $cc_basename in
9117 lt_prog_compiler_wl_CXX='-Wl,'
9118 lt_prog_compiler_static_CXX='-non_shared'
9119 # CC pic flag -KPIC is the default.
9126 case $cc_basename in
9129 lt_prog_compiler_wl_CXX='--backend -Wl,'
9130 lt_prog_compiler_pic_CXX='-fPIC'
9134 # Make sure the PIC flag is empty. It appears that all Alpha
9135 # Linux and Compaq Tru64 Unix objects are PIC.
9136 lt_prog_compiler_pic_CXX=
9137 lt_prog_compiler_static_CXX='-non_shared'
9148 case $cc_basename in
9150 lt_prog_compiler_pic_CXX='-W c,exportall'
9158 osf3* | osf4* | osf5*)
9159 case $cc_basename in
9161 lt_prog_compiler_wl_CXX='--backend -Wl,'
9164 # Rational C++ 2.4.1
9165 lt_prog_compiler_pic_CXX='-pic'
9168 # Digital/Compaq C++
9169 lt_prog_compiler_wl_CXX='-Wl,'
9170 # Make sure the PIC flag is empty. It appears that all Alpha
9171 # Linux and Compaq Tru64 Unix objects are PIC.
9172 lt_prog_compiler_pic_CXX=
9173 lt_prog_compiler_static_CXX='-non_shared'
9182 case $cc_basename in
9184 lt_prog_compiler_pic_CXX='-fPIC'
9191 case $cc_basename in
9193 # Sun C++ 4.2, 5.x and Centerline C++
9194 lt_prog_compiler_pic_CXX='-KPIC'
9195 lt_prog_compiler_static_CXX='-Bstatic'
9196 lt_prog_compiler_wl_CXX='-Qoption ld '
9199 # Green Hills C++ Compiler
9200 lt_prog_compiler_pic_CXX='-PIC'
9207 case $cc_basename in
9210 lt_prog_compiler_pic_CXX='-pic'
9211 lt_prog_compiler_static_CXX='-Bstatic'
9215 lt_prog_compiler_pic_CXX='-pic'
9222 case $cc_basename in
9224 # NonStop-UX NCC 3.20
9225 lt_prog_compiler_pic_CXX='-KPIC'
9236 lt_prog_compiler_can_build_shared_CXX=no
9241 echo "$as_me:9241: result: $lt_prog_compiler_pic_CXX" >&5
9242 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9245 # Check to make sure the PIC flag actually works.
9247 if test -n "$lt_prog_compiler_pic_CXX"; then
9248 echo "$as_me:9248: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9249 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9250 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 lt_prog_compiler_pic_works_CXX=no
9254 ac_outfile=conftest.$ac_objext
9255 save_CFLAGS="$CFLAGS"
9256 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9259 # The compiler can only warn and ignore the option if not recognized
9260 # So say no if there are warnings
9261 if test -s conftest.err; then
9262 # Append any errors to the config.log.
9263 cat conftest.err 1>&5
9265 lt_prog_compiler_pic_works_CXX=yes
9269 CFLAGS="$save_CFLAGS"
9272 echo "$as_me:9272: result: $lt_prog_compiler_pic_works_CXX" >&5
9273 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9275 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9276 case $lt_prog_compiler_pic_CXX in
9278 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9281 lt_prog_compiler_pic_CXX=
9282 lt_prog_compiler_can_build_shared_CXX=no
9287 # For platforms which do not support PIC, -DPIC is meaningless:
9289 lt_prog_compiler_pic_CXX=
9292 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9296 echo "$as_me:9296: checking if $compiler supports -c -o file.$ac_objext" >&5
9297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9298 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 lt_cv_prog_compiler_c_o_CXX=no
9302 $rm -r conftest 2>/dev/null
9306 save_CXXFLAGS="$CXXFLAGS"
9307 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
9308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9311 # that will create temporary files in the current directory regardless of
9312 # the output directory. Thus, making CWD read-only will cause this test
9313 # to fail, enabling locking or at least warning the user not to do parallel
9317 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
9319 # The compiler can only warn and ignore the option if not recognized
9320 # So say no if there are warnings
9321 if test -s out/conftest.err; then
9322 # Append any errors to the config.log.
9323 cat out/conftest.err 1>&5
9325 lt_cv_prog_compiler_c_o_CXX=yes
9328 CXXFLAGS="$save_CXXFLAGS"
9337 echo "$as_me:9337: result: $lt_cv_prog_compiler_c_o_CXX" >&5
9338 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
9340 hard_links="nottested"
9341 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
9342 # do not overwrite the value of need_locks provided by the user
9343 echo "$as_me:9343: checking if we can lock with hard links" >&5
9344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9349 ln conftest.a conftest.b 2>&5 || hard_links=no
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 echo "$as_me:9351: result: $hard_links" >&5
9352 echo "${ECHO_T}$hard_links" >&6
9353 if test "$hard_links" = no; then
9354 { echo "$as_me:9354: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9362 echo "$as_me:9362: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
9368 # If we're using GNU nm, then we don't want the "-C" option.
9369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9370 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
9371 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'
9373 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'
9376 cygwin* | mingw* | pw32*)
9377 export_symbols_cmds_CXX="$ltdll_cmds"
9380 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
9384 echo "$as_me:9384: result: $ld_shlibs_CXX" >&5
9385 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9386 test "$ld_shlibs_CXX" = no && can_build_shared=no
9388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9389 if test "$GCC" = yes; then
9390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9394 # Do we need to explicitly link libc?
9396 archive_cmds_need_lc_CXX=yes
9397 if test "$enable_shared" = yes && test "$GCC" = yes; then
9398 case $archive_cmds_CXX in
9400 # FIXME: we may have to deal with multi-command sequences.
9403 # Test whether the compiler implicitly links with -lc since on some
9404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9405 # to ld, don't add -lc before -lgcc.
9406 echo "$as_me:9406: checking whether -lc should be explicitly linked in" >&5
9407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9409 echo 'static int dummy;' > conftest.$ac_ext
9411 if { (eval echo "$as_me:9411: \"$ac_compile\"") >&5
9412 (eval $ac_compile) 2>&5
9414 echo "$as_me:9414: \$? = $ac_status" >&5
9415 (exit $ac_status); } 2>conftest.err; then
9418 libobjs=conftest.$ac_objext
9420 wl=$lt_prog_compiler_wl_CXX
9426 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
9427 allow_undefined_flag_CXX=
9428 if { (eval echo "$as_me:9428: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9429 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9431 echo "$as_me:9431: \$? = $ac_status" >&5
9432 (exit $ac_status); }
9434 archive_cmds_need_lc_CXX=no
9436 archive_cmds_need_lc_CXX=yes
9438 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
9440 cat conftest.err 1>&5
9443 echo "$as_me:9443: result: $archive_cmds_need_lc_CXX" >&5
9444 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
9449 echo "$as_me:9449: checking how to hardcode library paths into programs" >&5
9450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9451 hardcode_action_CXX=
9452 if test -n "$hardcode_libdir_flag_spec_CXX" || \
9453 test -n "$runpath_var CXX"; then
9455 # We can hardcode non-existant directories.
9456 if test "$hardcode_direct_CXX" != no &&
9457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9458 # have to relink, otherwise we might link with an installed library
9459 # when we should be linking with a yet-to-be-installed one
9460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
9461 test "$hardcode_minus_L_CXX" != no; then
9462 # Linking always hardcodes the temporary library directory.
9463 hardcode_action_CXX=relink
9465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9466 hardcode_action_CXX=immediate
9469 # We cannot hardcode anything, or else we can only hardcode existing
9471 hardcode_action_CXX=unsupported
9473 echo "$as_me:9473: result: $hardcode_action_CXX" >&5
9474 echo "${ECHO_T}$hardcode_action_CXX" >&6
9476 if test "$hardcode_action_CXX" = relink; then
9477 # Fast installation is not supported
9478 enable_fast_install=no
9479 elif test "$shlibpath_overrides_runpath" = yes ||
9480 test "$enable_shared" = no; then
9481 # Fast installation is not necessary
9482 enable_fast_install=needless
9487 echo "$as_me:9487: checking whether stripping libraries is possible" >&5
9488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9492 echo "$as_me:9492: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6
9495 echo "$as_me:9495: result: no" >&5
9496 echo "${ECHO_T}no" >&6
9499 echo "$as_me:9499: checking dynamic linker characteristics" >&5
9500 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9502 libname_spec='lib$name'
9509 shlibpath_overrides_runpath=unknown
9511 dynamic_linker="$host_os ld.so"
9512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9514 need_lib_prefix=unknown
9515 hardcode_into_libs=no
9517 # when you set need_version to no, make sure it does not cause -set_version
9518 # flags to be left without arguments
9519 need_version=unknown
9524 library_names_spec='${libname}${release}.so$versuffix $libname.a'
9525 shlibpath_var=LIBPATH
9527 # AIX 3 has no versioning support, so we append a major version to the name.
9528 soname_spec='${libname}${release}.so$major'
9533 if test "$host_cpu" = ia64; then
9534 # AIX 5 supports IA64
9535 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
9536 shlibpath_var=LD_LIBRARY_PATH
9538 # With GCC up to 2.95.x, collect2 would create an import file
9539 # for dependence libraries. The import file would start with
9540 # the line `#! .'. This would cause the generated library to
9541 # depend on `.', always an invalid library. This was fixed in
9542 # development snapshots of GCC prior to 3.0.
9544 aix4 | aix4.[01] | aix4.[01].*)
9545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9547 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9555 # soname into executable. Probably we can add versioning support to
9556 # collect2, so additional links can be useful in future.
9557 if test "$aix_use_runtimelinking" = yes; then
9558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9559 # instead of lib<name>.a to let people know that these are not
9560 # typical AIX shared libraries.
9561 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9563 # We preserve .a as extension for shared libraries through AIX4.2
9564 # and later when we are not doing run time linking.
9565 library_names_spec='${libname}${release}.a $libname.a'
9566 soname_spec='${libname}${release}.so$major'
9568 shlibpath_var=LIBPATH
9573 library_names_spec='$libname.ixlibrary $libname.a'
9574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9575 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'
9579 library_names_spec='${libname}.so'
9580 dynamic_linker="$host_os ld.so"
9581 shlibpath_var=LIBRARY_PATH
9587 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9588 soname_spec='${libname}${release}.so$major'
9589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9593 # the default ld.so.conf also contains /usr/contrib/lib and
9594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9595 # libtool to hard-code these into programs
9598 cygwin* | mingw* | pw32*)
9599 version_type=windows
9602 case $GCC,$host_os in
9604 library_names_spec='$libname.dll.a'
9605 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9606 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9607 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
9608 dldir=$destdir/`dirname \$dlpath`~
9609 test -d \$dldir || mkdir -p \$dldir~
9610 $install_prog .libs/$dlname \$dldir/$dlname'
9611 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
9612 dlpath=$dir/\$dldll~
9616 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
9617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
9618 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
9619 # It is most probably a Windows format PATH printed by
9620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9621 # path with ; separators, and with drive letters. We can handle the
9622 # drive letters (cygwin fileutils understands them), so leave them,
9623 # especially as we might pass files found there to a mingw objdump,
9624 # which wouldn't understand a cygwinified path. Ahh.
9625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
9627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
9631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
9634 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
9637 dynamic_linker='Win32 ld.exe'
9638 # FIXME: first we should search . and the directory the executable is in
9642 darwin* | rhapsody*)
9643 dynamic_linker="$host_os dyld"
9647 # FIXME: Relying on posixy $() will cause problems for
9648 # cross-compilation, but unfortunately the echo tests do not
9649 # yet detect zsh echo's removal of \ escapes.
9650 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)'
9651 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
9652 shlibpath_overrides_runpath=yes
9653 shlibpath_var=DYLD_LIBRARY_PATH
9660 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9661 soname_spec='${libname}${release}.so$major'
9662 shlibpath_var=LD_LIBRARY_PATH
9670 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9671 version_type=freebsd-$objformat
9672 case $version_type in
9674 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9679 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
9683 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9688 freebsd3.01* | freebsdelf3.01*)
9689 shlibpath_overrides_runpath=yes
9690 hardcode_into_libs=yes
9693 shlibpath_overrides_runpath=no
9694 hardcode_into_libs=yes
9703 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
9704 soname_spec='${libname}${release}.so$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 hardcode_into_libs=yes
9709 hpux9* | hpux10* | hpux11*)
9710 # Give a soname corresponding to the major version so that dld.sl refuses to
9711 # link against other versions.
9715 if test "$host_cpu" = ia64; then
9716 hardcode_into_libs=yes
9717 dynamic_linker="$host_os dld.so"
9718 shlibpath_var=LD_LIBRARY_PATH
9719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9721 soname_spec='${libname}${release}.so$major'
9722 if test "X$HPUX_IA64_MODE" = X32; then
9723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9729 dynamic_linker="$host_os dld.sl"
9730 shlibpath_var=SHLIB_PATH
9731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9732 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
9733 soname_spec='${libname}${release}.sl$major'
9735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9736 postinstall_cmds='chmod 555 $lib'
9739 irix5* | irix6* | nonstopux*)
9741 nonstopux*) version_type=nonstopux ;;
9742 *) version_type=irix ;;
9746 soname_spec='${libname}${release}.so$major'
9747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
9749 irix5* | nonstopux*)
9753 case $LD in # libtool.m4 will add one of these switches to LD
9754 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
9755 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
9757 *) libsuff= shlibsuff= libmagic=never-match;;
9761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9762 shlibpath_overrides_runpath=no
9763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9767 # No shared lib support for Linux oldld, aout, or coff.
9768 linux*oldld* | linux*aout* | linux*coff*)
9772 # This must be Linux ELF.
9777 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9778 soname_spec='${libname}${release}.so$major'
9779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9781 if test "x$LINUX_64_MODE" = x64; then
9782 # Some platforms are per default 64-bit, so there's no /lib64
9783 if test -d /lib64; then
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=no
9789 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9790 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9791 # This implies no fast_install, which is unacceptable.
9792 # Some rework will be needed to allow for fast_install
9793 # before this can be enabled.
9794 hardcode_into_libs=yes
9796 # We used to test for /lib/ld.so.1 and disable shared libraries on
9797 # powerpc, because MkLinux only supported shared libraries with the
9798 # GNU dynamic linker. Since this was broken with cross compilers,
9799 # most powerpc-linux boxes support dynamic linking these days and
9800 # people can always --disable-shared, the test was removed, and we
9801 # assume the GNU/Linux dynamic linker is in use.
9802 dynamic_linker='GNU/Linux ld.so'
9809 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9810 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9812 dynamic_linker='NetBSD (a.out) ld.so'
9814 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
9815 soname_spec='${libname}${release}.so$major'
9816 dynamic_linker='NetBSD ld.elf_so'
9818 shlibpath_var=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath=yes
9820 hardcode_into_libs=yes
9825 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 shlibpath_overrides_runpath=yes
9834 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9835 soname_spec='${libname}${release}.so$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9844 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9849 openbsd2.[89] | openbsd2.[89].*)
9850 shlibpath_overrides_runpath=no
9853 shlibpath_overrides_runpath=yes
9857 shlibpath_overrides_runpath=yes
9862 libname_spec='$name'
9864 library_names_spec='$libname.dll $libname.a'
9865 dynamic_linker='OS/2 ld.exe'
9866 shlibpath_var=LIBPATH
9869 osf3* | osf4* | osf5*)
9873 soname_spec='${libname}${release}.so'
9874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9882 soname_spec='${libname}${release}.so$major'
9883 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9884 shlibpath_var=LD_LIBRARY_PATH
9891 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9892 soname_spec='${libname}${release}.so$major'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 shlibpath_overrides_runpath=yes
9895 hardcode_into_libs=yes
9896 # ldd complains unless libraries are executable
9897 postinstall_cmds='chmod +x $lib'
9902 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=yes
9906 if test "$with_gnu_ld" = yes; then
9912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9914 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9915 soname_spec='${libname}${release}.so$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 case $host_vendor in
9919 shlibpath_overrides_runpath=no
9924 shlibpath_overrides_runpath=no
9925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9931 if test -d /usr/nec ;then
9933 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9934 soname_spec='$libname.so.$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9941 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9942 soname_spec='${libname}${release}.so$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9950 echo "$as_me:9950: result: $dynamic_linker" >&5
9951 echo "${ECHO_T}$dynamic_linker" >&6
9952 test "$dynamic_linker" = no && can_build_shared=no
9954 if test "x$enable_dlopen" != xyes; then
9955 enable_dlopen=unknown
9956 enable_dlopen_self=unknown
9957 enable_dlopen_self_static=unknown
9964 lt_cv_dlopen="load_add_on"
9966 lt_cv_dlopen_self=yes
9969 cygwin* | mingw* | pw32*)
9970 lt_cv_dlopen="LoadLibrary"
9975 echo "$as_me:9975: checking for shl_load" >&5
9976 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9977 if test "${ac_cv_func_shl_load+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9981 #line 9981 "configure"
9982 #include "confdefs.h"
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char shl_load (); below. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9998 /* The GNU C library defines this for functions which it implements
9999 to always fail with ENOSYS. Some functions are actually named
10000 something starting with __ and the normal name is an alias. */
10001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:10012: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>&5
10015 echo "$as_me:10015: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:10018: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:10021: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_func_shl_load=yes
10025 echo "$as_me: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 ac_cv_func_shl_load=no
10029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10031 echo "$as_me:10031: result: $ac_cv_func_shl_load" >&5
10032 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10033 if test $ac_cv_func_shl_load = yes; then
10034 lt_cv_dlopen="shl_load"
10036 echo "$as_me:10036: checking for shl_load in -ldld" >&5
10037 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10047 /* Override any gcc2 internal prototype to avoid an error. */
10051 /* We use char because int might match the return type of a gcc2
10052 builtin and then its argument prototype would still apply. */
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:10063: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10066 echo "$as_me:10066: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:10069: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_dld_shl_load=yes
10076 echo "$as_me: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 ac_cv_lib_dld_shl_load=no
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10083 echo "$as_me:10083: result: $ac_cv_lib_dld_shl_load" >&5
10084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10085 if test $ac_cv_lib_dld_shl_load = yes; then
10086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10088 echo "$as_me:10088: checking for dlopen" >&5
10089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10090 if test "${ac_cv_func_dlopen+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char dlopen (); below. */
10098 #include <assert.h>
10099 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10111 /* The GNU C library defines this for functions which it implements
10112 to always fail with ENOSYS. Some functions are actually named
10113 something starting with __ and the normal name is an alias. */
10114 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (eval echo "$as_me:10125: \"$ac_link\"") >&5
10126 (eval $ac_link) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:10131: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:10134: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_func_dlopen=yes
10138 echo "$as_me: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 ac_cv_func_dlopen=no
10142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10144 echo "$as_me:10144: result: $ac_cv_func_dlopen" >&5
10145 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10146 if test $ac_cv_func_dlopen = yes; then
10147 lt_cv_dlopen="dlopen"
10149 echo "$as_me:10149: checking for dlopen in -ldl" >&5
10150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10156 cat >conftest.$ac_ext <<_ACEOF
10157 #line 10157 "configure"
10158 #include "confdefs.h"
10160 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:10176: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>&5
10179 echo "$as_me:10179: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest$ac_exeext'
10182 { (eval echo "$as_me:10182: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:10185: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ac_cv_lib_dl_dlopen=yes
10189 echo "$as_me: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 ac_cv_lib_dl_dlopen=no
10193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10194 LIBS=$ac_check_lib_save_LIBS
10196 echo "$as_me:10196: result: $ac_cv_lib_dl_dlopen" >&5
10197 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10198 if test $ac_cv_lib_dl_dlopen = yes; then
10199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10201 echo "$as_me:10201: checking for dlopen in -lsvld" >&5
10202 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10203 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-lsvld $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 #line 10209 "configure"
10210 #include "confdefs.h"
10212 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:10228: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>&5
10231 echo "$as_me:10231: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -s conftest$ac_exeext'
10234 { (eval echo "$as_me:10234: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:10237: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 ac_cv_lib_svld_dlopen=yes
10241 echo "$as_me: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 ac_cv_lib_svld_dlopen=no
10245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 echo "$as_me:10248: result: $ac_cv_lib_svld_dlopen" >&5
10249 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10250 if test $ac_cv_lib_svld_dlopen = yes; then
10251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10253 echo "$as_me:10253: checking for dld_link in -ldld" >&5
10254 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_check_lib_save_LIBS=$LIBS
10260 cat >conftest.$ac_ext <<_ACEOF
10261 #line 10261 "configure"
10262 #include "confdefs.h"
10264 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (eval echo "$as_me:10280: \"$ac_link\"") >&5
10281 (eval $ac_link) 2>&5
10283 echo "$as_me:10283: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -s conftest$ac_exeext'
10286 { (eval echo "$as_me:10286: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_cv_lib_dld_dld_link=yes
10293 echo "$as_me: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10295 ac_cv_lib_dld_dld_link=no
10297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10298 LIBS=$ac_check_lib_save_LIBS
10300 echo "$as_me:10300: result: $ac_cv_lib_dld_dld_link" >&5
10301 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10302 if test $ac_cv_lib_dld_dld_link = yes; then
10303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10319 if test "x$lt_cv_dlopen" != xno; then
10325 case $lt_cv_dlopen in
10327 save_CPPFLAGS="$CPPFLAGS"
10328 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10330 save_LDFLAGS="$LDFLAGS"
10331 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10334 LIBS="$lt_cv_dlopen_libs $LIBS"
10336 echo "$as_me:10336: checking whether a program can dlopen itself" >&5
10337 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10338 if test "${lt_cv_dlopen_self+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 if test "$cross_compiling" = yes; then :
10342 lt_cv_dlopen_self=cross
10344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345 lt_status=$lt_dlunknown
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10357 # define LT_DLGLOBAL RTLD_GLOBAL
10360 # define LT_DLGLOBAL DL_GLOBAL
10362 # define LT_DLGLOBAL 0
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367 find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10373 # define LT_DLLAZY_OR_NOW DL_LAZY
10376 # define LT_DLLAZY_OR_NOW RTLD_NOW
10379 # define LT_DLLAZY_OR_NOW DL_NOW
10381 # define LT_DLLAZY_OR_NOW 0
10389 extern "C" void exit (int);
10392 void fnord() { int i=42;}
10395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10396 int status = $lt_dlunknown;
10400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10402 /* dlclose (self); */
10408 if { (eval echo "$as_me:10408: \"$ac_link\"") >&5
10409 (eval $ac_link) 2>&5
10411 echo "$as_me:10411: \$? = $ac_status" >&5
10412 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10413 (./conftest; exit; ) 2>/dev/null
10415 case x$lt_status in
10416 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10417 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10418 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10421 # compilation failed
10422 lt_cv_dlopen_self=no
10428 echo "$as_me:10428: result: $lt_cv_dlopen_self" >&5
10429 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10431 if test "x$lt_cv_dlopen_self" = xyes; then
10432 LDFLAGS="$LDFLAGS $link_static_flag"
10433 echo "$as_me:10433: checking whether a statically linked program can dlopen itself" >&5
10434 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10435 if test "${lt_cv_dlopen_self_static+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 if test "$cross_compiling" = yes; then :
10439 lt_cv_dlopen_self_static=cross
10441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442 lt_status=$lt_dlunknown
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10454 # define LT_DLGLOBAL RTLD_GLOBAL
10457 # define LT_DLGLOBAL DL_GLOBAL
10459 # define LT_DLGLOBAL 0
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464 find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10470 # define LT_DLLAZY_OR_NOW DL_LAZY
10473 # define LT_DLLAZY_OR_NOW RTLD_NOW
10476 # define LT_DLLAZY_OR_NOW DL_NOW
10478 # define LT_DLLAZY_OR_NOW 0
10486 extern "C" void exit (int);
10489 void fnord() { int i=42;}
10492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493 int status = $lt_dlunknown;
10497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499 /* dlclose (self); */
10505 if { (eval echo "$as_me:10505: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>&5
10508 echo "$as_me:10508: \$? = $ac_status" >&5
10509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10510 (./conftest; exit; ) 2>/dev/null
10512 case x$lt_status in
10513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10515 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10518 # compilation failed
10519 lt_cv_dlopen_self_static=no
10525 echo "$as_me:10525: result: $lt_cv_dlopen_self_static" >&5
10526 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10529 CPPFLAGS="$save_CPPFLAGS"
10530 LDFLAGS="$save_LDFLAGS"
10535 case $lt_cv_dlopen_self in
10536 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10537 *) enable_dlopen_self=unknown ;;
10540 case $lt_cv_dlopen_self_static in
10541 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10542 *) enable_dlopen_self_static=unknown ;;
10546 # The else clause should only fire when bootstrapping the
10547 # libtool distribution, otherwise you forgot to ship ltmain.sh
10548 # with your package, and you will get complaints that there are
10549 # no rules to generate ltmain.sh.
10550 if test -f "$ltmain"; then
10551 # Now quote all the things that may contain metacharacters while being
10552 # careful not to overquote the AC_SUBSTed values. We take copies of the
10553 # variables and quote the copies for generation of the libtool script.
10554 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
10555 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10556 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10557 deplibs_check_method reload_flag reload_cmds need_locks \
10558 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10559 lt_cv_sys_global_symbol_to_c_name_address \
10560 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10561 old_postinstall_cmds old_postuninstall_cmds \
10565 lt_prog_compiler_wl_CXX \
10566 lt_prog_compiler_pic_CXX \
10567 lt_prog_compiler_static_CXX \
10568 lt_prog_compiler_no_builtin_flag_CXX \
10569 export_dynamic_flag_spec_CXX \
10570 thread_safe_flag_spec_CXX \
10571 whole_archive_flag_spec_CXX \
10572 old_archive_cmds_CXX \
10573 old_archive_from_new_cmds_CXX \
10574 predep_objects_CXX \
10575 postdep_objects_CXX \
10578 compiler_lib_search_path_CXX \
10580 archive_expsym_cmds_CXX \
10581 postinstall_cmds_CXX \
10582 postuninstall_cmds_CXX \
10583 old_archive_from_expsyms_cmds_CXX \
10584 allow_undefined_flag_CXX \
10585 no_undefined_flag_CXX \
10586 export_symbols_cmds_CXX \
10587 hardcode_libdir_flag_spec_CXX \
10588 hardcode_libdir_separator_CXX \
10589 lt_cv_prog_compiler_c_o_CXX \
10590 exclude_expsyms_CXX \
10591 include_expsyms_CXX; do
10594 old_archive_cmds_CXX | \
10595 old_archive_from_new_cmds_CXX | \
10596 archive_cmds_CXX | \
10597 archive_expsym_cmds_CXX | \
10598 old_archive_from_expsyms_cmds_CXX | \
10599 export_symbols_cmds_CXX | \
10600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10601 postinstall_cmds | postuninstall_cmds | \
10602 old_postinstall_cmds | old_postuninstall_cmds | \
10603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10604 # Double-quote double-evaled strings.
10605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10614 *'\$0 --fallback-echo"')
10615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10621 cat <<__EOF__ >> "$cfgfile"
10622 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
10624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10626 # Shell to use when invoking shell scripts.
10629 # Whether or not to build shared libraries.
10630 build_libtool_libs=$enable_shared
10632 # Whether or not to build static libraries.
10633 build_old_libs=$enable_static
10635 # Whether or not to add -lc for building shared libraries.
10636 build_libtool_need_lc=$archive_cmds_need_lc_CXX
10638 # Whether or not to optimize for fast installation.
10639 fast_install=$enable_fast_install
10642 host_alias=$host_alias
10645 # An echo program that does not interpret backslashes.
10650 AR_FLAGS=$lt_AR_FLAGS
10655 # A language-specific compiler.
10656 CC=$lt_compiler_CXX
10658 # Is the compiler the GNU C compiler?
10661 # The linker used to build libraries.
10664 # Whether we need hard or soft links.
10667 # A BSD-compatible nm program.
10670 # A sed program that does not truncate output.
10673 # A symbol stripping program
10676 # Used to examine libraries when file_magic_cmd begins "file"
10677 MAGIC_CMD=$MAGIC_CMD
10679 # Used on cygwin: DLL creation program.
10682 # Used on cygwin: object dumper.
10685 # Used on cygwin: assembler.
10688 # The name of the directory that contains temporary libtool files.
10691 # How to create reloadable object files.
10692 reload_flag=$lt_reload_flag
10693 reload_cmds=$lt_reload_cmds
10695 # How to pass a linker flag through the compiler.
10696 wl=$lt_lt_prog_compiler_wl_CXX
10698 # Object file suffix (normally "o").
10699 objext="$ac_objext"
10701 # Old archive suffix (normally "a").
10704 # Executable file suffix (normally "").
10707 # Additional compiler flags for building library objects.
10708 pic_flag=$lt_lt_prog_compiler_pic_CXX
10711 # What is the maximum length of a command?
10712 max_cmd_len=$lt_cv_sys_max_cmd_len
10714 # Does compiler simultaneously support -c and -o options?
10715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
10717 # Must we lock files when doing compilation ?
10718 need_locks=$lt_need_locks
10720 # Do we need the lib prefix for modules?
10721 need_lib_prefix=$need_lib_prefix
10723 # Do we need a version for libraries?
10724 need_version=$need_version
10726 # Whether dlopen is supported.
10727 dlopen_support=$enable_dlopen
10729 # Whether dlopen of programs is supported.
10730 dlopen_self=$enable_dlopen_self
10732 # Whether dlopen of statically linked programs is supported.
10733 dlopen_self_static=$enable_dlopen_self_static
10735 # Compiler flag to prevent dynamic linking.
10736 link_static_flag=$lt_lt_prog_compiler_static_CXX
10738 # Compiler flag to turn off builtin functions.
10739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
10741 # Compiler flag to allow reflexive dlopens.
10742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
10744 # Compiler flag to generate shared objects directly from archives.
10745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
10747 # Compiler flag to generate thread-safe objects.
10748 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
10750 # Library versioning type.
10751 version_type=$version_type
10753 # Format of library name prefix.
10754 libname_spec=$lt_libname_spec
10756 # List of archive names. First name is the real one, the rest are links.
10757 # The last name is the one that the linker finds with -lNAME.
10758 library_names_spec=$lt_library_names_spec
10760 # The coded name of the library, if different from the real name.
10761 soname_spec=$lt_soname_spec
10763 # Commands used to build and install an old-style archive.
10765 old_archive_cmds=$lt_old_archive_cmds_CXX
10766 old_postinstall_cmds=$lt_old_postinstall_cmds
10767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10769 # Create an old-style archive from a shared archive.
10770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
10772 # Create a temporary old-style archive to link instead of a shared archive.
10773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
10775 # Commands used to build and install a shared archive.
10776 archive_cmds=$lt_archive_cmds_CXX
10777 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
10778 postinstall_cmds=$lt_postinstall_cmds
10779 postuninstall_cmds=$lt_postuninstall_cmds
10781 # Commands to strip libraries.
10782 old_striplib=$lt_old_striplib
10783 striplib=$lt_striplib
10785 # Dependencies to place before the objects being linked to create a
10787 predep_objects=$lt_predep_objects_CXX
10789 # Dependencies to place after the objects being linked to create a
10791 postdep_objects=$lt_postdep_objects_CXX
10793 # Dependencies to place before the objects being linked to create a
10795 predeps=$lt_predeps_CXX
10797 # Dependencies to place after the objects being linked to create a
10799 postdeps=$lt_postdeps_CXX
10801 # The library search path used internally by the compiler when linking
10802 # a shared library.
10803 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
10805 # Method to check whether dependent libraries are shared objects.
10806 deplibs_check_method=$lt_deplibs_check_method
10808 # Command to use when deplibs_check_method == file_magic.
10809 file_magic_cmd=$lt_file_magic_cmd
10811 # Flag that allows shared libraries with undefined symbols to be built.
10812 allow_undefined_flag=$lt_allow_undefined_flag_CXX
10814 # Flag that forces no undefined symbols.
10815 no_undefined_flag=$lt_no_undefined_flag_CXX
10817 # Commands used to finish a libtool library installation in a directory.
10818 finish_cmds=$lt_finish_cmds
10820 # Same as above, but a single script fragment to be evaled but not shown.
10821 finish_eval=$lt_finish_eval
10823 # Take the output of nm and produce a listing of raw symbols and C names.
10824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10826 # Transform the output of nm in a proper C declaration
10827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10829 # Transform the output of nm in a C name address pair
10830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10832 # This is the shared library runtime path variable.
10833 runpath_var=$runpath_var
10835 # This is the shared library path variable.
10836 shlibpath_var=$shlibpath_var
10838 # Is shlibpath searched before the hard-coded library search path?
10839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10841 # How to hardcode a shared library path into an executable.
10842 hardcode_action=$hardcode_action_CXX
10844 # Whether we should hardcode library paths into libraries.
10845 hardcode_into_libs=$hardcode_into_libs
10847 # Flag to hardcode \$libdir into a binary during linking.
10848 # This must work even if \$libdir does not exist.
10849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
10851 # Whether we need a single -rpath flag with a separated argument.
10852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
10854 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10855 # resulting binary.
10856 hardcode_direct=$hardcode_direct_CXX
10858 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10859 # resulting binary.
10860 hardcode_minus_L=$hardcode_minus_L_CXX
10862 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10863 # the resulting binary.
10864 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
10866 # Variables whose values should be saved in libtool wrapper scripts and
10867 # restored at relink time.
10868 variables_saved_for_relink="$variables_saved_for_relink"
10870 # Whether libtool must link a program against all its dependency libraries.
10871 link_all_deplibs=$link_all_deplibs_CXX
10873 # Compile-time system search path for libraries
10874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10876 # Run-time system search path for libraries
10877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10879 # Fix the shell variable \$srcfile for the compiler.
10880 fix_srcfile_path="$fix_srcfile_path_CXX"
10882 # Set to yes if exported symbols are required.
10883 always_export_symbols=$always_export_symbols_CXX
10885 # The commands to list exported symbols.
10886 export_symbols_cmds=$lt_export_symbols_cmds_CXX
10888 # The commands to extract the exported symbol list from a shared archive.
10889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10891 # Symbols that should not be listed in the preloaded symbols.
10892 exclude_expsyms=$lt_exclude_expsyms_CXX
10894 # Symbols that must always be exported.
10895 include_expsyms=$lt_include_expsyms_CXX
10897 # ### END LIBTOOL TAG CONFIG: $tagname
10902 # If there is no Makefile yet, we rely on a make rule to execute
10903 # `config.status --recheck' to rerun these tests and create the
10904 # libtool script then.
10905 test -f Makefile && make "$ltmain"
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10920 # Source file extension for C test sources.
10923 # Object file extension for compiled C test sources.
10927 # Code to be used in simple compile tests
10928 lt_simple_compile_test_code="class foo {}"
10930 # Code to be used in simple link tests
10931 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
10933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10935 # If no C compiler was specified, use CC.
10938 # Allow CC to be a program name with arguments.
10942 # Allow CC to be a program name with arguments.
10949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
10950 archive_cmds_need_lc_GCJ=no
10952 lt_prog_compiler_no_builtin_flag_GCJ=
10954 if test "$GCC" = yes; then
10955 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
10957 echo "$as_me:10957: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10958 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 lt_cv_prog_compiler_rtti_exceptions=no
10963 ac_outfile=conftest.$ac_objext
10964 save_CFLAGS="$CFLAGS"
10965 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
10966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10968 # The compiler can only warn and ignore the option if not recognized
10969 # So say no if there are warnings
10970 if test -s conftest.err; then
10971 # Append any errors to the config.log.
10972 cat conftest.err 1>&5
10974 lt_cv_prog_compiler_rtti_exceptions=yes
10978 CFLAGS="$save_CFLAGS"
10981 echo "$as_me:10981: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10982 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10984 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10985 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
10992 lt_prog_compiler_wl_GCJ=
10993 lt_prog_compiler_pic_GCJ=
10994 lt_prog_compiler_static_GCJ=
10996 echo "$as_me:10996: checking for $compiler option to produce PIC" >&5
10997 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10999 if test "$GCC" = yes; then
11000 lt_prog_compiler_wl_GCJ='-Wl,'
11001 lt_prog_compiler_static_GCJ='-static'
11005 # All AIX code is PIC.
11006 if test "$host_cpu" = ia64; then
11007 # AIX 5 now supports IA64 processor
11008 lt_prog_compiler_static_GCJ='-Bstatic'
11013 # FIXME: we need at least 68020 code to build shared libraries, but
11014 # adding the `-m68020' flag to GCC prevents building anything better,
11016 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
11019 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11020 # PIC is the default for these OSes.
11023 cygwin* | mingw* | pw32* | os2*)
11024 # This hack is so that the source file can tell whether it is being
11025 # built for inclusion in a dll (and should export symbols for example).
11026 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11029 darwin* | rhapsody*)
11030 # PIC is the default on this platform
11031 # Common symbols not allowed in MH_DYLIB files
11032 lt_prog_compiler_pic_GCJ='-fno-common'
11036 # Just because we use GCC doesn't mean we suddenly get shared libraries
11037 # on systems that don't support them.
11038 lt_prog_compiler_can_build_shared_GCJ=no
11043 if test -d /usr/nec; then
11044 lt_prog_compiler_pic_GCJ=-Kconform_pic
11049 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11050 if test "$host_cpu" != ia64; then
11051 lt_prog_compiler_pic_GCJ='-fPIC'
11056 lt_prog_compiler_pic_GCJ='-fPIC'
11060 # PORTME Check for flag to pass linker flags through the system compiler.
11063 lt_prog_compiler_wl_GCJ='-Wl,'
11064 if test "$host_cpu" = ia64; then
11065 # AIX 5 now supports IA64 processor
11066 lt_prog_compiler_static_GCJ='-Bstatic'
11068 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
11072 cygwin* | mingw* | pw32* | os2*)
11073 # This hack is so that the source file can tell whether it is being
11074 # built for inclusion in a dll (and should export symbols for example).
11075 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
11078 hpux9* | hpux10* | hpux11*)
11079 lt_prog_compiler_wl_GCJ='-Wl,'
11080 if test "$host_cpu" != ia64; then
11081 lt_prog_compiler_pic_GCJ='+Z'
11083 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11084 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
11087 irix5* | irix6* | nonstopux*)
11088 lt_prog_compiler_wl_GCJ='-Wl,'
11089 # PIC (with -KPIC) is the default.
11090 lt_prog_compiler_static_GCJ='-non_shared'
11094 lt_prog_compiler_pic_GCJ='-KPIC'
11095 lt_prog_compiler_static_GCJ='-Bstatic'
11098 osf3* | osf4* | osf5*)
11099 lt_prog_compiler_wl_GCJ='-Wl,'
11100 # All OSF/1 code is PIC.
11101 lt_prog_compiler_static_GCJ='-non_shared'
11105 lt_prog_compiler_pic_GCJ='-Kpic'
11106 lt_prog_compiler_static_GCJ='-dn'
11110 lt_prog_compiler_wl_GCJ='-Wl,'
11111 lt_prog_compiler_pic_GCJ='-KPIC'
11112 lt_prog_compiler_static_GCJ='-Bstatic'
11116 lt_prog_compiler_wl_GCJ='-Qoption ld '
11117 lt_prog_compiler_pic_GCJ='-PIC'
11118 lt_prog_compiler_static_GCJ='-Bstatic'
11121 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11122 if test "x$host_vendor" = xsni; then
11123 lt_prog_compiler_wl_GCJ='-LD'
11125 lt_prog_compiler_wl_GCJ='-Wl,'
11127 lt_prog_compiler_pic_GCJ='-KPIC'
11128 lt_prog_compiler_static_GCJ='-Bstatic'
11132 if test -d /usr/nec ;then
11133 lt_prog_compiler_pic_GCJ='-Kconform_pic'
11134 lt_prog_compiler_static_GCJ='-Bstatic'
11139 lt_prog_compiler_pic_GCJ='-pic'
11140 lt_prog_compiler_static_GCJ='-Bstatic'
11144 lt_prog_compiler_can_build_shared_GCJ=no
11149 echo "$as_me:11149: result: $lt_prog_compiler_pic_GCJ" >&5
11150 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
11153 # Check to make sure the PIC flag actually works.
11155 if test -n "$lt_prog_compiler_pic_GCJ"; then
11156 echo "$as_me:11156: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
11157 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
11158 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 lt_prog_compiler_pic_works_GCJ=no
11162 ac_outfile=conftest.$ac_objext
11163 save_CFLAGS="$CFLAGS"
11164 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
11165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11166 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11167 # The compiler can only warn and ignore the option if not recognized
11168 # So say no if there are warnings
11169 if test -s conftest.err; then
11170 # Append any errors to the config.log.
11171 cat conftest.err 1>&5
11173 lt_prog_compiler_pic_works_GCJ=yes
11177 CFLAGS="$save_CFLAGS"
11180 echo "$as_me:11180: result: $lt_prog_compiler_pic_works_GCJ" >&5
11181 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
11183 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
11184 case $lt_prog_compiler_pic_GCJ in
11186 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
11189 lt_prog_compiler_pic_GCJ=
11190 lt_prog_compiler_can_build_shared_GCJ=no
11195 # For platforms which do not support PIC, -DPIC is meaningless:
11197 lt_prog_compiler_pic_GCJ=
11200 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
11204 echo "$as_me:11204: checking if $compiler supports -c -o file.$ac_objext" >&5
11205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11206 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 lt_cv_prog_compiler_c_o_GCJ=no
11210 $rm -r conftest 2>/dev/null
11214 save_GCJFLAGS="$GCJFLAGS"
11215 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
11216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11218 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11219 # that will create temporary files in the current directory regardless of
11220 # the output directory. Thus, making CWD read-only will cause this test
11221 # to fail, enabling locking or at least warning the user not to do parallel
11225 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
11227 # The compiler can only warn and ignore the option if not recognized
11228 # So say no if there are warnings
11229 if test -s out/conftest.err; then
11230 # Append any errors to the config.log.
11231 cat out/conftest.err 1>&5
11233 lt_cv_prog_compiler_c_o_GCJ=yes
11236 GCJFLAGS="$save_GCJFLAGS"
11238 $rm conftest* out/*
11245 echo "$as_me:11245: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
11246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
11248 hard_links="nottested"
11249 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
11250 # do not overwrite the value of need_locks provided by the user
11251 echo "$as_me:11251: checking if we can lock with hard links" >&5
11252 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11257 ln conftest.a conftest.b 2>&5 || hard_links=no
11258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11259 echo "$as_me:11259: result: $hard_links" >&5
11260 echo "${ECHO_T}$hard_links" >&6
11261 if test "$hard_links" = no; then
11262 { echo "$as_me:11262: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11263 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11270 echo "$as_me:11270: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11274 allow_undefined_flag_GCJ=
11277 archive_cmds_need_lc_GCJ=
11278 archive_expsym_cmds_GCJ=
11279 old_archive_From_new_cmds_GCJ=
11280 old_archive_from_expsyms_cmds_GCJ=
11281 export_dynamic_flag_spec_GCJ=
11282 whole_archive_flag_spec_GCJ=
11283 thread_safe_flag_spec_GCJ=
11284 hardcode_libdir_flag_spec_GCJ=
11285 hardcode_libdir_separator_GCJ=
11286 hardcode_direct_GCJ=no
11287 hardcode_minus_L_GCJ=no
11288 hardcode_shlibpath_var_GCJ=unsupported
11289 link_all_deplibs_GCJ=unknown
11290 always_export_symbols_GCJ=no
11291 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
11292 # include_expsyms should be a list of space-separated symbols to be *always*
11293 # included in the symbol list
11294 include_expsyms_GCJ=
11295 # exclude_expsyms can be an egrep regular expression of symbols to exclude
11296 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11298 # as well as any symbol that contains `d'.
11299 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
11300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11301 # platforms (ab)use it in PIC code, but their linkers get confused if
11302 # the symbol is explicitly referenced. Since portable code cannot
11303 # rely on this symbol name, it's probably fine to never include it in
11304 # preloaded symbol tables.
11305 extract_expsyms_cmds=
11308 cygwin* | mingw* | pw32*)
11309 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11310 # When not using gcc, we currently assume that we are using
11311 # Microsoft Visual C++.
11312 if test "$GCC" != yes; then
11322 if test "$with_gnu_ld" = yes; then
11323 # If archive_cmds runs LD, not CC, wlarc should be empty
11326 # See if GNU ld supports shared libraries.
11328 aix3* | aix4* | aix5*)
11329 # On AIX/PPC, the GNU linker is very broken
11330 if test "$host_cpu" != ia64; then
11334 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11335 *** to be unable to reliably create shared libraries on AIX.
11336 *** Therefore, libtool is disabling shared libraries support. If you
11337 *** really care for shared libraries, you may want to modify your PATH
11338 *** so that a non-GNU linker is found, and then restart.
11345 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)'
11346 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11347 hardcode_minus_L_GCJ=yes
11349 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11350 # that the semantics of dynamic libraries on AmigaOS, at least up
11351 # to version 4, is to share data among multiple programs linked
11352 # with the same dynamic library. Since this doesn't match the
11353 # behavior of shared libraries on other platforms, we can't use
11359 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11360 allow_undefined_flag_GCJ=unsupported
11361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11362 # support --undefined. This deserves some investigation. FIXME
11363 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11369 cygwin* | mingw* | pw32*)
11370 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
11371 # no search path for DLLs.
11372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11373 allow_undefined_flag_GCJ=unsupported
11374 always_export_symbols_GCJ=yes
11376 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
11377 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
11378 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
11379 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
11380 else $CC -o impgen impgen.c ; fi)~
11381 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
11383 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
11385 # cygwin and mingw dlls have different entry points and sets of symbols
11387 # FIXME: what about values for MSVC?
11388 dll_entry=__cygwin_dll_entry@12
11389 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
11393 dll_entry=_DllMainCRTStartup@12
11394 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
11398 # mingw and cygwin differ, and it's simplest to just exclude the union
11399 # of the two symbol sets.
11400 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
11402 # recent cygwin and mingw systems supply a stub DllMain which the user
11403 # can override, but on older systems we have to supply one (in ltdll.c)
11404 if test "x$lt_cv_need_dllmain" = "xyes"; then
11405 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
11406 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~
11407 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
11413 # Extract the symbol export list from an `--export-all' def file,
11414 # then regenerate the def file from the symbol export list, so that
11415 # the compiled dll only exports the symbol export list.
11416 # Be careful not to strip the DATA tag left by newer dlltools.
11417 export_symbols_cmds_GCJ="$ltdll_cmds"'
11418 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
11419 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
11421 # If the export-symbols file already is a .def file (1st line
11422 # is EXPORTS), use it as is.
11423 # If DATA tags from a recent dlltool are present, honour them!
11424 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
11425 cp $export_symbols $output_objdir/$soname-def;
11427 echo EXPORTS > $output_objdir/$soname-def;
11429 cat $export_symbols | while read symbol; do
11430 set dummy \$symbol;
11432 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
11433 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
11435 _lt_hint=`expr 1 + \$_lt_hint`;
11439 $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~
11440 $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~
11441 $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~
11442 $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~
11443 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
11447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11448 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11451 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11457 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
11461 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11462 *** create shared libraries on Solaris systems. Therefore, libtool
11463 *** is disabling shared libraries support. We urge you to upgrade GNU
11464 *** binutils to release 2.9.1 or newer. Another option is to modify
11465 *** your PATH or compiler configuration so that the native linker is
11466 *** used, and then restart.
11469 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11478 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11480 hardcode_direct_GCJ=yes
11481 hardcode_shlibpath_var_GCJ=no
11485 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11487 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11494 if test "$ld_shlibs_GCJ" = yes; then
11495 runpath_var=LD_RUN_PATH
11496 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
11497 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
11499 cygwin* | mingw* | pw32*)
11500 # dlltool doesn't understand --whole-archive et. al.
11501 whole_archive_flag_spec_GCJ=
11504 # ancient GNU ld didn't support --whole-archive et. al.
11505 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
11506 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11508 whole_archive_flag_spec_GCJ=
11514 # PORTME fill in a description of your system's linker (not GNU ld)
11517 allow_undefined_flag_GCJ=unsupported
11518 always_export_symbols_GCJ=yes
11519 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'
11520 # Note: this linker hardcodes the directories in LIBPATH if there
11521 # are no directories specified by -L.
11522 hardcode_minus_L_GCJ=yes
11523 if test "$GCC" = yes && test -z "$link_static_flag"; then
11524 # Neither direct hardcoding nor static linking is supported with a
11526 hardcode_direct_GCJ=unsupported
11531 if test "$host_cpu" = ia64; then
11532 # On IA64, the linker does run time linking by default, so we don't
11533 # have to do anything special.
11534 aix_use_runtimelinking=no
11535 exp_sym_flag='-Bexport'
11538 # If we're using GNU nm, then we don't want the "-C" option.
11539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11540 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
11541 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'
11543 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'
11546 # KDE requires run time linking. Make it the default.
11547 aix_use_runtimelinking=yes
11548 exp_sym_flag='-bexport'
11549 no_entry_flag='-bnoentry'
11552 # When large executables or shared objects are built, AIX ld can
11553 # have problems creating the table of contents. If linking a library
11554 # or program results in "error TOC overflow" add -mminimal-toc to
11555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11558 archive_cmds_GCJ=''
11559 hardcode_direct_GCJ=yes
11560 hardcode_libdir_separator_GCJ=':'
11561 link_all_deplibs_GCJ=yes
11563 if test "$GCC" = yes; then
11564 case $host_os in aix4.012|aix4.012.*)
11565 # We only want to do this on AIX 4.2 and lower, the check
11566 # below for broken collect2 doesn't work under 4.3+
11567 collect2name=`${CC} -print-prog-name=collect2`
11568 if test -f "$collect2name" && \
11569 strings "$collect2name" | grep resolve_lib_name >/dev/null
11571 # We have reworked collect2
11572 hardcode_direct_GCJ=yes
11574 # We have old collect2
11575 hardcode_direct_GCJ=unsupported
11576 # It fails to find uninstalled libraries when the uninstalled
11577 # path is not listed in the libpath. Setting hardcode_minus_L
11578 # to unsupported forces relinking
11579 hardcode_minus_L_GCJ=yes
11580 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11581 hardcode_libdir_separator_GCJ=
11584 shared_flag='-shared'
11587 if test "$host_cpu" = ia64; then
11588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11589 # chokes on -Wl,-G. The following line is correct:
11592 if test "$aix_use_runtimelinking" = yes; then
11593 shared_flag='-qmkshrobj ${wl}-G'
11595 shared_flag='-qmkshrobj'
11600 # Let the compiler handle the export list.
11601 always_export_symbols_GCJ=no
11602 if test "$aix_use_runtimelinking" = yes; then
11603 # Warning - without using the other runtime loading flags (-brtl),
11604 # -berok will link without error, but may produce a broken library.
11605 allow_undefined_flag_GCJ='-berok'
11606 # Determine the default libpath from the value encoded in an empty executable.
11607 cat >conftest.$ac_ext <<_ACEOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:11620: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:11623: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:11626: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:11629: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11634 # Check for a 64-bit object if we didn't find anything.
11635 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; }
11638 echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11645 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"
11646 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"
11648 if test "$host_cpu" = ia64; then
11649 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
11650 allow_undefined_flag_GCJ="-z nodefs"
11651 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"
11653 # Determine the default libpath from the value encoded in an empty executable.
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line 11655 "configure"
11656 #include "confdefs.h"
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:11670: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:11673: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:11676: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11681 # Check for a 64-bit object if we didn't find anything.
11682 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; }
11685 echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11691 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
11692 # Warning - without using the other run time loading flags,
11693 # -berok will link without error, but may produce a broken library.
11694 no_undefined_flag_GCJ=' ${wl}-bernotok'
11695 allow_undefined_flag_GCJ=' ${wl}-berok'
11696 # -bexpall does not export symbols beginning with underscore (_)
11697 always_export_symbols_GCJ=yes
11698 # Exported symbols can be pulled into shared objects from archives
11699 whole_archive_flag_spec_GCJ=' '
11700 archive_cmds_need_lc_GCJ=yes
11701 # This is similar to how AIX traditionally builds it's shared libraries.
11702 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'
11708 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)'
11709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11710 hardcode_minus_L_GCJ=yes
11711 # see comment about different semantics on the GNU ld section
11716 export_dynamic_flag_spec_GCJ=-rdynamic
11719 cygwin* | mingw* | pw32*)
11720 # When not using gcc, we currently assume that we are using
11721 # Microsoft Visual C++.
11722 # hardcode_libdir_flag_spec is actually meaningless, as there is
11723 # no search path for DLLs.
11724 hardcode_libdir_flag_spec_GCJ=' '
11725 allow_undefined_flag_GCJ=unsupported
11726 # Tell ltmain to make .lib files, not .a files.
11728 # FIXME: Setting linknames here is a bad hack.
11729 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11730 # The linker will automatically build a .lib file if we build a DLL.
11731 old_archive_From_new_cmds_GCJ='true'
11732 # FIXME: Should let the user specify the lib program.
11733 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
11734 fix_srcfile_path='`cygpath -w "$srcfile"`'
11737 darwin* | rhapsody*)
11739 rhapsody* | darwin1.[012])
11740 allow_undefined_flag_GCJ='-undefined suppress'
11743 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
11747 # FIXME: Relying on posixy $() will cause problems for
11748 # cross-compilation, but unfortunately the echo tests do not
11749 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
11750 # `"' quotes if we put them in here... so don't!
11751 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'
11752 # We need to add '_' to the symbols in $export_symbols first
11753 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
11754 hardcode_direct_GCJ=yes
11755 hardcode_shlibpath_var_GCJ=no
11756 whole_archive_flag_spec_GCJ='-all_load $convenience'
11760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11762 hardcode_shlibpath_var_GCJ=no
11769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11770 # support. Future versions do this automatically, but an explicit c++rt0.o
11771 # does not break anything, and helps significantly (at the cost of a little
11774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11775 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11776 hardcode_direct_GCJ=yes
11777 hardcode_shlibpath_var_GCJ=no
11780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11782 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11783 hardcode_direct_GCJ=yes
11784 hardcode_minus_L_GCJ=yes
11785 hardcode_shlibpath_var_GCJ=no
11788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11790 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11792 hardcode_direct_GCJ=yes
11793 hardcode_shlibpath_var_GCJ=no
11796 hpux9* | hpux10* | hpux11*)
11797 if test "$GCC" = yes; then
11800 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'
11803 if test "$host_cpu" = ia64; then
11804 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11806 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11813 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'
11816 if test "$host_cpu" = ia64; then
11817 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11819 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11824 if test "$host_cpu" = ia64; then
11825 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11826 hardcode_direct_GCJ=no
11827 hardcode_shlibpath_var_GCJ=no
11829 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator_GCJ=:
11831 hardcode_direct_GCJ=yes
11833 # hardcode_minus_L: Not really in the search PATH,
11834 # but as the default location of the library.
11835 hardcode_minus_L_GCJ=yes
11836 export_dynamic_flag_spec_GCJ='${wl}-E'
11839 irix5* | irix6* | nonstopux*)
11840 if test "$GCC" = yes; then
11841 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'
11843 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'
11845 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11846 hardcode_libdir_separator_GCJ=:
11847 link_all_deplibs_GCJ=yes
11851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11852 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11854 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11856 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11857 hardcode_direct_GCJ=yes
11858 hardcode_shlibpath_var_GCJ=no
11862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11863 hardcode_direct_GCJ=yes
11864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11865 hardcode_libdir_separator_GCJ=:
11866 hardcode_shlibpath_var_GCJ=no
11870 hardcode_direct_GCJ=yes
11871 hardcode_shlibpath_var_GCJ=no
11873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11874 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
11875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11876 export_dynamic_flag_spec_GCJ='${wl}-E'
11879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11884 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
11885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
11892 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11893 hardcode_minus_L_GCJ=yes
11894 allow_undefined_flag_GCJ=unsupported
11895 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'
11896 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11900 if test "$GCC" = yes; then
11901 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11902 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'
11904 allow_undefined_flag_GCJ=' -expect_unresolved \*'
11905 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'
11907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11908 hardcode_libdir_separator_GCJ=:
11911 osf4* | osf5*) # as osf3* with the addition of -msym flag
11912 if test "$GCC" = yes; then
11913 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
11914 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'
11915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
11917 allow_undefined_flag_GCJ=' -expect_unresolved \*'
11918 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'
11919 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~
11920 $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'
11922 # Both c and cxx compiler support -rpath directly
11923 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
11925 hardcode_libdir_separator_GCJ=:
11929 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11930 hardcode_shlibpath_var_GCJ=no
11931 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
11932 runpath_var=LD_RUN_PATH
11933 hardcode_runpath_var=yes
11937 no_undefined_flag_GCJ=' -z text'
11938 if test "$GCC" = yes; then
11939 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11941 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11943 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11947 hardcode_libdir_flag_spec_GCJ='-R$libdir'
11948 hardcode_shlibpath_var_GCJ=no
11950 solaris2.[0-5] | solaris2.[0-5].*) ;;
11951 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
11952 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
11954 link_all_deplibs_GCJ=yes
11958 if test "x$host_vendor" = xsequent; then
11959 # Use $CC to link under sequent, because it throws in some extra .o
11960 # files that make .init and .fini sections work.
11961 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11963 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
11966 hardcode_direct_GCJ=yes
11967 hardcode_minus_L_GCJ=yes
11968 hardcode_shlibpath_var_GCJ=no
11972 if test "x$host_vendor" = xsni; then
11973 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
11974 hardcode_direct_GCJ=yes # is this really true???
11976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
11979 runpath_var='LD_RUN_PATH'
11980 hardcode_shlibpath_var_GCJ=no
11984 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11985 hardcode_shlibpath_var_GCJ=no
11986 export_dynamic_flag_spec_GCJ='-Bexport'
11990 if test -d /usr/nec; then
11991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11992 hardcode_shlibpath_var_GCJ=no
11993 runpath_var=LD_RUN_PATH
11994 hardcode_runpath_var=yes
12000 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12001 hardcode_direct_GCJ=yes
12002 hardcode_minus_L_GCJ=no
12003 hardcode_shlibpath_var_GCJ=no
12004 hardcode_runpath_var=yes
12005 runpath_var=LD_RUN_PATH
12008 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12009 no_undefined_flag_GCJ='${wl}-z ${wl}text'
12010 if test "$GCC" = yes; then
12011 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12013 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 runpath_var='LD_RUN_PATH'
12016 hardcode_shlibpath_var_GCJ=no
12020 no_undefined_flag_GCJ=' -z text'
12021 # $CC -shared without GNU ld will not create a library from C++
12022 # object files and a static libstdc++, better avoid it by now
12023 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12024 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12026 hardcode_libdir_flag_spec_GCJ=
12027 hardcode_shlibpath_var_GCJ=no
12028 runpath_var='LD_RUN_PATH'
12032 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12034 hardcode_shlibpath_var_GCJ=no
12043 echo "$as_me:12043: result: $ld_shlibs_GCJ" >&5
12044 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
12045 test "$ld_shlibs_GCJ" = no && can_build_shared=no
12047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12048 if test "$GCC" = yes; then
12049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12053 # Do we need to explicitly link libc?
12055 archive_cmds_need_lc_GCJ=yes
12056 if test "$enable_shared" = yes && test "$GCC" = yes; then
12057 case $archive_cmds_GCJ in
12059 # FIXME: we may have to deal with multi-command sequences.
12062 # Test whether the compiler implicitly links with -lc since on some
12063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12064 # to ld, don't add -lc before -lgcc.
12065 echo "$as_me:12065: checking whether -lc should be explicitly linked in" >&5
12066 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12068 echo 'static int dummy;' > conftest.$ac_ext
12070 if { (eval echo "$as_me:12070: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>&5
12073 echo "$as_me:12073: \$? = $ac_status" >&5
12074 (exit $ac_status); } 2>conftest.err; then
12077 libobjs=conftest.$ac_objext
12079 wl=$lt_prog_compiler_wl_GCJ
12085 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
12086 allow_undefined_flag_GCJ=
12087 if { (eval echo "$as_me:12087: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12088 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 (exit $ac_status); }
12093 archive_cmds_need_lc_GCJ=no
12095 archive_cmds_need_lc_GCJ=yes
12097 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
12099 cat conftest.err 1>&5
12102 echo "$as_me:12102: result: $archive_cmds_need_lc_GCJ" >&5
12103 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
12108 echo "$as_me:12108: checking how to hardcode library paths into programs" >&5
12109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12110 hardcode_action_GCJ=
12111 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
12112 test -n "$runpath_var GCJ"; then
12114 # We can hardcode non-existant directories.
12115 if test "$hardcode_direct_GCJ" != no &&
12116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12117 # have to relink, otherwise we might link with an installed library
12118 # when we should be linking with a yet-to-be-installed one
12119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
12120 test "$hardcode_minus_L_GCJ" != no; then
12121 # Linking always hardcodes the temporary library directory.
12122 hardcode_action_GCJ=relink
12124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12125 hardcode_action_GCJ=immediate
12128 # We cannot hardcode anything, or else we can only hardcode existing
12130 hardcode_action_GCJ=unsupported
12132 echo "$as_me:12132: result: $hardcode_action_GCJ" >&5
12133 echo "${ECHO_T}$hardcode_action_GCJ" >&6
12135 if test "$hardcode_action_GCJ" = relink; then
12136 # Fast installation is not supported
12137 enable_fast_install=no
12138 elif test "$shlibpath_overrides_runpath" = yes ||
12139 test "$enable_shared" = no; then
12140 # Fast installation is not necessary
12141 enable_fast_install=needless
12146 echo "$as_me:12146: checking whether stripping libraries is possible" >&5
12147 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12148 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12149 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12150 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12151 echo "$as_me:12151: result: yes" >&5
12152 echo "${ECHO_T}yes" >&6
12154 echo "$as_me:12154: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12158 echo "$as_me:12158: checking dynamic linker characteristics" >&5
12159 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12160 library_names_spec=
12161 libname_spec='lib$name'
12164 postuninstall_cmds=
12168 shlibpath_overrides_runpath=unknown
12170 dynamic_linker="$host_os ld.so"
12171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12173 need_lib_prefix=unknown
12174 hardcode_into_libs=no
12176 # when you set need_version to no, make sure it does not cause -set_version
12177 # flags to be left without arguments
12178 need_version=unknown
12183 library_names_spec='${libname}${release}.so$versuffix $libname.a'
12184 shlibpath_var=LIBPATH
12186 # AIX 3 has no versioning support, so we append a major version to the name.
12187 soname_spec='${libname}${release}.so$major'
12192 if test "$host_cpu" = ia64; then
12193 # AIX 5 supports IA64
12194 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
12195 shlibpath_var=LD_LIBRARY_PATH
12197 # With GCC up to 2.95.x, collect2 would create an import file
12198 # for dependence libraries. The import file would start with
12199 # the line `#! .'. This would cause the generated library to
12200 # depend on `.', always an invalid library. This was fixed in
12201 # development snapshots of GCC prior to 3.0.
12203 aix4 | aix4.[01] | aix4.[01].*)
12204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12206 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12209 can_build_shared=no
12213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12214 # soname into executable. Probably we can add versioning support to
12215 # collect2, so additional links can be useful in future.
12216 if test "$aix_use_runtimelinking" = yes; then
12217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12218 # instead of lib<name>.a to let people know that these are not
12219 # typical AIX shared libraries.
12220 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12222 # We preserve .a as extension for shared libraries through AIX4.2
12223 # and later when we are not doing run time linking.
12224 library_names_spec='${libname}${release}.a $libname.a'
12225 soname_spec='${libname}${release}.so$major'
12227 shlibpath_var=LIBPATH
12232 library_names_spec='$libname.ixlibrary $libname.a'
12233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12234 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'
12238 library_names_spec='${libname}.so'
12239 dynamic_linker="$host_os ld.so"
12240 shlibpath_var=LIBRARY_PATH
12246 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12247 soname_spec='${libname}${release}.so$major'
12248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12252 # the default ld.so.conf also contains /usr/contrib/lib and
12253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12254 # libtool to hard-code these into programs
12257 cygwin* | mingw* | pw32*)
12258 version_type=windows
12261 case $GCC,$host_os in
12263 library_names_spec='$libname.dll.a'
12264 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
12265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12266 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
12267 dldir=$destdir/`dirname \$dlpath`~
12268 test -d \$dldir || mkdir -p \$dldir~
12269 $install_prog .libs/$dlname \$dldir/$dlname'
12270 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
12271 dlpath=$dir/\$dldll~
12275 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
12276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
12277 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
12278 # It is most probably a Windows format PATH printed by
12279 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12280 # path with ; separators, and with drive letters. We can handle the
12281 # drive letters (cygwin fileutils understands them), so leave them,
12282 # especially as we might pass files found there to a mingw objdump,
12283 # which wouldn't understand a cygwinified path. Ahh.
12284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
12286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
12290 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
12293 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
12296 dynamic_linker='Win32 ld.exe'
12297 # FIXME: first we should search . and the directory the executable is in
12301 darwin* | rhapsody*)
12302 dynamic_linker="$host_os dyld"
12303 version_type=darwin
12306 # FIXME: Relying on posixy $() will cause problems for
12307 # cross-compilation, but unfortunately the echo tests do not
12308 # yet detect zsh echo's removal of \ escapes.
12309 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)'
12310 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
12311 shlibpath_overrides_runpath=yes
12312 shlibpath_var=DYLD_LIBRARY_PATH
12319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12320 soname_spec='${libname}${release}.so$major'
12321 shlibpath_var=LD_LIBRARY_PATH
12329 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12330 version_type=freebsd-$objformat
12331 case $version_type in
12333 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12338 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
12342 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12347 freebsd3.01* | freebsdelf3.01*)
12348 shlibpath_overrides_runpath=yes
12349 hardcode_into_libs=yes
12352 shlibpath_overrides_runpath=no
12353 hardcode_into_libs=yes
12362 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
12363 soname_spec='${libname}${release}.so$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 hardcode_into_libs=yes
12368 hpux9* | hpux10* | hpux11*)
12369 # Give a soname corresponding to the major version so that dld.sl refuses to
12370 # link against other versions.
12374 if test "$host_cpu" = ia64; then
12375 hardcode_into_libs=yes
12376 dynamic_linker="$host_os dld.so"
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12379 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12380 soname_spec='${libname}${release}.so$major'
12381 if test "X$HPUX_IA64_MODE" = X32; then
12382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12388 dynamic_linker="$host_os dld.sl"
12389 shlibpath_var=SHLIB_PATH
12390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
12392 soname_spec='${libname}${release}.sl$major'
12394 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12395 postinstall_cmds='chmod 555 $lib'
12398 irix5* | irix6* | nonstopux*)
12400 nonstopux*) version_type=nonstopux ;;
12401 *) version_type=irix ;;
12405 soname_spec='${libname}${release}.so$major'
12406 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
12408 irix5* | nonstopux*)
12409 libsuff= shlibsuff=
12412 case $LD in # libtool.m4 will add one of these switches to LD
12413 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
12414 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
12415 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
12416 *) libsuff= shlibsuff= libmagic=never-match;;
12420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12421 shlibpath_overrides_runpath=no
12422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12426 # No shared lib support for Linux oldld, aout, or coff.
12427 linux*oldld* | linux*aout* | linux*coff*)
12431 # This must be Linux ELF.
12436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12437 soname_spec='${libname}${release}.so$major'
12438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12440 if test "x$LINUX_64_MODE" = x64; then
12441 # Some platforms are per default 64-bit, so there's no /lib64
12442 if test -d /lib64; then
12446 shlibpath_var=LD_LIBRARY_PATH
12447 shlibpath_overrides_runpath=no
12448 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12449 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12450 # This implies no fast_install, which is unacceptable.
12451 # Some rework will be needed to allow for fast_install
12452 # before this can be enabled.
12453 hardcode_into_libs=yes
12455 # We used to test for /lib/ld.so.1 and disable shared libraries on
12456 # powerpc, because MkLinux only supported shared libraries with the
12457 # GNU dynamic linker. Since this was broken with cross compilers,
12458 # most powerpc-linux boxes support dynamic linking these days and
12459 # people can always --disable-shared, the test was removed, and we
12460 # assume the GNU/Linux dynamic linker is in use.
12461 dynamic_linker='GNU/Linux ld.so'
12468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12469 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12471 dynamic_linker='NetBSD (a.out) ld.so'
12473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
12474 soname_spec='${libname}${release}.so$major'
12475 dynamic_linker='NetBSD ld.elf_so'
12477 shlibpath_var=LD_LIBRARY_PATH
12478 shlibpath_overrides_runpath=yes
12479 hardcode_into_libs=yes
12484 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=yes
12493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12494 soname_spec='${libname}${release}.so$major'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 shlibpath_overrides_runpath=yes
12503 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12505 shlibpath_var=LD_LIBRARY_PATH
12506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12508 openbsd2.[89] | openbsd2.[89].*)
12509 shlibpath_overrides_runpath=no
12512 shlibpath_overrides_runpath=yes
12516 shlibpath_overrides_runpath=yes
12521 libname_spec='$name'
12523 library_names_spec='$libname.dll $libname.a'
12524 dynamic_linker='OS/2 ld.exe'
12525 shlibpath_var=LIBPATH
12528 osf3* | osf4* | osf5*)
12532 soname_spec='${libname}${release}.so'
12533 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12534 shlibpath_var=LD_LIBRARY_PATH
12535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12541 soname_spec='${libname}${release}.so$major'
12542 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12543 shlibpath_var=LD_LIBRARY_PATH
12550 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12551 soname_spec='${libname}${release}.so$major'
12552 shlibpath_var=LD_LIBRARY_PATH
12553 shlibpath_overrides_runpath=yes
12554 hardcode_into_libs=yes
12555 # ldd complains unless libraries are executable
12556 postinstall_cmds='chmod +x $lib'
12561 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 shlibpath_overrides_runpath=yes
12565 if test "$with_gnu_ld" = yes; then
12571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12573 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12574 soname_spec='${libname}${release}.so$major'
12575 shlibpath_var=LD_LIBRARY_PATH
12576 case $host_vendor in
12578 shlibpath_overrides_runpath=no
12583 shlibpath_overrides_runpath=no
12584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12590 if test -d /usr/nec ;then
12592 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
12593 soname_spec='$libname.so.$major'
12594 shlibpath_var=LD_LIBRARY_PATH
12600 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12601 soname_spec='${libname}${release}.so$major'
12602 shlibpath_var=LD_LIBRARY_PATH
12609 echo "$as_me:12609: result: $dynamic_linker" >&5
12610 echo "${ECHO_T}$dynamic_linker" >&6
12611 test "$dynamic_linker" = no && can_build_shared=no
12613 if test "x$enable_dlopen" != xyes; then
12614 enable_dlopen=unknown
12615 enable_dlopen_self=unknown
12616 enable_dlopen_self_static=unknown
12623 lt_cv_dlopen="load_add_on"
12625 lt_cv_dlopen_self=yes
12628 cygwin* | mingw* | pw32*)
12629 lt_cv_dlopen="LoadLibrary"
12634 echo "$as_me:12634: checking for shl_load" >&5
12635 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12636 if test "${ac_cv_func_shl_load+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 cat >conftest.$ac_ext <<_ACEOF
12640 #line 12640 "configure"
12641 #include "confdefs.h"
12642 /* System header to define __stub macros and hopefully few prototypes,
12643 which can conflict with char shl_load (); below. */
12644 #include <assert.h>
12645 /* Override any gcc2 internal prototype to avoid an error. */
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12657 /* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:12671: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>&5
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (eval echo "$as_me:12677: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:12680: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 ac_cv_func_shl_load=yes
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ac_cv_func_shl_load=no
12688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12690 echo "$as_me:12690: result: $ac_cv_func_shl_load" >&5
12691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12692 if test $ac_cv_func_shl_load = yes; then
12693 lt_cv_dlopen="shl_load"
12695 echo "$as_me:12695: checking for shl_load in -ldld" >&5
12696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_check_lib_save_LIBS=$LIBS
12702 cat >conftest.$ac_ext <<_ACEOF
12703 #line 12703 "configure"
12704 #include "confdefs.h"
12706 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (eval echo "$as_me:12722: \"$ac_link\"") >&5
12723 (eval $ac_link) 2>&5
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
12727 { ac_try='test -s conftest$ac_exeext'
12728 { (eval echo "$as_me:12728: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:12731: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_lib_dld_shl_load=yes
12735 echo "$as_me: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 ac_cv_lib_dld_shl_load=no
12739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12742 echo "$as_me:12742: result: $ac_cv_lib_dld_shl_load" >&5
12743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12744 if test $ac_cv_lib_dld_shl_load = yes; then
12745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12747 echo "$as_me:12747: checking for dlopen" >&5
12748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12749 if test "${ac_cv_func_dlopen+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 cat >conftest.$ac_ext <<_ACEOF
12753 #line 12753 "configure"
12754 #include "confdefs.h"
12755 /* System header to define __stub macros and hopefully few prototypes,
12756 which can conflict with char dlopen (); below. */
12757 #include <assert.h>
12758 /* Override any gcc2 internal prototype to avoid an error. */
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12770 /* The GNU C library defines this for functions which it implements
12771 to always fail with ENOSYS. Some functions are actually named
12772 something starting with __ and the normal name is an alias. */
12773 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:12784: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>&5
12787 echo "$as_me:12787: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (eval echo "$as_me:12790: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:12793: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_func_dlopen=yes
12797 echo "$as_me: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12799 ac_cv_func_dlopen=no
12801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12803 echo "$as_me:12803: result: $ac_cv_func_dlopen" >&5
12804 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12805 if test $ac_cv_func_dlopen = yes; then
12806 lt_cv_dlopen="dlopen"
12808 echo "$as_me:12808: checking for dlopen in -ldl" >&5
12809 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12816 #line 12816 "configure"
12817 #include "confdefs.h"
12819 /* Override any gcc2 internal prototype to avoid an error. */
12823 /* We use char because int might match the return type of a gcc2
12824 builtin and then its argument prototype would still apply. */
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (eval echo "$as_me:12835: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>&5
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -s conftest$ac_exeext'
12841 { (eval echo "$as_me:12841: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:12844: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_lib_dl_dlopen=yes
12848 echo "$as_me: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 ac_cv_lib_dl_dlopen=no
12852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12855 echo "$as_me:12855: result: $ac_cv_lib_dl_dlopen" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12857 if test $ac_cv_lib_dl_dlopen = yes; then
12858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12860 echo "$as_me:12860: checking for dlopen in -lsvld" >&5
12861 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-lsvld $LIBS"
12867 cat >conftest.$ac_ext <<_ACEOF
12868 #line 12868 "configure"
12869 #include "confdefs.h"
12871 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (eval echo "$as_me:12887: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>&5
12890 echo "$as_me:12890: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest$ac_exeext'
12893 { (eval echo "$as_me:12893: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:12896: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_lib_svld_dlopen=yes
12900 echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 ac_cv_lib_svld_dlopen=no
12904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:12907: result: $ac_cv_lib_svld_dlopen" >&5
12908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12909 if test $ac_cv_lib_svld_dlopen = yes; then
12910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12912 echo "$as_me:12912: checking for dld_link in -ldld" >&5
12913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_check_lib_save_LIBS=$LIBS
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line 12920 "configure"
12921 #include "confdefs.h"
12923 /* Override any gcc2 internal prototype to avoid an error. */
12927 /* We use char because int might match the return type of a gcc2
12928 builtin and then its argument prototype would still apply. */
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (eval echo "$as_me:12939: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>&5
12942 echo "$as_me:12942: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:12945: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:12948: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_lib_dld_dld_link=yes
12952 echo "$as_me: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 ac_cv_lib_dld_dld_link=no
12956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12957 LIBS=$ac_check_lib_save_LIBS
12959 echo "$as_me:12959: result: $ac_cv_lib_dld_dld_link" >&5
12960 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12961 if test $ac_cv_lib_dld_dld_link = yes; then
12962 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12978 if test "x$lt_cv_dlopen" != xno; then
12984 case $lt_cv_dlopen in
12986 save_CPPFLAGS="$CPPFLAGS"
12987 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12989 save_LDFLAGS="$LDFLAGS"
12990 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12993 LIBS="$lt_cv_dlopen_libs $LIBS"
12995 echo "$as_me:12995: checking whether a program can dlopen itself" >&5
12996 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12997 if test "${lt_cv_dlopen_self+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 if test "$cross_compiling" = yes; then :
13001 lt_cv_dlopen_self=cross
13003 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13004 lt_status=$lt_dlunknown
13005 cat > conftest.$ac_ext <<EOF
13006 #line 13006 "configure"
13007 #include "confdefs.h"
13016 # define LT_DLGLOBAL RTLD_GLOBAL
13019 # define LT_DLGLOBAL DL_GLOBAL
13021 # define LT_DLGLOBAL 0
13025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13026 find out it does not work in some platform. */
13027 #ifndef LT_DLLAZY_OR_NOW
13029 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13032 # define LT_DLLAZY_OR_NOW DL_LAZY
13035 # define LT_DLLAZY_OR_NOW RTLD_NOW
13038 # define LT_DLLAZY_OR_NOW DL_NOW
13040 # define LT_DLLAZY_OR_NOW 0
13048 extern "C" void exit (int);
13051 void fnord() { int i=42;}
13054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13055 int status = $lt_dlunknown;
13059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13060 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13061 /* dlclose (self); */
13067 if { (eval echo "$as_me:13067: \"$ac_link\"") >&5
13068 (eval $ac_link) 2>&5
13070 echo "$as_me:13070: \$? = $ac_status" >&5
13071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13072 (./conftest; exit; ) 2>/dev/null
13074 case x$lt_status in
13075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13077 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13080 # compilation failed
13081 lt_cv_dlopen_self=no
13087 echo "$as_me:13087: result: $lt_cv_dlopen_self" >&5
13088 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13090 if test "x$lt_cv_dlopen_self" = xyes; then
13091 LDFLAGS="$LDFLAGS $link_static_flag"
13092 echo "$as_me:13092: checking whether a statically linked program can dlopen itself" >&5
13093 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13094 if test "${lt_cv_dlopen_self_static+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 if test "$cross_compiling" = yes; then :
13098 lt_cv_dlopen_self_static=cross
13100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13101 lt_status=$lt_dlunknown
13102 cat > conftest.$ac_ext <<EOF
13103 #line 13103 "configure"
13104 #include "confdefs.h"
13113 # define LT_DLGLOBAL RTLD_GLOBAL
13116 # define LT_DLGLOBAL DL_GLOBAL
13118 # define LT_DLGLOBAL 0
13122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13123 find out it does not work in some platform. */
13124 #ifndef LT_DLLAZY_OR_NOW
13126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13129 # define LT_DLLAZY_OR_NOW DL_LAZY
13132 # define LT_DLLAZY_OR_NOW RTLD_NOW
13135 # define LT_DLLAZY_OR_NOW DL_NOW
13137 # define LT_DLLAZY_OR_NOW 0
13145 extern "C" void exit (int);
13148 void fnord() { int i=42;}
13151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13152 int status = $lt_dlunknown;
13156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13157 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13158 /* dlclose (self); */
13164 if { (eval echo "$as_me:13164: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>&5
13167 echo "$as_me:13167: \$? = $ac_status" >&5
13168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13169 (./conftest; exit; ) 2>/dev/null
13171 case x$lt_status in
13172 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13173 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13174 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13177 # compilation failed
13178 lt_cv_dlopen_self_static=no
13184 echo "$as_me:13184: result: $lt_cv_dlopen_self_static" >&5
13185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13188 CPPFLAGS="$save_CPPFLAGS"
13189 LDFLAGS="$save_LDFLAGS"
13194 case $lt_cv_dlopen_self in
13195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13196 *) enable_dlopen_self=unknown ;;
13199 case $lt_cv_dlopen_self_static in
13200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13201 *) enable_dlopen_self_static=unknown ;;
13205 # The else clause should only fire when bootstrapping the
13206 # libtool distribution, otherwise you forgot to ship ltmain.sh
13207 # with your package, and you will get complaints that there are
13208 # no rules to generate ltmain.sh.
13209 if test -f "$ltmain"; then
13210 # Now quote all the things that may contain metacharacters while being
13211 # careful not to overquote the AC_SUBSTed values. We take copies of the
13212 # variables and quote the copies for generation of the libtool script.
13213 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13216 deplibs_check_method reload_flag reload_cmds need_locks \
13217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13218 lt_cv_sys_global_symbol_to_c_name_address \
13219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13220 old_postinstall_cmds old_postuninstall_cmds \
13224 lt_prog_compiler_wl_GCJ \
13225 lt_prog_compiler_pic_GCJ \
13226 lt_prog_compiler_static_GCJ \
13227 lt_prog_compiler_no_builtin_flag_GCJ \
13228 export_dynamic_flag_spec_GCJ \
13229 thread_safe_flag_spec_GCJ \
13230 whole_archive_flag_spec_GCJ \
13231 old_archive_cmds_GCJ \
13232 old_archive_from_new_cmds_GCJ \
13233 predep_objects_GCJ \
13234 postdep_objects_GCJ \
13237 compiler_lib_search_path_GCJ \
13239 archive_expsym_cmds_GCJ \
13240 postinstall_cmds_GCJ \
13241 postuninstall_cmds_GCJ \
13242 old_archive_from_expsyms_cmds_GCJ \
13243 allow_undefined_flag_GCJ \
13244 no_undefined_flag_GCJ \
13245 export_symbols_cmds_GCJ \
13246 hardcode_libdir_flag_spec_GCJ \
13247 hardcode_libdir_separator_GCJ \
13248 lt_cv_prog_compiler_c_o_GCJ \
13249 exclude_expsyms_GCJ \
13250 include_expsyms_GCJ; do
13253 old_archive_cmds_GCJ | \
13254 old_archive_from_new_cmds_GCJ | \
13255 archive_cmds_GCJ | \
13256 archive_expsym_cmds_GCJ | \
13257 old_archive_from_expsyms_cmds_GCJ | \
13258 export_symbols_cmds_GCJ | \
13259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13260 postinstall_cmds | postuninstall_cmds | \
13261 old_postinstall_cmds | old_postuninstall_cmds | \
13262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13263 # Double-quote double-evaled strings.
13264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13273 *'\$0 --fallback-echo"')
13274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13280 cat <<__EOF__ >> "$cfgfile"
13281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13285 # Shell to use when invoking shell scripts.
13288 # Whether or not to build shared libraries.
13289 build_libtool_libs=$enable_shared
13291 # Whether or not to build static libraries.
13292 build_old_libs=$enable_static
13294 # Whether or not to add -lc for building shared libraries.
13295 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
13297 # Whether or not to optimize for fast installation.
13298 fast_install=$enable_fast_install
13301 host_alias=$host_alias
13304 # An echo program that does not interpret backslashes.
13309 AR_FLAGS=$lt_AR_FLAGS
13314 # A language-specific compiler.
13315 CC=$lt_compiler_GCJ
13317 # Is the compiler the GNU C compiler?
13320 # The linker used to build libraries.
13323 # Whether we need hard or soft links.
13326 # A BSD-compatible nm program.
13329 # A sed program that does not truncate output.
13332 # A symbol stripping program
13335 # Used to examine libraries when file_magic_cmd begins "file"
13336 MAGIC_CMD=$MAGIC_CMD
13338 # Used on cygwin: DLL creation program.
13341 # Used on cygwin: object dumper.
13344 # Used on cygwin: assembler.
13347 # The name of the directory that contains temporary libtool files.
13350 # How to create reloadable object files.
13351 reload_flag=$lt_reload_flag
13352 reload_cmds=$lt_reload_cmds
13354 # How to pass a linker flag through the compiler.
13355 wl=$lt_lt_prog_compiler_wl_GCJ
13357 # Object file suffix (normally "o").
13358 objext="$ac_objext"
13360 # Old archive suffix (normally "a").
13363 # Executable file suffix (normally "").
13366 # Additional compiler flags for building library objects.
13367 pic_flag=$lt_lt_prog_compiler_pic_GCJ
13370 # What is the maximum length of a command?
13371 max_cmd_len=$lt_cv_sys_max_cmd_len
13373 # Does compiler simultaneously support -c and -o options?
13374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
13376 # Must we lock files when doing compilation ?
13377 need_locks=$lt_need_locks
13379 # Do we need the lib prefix for modules?
13380 need_lib_prefix=$need_lib_prefix
13382 # Do we need a version for libraries?
13383 need_version=$need_version
13385 # Whether dlopen is supported.
13386 dlopen_support=$enable_dlopen
13388 # Whether dlopen of programs is supported.
13389 dlopen_self=$enable_dlopen_self
13391 # Whether dlopen of statically linked programs is supported.
13392 dlopen_self_static=$enable_dlopen_self_static
13394 # Compiler flag to prevent dynamic linking.
13395 link_static_flag=$lt_lt_prog_compiler_static_GCJ
13397 # Compiler flag to turn off builtin functions.
13398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
13400 # Compiler flag to allow reflexive dlopens.
13401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
13403 # Compiler flag to generate shared objects directly from archives.
13404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
13406 # Compiler flag to generate thread-safe objects.
13407 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
13409 # Library versioning type.
13410 version_type=$version_type
13412 # Format of library name prefix.
13413 libname_spec=$lt_libname_spec
13415 # List of archive names. First name is the real one, the rest are links.
13416 # The last name is the one that the linker finds with -lNAME.
13417 library_names_spec=$lt_library_names_spec
13419 # The coded name of the library, if different from the real name.
13420 soname_spec=$lt_soname_spec
13422 # Commands used to build and install an old-style archive.
13424 old_archive_cmds=$lt_old_archive_cmds_GCJ
13425 old_postinstall_cmds=$lt_old_postinstall_cmds
13426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13428 # Create an old-style archive from a shared archive.
13429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
13431 # Create a temporary old-style archive to link instead of a shared archive.
13432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
13434 # Commands used to build and install a shared archive.
13435 archive_cmds=$lt_archive_cmds_GCJ
13436 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
13437 postinstall_cmds=$lt_postinstall_cmds
13438 postuninstall_cmds=$lt_postuninstall_cmds
13440 # Commands to strip libraries.
13441 old_striplib=$lt_old_striplib
13442 striplib=$lt_striplib
13444 # Dependencies to place before the objects being linked to create a
13446 predep_objects=$lt_predep_objects_GCJ
13448 # Dependencies to place after the objects being linked to create a
13450 postdep_objects=$lt_postdep_objects_GCJ
13452 # Dependencies to place before the objects being linked to create a
13454 predeps=$lt_predeps_GCJ
13456 # Dependencies to place after the objects being linked to create a
13458 postdeps=$lt_postdeps_GCJ
13460 # The library search path used internally by the compiler when linking
13461 # a shared library.
13462 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
13464 # Method to check whether dependent libraries are shared objects.
13465 deplibs_check_method=$lt_deplibs_check_method
13467 # Command to use when deplibs_check_method == file_magic.
13468 file_magic_cmd=$lt_file_magic_cmd
13470 # Flag that allows shared libraries with undefined symbols to be built.
13471 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
13473 # Flag that forces no undefined symbols.
13474 no_undefined_flag=$lt_no_undefined_flag_GCJ
13476 # Commands used to finish a libtool library installation in a directory.
13477 finish_cmds=$lt_finish_cmds
13479 # Same as above, but a single script fragment to be evaled but not shown.
13480 finish_eval=$lt_finish_eval
13482 # Take the output of nm and produce a listing of raw symbols and C names.
13483 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13485 # Transform the output of nm in a proper C declaration
13486 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13488 # Transform the output of nm in a C name address pair
13489 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13491 # This is the shared library runtime path variable.
13492 runpath_var=$runpath_var
13494 # This is the shared library path variable.
13495 shlibpath_var=$shlibpath_var
13497 # Is shlibpath searched before the hard-coded library search path?
13498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13500 # How to hardcode a shared library path into an executable.
13501 hardcode_action=$hardcode_action_GCJ
13503 # Whether we should hardcode library paths into libraries.
13504 hardcode_into_libs=$hardcode_into_libs
13506 # Flag to hardcode \$libdir into a binary during linking.
13507 # This must work even if \$libdir does not exist.
13508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
13510 # Whether we need a single -rpath flag with a separated argument.
13511 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
13513 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
13514 # resulting binary.
13515 hardcode_direct=$hardcode_direct_GCJ
13517 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13518 # resulting binary.
13519 hardcode_minus_L=$hardcode_minus_L_GCJ
13521 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13522 # the resulting binary.
13523 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
13525 # Variables whose values should be saved in libtool wrapper scripts and
13526 # restored at relink time.
13527 variables_saved_for_relink="$variables_saved_for_relink"
13529 # Whether libtool must link a program against all its dependency libraries.
13530 link_all_deplibs=$link_all_deplibs_GCJ
13532 # Compile-time system search path for libraries
13533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13535 # Run-time system search path for libraries
13536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13538 # Fix the shell variable \$srcfile for the compiler.
13539 fix_srcfile_path="$fix_srcfile_path_GCJ"
13541 # Set to yes if exported symbols are required.
13542 always_export_symbols=$always_export_symbols_GCJ
13544 # The commands to list exported symbols.
13545 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
13547 # The commands to extract the exported symbol list from a shared archive.
13548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13550 # Symbols that should not be listed in the preloaded symbols.
13551 exclude_expsyms=$lt_exclude_expsyms_GCJ
13553 # Symbols that must always be exported.
13554 include_expsyms=$lt_include_expsyms_GCJ
13556 # ### END LIBTOOL TAG CONFIG: $tagname
13561 # If there is no Makefile yet, we rely on a make rule to execute
13562 # `config.status --recheck' to rerun these tests and create the
13563 # libtool script then.
13564 test -f Makefile && make "$ltmain"
13568 ac_cpp='$CPP $CPPFLAGS'
13569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579 # Source file extension for RC test sources.
13582 # Object file extension for compiled RC test sources.
13586 # Code to be used in simple compile tests
13587 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13589 # Code to be used in simple link tests
13590 lt_simple_link_test_code="$lt_simple_compile_test_code"
13592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13594 # If no C compiler was specified, use CC.
13597 # Allow CC to be a program name with arguments.
13601 # Allow CC to be a program name with arguments.
13607 lt_cv_prog_compiler_c_o_RC=yes
13609 # The else clause should only fire when bootstrapping the
13610 # libtool distribution, otherwise you forgot to ship ltmain.sh
13611 # with your package, and you will get complaints that there are
13612 # no rules to generate ltmain.sh.
13613 if test -f "$ltmain"; then
13614 # Now quote all the things that may contain metacharacters while being
13615 # careful not to overquote the AC_SUBSTed values. We take copies of the
13616 # variables and quote the copies for generation of the libtool script.
13617 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
13618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13620 deplibs_check_method reload_flag reload_cmds need_locks \
13621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13622 lt_cv_sys_global_symbol_to_c_name_address \
13623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13624 old_postinstall_cmds old_postuninstall_cmds \
13628 lt_prog_compiler_wl_RC \
13629 lt_prog_compiler_pic_RC \
13630 lt_prog_compiler_static_RC \
13631 lt_prog_compiler_no_builtin_flag_RC \
13632 export_dynamic_flag_spec_RC \
13633 thread_safe_flag_spec_RC \
13634 whole_archive_flag_spec_RC \
13635 old_archive_cmds_RC \
13636 old_archive_from_new_cmds_RC \
13637 predep_objects_RC \
13638 postdep_objects_RC \
13641 compiler_lib_search_path_RC \
13643 archive_expsym_cmds_RC \
13644 postinstall_cmds_RC \
13645 postuninstall_cmds_RC \
13646 old_archive_from_expsyms_cmds_RC \
13647 allow_undefined_flag_RC \
13648 no_undefined_flag_RC \
13649 export_symbols_cmds_RC \
13650 hardcode_libdir_flag_spec_RC \
13651 hardcode_libdir_separator_RC \
13652 lt_cv_prog_compiler_c_o_RC \
13653 exclude_expsyms_RC \
13654 include_expsyms_RC; do
13657 old_archive_cmds_RC | \
13658 old_archive_from_new_cmds_RC | \
13659 archive_cmds_RC | \
13660 archive_expsym_cmds_RC | \
13661 old_archive_from_expsyms_cmds_RC | \
13662 export_symbols_cmds_RC | \
13663 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13664 postinstall_cmds | postuninstall_cmds | \
13665 old_postinstall_cmds | old_postuninstall_cmds | \
13666 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13667 # Double-quote double-evaled strings.
13668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13677 *'\$0 --fallback-echo"')
13678 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13684 cat <<__EOF__ >> "$cfgfile"
13685 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13689 # Shell to use when invoking shell scripts.
13692 # Whether or not to build shared libraries.
13693 build_libtool_libs=$enable_shared
13695 # Whether or not to build static libraries.
13696 build_old_libs=$enable_static
13698 # Whether or not to add -lc for building shared libraries.
13699 build_libtool_need_lc=$archive_cmds_need_lc_RC
13701 # Whether or not to optimize for fast installation.
13702 fast_install=$enable_fast_install
13705 host_alias=$host_alias
13708 # An echo program that does not interpret backslashes.
13713 AR_FLAGS=$lt_AR_FLAGS
13718 # A language-specific compiler.
13721 # Is the compiler the GNU C compiler?
13724 # The linker used to build libraries.
13727 # Whether we need hard or soft links.
13730 # A BSD-compatible nm program.
13733 # A sed program that does not truncate output.
13736 # A symbol stripping program
13739 # Used to examine libraries when file_magic_cmd begins "file"
13740 MAGIC_CMD=$MAGIC_CMD
13742 # Used on cygwin: DLL creation program.
13745 # Used on cygwin: object dumper.
13748 # Used on cygwin: assembler.
13751 # The name of the directory that contains temporary libtool files.
13754 # How to create reloadable object files.
13755 reload_flag=$lt_reload_flag
13756 reload_cmds=$lt_reload_cmds
13758 # How to pass a linker flag through the compiler.
13759 wl=$lt_lt_prog_compiler_wl_RC
13761 # Object file suffix (normally "o").
13762 objext="$ac_objext"
13764 # Old archive suffix (normally "a").
13767 # Executable file suffix (normally "").
13770 # Additional compiler flags for building library objects.
13771 pic_flag=$lt_lt_prog_compiler_pic_RC
13774 # What is the maximum length of a command?
13775 max_cmd_len=$lt_cv_sys_max_cmd_len
13777 # Does compiler simultaneously support -c and -o options?
13778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
13780 # Must we lock files when doing compilation ?
13781 need_locks=$lt_need_locks
13783 # Do we need the lib prefix for modules?
13784 need_lib_prefix=$need_lib_prefix
13786 # Do we need a version for libraries?
13787 need_version=$need_version
13789 # Whether dlopen is supported.
13790 dlopen_support=$enable_dlopen
13792 # Whether dlopen of programs is supported.
13793 dlopen_self=$enable_dlopen_self
13795 # Whether dlopen of statically linked programs is supported.
13796 dlopen_self_static=$enable_dlopen_self_static
13798 # Compiler flag to prevent dynamic linking.
13799 link_static_flag=$lt_lt_prog_compiler_static_RC
13801 # Compiler flag to turn off builtin functions.
13802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
13804 # Compiler flag to allow reflexive dlopens.
13805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
13807 # Compiler flag to generate shared objects directly from archives.
13808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
13810 # Compiler flag to generate thread-safe objects.
13811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
13813 # Library versioning type.
13814 version_type=$version_type
13816 # Format of library name prefix.
13817 libname_spec=$lt_libname_spec
13819 # List of archive names. First name is the real one, the rest are links.
13820 # The last name is the one that the linker finds with -lNAME.
13821 library_names_spec=$lt_library_names_spec
13823 # The coded name of the library, if different from the real name.
13824 soname_spec=$lt_soname_spec
13826 # Commands used to build and install an old-style archive.
13828 old_archive_cmds=$lt_old_archive_cmds_RC
13829 old_postinstall_cmds=$lt_old_postinstall_cmds
13830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832 # Create an old-style archive from a shared archive.
13833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
13835 # Create a temporary old-style archive to link instead of a shared archive.
13836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
13838 # Commands used to build and install a shared archive.
13839 archive_cmds=$lt_archive_cmds_RC
13840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
13841 postinstall_cmds=$lt_postinstall_cmds
13842 postuninstall_cmds=$lt_postuninstall_cmds
13844 # Commands to strip libraries.
13845 old_striplib=$lt_old_striplib
13846 striplib=$lt_striplib
13848 # Dependencies to place before the objects being linked to create a
13850 predep_objects=$lt_predep_objects_RC
13852 # Dependencies to place after the objects being linked to create a
13854 postdep_objects=$lt_postdep_objects_RC
13856 # Dependencies to place before the objects being linked to create a
13858 predeps=$lt_predeps_RC
13860 # Dependencies to place after the objects being linked to create a
13862 postdeps=$lt_postdeps_RC
13864 # The library search path used internally by the compiler when linking
13865 # a shared library.
13866 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
13868 # Method to check whether dependent libraries are shared objects.
13869 deplibs_check_method=$lt_deplibs_check_method
13871 # Command to use when deplibs_check_method == file_magic.
13872 file_magic_cmd=$lt_file_magic_cmd
13874 # Flag that allows shared libraries with undefined symbols to be built.
13875 allow_undefined_flag=$lt_allow_undefined_flag_RC
13877 # Flag that forces no undefined symbols.
13878 no_undefined_flag=$lt_no_undefined_flag_RC
13880 # Commands used to finish a libtool library installation in a directory.
13881 finish_cmds=$lt_finish_cmds
13883 # Same as above, but a single script fragment to be evaled but not shown.
13884 finish_eval=$lt_finish_eval
13886 # Take the output of nm and produce a listing of raw symbols and C names.
13887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13889 # Transform the output of nm in a proper C declaration
13890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13892 # Transform the output of nm in a C name address pair
13893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13895 # This is the shared library runtime path variable.
13896 runpath_var=$runpath_var
13898 # This is the shared library path variable.
13899 shlibpath_var=$shlibpath_var
13901 # Is shlibpath searched before the hard-coded library search path?
13902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13904 # How to hardcode a shared library path into an executable.
13905 hardcode_action=$hardcode_action_RC
13907 # Whether we should hardcode library paths into libraries.
13908 hardcode_into_libs=$hardcode_into_libs
13910 # Flag to hardcode \$libdir into a binary during linking.
13911 # This must work even if \$libdir does not exist.
13912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
13914 # Whether we need a single -rpath flag with a separated argument.
13915 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
13917 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
13918 # resulting binary.
13919 hardcode_direct=$hardcode_direct_RC
13921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13922 # resulting binary.
13923 hardcode_minus_L=$hardcode_minus_L_RC
13925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13926 # the resulting binary.
13927 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
13929 # Variables whose values should be saved in libtool wrapper scripts and
13930 # restored at relink time.
13931 variables_saved_for_relink="$variables_saved_for_relink"
13933 # Whether libtool must link a program against all its dependency libraries.
13934 link_all_deplibs=$link_all_deplibs_RC
13936 # Compile-time system search path for libraries
13937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13939 # Run-time system search path for libraries
13940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13942 # Fix the shell variable \$srcfile for the compiler.
13943 fix_srcfile_path="$fix_srcfile_path_RC"
13945 # Set to yes if exported symbols are required.
13946 always_export_symbols=$always_export_symbols_RC
13948 # The commands to list exported symbols.
13949 export_symbols_cmds=$lt_export_symbols_cmds_RC
13951 # The commands to extract the exported symbol list from a shared archive.
13952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13954 # Symbols that should not be listed in the preloaded symbols.
13955 exclude_expsyms=$lt_exclude_expsyms_RC
13957 # Symbols that must always be exported.
13958 include_expsyms=$lt_include_expsyms_RC
13960 # ### END LIBTOOL TAG CONFIG: $tagname
13965 # If there is no Makefile yet, we rely on a make rule to execute
13966 # `config.status --recheck' to rerun these tests and create the
13967 # libtool script then.
13968 test -f Makefile && make "$ltmain"
13972 ac_cpp='$CPP $CPPFLAGS'
13973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982 { { echo "$as_me:13982: error: Unsupported tag name: $tagname" >&5
13983 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
13984 { (exit 1); exit 1; }; }
13988 # Append the new tag name to the list of available tags.
13989 available_tags="$available_tags $tagname"
13994 # Now substitute the updated list of available tags.
13995 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
13996 mv "${ofile}T" "$ofile"
14000 { { echo "$as_me:14000: error: unable to update list of available tagged configurations." >&5
14001 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14002 { (exit 1); exit 1; }; }
14006 # This can be used to rebuild libtool when needed
14007 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14009 # Always use our own libtool.
14010 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
14012 # Prevent multiple expansion
14015 ac_cpp='$CPP $CPPFLAGS'
14016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14028 # find the maximum length of command line arguments
14029 echo "$as_me:14029: checking the maximum length of command line arguments" >&5
14030 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14031 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 # On DJGPP, this test can blow up pretty badly due to problems in libc
14040 # (any single argument exceeding 2000 bytes causes a buffer overrun
14041 # during glob expansion). Even if it were fixed, the result of this
14042 # check would be larger than it should be.
14043 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14047 # Under GNU Hurd, this test is not required because there is
14048 # no limit to the length of command line arguments.
14049 # Libtool will interpret -1 as no limit whatsoever
14050 lt_cv_sys_max_cmd_len=-1;
14054 # If test is not a shell built-in, we'll probably end up computing a
14055 # maximum length that is only half of the actual maximum length, but
14057 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
14058 = "XX$testring") >/dev/null 2>&1 &&
14059 new_result=`expr "X$testring" : ".*" 2>&1` &&
14060 lt_cv_sys_max_cmd_len=$new_result &&
14061 test $i != 17 # 1/2 MB should be enough
14064 testring=$testring$testring
14067 # Add a significant safety factor because C++ compilers can tack on massive
14068 # amounts of additional arguments before passing them to the linker.
14069 # It appears as though 1/2 is a usable value.
14070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14076 if test -n $lt_cv_sys_max_cmd_len ; then
14077 echo "$as_me:14077: result: $lt_cv_sys_max_cmd_len" >&5
14078 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14080 echo "$as_me:14080: result: none" >&5
14081 echo "${ECHO_T}none" >&6
14084 # Check for command to grab the raw symbol name followed by C symbol from nm.
14085 echo "$as_me:14085: checking command to parse $NM output from $compiler object" >&5
14086 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14087 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 # These are sane defaults that work on at least a few old systems.
14092 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14094 # Character class describing NM global symbol codes.
14095 symcode='[BCDEGRST]'
14097 # Regexp to match symbols that can be accessed directly from C.
14098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14100 # Transform the above into a raw symbol and a C symbol.
14101 symxfrm='\1 \2\3 \3'
14103 # Transform an extracted symbol line into a proper C declaration
14104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14106 # Transform an extracted symbol line into symbol name and symbol address
14107 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'"
14109 # Define system-specific variables.
14114 cygwin* | mingw* | pw32*)
14115 symcode='[ABCDGISTW]'
14117 hpux*) # Its linker distinguishes data from code symbols
14118 if test "$host_cpu" = ia64; then
14119 symcode='[ABCDEGRST]'
14121 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14122 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'"
14124 irix* | nonstopux*)
14125 symcode='[BCDEGRST]'
14135 # Handle CRLF in mingw tool chain
14139 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14143 # If we're using GNU nm, then use its standard symbol codes.
14144 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
14145 symcode='[ABCDGISTW]'
14148 # Try without a prefix undercore, then with it.
14149 for ac_symprfx in "" "_"; do
14151 # Write the raw and C identifiers.
14152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
14154 # Check to see that the pipe works correctly.
14158 cat > conftest.$ac_ext <<EOF
14163 void nm_test_func(){}
14167 int main(){nm_test_var='a';nm_test_func();return(0);}
14170 if { (eval echo "$as_me:14170: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>&5
14173 echo "$as_me:14173: \$? = $ac_status" >&5
14174 (exit $ac_status); }; then
14175 # Now try to grab the symbols.
14177 if { (eval echo "$as_me:14177: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14180 echo "$as_me:14180: \$? = $ac_status" >&5
14181 (exit $ac_status); } && test -s "$nlist"; then
14182 # Try sorting and uniquifying the output.
14183 if sort "$nlist" | uniq > "$nlist"T; then
14184 mv -f "$nlist"T "$nlist"
14189 # Make sure that we snagged all the symbols we need.
14190 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
14191 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
14192 cat <<EOF > conftest.$ac_ext
14198 # Now generate the symbol file.
14199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14201 cat <<EOF >> conftest.$ac_ext
14202 #if defined (__STDC__) && __STDC__
14203 # define lt_ptr_t void *
14205 # define lt_ptr_t char *
14209 /* The mapping between symbol names and symbols. */
14214 lt_preloaded_symbols[] =
14217 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14218 cat <<\EOF >> conftest.$ac_ext
14226 # Now try linking the two files.
14227 mv conftest.$ac_objext conftstm.$ac_objext
14228 lt_save_LIBS="$LIBS"
14229 lt_save_CFLAGS="$CFLAGS"
14230 LIBS="conftstm.$ac_objext"
14231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14232 if { (eval echo "$as_me:14232: \"$ac_link\"") >&5
14233 (eval $ac_link) 2>&5
14235 echo "$as_me:14235: \$? = $ac_status" >&5
14236 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14239 LIBS="$lt_save_LIBS"
14240 CFLAGS="$lt_save_CFLAGS"
14242 echo "cannot find nm_test_func in $nlist" >&5
14245 echo "cannot find nm_test_var in $nlist" >&5
14248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14251 echo "$progname: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14254 rm -f conftest* conftst*
14256 # Do not use the global_symbol_pipe unless it works.
14257 if test "$pipe_works" = yes; then
14260 lt_cv_sys_global_symbol_pipe=
14266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14267 lt_cv_sys_global_symbol_to_cdecl=
14269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14270 echo "$as_me:14270: result: failed" >&5
14271 echo "${ECHO_T}failed" >&6
14273 echo "$as_me:14273: result: ok" >&5
14274 echo "${ECHO_T}ok" >&6
14277 echo "$as_me:14277: checking for objdir" >&5
14278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14279 if test "${lt_cv_objdir+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 rm -f .libs 2>/dev/null
14283 mkdir .libs 2>/dev/null
14284 if test -d .libs; then
14287 # MS-DOS does not allow filenames that begin with a dot.
14290 rmdir .libs 2>/dev/null
14292 echo "$as_me:14292: result: $lt_cv_objdir" >&5
14293 echo "${ECHO_T}$lt_cv_objdir" >&6
14294 objdir=$lt_cv_objdir
14298 # AIX sometimes has problems with the GCC collect2 program. For some
14299 # reason, if we set the COLLECT_NAMES environment variable, the problems
14300 # vanish in a puff of smoke.
14301 if test "X${COLLECT_NAMES+set}" != Xset; then
14303 export COLLECT_NAMES
14308 # Sed substitution that helps us do robust quoting. It backslashifies
14309 # metacharacters that are still active within double-quoted strings.
14310 Xsed='sed -e s/^X//'
14311 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14313 # Same as above, but do not quote variable references.
14314 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14316 # Sed substitution to delay expansion of an escaped shell variable in a
14317 # double_quote_subst'ed string.
14318 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14320 # Sed substitution to avoid accidental globbing in evaled expressions
14321 no_glob_subst='s/\*/\\\*/g'
14326 # Global variables:
14327 default_ofile=libtool
14328 can_build_shared=yes
14330 # All known linkers require a `.a' archive for static linking (except M$VC,
14331 # which needs '.lib').
14333 ltmain="$ac_aux_dir/ltmain.sh"
14334 ofile="$default_ofile"
14335 with_gnu_ld="$lt_cv_prog_gnu_ld"
14337 if test -n "$ac_tool_prefix"; then
14338 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14340 echo "$as_me:14340: checking for $ac_word" >&5
14341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14342 if test "${ac_cv_prog_RANLIB+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 if test -n "$RANLIB"; then
14346 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14348 ac_save_IFS=$IFS; IFS=$ac_path_separator
14350 for ac_dir in $ac_dummy; do
14352 test -z "$ac_dir" && ac_dir=.
14353 $as_executable_p "$ac_dir/$ac_word" || continue
14354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14355 echo "$as_me:14355: found $ac_dir/$ac_word" >&5
14361 RANLIB=$ac_cv_prog_RANLIB
14362 if test -n "$RANLIB"; then
14363 echo "$as_me:14363: result: $RANLIB" >&5
14364 echo "${ECHO_T}$RANLIB" >&6
14366 echo "$as_me:14366: result: no" >&5
14367 echo "${ECHO_T}no" >&6
14371 if test -z "$ac_cv_prog_RANLIB"; then
14372 ac_ct_RANLIB=$RANLIB
14373 # Extract the first word of "ranlib", so it can be a program name with args.
14374 set dummy ranlib; ac_word=$2
14375 echo "$as_me:14375: checking for $ac_word" >&5
14376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14377 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 if test -n "$ac_ct_RANLIB"; then
14381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14383 ac_save_IFS=$IFS; IFS=$ac_path_separator
14385 for ac_dir in $ac_dummy; do
14387 test -z "$ac_dir" && ac_dir=.
14388 $as_executable_p "$ac_dir/$ac_word" || continue
14389 ac_cv_prog_ac_ct_RANLIB="ranlib"
14390 echo "$as_me:14390: found $ac_dir/$ac_word" >&5
14394 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14398 if test -n "$ac_ct_RANLIB"; then
14399 echo "$as_me:14399: result: $ac_ct_RANLIB" >&5
14400 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14402 echo "$as_me:14402: result: no" >&5
14403 echo "${ECHO_T}no" >&6
14406 RANLIB=$ac_ct_RANLIB
14408 RANLIB="$ac_cv_prog_RANLIB"
14411 if test -n "$ac_tool_prefix"; then
14412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14413 set dummy ${ac_tool_prefix}strip; ac_word=$2
14414 echo "$as_me:14414: checking for $ac_word" >&5
14415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14416 if test "${ac_cv_prog_STRIP+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 if test -n "$STRIP"; then
14420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14422 ac_save_IFS=$IFS; IFS=$ac_path_separator
14424 for ac_dir in $ac_dummy; do
14426 test -z "$ac_dir" && ac_dir=.
14427 $as_executable_p "$ac_dir/$ac_word" || continue
14428 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14429 echo "$as_me:14429: found $ac_dir/$ac_word" >&5
14435 STRIP=$ac_cv_prog_STRIP
14436 if test -n "$STRIP"; then
14437 echo "$as_me:14437: result: $STRIP" >&5
14438 echo "${ECHO_T}$STRIP" >&6
14440 echo "$as_me:14440: result: no" >&5
14441 echo "${ECHO_T}no" >&6
14445 if test -z "$ac_cv_prog_STRIP"; then
14447 # Extract the first word of "strip", so it can be a program name with args.
14448 set dummy strip; ac_word=$2
14449 echo "$as_me:14449: checking for $ac_word" >&5
14450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14451 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 if test -n "$ac_ct_STRIP"; then
14455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14457 ac_save_IFS=$IFS; IFS=$ac_path_separator
14459 for ac_dir in $ac_dummy; do
14461 test -z "$ac_dir" && ac_dir=.
14462 $as_executable_p "$ac_dir/$ac_word" || continue
14463 ac_cv_prog_ac_ct_STRIP="strip"
14464 echo "$as_me:14464: found $ac_dir/$ac_word" >&5
14468 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14472 if test -n "$ac_ct_STRIP"; then
14473 echo "$as_me:14473: result: $ac_ct_STRIP" >&5
14474 echo "${ECHO_T}$ac_ct_STRIP" >&6
14476 echo "$as_me:14476: result: no" >&5
14477 echo "${ECHO_T}no" >&6
14482 STRIP="$ac_cv_prog_STRIP"
14486 old_CFLAGS="$CFLAGS"
14488 # Set sane defaults for various variables
14489 test -z "$AR" && AR=ar
14490 test -z "$AR_FLAGS" && AR_FLAGS=cru
14491 test -z "$AS" && AS=as
14492 test -z "$CC" && CC=cc
14493 test -z "$LTCC" && LTCC=$CC
14494 test -z "$DLLTOOL" && DLLTOOL=dlltool
14495 test -z "$LD" && LD=ld
14496 test -z "$LN_S" && LN_S="ln -s"
14497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14498 test -z "$NM" && NM=nm
14499 test -z "$SED" && SED=sed
14500 test -z "$OBJDUMP" && OBJDUMP=objdump
14501 test -z "$RANLIB" && RANLIB=:
14502 test -z "$STRIP" && STRIP=:
14503 test -z "$ac_objext" && ac_objext=o
14505 # Determine commands to create old-style static archives.
14506 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14507 old_postinstall_cmds='chmod 644 $oldlib'
14508 old_postuninstall_cmds=
14510 if test -n "$RANLIB"; then
14513 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
14516 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
14519 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14522 # Only perform the check for file, if the check method requires it
14523 case $deplibs_check_method in
14525 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14526 echo "$as_me:14526: checking for ${ac_tool_prefix}file" >&5
14527 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
14528 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14536 lt_save_MAGIC_CMD="$MAGIC_CMD"
14537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14539 for ac_dir in $ac_dummy; do
14541 test -z "$ac_dir" && ac_dir=.
14542 if test -f $ac_dir/${ac_tool_prefix}file; then
14543 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14544 if test -n "$file_magic_test_file"; then
14545 case $deplibs_check_method in
14547 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
14548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14550 egrep "$file_magic_regex" > /dev/null; then
14555 *** Warning: the command libtool uses to detect shared libraries,
14556 *** $file_magic_cmd, produces output that libtool cannot recognize.
14557 *** The result is that libtool may fail to recognize shared libraries
14558 *** as such. This will affect the creation of libtool libraries that
14559 *** depend on shared libraries, but programs linked with such libtool
14560 *** libraries will work regardless of this problem. Nevertheless, you
14561 *** may want to report the problem to your system manager and/or to
14562 *** bug-libtool@gnu.org
14572 MAGIC_CMD="$lt_save_MAGIC_CMD"
14577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14578 if test -n "$MAGIC_CMD"; then
14579 echo "$as_me:14579: result: $MAGIC_CMD" >&5
14580 echo "${ECHO_T}$MAGIC_CMD" >&6
14582 echo "$as_me:14582: result: no" >&5
14583 echo "${ECHO_T}no" >&6
14586 if test -z "$lt_cv_path_MAGIC_CMD"; then
14587 if test -n "$ac_tool_prefix"; then
14588 echo "$as_me:14588: checking for file" >&5
14589 echo $ECHO_N "checking for file... $ECHO_C" >&6
14590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14598 lt_save_MAGIC_CMD="$MAGIC_CMD"
14599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14601 for ac_dir in $ac_dummy; do
14603 test -z "$ac_dir" && ac_dir=.
14604 if test -f $ac_dir/file; then
14605 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14606 if test -n "$file_magic_test_file"; then
14607 case $deplibs_check_method in
14609 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
14610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14612 egrep "$file_magic_regex" > /dev/null; then
14617 *** Warning: the command libtool uses to detect shared libraries,
14618 *** $file_magic_cmd, produces output that libtool cannot recognize.
14619 *** The result is that libtool may fail to recognize shared libraries
14620 *** as such. This will affect the creation of libtool libraries that
14621 *** depend on shared libraries, but programs linked with such libtool
14622 *** libraries will work regardless of this problem. Nevertheless, you
14623 *** may want to report the problem to your system manager and/or to
14624 *** bug-libtool@gnu.org
14634 MAGIC_CMD="$lt_save_MAGIC_CMD"
14639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14640 if test -n "$MAGIC_CMD"; then
14641 echo "$as_me:14641: result: $MAGIC_CMD" >&5
14642 echo "${ECHO_T}$MAGIC_CMD" >&6
14644 echo "$as_me:14644: result: no" >&5
14645 echo "${ECHO_T}no" >&6
14658 enable_win32_dll=no
14660 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14661 if test "${enable_libtool_lock+set}" = set; then
14662 enableval="$enable_libtool_lock"
14665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14667 # Check whether --with-pic or --without-pic was given.
14668 if test "${with_pic+set}" = set; then
14669 withval="$with_pic"
14670 pic_mode="$withval"
14674 test -z "$pic_mode" && pic_mode=default
14676 # Use C for the default configuration in the libtool script
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14685 # Source file extension for C test sources.
14688 # Object file extension for compiled C test sources.
14692 # Code to be used in simple compile tests
14693 lt_simple_compile_test_code="int some_variable = 0;"
14695 # Code to be used in simple link tests
14696 lt_simple_link_test_code='main(){return(0);}'
14698 # If no C compiler was specified, use CC.
14701 # Allow CC to be a program name with arguments.
14706 # Check for any special shared library compilation flags.
14709 if test "$GCC" = no; then
14712 lt_prog_cc_shlib='-belf'
14716 if test -n "$lt_prog_cc_shlib"; then
14717 { echo "$as_me:14717: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
14718 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
14719 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
14721 { echo "$as_me:14721: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
14722 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
14723 lt_cv_prog_cc_can_build_shared=no
14728 # Check to make sure the static flag actually works.
14730 echo "$as_me:14730: checking if $compiler static flag $lt_prog_compiler_static works" >&5
14731 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
14732 if test "${lt_prog_compiler_static_works+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 lt_prog_compiler_static_works=no
14736 save_LDFLAGS="$LDFLAGS"
14737 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
14738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14740 # The compiler can only warn and ignore the option if not recognized
14741 # So say no if there are warnings
14742 if test -s conftest.err; then
14743 # Append any errors to the config.log.
14744 cat conftest.err 1>&5
14746 lt_prog_compiler_static_works=yes
14750 LDFLAGS="$save_LDFLAGS"
14753 echo "$as_me:14753: result: $lt_prog_compiler_static_works" >&5
14754 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
14756 if test x"$lt_prog_compiler_static_works" = xyes; then
14759 lt_prog_compiler_static=
14762 lt_prog_compiler_no_builtin_flag=
14764 if test "$GCC" = yes; then
14765 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14767 echo "$as_me:14767: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14768 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 lt_cv_prog_compiler_rtti_exceptions=no
14773 ac_outfile=conftest.$ac_objext
14774 save_CFLAGS="$CFLAGS"
14775 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
14776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14777 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14778 # The compiler can only warn and ignore the option if not recognized
14779 # So say no if there are warnings
14780 if test -s conftest.err; then
14781 # Append any errors to the config.log.
14782 cat conftest.err 1>&5
14784 lt_cv_prog_compiler_rtti_exceptions=yes
14788 CFLAGS="$save_CFLAGS"
14791 echo "$as_me:14791: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14792 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14794 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14795 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14802 lt_prog_compiler_wl=
14803 lt_prog_compiler_pic=
14804 lt_prog_compiler_static=
14806 echo "$as_me:14806: checking for $compiler option to produce PIC" >&5
14807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14809 if test "$GCC" = yes; then
14810 lt_prog_compiler_wl='-Wl,'
14811 lt_prog_compiler_static='-static'
14815 # All AIX code is PIC.
14816 if test "$host_cpu" = ia64; then
14817 # AIX 5 now supports IA64 processor
14818 lt_prog_compiler_static='-Bstatic'
14823 # FIXME: we need at least 68020 code to build shared libraries, but
14824 # adding the `-m68020' flag to GCC prevents building anything better,
14826 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14829 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14830 # PIC is the default for these OSes.
14833 cygwin* | mingw* | pw32* | os2*)
14834 # This hack is so that the source file can tell whether it is being
14835 # built for inclusion in a dll (and should export symbols for example).
14836 lt_prog_compiler_pic='-DDLL_EXPORT'
14839 darwin* | rhapsody*)
14840 # PIC is the default on this platform
14841 # Common symbols not allowed in MH_DYLIB files
14842 lt_prog_compiler_pic='-fno-common'
14846 # Just because we use GCC doesn't mean we suddenly get shared libraries
14847 # on systems that don't support them.
14848 lt_prog_compiler_can_build_shared=no
14853 if test -d /usr/nec; then
14854 lt_prog_compiler_pic=-Kconform_pic
14859 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
14860 if test "$host_cpu" != ia64; then
14861 lt_prog_compiler_pic='-fPIC'
14866 lt_prog_compiler_pic='-fPIC'
14870 # PORTME Check for flag to pass linker flags through the system compiler.
14873 lt_prog_compiler_wl='-Wl,'
14874 if test "$host_cpu" = ia64; then
14875 # AIX 5 now supports IA64 processor
14876 lt_prog_compiler_static='-Bstatic'
14878 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14882 cygwin* | mingw* | pw32* | os2*)
14883 # This hack is so that the source file can tell whether it is being
14884 # built for inclusion in a dll (and should export symbols for example).
14885 lt_prog_compiler_pic='-DDLL_EXPORT'
14888 hpux9* | hpux10* | hpux11*)
14889 lt_prog_compiler_wl='-Wl,'
14890 if test "$host_cpu" != ia64; then
14891 lt_prog_compiler_pic='+Z'
14893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14894 lt_prog_compiler_static='${wl}-a ${wl}archive'
14897 irix5* | irix6* | nonstopux*)
14898 lt_prog_compiler_wl='-Wl,'
14899 # PIC (with -KPIC) is the default.
14900 lt_prog_compiler_static='-non_shared'
14904 lt_prog_compiler_pic='-KPIC'
14905 lt_prog_compiler_static='-Bstatic'
14908 osf3* | osf4* | osf5*)
14909 lt_prog_compiler_wl='-Wl,'
14910 # All OSF/1 code is PIC.
14911 lt_prog_compiler_static='-non_shared'
14915 lt_prog_compiler_pic='-Kpic'
14916 lt_prog_compiler_static='-dn'
14920 lt_prog_compiler_wl='-Wl,'
14921 lt_prog_compiler_pic='-KPIC'
14922 lt_prog_compiler_static='-Bstatic'
14926 lt_prog_compiler_wl='-Qoption ld '
14927 lt_prog_compiler_pic='-PIC'
14928 lt_prog_compiler_static='-Bstatic'
14931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14932 if test "x$host_vendor" = xsni; then
14933 lt_prog_compiler_wl='-LD'
14935 lt_prog_compiler_wl='-Wl,'
14937 lt_prog_compiler_pic='-KPIC'
14938 lt_prog_compiler_static='-Bstatic'
14942 if test -d /usr/nec ;then
14943 lt_prog_compiler_pic='-Kconform_pic'
14944 lt_prog_compiler_static='-Bstatic'
14949 lt_prog_compiler_pic='-pic'
14950 lt_prog_compiler_static='-Bstatic'
14954 lt_prog_compiler_can_build_shared=no
14959 echo "$as_me:14959: result: $lt_prog_compiler_pic" >&5
14960 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
14963 # Check to make sure the PIC flag actually works.
14965 if test -n "$lt_prog_compiler_pic"; then
14966 echo "$as_me:14966: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
14968 if test "${lt_prog_compiler_pic_works+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 lt_prog_compiler_pic_works=no
14972 ac_outfile=conftest.$ac_objext
14973 save_CFLAGS="$CFLAGS"
14974 CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
14975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14976 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
14977 # The compiler can only warn and ignore the option if not recognized
14978 # So say no if there are warnings
14979 if test -s conftest.err; then
14980 # Append any errors to the config.log.
14981 cat conftest.err 1>&5
14983 lt_prog_compiler_pic_works=yes
14987 CFLAGS="$save_CFLAGS"
14990 echo "$as_me:14990: result: $lt_prog_compiler_pic_works" >&5
14991 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
14993 if test x"$lt_prog_compiler_pic_works" = xyes; then
14994 case $lt_prog_compiler_pic in
14996 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14999 lt_prog_compiler_pic=
15000 lt_prog_compiler_can_build_shared=no
15005 # For platforms which do not support PIC, -DPIC is meaningless:
15007 lt_prog_compiler_pic=
15010 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15014 echo "$as_me:15014: checking if $compiler supports -c -o file.$ac_objext" >&5
15015 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15016 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 lt_cv_prog_compiler_c_o=no
15020 $rm -r conftest 2>/dev/null
15024 save_CFLAGS="$CFLAGS"
15025 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
15026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15029 # that will create temporary files in the current directory regardless of
15030 # the output directory. Thus, making CWD read-only will cause this test
15031 # to fail, enabling locking or at least warning the user not to do parallel
15035 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
15037 # The compiler can only warn and ignore the option if not recognized
15038 # So say no if there are warnings
15039 if test -s out/conftest.err; then
15040 # Append any errors to the config.log.
15041 cat out/conftest.err 1>&5
15043 lt_cv_prog_compiler_c_o=yes
15046 CFLAGS="$save_CFLAGS"
15048 $rm conftest* out/*
15055 echo "$as_me:15055: result: $lt_cv_prog_compiler_c_o" >&5
15056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15058 hard_links="nottested"
15059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15060 # do not overwrite the value of need_locks provided by the user
15061 echo "$as_me:15061: checking if we can lock with hard links" >&5
15062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15067 ln conftest.a conftest.b 2>&5 || hard_links=no
15068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15069 echo "$as_me:15069: result: $hard_links" >&5
15070 echo "${ECHO_T}$hard_links" >&6
15071 if test "$hard_links" = no; then
15072 { echo "$as_me:15072: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15080 echo "$as_me:15080: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15084 allow_undefined_flag=
15087 archive_cmds_need_lc=
15088 archive_expsym_cmds=
15089 old_archive_From_new_cmds=
15090 old_archive_from_expsyms_cmds=
15091 export_dynamic_flag_spec=
15092 whole_archive_flag_spec=
15093 thread_safe_flag_spec=
15094 hardcode_libdir_flag_spec=
15095 hardcode_libdir_separator=
15097 hardcode_minus_L=no
15098 hardcode_shlibpath_var=unsupported
15099 link_all_deplibs=unknown
15100 always_export_symbols=no
15101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
15102 # include_expsyms should be a list of space-separated symbols to be *always*
15103 # included in the symbol list
15105 # exclude_expsyms can be an egrep regular expression of symbols to exclude
15106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15108 # as well as any symbol that contains `d'.
15109 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15111 # platforms (ab)use it in PIC code, but their linkers get confused if
15112 # the symbol is explicitly referenced. Since portable code cannot
15113 # rely on this symbol name, it's probably fine to never include it in
15114 # preloaded symbol tables.
15115 extract_expsyms_cmds=
15118 cygwin* | mingw* | pw32*)
15119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15120 # When not using gcc, we currently assume that we are using
15121 # Microsoft Visual C++.
15122 if test "$GCC" != yes; then
15132 if test "$with_gnu_ld" = yes; then
15133 # If archive_cmds runs LD, not CC, wlarc should be empty
15136 # See if GNU ld supports shared libraries.
15138 aix3* | aix4* | aix5*)
15139 # On AIX/PPC, the GNU linker is very broken
15140 if test "$host_cpu" != ia64; then
15144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15145 *** to be unable to reliably create shared libraries on AIX.
15146 *** Therefore, libtool is disabling shared libraries support. If you
15147 *** really care for shared libraries, you may want to modify your PATH
15148 *** so that a non-GNU linker is found, and then restart.
15155 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)'
15156 hardcode_libdir_flag_spec='-L$libdir'
15157 hardcode_minus_L=yes
15159 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15160 # that the semantics of dynamic libraries on AmigaOS, at least up
15161 # to version 4, is to share data among multiple programs linked
15162 # with the same dynamic library. Since this doesn't match the
15163 # behavior of shared libraries on other platforms, we can't use
15169 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15170 allow_undefined_flag=unsupported
15171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15172 # support --undefined. This deserves some investigation. FIXME
15173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 cygwin* | mingw* | pw32*)
15180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
15181 # no search path for DLLs.
15182 hardcode_libdir_flag_spec='-L$libdir'
15183 allow_undefined_flag=unsupported
15184 always_export_symbols=yes
15186 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
15187 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
15188 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
15189 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
15190 else $CC -o impgen impgen.c ; fi)~
15191 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
15193 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
15195 # cygwin and mingw dlls have different entry points and sets of symbols
15197 # FIXME: what about values for MSVC?
15198 dll_entry=__cygwin_dll_entry@12
15199 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
15203 dll_entry=_DllMainCRTStartup@12
15204 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
15208 # mingw and cygwin differ, and it's simplest to just exclude the union
15209 # of the two symbol sets.
15210 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
15212 # recent cygwin and mingw systems supply a stub DllMain which the user
15213 # can override, but on older systems we have to supply one (in ltdll.c)
15214 if test "x$lt_cv_need_dllmain" = "xyes"; then
15215 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
15216 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~
15217 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
15223 # Extract the symbol export list from an `--export-all' def file,
15224 # then regenerate the def file from the symbol export list, so that
15225 # the compiled dll only exports the symbol export list.
15226 # Be careful not to strip the DATA tag left by newer dlltools.
15227 export_symbols_cmds="$ltdll_cmds"'
15228 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
15229 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
15231 # If the export-symbols file already is a .def file (1st line
15232 # is EXPORTS), use it as is.
15233 # If DATA tags from a recent dlltool are present, honour them!
15234 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
15235 cp $export_symbols $output_objdir/$soname-def;
15237 echo EXPORTS > $output_objdir/$soname-def;
15239 cat $export_symbols | while read symbol; do
15240 set dummy \$symbol;
15242 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
15243 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
15245 _lt_hint=`expr 1 + \$_lt_hint`;
15249 $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~
15250 $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~
15251 $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~
15252 $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~
15253 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
15257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15258 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15261 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15262 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15267 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
15271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15272 *** create shared libraries on Solaris systems. Therefore, libtool
15273 *** is disabling shared libraries support. We urge you to upgrade GNU
15274 *** binutils to release 2.9.1 or newer. Another option is to modify
15275 *** your PATH or compiler configuration so that the native linker is
15276 *** used, and then restart.
15279 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15288 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15290 hardcode_direct=yes
15291 hardcode_shlibpath_var=no
15295 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304 if test "$ld_shlibs" = yes; then
15305 runpath_var=LD_RUN_PATH
15306 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15307 export_dynamic_flag_spec='${wl}--export-dynamic'
15309 cygwin* | mingw* | pw32*)
15310 # dlltool doesn't understand --whole-archive et. al.
15311 whole_archive_flag_spec=
15314 # ancient GNU ld didn't support --whole-archive et. al.
15315 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
15316 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15318 whole_archive_flag_spec=
15324 # PORTME fill in a description of your system's linker (not GNU ld)
15327 allow_undefined_flag=unsupported
15328 always_export_symbols=yes
15329 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'
15330 # Note: this linker hardcodes the directories in LIBPATH if there
15331 # are no directories specified by -L.
15332 hardcode_minus_L=yes
15333 if test "$GCC" = yes && test -z "$link_static_flag"; then
15334 # Neither direct hardcoding nor static linking is supported with a
15336 hardcode_direct=unsupported
15341 if test "$host_cpu" = ia64; then
15342 # On IA64, the linker does run time linking by default, so we don't
15343 # have to do anything special.
15344 aix_use_runtimelinking=no
15345 exp_sym_flag='-Bexport'
15348 # If we're using GNU nm, then we don't want the "-C" option.
15349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15350 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
15351 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'
15353 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'
15356 # KDE requires run time linking. Make it the default.
15357 aix_use_runtimelinking=yes
15358 exp_sym_flag='-bexport'
15359 no_entry_flag='-bnoentry'
15362 # When large executables or shared objects are built, AIX ld can
15363 # have problems creating the table of contents. If linking a library
15364 # or program results in "error TOC overflow" add -mminimal-toc to
15365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15369 hardcode_direct=yes
15370 hardcode_libdir_separator=':'
15371 link_all_deplibs=yes
15373 if test "$GCC" = yes; then
15374 case $host_os in aix4.012|aix4.012.*)
15375 # We only want to do this on AIX 4.2 and lower, the check
15376 # below for broken collect2 doesn't work under 4.3+
15377 collect2name=`${CC} -print-prog-name=collect2`
15378 if test -f "$collect2name" && \
15379 strings "$collect2name" | grep resolve_lib_name >/dev/null
15381 # We have reworked collect2
15382 hardcode_direct=yes
15384 # We have old collect2
15385 hardcode_direct=unsupported
15386 # It fails to find uninstalled libraries when the uninstalled
15387 # path is not listed in the libpath. Setting hardcode_minus_L
15388 # to unsupported forces relinking
15389 hardcode_minus_L=yes
15390 hardcode_libdir_flag_spec='-L$libdir'
15391 hardcode_libdir_separator=
15394 shared_flag='-shared'
15397 if test "$host_cpu" = ia64; then
15398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399 # chokes on -Wl,-G. The following line is correct:
15402 if test "$aix_use_runtimelinking" = yes; then
15403 shared_flag='-qmkshrobj ${wl}-G'
15405 shared_flag='-qmkshrobj'
15410 # Let the compiler handle the export list.
15411 always_export_symbols=no
15412 if test "$aix_use_runtimelinking" = yes; then
15413 # Warning - without using the other runtime loading flags (-brtl),
15414 # -berok will link without error, but may produce a broken library.
15415 allow_undefined_flag='-berok'
15416 # Determine the default libpath from the value encoded in an empty executable.
15417 cat >conftest.$ac_ext <<_ACEOF
15418 #line 15418 "configure"
15419 #include "confdefs.h"
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:15430: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>&5
15433 echo "$as_me:15433: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -s conftest$ac_exeext'
15436 { (eval echo "$as_me:15436: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:15439: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15444 # Check for a 64-bit object if we didn't find anything.
15445 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; }
15448 echo "$as_me: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15455 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"
15456 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"
15458 if test "$host_cpu" = ia64; then
15459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15460 allow_undefined_flag="-z nodefs"
15461 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"
15463 # Determine the default libpath from the value encoded in an empty executable.
15464 cat >conftest.$ac_ext <<_ACEOF
15465 #line 15465 "configure"
15466 #include "confdefs.h"
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477 if { (eval echo "$as_me:15477: \"$ac_link\"") >&5
15478 (eval $ac_link) 2>&5
15480 echo "$as_me:15480: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -s conftest$ac_exeext'
15483 { (eval echo "$as_me:15483: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15486 echo "$as_me:15486: \$? = $ac_status" >&5
15487 (exit $ac_status); }; }; then
15489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15491 # Check for a 64-bit object if we didn't find anything.
15492 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; }
15495 echo "$as_me: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15502 # Warning - without using the other run time loading flags,
15503 # -berok will link without error, but may produce a broken library.
15504 no_undefined_flag=' ${wl}-bernotok'
15505 allow_undefined_flag=' ${wl}-berok'
15506 # -bexpall does not export symbols beginning with underscore (_)
15507 always_export_symbols=yes
15508 # Exported symbols can be pulled into shared objects from archives
15509 whole_archive_flag_spec=' '
15510 archive_cmds_need_lc=yes
15511 # This is similar to how AIX traditionally builds it's shared libraries.
15512 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'
15518 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)'
15519 hardcode_libdir_flag_spec='-L$libdir'
15520 hardcode_minus_L=yes
15521 # see comment about different semantics on the GNU ld section
15526 export_dynamic_flag_spec=-rdynamic
15529 cygwin* | mingw* | pw32*)
15530 # When not using gcc, we currently assume that we are using
15531 # Microsoft Visual C++.
15532 # hardcode_libdir_flag_spec is actually meaningless, as there is
15533 # no search path for DLLs.
15534 hardcode_libdir_flag_spec=' '
15535 allow_undefined_flag=unsupported
15536 # Tell ltmain to make .lib files, not .a files.
15538 # FIXME: Setting linknames here is a bad hack.
15539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15540 # The linker will automatically build a .lib file if we build a DLL.
15541 old_archive_From_new_cmds='true'
15542 # FIXME: Should let the user specify the lib program.
15543 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15544 fix_srcfile_path='`cygpath -w "$srcfile"`'
15547 darwin* | rhapsody*)
15549 rhapsody* | darwin1.[012])
15550 allow_undefined_flag='-undefined suppress'
15553 allow_undefined_flag='-flat_namespace -undefined suppress'
15557 # FIXME: Relying on posixy $() will cause problems for
15558 # cross-compilation, but unfortunately the echo tests do not
15559 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15560 # `"' quotes if we put them in here... so don't!
15561 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
15562 # We need to add '_' to the symbols in $export_symbols first
15563 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
15564 hardcode_direct=yes
15565 hardcode_shlibpath_var=no
15566 whole_archive_flag_spec='-all_load $convenience'
15570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_libdir_flag_spec='-L$libdir'
15572 hardcode_shlibpath_var=no
15579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15580 # support. Future versions do this automatically, but an explicit c++rt0.o
15581 # does not break anything, and helps significantly (at the cost of a little
15584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15585 hardcode_libdir_flag_spec='-R$libdir'
15586 hardcode_direct=yes
15587 hardcode_shlibpath_var=no
15590 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15593 hardcode_direct=yes
15594 hardcode_minus_L=yes
15595 hardcode_shlibpath_var=no
15598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15600 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15601 hardcode_libdir_flag_spec='-R$libdir'
15602 hardcode_direct=yes
15603 hardcode_shlibpath_var=no
15606 hpux9* | hpux10* | hpux11*)
15607 if test "$GCC" = yes; then
15610 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'
15613 if test "$host_cpu" = ia64; then
15614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623 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'
15626 if test "$host_cpu" = ia64; then
15627 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15634 if test "$host_cpu" = ia64; then
15635 hardcode_libdir_flag_spec='-L$libdir'
15637 hardcode_shlibpath_var=no
15639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15640 hardcode_libdir_separator=:
15641 hardcode_direct=yes
15643 # hardcode_minus_L: Not really in the search PATH,
15644 # but as the default location of the library.
15645 hardcode_minus_L=yes
15646 export_dynamic_flag_spec='${wl}-E'
15649 irix5* | irix6* | nonstopux*)
15650 if test "$GCC" = yes; then
15651 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'
15653 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'
15655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15656 hardcode_libdir_separator=:
15657 link_all_deplibs=yes
15661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15664 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15666 hardcode_libdir_flag_spec='-R$libdir'
15667 hardcode_direct=yes
15668 hardcode_shlibpath_var=no
15672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_direct=yes
15674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15675 hardcode_libdir_separator=:
15676 hardcode_shlibpath_var=no
15680 hardcode_direct=yes
15681 hardcode_shlibpath_var=no
15683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15686 export_dynamic_flag_spec='${wl}-E'
15689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_libdir_flag_spec='-R$libdir'
15694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15702 hardcode_libdir_flag_spec='-L$libdir'
15703 hardcode_minus_L=yes
15704 allow_undefined_flag=unsupported
15705 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'
15706 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15710 if test "$GCC" = yes; then
15711 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15712 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'
15714 allow_undefined_flag=' -expect_unresolved \*'
15715 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'
15717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15718 hardcode_libdir_separator=:
15721 osf4* | osf5*) # as osf3* with the addition of -msym flag
15722 if test "$GCC" = yes; then
15723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15724 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'
15725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15727 allow_undefined_flag=' -expect_unresolved \*'
15728 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'
15729 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15730 $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'
15732 # Both c and cxx compiler support -rpath directly
15733 hardcode_libdir_flag_spec='-rpath $libdir'
15735 hardcode_libdir_separator=:
15739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15740 hardcode_shlibpath_var=no
15741 export_dynamic_flag_spec='${wl}-Bexport'
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15747 no_undefined_flag=' -z text'
15748 if test "$GCC" = yes; then
15749 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15751 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15753 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15757 hardcode_libdir_flag_spec='-R$libdir'
15758 hardcode_shlibpath_var=no
15760 solaris2.[0-5] | solaris2.[0-5].*) ;;
15761 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15764 link_all_deplibs=yes
15768 if test "x$host_vendor" = xsequent; then
15769 # Use $CC to link under sequent, because it throws in some extra .o
15770 # files that make .init and .fini sections work.
15771 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_libdir_flag_spec='-L$libdir'
15776 hardcode_direct=yes
15777 hardcode_minus_L=yes
15778 hardcode_shlibpath_var=no
15782 if test "x$host_vendor" = xsni; then
15783 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_direct=yes # is this really true???
15786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15789 runpath_var='LD_RUN_PATH'
15790 hardcode_shlibpath_var=no
15794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795 hardcode_shlibpath_var=no
15796 export_dynamic_flag_spec='-Bexport'
15800 if test -d /usr/nec; then
15801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_shlibpath_var=no
15803 runpath_var=LD_RUN_PATH
15804 hardcode_runpath_var=yes
15810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_direct=yes
15812 hardcode_minus_L=no
15813 hardcode_shlibpath_var=no
15814 hardcode_runpath_var=yes
15815 runpath_var=LD_RUN_PATH
15818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15819 no_undefined_flag='${wl}-z ${wl}text'
15820 if test "$GCC" = yes; then
15821 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15823 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15825 runpath_var='LD_RUN_PATH'
15826 hardcode_shlibpath_var=no
15830 no_undefined_flag=' -z text'
15831 # $CC -shared without GNU ld will not create a library from C++
15832 # object files and a static libstdc++, better avoid it by now
15833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15836 hardcode_libdir_flag_spec=
15837 hardcode_shlibpath_var=no
15838 runpath_var='LD_RUN_PATH'
15842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_libdir_flag_spec='-L$libdir'
15844 hardcode_shlibpath_var=no
15853 echo "$as_me:15853: result: $ld_shlibs" >&5
15854 echo "${ECHO_T}$ld_shlibs" >&6
15855 test "$ld_shlibs" = no && can_build_shared=no
15857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15858 if test "$GCC" = yes; then
15859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15863 # Do we need to explicitly link libc?
15865 archive_cmds_need_lc=yes
15866 if test "$enable_shared" = yes && test "$GCC" = yes; then
15867 case $archive_cmds in
15869 # FIXME: we may have to deal with multi-command sequences.
15872 # Test whether the compiler implicitly links with -lc since on some
15873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15874 # to ld, don't add -lc before -lgcc.
15875 echo "$as_me:15875: checking whether -lc should be explicitly linked in" >&5
15876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15878 echo 'static int dummy;' > conftest.$ac_ext
15880 if { (eval echo "$as_me:15880: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>&5
15883 echo "$as_me:15883: \$? = $ac_status" >&5
15884 (exit $ac_status); } 2>conftest.err; then
15887 libobjs=conftest.$ac_objext
15889 wl=$lt_prog_compiler_wl
15895 lt_save_allow_undefined_flag=$allow_undefined_flag
15896 allow_undefined_flag=
15897 if { (eval echo "$as_me:15897: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15898 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15900 echo "$as_me:15900: \$? = $ac_status" >&5
15901 (exit $ac_status); }
15903 archive_cmds_need_lc=no
15905 archive_cmds_need_lc=yes
15907 allow_undefined_flag=$lt_save_allow_undefined_flag
15909 cat conftest.err 1>&5
15912 echo "$as_me:15912: result: $archive_cmds_need_lc" >&5
15913 echo "${ECHO_T}$archive_cmds_need_lc" >&6
15918 echo "$as_me:15918: checking how to hardcode library paths into programs" >&5
15919 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15921 if test -n "$hardcode_libdir_flag_spec" || \
15922 test -n "$runpath_var "; then
15924 # We can hardcode non-existant directories.
15925 if test "$hardcode_direct" != no &&
15926 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15927 # have to relink, otherwise we might link with an installed library
15928 # when we should be linking with a yet-to-be-installed one
15929 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15930 test "$hardcode_minus_L" != no; then
15931 # Linking always hardcodes the temporary library directory.
15932 hardcode_action=relink
15934 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15935 hardcode_action=immediate
15938 # We cannot hardcode anything, or else we can only hardcode existing
15940 hardcode_action=unsupported
15942 echo "$as_me:15942: result: $hardcode_action" >&5
15943 echo "${ECHO_T}$hardcode_action" >&6
15945 if test "$hardcode_action" = relink; then
15946 # Fast installation is not supported
15947 enable_fast_install=no
15948 elif test "$shlibpath_overrides_runpath" = yes ||
15949 test "$enable_shared" = no; then
15950 # Fast installation is not necessary
15951 enable_fast_install=needless
15956 echo "$as_me:15956: checking whether stripping libraries is possible" >&5
15957 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15958 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15959 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15960 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15961 echo "$as_me:15961: result: yes" >&5
15962 echo "${ECHO_T}yes" >&6
15964 echo "$as_me:15964: result: no" >&5
15965 echo "${ECHO_T}no" >&6
15968 echo "$as_me:15968: checking dynamic linker characteristics" >&5
15969 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15970 library_names_spec=
15971 libname_spec='lib$name'
15974 postuninstall_cmds=
15978 shlibpath_overrides_runpath=unknown
15980 dynamic_linker="$host_os ld.so"
15981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15983 need_lib_prefix=unknown
15984 hardcode_into_libs=no
15986 # when you set need_version to no, make sure it does not cause -set_version
15987 # flags to be left without arguments
15988 need_version=unknown
15993 library_names_spec='${libname}${release}.so$versuffix $libname.a'
15994 shlibpath_var=LIBPATH
15996 # AIX 3 has no versioning support, so we append a major version to the name.
15997 soname_spec='${libname}${release}.so$major'
16002 if test "$host_cpu" = ia64; then
16003 # AIX 5 supports IA64
16004 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
16005 shlibpath_var=LD_LIBRARY_PATH
16007 # With GCC up to 2.95.x, collect2 would create an import file
16008 # for dependence libraries. The import file would start with
16009 # the line `#! .'. This would cause the generated library to
16010 # depend on `.', always an invalid library. This was fixed in
16011 # development snapshots of GCC prior to 3.0.
16013 aix4 | aix4.[01] | aix4.[01].*)
16014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16019 can_build_shared=no
16023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16024 # soname into executable. Probably we can add versioning support to
16025 # collect2, so additional links can be useful in future.
16026 if test "$aix_use_runtimelinking" = yes; then
16027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16028 # instead of lib<name>.a to let people know that these are not
16029 # typical AIX shared libraries.
16030 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16032 # We preserve .a as extension for shared libraries through AIX4.2
16033 # and later when we are not doing run time linking.
16034 library_names_spec='${libname}${release}.a $libname.a'
16035 soname_spec='${libname}${release}.so$major'
16037 shlibpath_var=LIBPATH
16042 library_names_spec='$libname.ixlibrary $libname.a'
16043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16044 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'
16048 library_names_spec='${libname}.so'
16049 dynamic_linker="$host_os ld.so"
16050 shlibpath_var=LIBRARY_PATH
16056 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16057 soname_spec='${libname}${release}.so$major'
16058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16062 # the default ld.so.conf also contains /usr/contrib/lib and
16063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16064 # libtool to hard-code these into programs
16067 cygwin* | mingw* | pw32*)
16068 version_type=windows
16071 case $GCC,$host_os in
16073 library_names_spec='$libname.dll.a'
16074 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
16076 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
16077 dldir=$destdir/`dirname \$dlpath`~
16078 test -d \$dldir || mkdir -p \$dldir~
16079 $install_prog .libs/$dlname \$dldir/$dlname'
16080 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
16081 dlpath=$dir/\$dldll~
16085 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
16086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
16087 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
16088 # It is most probably a Windows format PATH printed by
16089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16090 # path with ; separators, and with drive letters. We can handle the
16091 # drive letters (cygwin fileutils understands them), so leave them,
16092 # especially as we might pass files found there to a mingw objdump,
16093 # which wouldn't understand a cygwinified path. Ahh.
16094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
16103 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
16106 dynamic_linker='Win32 ld.exe'
16107 # FIXME: first we should search . and the directory the executable is in
16111 darwin* | rhapsody*)
16112 dynamic_linker="$host_os dyld"
16113 version_type=darwin
16116 # FIXME: Relying on posixy $() will cause problems for
16117 # cross-compilation, but unfortunately the echo tests do not
16118 # yet detect zsh echo's removal of \ escapes.
16119 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)'
16120 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
16121 shlibpath_overrides_runpath=yes
16122 shlibpath_var=DYLD_LIBRARY_PATH
16129 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16130 soname_spec='${libname}${release}.so$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16139 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16140 version_type=freebsd-$objformat
16141 case $version_type in
16143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
16148 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
16152 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16157 freebsd3.01* | freebsdelf3.01*)
16158 shlibpath_overrides_runpath=yes
16159 hardcode_into_libs=yes
16162 shlibpath_overrides_runpath=no
16163 hardcode_into_libs=yes
16172 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
16173 soname_spec='${libname}${release}.so$major'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 hardcode_into_libs=yes
16178 hpux9* | hpux10* | hpux11*)
16179 # Give a soname corresponding to the major version so that dld.sl refuses to
16180 # link against other versions.
16184 if test "$host_cpu" = ia64; then
16185 hardcode_into_libs=yes
16186 dynamic_linker="$host_os dld.so"
16187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16190 soname_spec='${libname}${release}.so$major'
16191 if test "X$HPUX_IA64_MODE" = X32; then
16192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16198 dynamic_linker="$host_os dld.sl"
16199 shlibpath_var=SHLIB_PATH
16200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16201 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
16202 soname_spec='${libname}${release}.sl$major'
16204 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16205 postinstall_cmds='chmod 555 $lib'
16208 irix5* | irix6* | nonstopux*)
16210 nonstopux*) version_type=nonstopux ;;
16211 *) version_type=irix ;;
16215 soname_spec='${libname}${release}.so$major'
16216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
16218 irix5* | nonstopux*)
16219 libsuff= shlibsuff=
16222 case $LD in # libtool.m4 will add one of these switches to LD
16223 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
16224 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
16225 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
16226 *) libsuff= shlibsuff= libmagic=never-match;;
16230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16231 shlibpath_overrides_runpath=no
16232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16236 # No shared lib support for Linux oldld, aout, or coff.
16237 linux*oldld* | linux*aout* | linux*coff*)
16241 # This must be Linux ELF.
16246 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16247 soname_spec='${libname}${release}.so$major'
16248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16250 if test "x$LINUX_64_MODE" = x64; then
16251 # Some platforms are per default 64-bit, so there's no /lib64
16252 if test -d /lib64; then
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=no
16258 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16259 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16260 # This implies no fast_install, which is unacceptable.
16261 # Some rework will be needed to allow for fast_install
16262 # before this can be enabled.
16263 hardcode_into_libs=yes
16265 # We used to test for /lib/ld.so.1 and disable shared libraries on
16266 # powerpc, because MkLinux only supported shared libraries with the
16267 # GNU dynamic linker. Since this was broken with cross compilers,
16268 # most powerpc-linux boxes support dynamic linking these days and
16269 # people can always --disable-shared, the test was removed, and we
16270 # assume the GNU/Linux dynamic linker is in use.
16271 dynamic_linker='GNU/Linux ld.so'
16278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16279 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16281 dynamic_linker='NetBSD (a.out) ld.so'
16283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
16284 soname_spec='${libname}${release}.so$major'
16285 dynamic_linker='NetBSD ld.elf_so'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=yes
16289 hardcode_into_libs=yes
16294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16303 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16304 soname_spec='${libname}${release}.so$major'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16313 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16318 openbsd2.[89] | openbsd2.[89].*)
16319 shlibpath_overrides_runpath=no
16322 shlibpath_overrides_runpath=yes
16326 shlibpath_overrides_runpath=yes
16331 libname_spec='$name'
16333 library_names_spec='$libname.dll $libname.a'
16334 dynamic_linker='OS/2 ld.exe'
16335 shlibpath_var=LIBPATH
16338 osf3* | osf4* | osf5*)
16342 soname_spec='${libname}${release}.so'
16343 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16351 soname_spec='${libname}${release}.so$major'
16352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16353 shlibpath_var=LD_LIBRARY_PATH
16360 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16361 soname_spec='${libname}${release}.so$major'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16364 hardcode_into_libs=yes
16365 # ldd complains unless libraries are executable
16366 postinstall_cmds='chmod +x $lib'
16371 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=yes
16375 if test "$with_gnu_ld" = yes; then
16381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16384 soname_spec='${libname}${release}.so$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 case $host_vendor in
16388 shlibpath_overrides_runpath=no
16393 shlibpath_overrides_runpath=no
16394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16400 if test -d /usr/nec ;then
16402 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
16403 soname_spec='$libname.so.$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16410 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16411 soname_spec='${libname}${release}.so$major'
16412 shlibpath_var=LD_LIBRARY_PATH
16419 echo "$as_me:16419: result: $dynamic_linker" >&5
16420 echo "${ECHO_T}$dynamic_linker" >&6
16421 test "$dynamic_linker" = no && can_build_shared=no
16423 if test "x$enable_dlopen" != xyes; then
16424 enable_dlopen=unknown
16425 enable_dlopen_self=unknown
16426 enable_dlopen_self_static=unknown
16433 lt_cv_dlopen="load_add_on"
16435 lt_cv_dlopen_self=yes
16438 cygwin* | mingw* | pw32*)
16439 lt_cv_dlopen="LoadLibrary"
16444 echo "$as_me:16444: checking for shl_load" >&5
16445 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16446 if test "${ac_cv_func_shl_load+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 cat >conftest.$ac_ext <<_ACEOF
16450 #line 16450 "configure"
16451 #include "confdefs.h"
16452 /* System header to define __stub macros and hopefully few prototypes,
16453 which can conflict with char shl_load (); below. */
16454 #include <assert.h>
16455 /* Override any gcc2 internal prototype to avoid an error. */
16459 /* We use char because int might match the return type of a gcc2
16460 builtin and then its argument prototype would still apply. */
16467 /* The GNU C library defines this for functions which it implements
16468 to always fail with ENOSYS. Some functions are actually named
16469 something starting with __ and the normal name is an alias. */
16470 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (eval echo "$as_me:16481: \"$ac_link\"") >&5
16482 (eval $ac_link) 2>&5
16484 echo "$as_me:16484: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -s conftest$ac_exeext'
16487 { (eval echo "$as_me:16487: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:16490: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_func_shl_load=yes
16494 echo "$as_me: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16496 ac_cv_func_shl_load=no
16498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16500 echo "$as_me:16500: result: $ac_cv_func_shl_load" >&5
16501 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16502 if test $ac_cv_func_shl_load = yes; then
16503 lt_cv_dlopen="shl_load"
16505 echo "$as_me:16505: checking for shl_load in -ldld" >&5
16506 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16507 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 ac_check_lib_save_LIBS=$LIBS
16512 cat >conftest.$ac_ext <<_ACEOF
16513 #line 16513 "configure"
16514 #include "confdefs.h"
16516 /* Override any gcc2 internal prototype to avoid an error. */
16520 /* We use char because int might match the return type of a gcc2
16521 builtin and then its argument prototype would still apply. */
16531 rm -f conftest.$ac_objext conftest$ac_exeext
16532 if { (eval echo "$as_me:16532: \"$ac_link\"") >&5
16533 (eval $ac_link) 2>&5
16535 echo "$as_me:16535: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -s conftest$ac_exeext'
16538 { (eval echo "$as_me:16538: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:16541: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_lib_dld_shl_load=yes
16545 echo "$as_me: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 ac_cv_lib_dld_shl_load=no
16549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16552 echo "$as_me:16552: result: $ac_cv_lib_dld_shl_load" >&5
16553 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16554 if test $ac_cv_lib_dld_shl_load = yes; then
16555 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16557 echo "$as_me:16557: checking for dlopen" >&5
16558 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16559 if test "${ac_cv_func_dlopen+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 cat >conftest.$ac_ext <<_ACEOF
16563 #line 16563 "configure"
16564 #include "confdefs.h"
16565 /* System header to define __stub macros and hopefully few prototypes,
16566 which can conflict with char dlopen (); below. */
16567 #include <assert.h>
16568 /* Override any gcc2 internal prototype to avoid an error. */
16572 /* We use char because int might match the return type of a gcc2
16573 builtin and then its argument prototype would still apply. */
16580 /* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
16583 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:16594: \"$ac_link\"") >&5
16595 (eval $ac_link) 2>&5
16597 echo "$as_me:16597: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:16600: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:16603: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_func_dlopen=yes
16607 echo "$as_me: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 ac_cv_func_dlopen=no
16611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16613 echo "$as_me:16613: result: $ac_cv_func_dlopen" >&5
16614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16615 if test $ac_cv_func_dlopen = yes; then
16616 lt_cv_dlopen="dlopen"
16618 echo "$as_me:16618: checking for dlopen in -ldl" >&5
16619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 ac_check_lib_save_LIBS=$LIBS
16625 cat >conftest.$ac_ext <<_ACEOF
16626 #line 16626 "configure"
16627 #include "confdefs.h"
16629 /* Override any gcc2 internal prototype to avoid an error. */
16633 /* We use char because int might match the return type of a gcc2
16634 builtin and then its argument prototype would still apply. */
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (eval echo "$as_me:16645: \"$ac_link\"") >&5
16646 (eval $ac_link) 2>&5
16648 echo "$as_me:16648: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -s conftest$ac_exeext'
16651 { (eval echo "$as_me:16651: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:16654: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_lib_dl_dlopen=yes
16658 echo "$as_me: failed program was:" >&5
16659 cat conftest.$ac_ext >&5
16660 ac_cv_lib_dl_dlopen=no
16662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16663 LIBS=$ac_check_lib_save_LIBS
16665 echo "$as_me:16665: result: $ac_cv_lib_dl_dlopen" >&5
16666 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16667 if test $ac_cv_lib_dl_dlopen = yes; then
16668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16670 echo "$as_me:16670: checking for dlopen in -lsvld" >&5
16671 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16672 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 ac_check_lib_save_LIBS=$LIBS
16676 LIBS="-lsvld $LIBS"
16677 cat >conftest.$ac_ext <<_ACEOF
16678 #line 16678 "configure"
16679 #include "confdefs.h"
16681 /* Override any gcc2 internal prototype to avoid an error. */
16685 /* We use char because int might match the return type of a gcc2
16686 builtin and then its argument prototype would still apply. */
16696 rm -f conftest.$ac_objext conftest$ac_exeext
16697 if { (eval echo "$as_me:16697: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>&5
16700 echo "$as_me:16700: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:16703: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:16706: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_cv_lib_svld_dlopen=yes
16710 echo "$as_me: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16712 ac_cv_lib_svld_dlopen=no
16714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16715 LIBS=$ac_check_lib_save_LIBS
16717 echo "$as_me:16717: result: $ac_cv_lib_svld_dlopen" >&5
16718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16719 if test $ac_cv_lib_svld_dlopen = yes; then
16720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16722 echo "$as_me:16722: checking for dld_link in -ldld" >&5
16723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 ac_check_lib_save_LIBS=$LIBS
16729 cat >conftest.$ac_ext <<_ACEOF
16730 #line 16730 "configure"
16731 #include "confdefs.h"
16733 /* Override any gcc2 internal prototype to avoid an error. */
16737 /* We use char because int might match the return type of a gcc2
16738 builtin and then its argument prototype would still apply. */
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (eval echo "$as_me:16749: \"$ac_link\"") >&5
16750 (eval $ac_link) 2>&5
16752 echo "$as_me:16752: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (eval echo "$as_me:16755: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:16758: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_lib_dld_dld_link=yes
16762 echo "$as_me: failed program was:" >&5
16763 cat conftest.$ac_ext >&5
16764 ac_cv_lib_dld_dld_link=no
16766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16767 LIBS=$ac_check_lib_save_LIBS
16769 echo "$as_me:16769: result: $ac_cv_lib_dld_dld_link" >&5
16770 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16771 if test $ac_cv_lib_dld_dld_link = yes; then
16772 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16788 if test "x$lt_cv_dlopen" != xno; then
16794 case $lt_cv_dlopen in
16796 save_CPPFLAGS="$CPPFLAGS"
16797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16799 save_LDFLAGS="$LDFLAGS"
16800 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16803 LIBS="$lt_cv_dlopen_libs $LIBS"
16805 echo "$as_me:16805: checking whether a program can dlopen itself" >&5
16806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16807 if test "${lt_cv_dlopen_self+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16810 if test "$cross_compiling" = yes; then :
16811 lt_cv_dlopen_self=cross
16813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16814 lt_status=$lt_dlunknown
16815 cat > conftest.$ac_ext <<EOF
16816 #line 16816 "configure"
16817 #include "confdefs.h"
16826 # define LT_DLGLOBAL RTLD_GLOBAL
16829 # define LT_DLGLOBAL DL_GLOBAL
16831 # define LT_DLGLOBAL 0
16835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16836 find out it does not work in some platform. */
16837 #ifndef LT_DLLAZY_OR_NOW
16839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16842 # define LT_DLLAZY_OR_NOW DL_LAZY
16845 # define LT_DLLAZY_OR_NOW RTLD_NOW
16848 # define LT_DLLAZY_OR_NOW DL_NOW
16850 # define LT_DLLAZY_OR_NOW 0
16858 extern "C" void exit (int);
16861 void fnord() { int i=42;}
16864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16865 int status = $lt_dlunknown;
16869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16871 /* dlclose (self); */
16877 if { (eval echo "$as_me:16877: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16880 echo "$as_me:16880: \$? = $ac_status" >&5
16881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16882 (./conftest; exit; ) 2>/dev/null
16884 case x$lt_status in
16885 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16886 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16887 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16890 # compilation failed
16891 lt_cv_dlopen_self=no
16897 echo "$as_me:16897: result: $lt_cv_dlopen_self" >&5
16898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16900 if test "x$lt_cv_dlopen_self" = xyes; then
16901 LDFLAGS="$LDFLAGS $link_static_flag"
16902 echo "$as_me:16902: checking whether a statically linked program can dlopen itself" >&5
16903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16904 if test "${lt_cv_dlopen_self_static+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 if test "$cross_compiling" = yes; then :
16908 lt_cv_dlopen_self_static=cross
16910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16911 lt_status=$lt_dlunknown
16912 cat > conftest.$ac_ext <<EOF
16913 #line 16913 "configure"
16914 #include "confdefs.h"
16923 # define LT_DLGLOBAL RTLD_GLOBAL
16926 # define LT_DLGLOBAL DL_GLOBAL
16928 # define LT_DLGLOBAL 0
16932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16933 find out it does not work in some platform. */
16934 #ifndef LT_DLLAZY_OR_NOW
16936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16939 # define LT_DLLAZY_OR_NOW DL_LAZY
16942 # define LT_DLLAZY_OR_NOW RTLD_NOW
16945 # define LT_DLLAZY_OR_NOW DL_NOW
16947 # define LT_DLLAZY_OR_NOW 0
16955 extern "C" void exit (int);
16958 void fnord() { int i=42;}
16961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16962 int status = $lt_dlunknown;
16966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16968 /* dlclose (self); */
16974 if { (eval echo "$as_me:16974: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>&5
16977 echo "$as_me:16977: \$? = $ac_status" >&5
16978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16979 (./conftest; exit; ) 2>/dev/null
16981 case x$lt_status in
16982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16984 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16987 # compilation failed
16988 lt_cv_dlopen_self_static=no
16994 echo "$as_me:16994: result: $lt_cv_dlopen_self_static" >&5
16995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16998 CPPFLAGS="$save_CPPFLAGS"
16999 LDFLAGS="$save_LDFLAGS"
17004 case $lt_cv_dlopen_self in
17005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17006 *) enable_dlopen_self=unknown ;;
17009 case $lt_cv_dlopen_self_static in
17010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17011 *) enable_dlopen_self_static=unknown ;;
17015 # Report which librarie types wil actually be built
17016 echo "$as_me:17016: checking if libtool supports shared libraries" >&5
17017 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17018 echo "$as_me:17018: result: $can_build_shared" >&5
17019 echo "${ECHO_T}$can_build_shared" >&6
17021 echo "$as_me:17021: checking whether to build shared libraries" >&5
17022 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17023 test "$can_build_shared" = "no" && enable_shared=no
17025 # On AIX, shared libraries and static libraries use the same namespace, and
17026 # are all built from PIC.
17029 test "$enable_shared" = yes && enable_static=no
17030 if test -n "$RANLIB"; then
17031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17032 postinstall_cmds='$RANLIB $lib'
17037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17038 test "$enable_shared" = yes && enable_static=no
17042 echo "$as_me:17042: result: $enable_shared" >&5
17043 echo "${ECHO_T}$enable_shared" >&6
17045 echo "$as_me:17045: checking whether to build static libraries" >&5
17046 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17047 # Make sure either enable_shared or enable_static is yes.
17048 test "$enable_shared" = yes || enable_static=yes
17049 echo "$as_me:17049: result: $enable_static" >&5
17050 echo "${ECHO_T}$enable_static" >&6
17052 # The else clause should only fire when bootstrapping the
17053 # libtool distribution, otherwise you forgot to ship ltmain.sh
17054 # with your package, and you will get complaints that there are
17055 # no rules to generate ltmain.sh.
17056 if test -f "$ltmain"; then
17057 # Now quote all the things that may contain metacharacters while being
17058 # careful not to overquote the AC_SUBSTed values. We take copies of the
17059 # variables and quote the copies for generation of the libtool script.
17060 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
17061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17063 deplibs_check_method reload_flag reload_cmds need_locks \
17064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17065 lt_cv_sys_global_symbol_to_c_name_address \
17066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17067 old_postinstall_cmds old_postuninstall_cmds \
17071 lt_prog_compiler_wl \
17072 lt_prog_compiler_pic \
17073 lt_prog_compiler_static \
17074 lt_prog_compiler_no_builtin_flag \
17075 export_dynamic_flag_spec \
17076 thread_safe_flag_spec \
17077 whole_archive_flag_spec \
17079 old_archive_from_new_cmds \
17084 compiler_lib_search_path \
17086 archive_expsym_cmds \
17088 postuninstall_cmds \
17089 old_archive_from_expsyms_cmds \
17090 allow_undefined_flag \
17091 no_undefined_flag \
17092 export_symbols_cmds \
17093 hardcode_libdir_flag_spec \
17094 hardcode_libdir_separator \
17095 lt_cv_prog_compiler_c_o \
17097 include_expsyms; do
17100 old_archive_cmds | \
17101 old_archive_from_new_cmds | \
17103 archive_expsym_cmds | \
17104 old_archive_from_expsyms_cmds | \
17105 export_symbols_cmds | \
17106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107 postinstall_cmds | postuninstall_cmds | \
17108 old_postinstall_cmds | old_postuninstall_cmds | \
17109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110 # Double-quote double-evaled strings.
17111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17120 *'\$0 --fallback-echo"')
17121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17125 cfgfile="${ofile}T"
17126 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17128 { echo "$as_me:17128: creating $ofile" >&5
17129 echo "$as_me: creating $ofile" >&6;}
17131 cat <<__EOF__ >> "$cfgfile"
17134 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17135 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17138 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17139 # Free Software Foundation, Inc.
17141 # This file is part of GNU Libtool:
17142 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17144 # This program is free software; you can redistribute it and/or modify
17145 # it under the terms of the GNU General Public License as published by
17146 # the Free Software Foundation; either version 2 of the License, or
17147 # (at your option) any later version.
17149 # This program is distributed in the hope that it will be useful, but
17150 # WITHOUT ANY WARRANTY; without even the implied warranty of
17151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17152 # General Public License for more details.
17154 # You should have received a copy of the GNU General Public License
17155 # along with this program; if not, write to the Free Software
17156 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17158 # As a special exception to the GNU General Public License, if you
17159 # distribute this file as part of a program that contains a
17160 # configuration script generated by Autoconf, you may include it under
17161 # the same distribution terms that you use for the rest of that program.
17163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17164 Xsed="sed -e s/^X//"
17166 # The HP-UX ksh and POSIX shell print the target directory to stdout
17167 # if CDPATH is set.
17168 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
17170 # The names of the tagged configurations supported by this script.
17173 # ### BEGIN LIBTOOL CONFIG
17175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17177 # Shell to use when invoking shell scripts.
17180 # Whether or not to build shared libraries.
17181 build_libtool_libs=$enable_shared
17183 # Whether or not to build static libraries.
17184 build_old_libs=$enable_static
17186 # Whether or not to add -lc for building shared libraries.
17187 build_libtool_need_lc=$archive_cmds_need_lc
17189 # Whether or not to optimize for fast installation.
17190 fast_install=$enable_fast_install
17193 host_alias=$host_alias
17196 # An echo program that does not interpret backslashes.
17201 AR_FLAGS=$lt_AR_FLAGS
17206 # A language-specific compiler.
17209 # Is the compiler the GNU C compiler?
17212 # The linker used to build libraries.
17215 # Whether we need hard or soft links.
17218 # A BSD-compatible nm program.
17221 # A sed program that does not truncate output.
17224 # A symbol stripping program
17227 # Used to examine libraries when file_magic_cmd begins "file"
17228 MAGIC_CMD=$MAGIC_CMD
17230 # Used on cygwin: DLL creation program.
17233 # Used on cygwin: object dumper.
17236 # Used on cygwin: assembler.
17239 # The name of the directory that contains temporary libtool files.
17242 # How to create reloadable object files.
17243 reload_flag=$lt_reload_flag
17244 reload_cmds=$lt_reload_cmds
17246 # How to pass a linker flag through the compiler.
17247 wl=$lt_lt_prog_compiler_wl
17249 # Object file suffix (normally "o").
17250 objext="$ac_objext"
17252 # Old archive suffix (normally "a").
17255 # Executable file suffix (normally "").
17258 # Additional compiler flags for building library objects.
17259 pic_flag=$lt_lt_prog_compiler_pic
17262 # What is the maximum length of a command?
17263 max_cmd_len=$lt_cv_sys_max_cmd_len
17265 # Does compiler simultaneously support -c and -o options?
17266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17268 # Must we lock files when doing compilation ?
17269 need_locks=$lt_need_locks
17271 # Do we need the lib prefix for modules?
17272 need_lib_prefix=$need_lib_prefix
17274 # Do we need a version for libraries?
17275 need_version=$need_version
17277 # Whether dlopen is supported.
17278 dlopen_support=$enable_dlopen
17280 # Whether dlopen of programs is supported.
17281 dlopen_self=$enable_dlopen_self
17283 # Whether dlopen of statically linked programs is supported.
17284 dlopen_self_static=$enable_dlopen_self_static
17286 # Compiler flag to prevent dynamic linking.
17287 link_static_flag=$lt_lt_prog_compiler_static
17289 # Compiler flag to turn off builtin functions.
17290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17292 # Compiler flag to allow reflexive dlopens.
17293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17295 # Compiler flag to generate shared objects directly from archives.
17296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17298 # Compiler flag to generate thread-safe objects.
17299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17301 # Library versioning type.
17302 version_type=$version_type
17304 # Format of library name prefix.
17305 libname_spec=$lt_libname_spec
17307 # List of archive names. First name is the real one, the rest are links.
17308 # The last name is the one that the linker finds with -lNAME.
17309 library_names_spec=$lt_library_names_spec
17311 # The coded name of the library, if different from the real name.
17312 soname_spec=$lt_soname_spec
17314 # Commands used to build and install an old-style archive.
17316 old_archive_cmds=$lt_old_archive_cmds
17317 old_postinstall_cmds=$lt_old_postinstall_cmds
17318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17320 # Create an old-style archive from a shared archive.
17321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17323 # Create a temporary old-style archive to link instead of a shared archive.
17324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17326 # Commands used to build and install a shared archive.
17327 archive_cmds=$lt_archive_cmds
17328 archive_expsym_cmds=$lt_archive_expsym_cmds
17329 postinstall_cmds=$lt_postinstall_cmds
17330 postuninstall_cmds=$lt_postuninstall_cmds
17332 # Commands to strip libraries.
17333 old_striplib=$lt_old_striplib
17334 striplib=$lt_striplib
17336 # Dependencies to place before the objects being linked to create a
17338 predep_objects=$lt_predep_objects
17340 # Dependencies to place after the objects being linked to create a
17342 postdep_objects=$lt_postdep_objects
17344 # Dependencies to place before the objects being linked to create a
17346 predeps=$lt_predeps
17348 # Dependencies to place after the objects being linked to create a
17350 postdeps=$lt_postdeps
17352 # The library search path used internally by the compiler when linking
17353 # a shared library.
17354 compiler_lib_search_path=$lt_compiler_lib_search_path
17356 # Method to check whether dependent libraries are shared objects.
17357 deplibs_check_method=$lt_deplibs_check_method
17359 # Command to use when deplibs_check_method == file_magic.
17360 file_magic_cmd=$lt_file_magic_cmd
17362 # Flag that allows shared libraries with undefined symbols to be built.
17363 allow_undefined_flag=$lt_allow_undefined_flag
17365 # Flag that forces no undefined symbols.
17366 no_undefined_flag=$lt_no_undefined_flag
17368 # Commands used to finish a libtool library installation in a directory.
17369 finish_cmds=$lt_finish_cmds
17371 # Same as above, but a single script fragment to be evaled but not shown.
17372 finish_eval=$lt_finish_eval
17374 # Take the output of nm and produce a listing of raw symbols and C names.
17375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17377 # Transform the output of nm in a proper C declaration
17378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17380 # Transform the output of nm in a C name address pair
17381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17383 # This is the shared library runtime path variable.
17384 runpath_var=$runpath_var
17386 # This is the shared library path variable.
17387 shlibpath_var=$shlibpath_var
17389 # Is shlibpath searched before the hard-coded library search path?
17390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17392 # How to hardcode a shared library path into an executable.
17393 hardcode_action=$hardcode_action
17395 # Whether we should hardcode library paths into libraries.
17396 hardcode_into_libs=$hardcode_into_libs
17398 # Flag to hardcode \$libdir into a binary during linking.
17399 # This must work even if \$libdir does not exist.
17400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17402 # Whether we need a single -rpath flag with a separated argument.
17403 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17405 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17406 # resulting binary.
17407 hardcode_direct=$hardcode_direct
17409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17410 # resulting binary.
17411 hardcode_minus_L=$hardcode_minus_L
17413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17414 # the resulting binary.
17415 hardcode_shlibpath_var=$hardcode_shlibpath_var
17417 # Variables whose values should be saved in libtool wrapper scripts and
17418 # restored at relink time.
17419 variables_saved_for_relink="$variables_saved_for_relink"
17421 # Whether libtool must link a program against all its dependency libraries.
17422 link_all_deplibs=$link_all_deplibs
17424 # Compile-time system search path for libraries
17425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17427 # Run-time system search path for libraries
17428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17430 # Fix the shell variable \$srcfile for the compiler.
17431 fix_srcfile_path="$fix_srcfile_path"
17433 # Set to yes if exported symbols are required.
17434 always_export_symbols=$always_export_symbols
17436 # The commands to list exported symbols.
17437 export_symbols_cmds=$lt_export_symbols_cmds
17439 # The commands to extract the exported symbol list from a shared archive.
17440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17442 # Symbols that should not be listed in the preloaded symbols.
17443 exclude_expsyms=$lt_exclude_expsyms
17445 # Symbols that must always be exported.
17446 include_expsyms=$lt_include_expsyms
17448 # ### END LIBTOOL CONFIG
17454 cat <<\EOF >> "$cfgfile"
17456 # AIX sometimes has problems with the GCC collect2 program. For some
17457 # reason, if we set the COLLECT_NAMES environment variable, the problems
17458 # vanish in a puff of smoke.
17459 if test "X${COLLECT_NAMES+set}" != Xset; then
17461 export COLLECT_NAMES
17466 cygwin* | mingw* | pw32* | os2*)
17467 cat <<'EOF' >> "$cfgfile"
17468 # This is a source program that is used to create dlls on Windows
17469 # Don't remove nor modify the starting and closing comments
17471 # /* ltdll.c starts here */
17472 # #define WIN32_LEAN_AND_MEAN
17473 # #include <windows.h>
17474 # #undef WIN32_LEAN_AND_MEAN
17475 # #include <stdio.h>
17477 # #ifndef __CYGWIN__
17478 # # ifdef __CYGWIN32__
17479 # # define __CYGWIN__ __CYGWIN32__
17483 # #ifdef __cplusplus
17486 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
17487 # #ifdef __cplusplus
17491 # #ifdef __CYGWIN__
17492 # #include <cygwin/cygwin_dll.h>
17493 # DECLARE_CYGWIN_DLL( DllMain );
17495 # HINSTANCE __hDllInstance_base;
17498 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
17500 # __hDllInstance_base = hInst;
17503 # /* ltdll.c ends here */
17505 # This is a source program that is used to create import libraries
17506 # on Windows for dlls which lack them. Don't remove nor modify the
17507 # starting and closing comments
17509 # /* impgen.c starts here */
17510 # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
17512 # This file is part of GNU libtool.
17514 # This program is free software; you can redistribute it and/or modify
17515 # it under the terms of the GNU General Public License as published by
17516 # the Free Software Foundation; either version 2 of the License, or
17517 # (at your option) any later version.
17519 # This program is distributed in the hope that it will be useful,
17520 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17521 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17522 # GNU General Public License for more details.
17524 # You should have received a copy of the GNU General Public License
17525 # along with this program; if not, write to the Free Software
17526 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17529 # #include <stdio.h> /* for printf() */
17530 # #include <unistd.h> /* for open(), lseek(), read() */
17531 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
17532 # #include <string.h> /* for strdup() */
17534 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
17536 # #define O_BINARY 0
17539 # static unsigned int
17540 # pe_get16 (fd, offset)
17544 # unsigned char b[2];
17545 # lseek (fd, offset, SEEK_SET);
17547 # return b[0] + (b[1]<<8);
17550 # static unsigned int
17551 # pe_get32 (fd, offset)
17555 # unsigned char b[4];
17556 # lseek (fd, offset, SEEK_SET);
17558 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17561 # static unsigned int
17565 # unsigned char *b = ptr;
17566 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17570 # main (argc, argv)
17575 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
17576 # unsigned long export_rva, export_size, nsections, secptr, expptr;
17577 # unsigned long name_rvas, nexp;
17578 # unsigned char *expdata, *erva;
17579 # char *filename, *dll_name;
17581 # filename = argv[1];
17583 # dll = open(filename, O_RDONLY|O_BINARY);
17587 # dll_name = filename;
17589 # for (i=0; filename[i]; i++)
17590 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
17591 # dll_name = filename + i +1;
17593 # pe_header_offset = pe_get32 (dll, 0x3c);
17594 # opthdr_ofs = pe_header_offset + 4 + 20;
17595 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
17597 # if (num_entries < 1) /* no exports */
17600 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
17601 # export_size = pe_get32 (dll, opthdr_ofs + 100);
17602 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
17603 # secptr = (pe_header_offset + 4 + 20 +
17604 # pe_get16 (dll, pe_header_offset + 4 + 16));
17607 # for (i = 0; i < nsections; i++)
17610 # unsigned long secptr1 = secptr + 40 * i;
17611 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
17612 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
17613 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
17614 # lseek(dll, secptr1, SEEK_SET);
17615 # read(dll, sname, 8);
17616 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
17618 # expptr = fptr + (export_rva - vaddr);
17619 # if (export_rva + export_size > vaddr + vsize)
17620 # export_size = vsize - (export_rva - vaddr);
17625 # expdata = (unsigned char*)malloc(export_size);
17626 # lseek (dll, expptr, SEEK_SET);
17627 # read (dll, expdata, export_size);
17628 # erva = expdata - export_rva;
17630 # nexp = pe_as32 (expdata+24);
17631 # name_rvas = pe_as32 (expdata+32);
17633 # printf ("EXPORTS\n");
17634 # for (i = 0; i<nexp; i++)
17636 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
17637 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
17642 # /* impgen.c ends here */
17648 # We use sed instead of cat because bash on DJGPP gets confused if
17649 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17650 # text mode, it properly converts lines to CR/LF. This bash problem
17651 # is reportedly fixed, but why not run on old versions too?
17652 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17654 mv -f "$cfgfile" "$ofile" || \
17655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17659 # If there is no Makefile yet, we rely on a make rule to execute
17660 # `config.status --recheck' to rerun these tests and create the
17661 # libtool script then.
17662 test -f Makefile && make "$ltmain"
17666 ac_cpp='$CPP $CPPFLAGS'
17667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17673 # Check whether --with-tags or --without-tags was given.
17674 if test "${with_tags+set}" = set; then
17675 withval="$with_tags"
17676 tagnames="$withval"
17680 mingw*|cygwin*) tagnames="$tagnames,RC" ;;
17684 if test -f "$ltmain" && test -n "$tagnames"; then
17685 if test ! -f "${ofile}"; then
17686 { echo "$as_me:17686: WARNING: output file \`$ofile' does not exist" >&5
17687 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17690 if test -z "$LTCC"; then
17691 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17692 if test -z "$LTCC"; then
17693 { echo "$as_me:17693: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17694 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17696 { echo "$as_me:17696: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17697 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17701 # Extract list of available tagged configurations in $ofile.
17702 # Note that this assumes the entire list is on one line.
17703 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17706 for tagname in $tagnames; do
17708 # Check whether tagname contains only valid characters
17709 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17711 *) { { echo "$as_me:17711: error: invalid tag name: $tagname" >&5
17712 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17713 { (exit 1); exit 1; }; }
17717 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17719 { { echo "$as_me:17719: error: tag name \"$tagname\" already exists" >&5
17720 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17721 { (exit 1); exit 1; }; }
17724 # Update the list of available tags.
17725 if test -n "$tagname"; then
17726 echo appending configuration tag \"$tagname\" to $ofile
17731 ac_cpp='$CXXCPP $CPPFLAGS'
17732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17736 archive_cmds_need_lc_CXX=no
17737 allow_undefined_flag_CXX=
17738 always_export_symbols_CXX=no
17739 archive_expsym_cmds_CXX=
17740 export_dynamic_flag_spec_CXX=
17741 hardcode_direct_CXX=no
17742 hardcode_libdir_flag_spec_CXX=
17743 hardcode_libdir_separator_CXX=
17744 hardcode_minus_L_CXX=no
17745 link_all_deplibs_CXX=unknown
17746 old_archive_cmds_CXX=$old_archive_cmds
17747 no_undefined_flag_CXX=
17748 whole_archive_flag_spec_CXX=
17750 # Dependencies to place before and after the object being linked:
17751 predep_objects_CXX=
17752 postdep_objects_CXX=
17755 compiler_lib_search_path_CXX=
17757 # Source file extension for C test sources.
17760 # Object file extension for compiled C test sources.
17764 # Code to be used in simple compile tests
17765 lt_simple_compile_test_code="int some_variable = 0;"
17767 # Code to be used in simple link tests
17768 lt_simple_link_test_code='int main(int char *) { return(0); }'
17770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17772 # If no C compiler was specified, use CC.
17775 # Allow CC to be a program name with arguments.
17779 # Allow CC to be a program name with arguments.
17785 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17787 # We don't want -fno-exception wen compiling C++ code, so set the
17788 # no_builtin_flag separately
17789 if test "$GXX" = yes; then
17790 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17792 lt_prog_compiler_no_builtin_flag_CXX=
17795 if test "$GXX" = yes; then
17796 # Set up default GNU C++ configuration
17798 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17799 # archiving commands below assume that GNU ld is being used.
17800 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
17801 egrep 'GNU ld' > /dev/null; then
17804 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17805 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'
17807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17810 # If archive_cmds runs LD, not CC, wlarc should be empty
17811 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17812 # investigate it a little bit more. (MM)
17815 # ancient GNU ld didn't support --whole-archive et. al.
17816 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17817 egrep 'no-whole-archive' > /dev/null; then
17818 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17820 whole_archive_flag_spec_CXX=
17826 # A generic and very simple default shared library creation
17827 # command for GNU C++ for the case where it uses the native
17828 # linker, instead of GNU ld. If possible, this setting should
17829 # overridden to take advantage of the native linker features on
17830 # the platform it is being used on.
17831 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17834 # Commands to make compiler produce verbose output that lists
17835 # what "hidden" libraries, object files and flags are used when
17836 # linking a shared library.
17837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
17845 # PORTME: fill in a description of your system's C++ link characteristics
17846 echo "$as_me:17846: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17847 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17851 # FIXME: insert proper C++ library support
17855 if test "$host_cpu" = ia64; then
17856 # On IA64, the linker does run time linking by default, so we don't
17857 # have to do anything special.
17858 aix_use_runtimelinking=no
17859 exp_sym_flag='-Bexport'
17862 # KDE requires run time linking. Make it the default.
17863 aix_use_runtimelinking=yes
17864 exp_sym_flag='-bexport'
17865 no_entry_flag='-bnoentry'
17868 # When large executables or shared objects are built, AIX ld can
17869 # have problems creating the table of contents. If linking a library
17870 # or program results in "error TOC overflow" add -mminimal-toc to
17871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17874 archive_cmds_CXX=''
17875 hardcode_direct_CXX=yes
17876 hardcode_libdir_separator_CXX=':'
17877 link_all_deplibs_CXX=yes
17879 if test "$GXX" = yes; then
17880 case $host_os in aix4.012|aix4.012.*)
17881 # We only want to do this on AIX 4.2 and lower, the check
17882 # below for broken collect2 doesn't work under 4.3+
17883 collect2name=`${CC} -print-prog-name=collect2`
17884 if test -f "$collect2name" && \
17885 strings "$collect2name" | grep resolve_lib_name >/dev/null
17887 # We have reworked collect2
17888 hardcode_direct_CXX=yes
17890 # We have old collect2
17891 hardcode_direct_CXX=unsupported
17892 # It fails to find uninstalled libraries when the uninstalled
17893 # path is not listed in the libpath. Setting hardcode_minus_L
17894 # to unsupported forces relinking
17895 hardcode_minus_L_CXX=yes
17896 hardcode_libdir_flag_spec_CXX='-L$libdir'
17897 hardcode_libdir_separator_CXX=
17900 shared_flag='-shared'
17903 if test "$host_cpu" = ia64; then
17904 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17905 # chokes on -Wl,-G. The following line is correct:
17908 if test "$aix_use_runtimelinking" = yes; then
17909 shared_flag='-qmkshrobj ${wl}-G'
17911 shared_flag='-qmkshrobj'
17916 # Let the compiler handle the export list.
17917 always_export_symbols_CXX=no
17918 if test "$aix_use_runtimelinking" = yes; then
17919 # Warning - without using the other runtime loading flags (-brtl),
17920 # -berok will link without error, but may produce a broken library.
17921 allow_undefined_flag_CXX='-berok'
17922 # Determine the default libpath from the value encoded in an empty executable.
17923 cat >conftest.$ac_ext <<_ACEOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (eval echo "$as_me:17936: \"$ac_link\"") >&5
17937 (eval $ac_link) 2>&5
17939 echo "$as_me:17939: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (eval echo "$as_me:17942: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17945 echo "$as_me:17945: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17950 # Check for a 64-bit object if we didn't find anything.
17951 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; }
17954 echo "$as_me: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17960 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17962 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"
17963 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"
17965 if test "$host_cpu" = ia64; then
17966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17967 allow_undefined_flag_CXX="-z nodefs"
17968 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"
17970 # Determine the default libpath from the value encoded in an empty executable.
17971 cat >conftest.$ac_ext <<_ACEOF
17972 #line 17972 "configure"
17973 #include "confdefs.h"
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (eval echo "$as_me:17984: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>&5
17987 echo "$as_me:17987: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -s conftest$ac_exeext'
17990 { (eval echo "$as_me:17990: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:17993: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17998 # Check for a 64-bit object if we didn't find anything.
17999 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; }
18002 echo "$as_me: failed program was:" >&5
18003 cat conftest.$ac_ext >&5
18005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18009 # Warning - without using the other run time loading flags,
18010 # -berok will link without error, but may produce a broken library.
18011 no_undefined_flag_CXX=' ${wl}-bernotok'
18012 allow_undefined_flag_CXX=' ${wl}-berok'
18013 # -bexpall does not export symbols beginning with underscore (_)
18014 always_export_symbols_CXX=yes
18015 # Exported symbols can be pulled into shared objects from archives
18016 whole_archive_flag_spec_CXX=' '
18017 archive_cmds_need_lc_CXX=yes
18018 # This is similar to how AIX traditionally builds it's shared libraries.
18019 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'
18024 case $cc_basename in
18026 # FIXME: insert proper C++ library support
18032 case $cc_basename in
18034 # FIXME: insert proper C++ library support
18038 # Green Hills C++ Compiler
18039 # FIXME: insert proper C++ library support
18043 # FIXME: insert proper C++ library support
18049 # C++ shared libraries reported to be fairly broken before switch to ELF
18053 archive_cmds_need_lc_CXX=no
18056 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18063 if test $with_gnu_ld = no; then
18064 if test "$host_cpu" = ia64; then
18065 hardcode_libdir_flag_spec_CXX='-L$libdir'
18067 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18068 hardcode_libdir_separator_CXX=:
18069 export_dynamic_flag_spec_CXX='${wl}-E'
18072 if test "$host_cpu" = ia64; then
18073 hardcode_direct_CXX=no
18074 hardcode_shlibpath_var_CXX=no
18076 hardcode_direct_CXX=yes
18078 hardcode_minus_L_CXX=yes # Not in the search PATH,
18079 # but as the default
18080 # location of the library.
18082 case $cc_basename in
18084 # FIXME: insert proper C++ library support
18090 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'
18093 if test "$host_cpu" = ia64; then
18094 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
18096 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18100 # Commands to make compiler produce verbose output that lists
18101 # what "hidden" libraries, object files and flags are used when
18102 # linking a shared library.
18104 # There doesn't appear to be a way to prevent this compiler from
18105 # explicitly linking system object files so we need to strip them
18106 # from the output so that they don't get included in the library
18108 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'
18111 if test "$GXX" = yes; then
18112 if test $with_gnu_ld = no; then
18115 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'
18118 if test "$host_cpu" = ia64; then
18119 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
18121 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'
18127 # FIXME: insert proper C++ library support
18134 case $cc_basename in
18137 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'
18139 # Archives containing C++ object files must be created using
18140 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18141 # necessary to make sure instantiated templates are included
18143 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18146 if test "$GXX" = yes; then
18147 if test "$with_gnu_ld" = no; then
18148 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'
18150 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'
18153 link_all_deplibs_CXX=yes
18156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18157 hardcode_libdir_separator_CXX=:
18160 case $cc_basename in
18162 # Kuck and Associates, Inc. (KAI) C++ Compiler
18164 # KCC will only create a shared library if the output file
18165 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18166 # to its proper name (with version) after linking.
18167 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'
18168 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'
18170 # Commands to make compiler produce verbose output that lists
18171 # what "hidden" libraries, object files and flags are used when
18172 # linking a shared library.
18174 # There doesn't appear to be a way to prevent this compiler from
18175 # explicitly linking system object files so we need to strip them
18176 # from the output so that they don't get included in the library
18178 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'
18180 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18181 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18183 # Archives containing C++ object files must be created using
18184 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18185 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190 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'
18192 runpath_var=LD_RUN_PATH
18193 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18194 hardcode_libdir_separator_CXX=:
18196 # Commands to make compiler produce verbose output that lists
18197 # what "hidden" libraries, object files and flags are used when
18198 # linking a shared library.
18200 # There doesn't appear to be a way to prevent this compiler from
18201 # explicitly linking system object files so we need to strip them
18202 # from the output so that they don't get included in the library
18204 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'
18209 # FIXME: insert proper C++ library support
18213 # FIXME: insert proper C++ library support
18217 case $cc_basename in
18219 # FIXME: insert proper C++ library support
18223 # FIXME: insert proper C++ library support
18229 # NetBSD uses g++ - do we need to do anything?
18232 case $cc_basename in
18234 # Kuck and Associates, Inc. (KAI) C++ Compiler
18236 # KCC will only create a shared library if the output file
18237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18238 # to its proper name (with version) after linking.
18239 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'
18241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18242 hardcode_libdir_separator_CXX=:
18244 # Archives containing C++ object files must be created using
18245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18250 # Rational C++ 2.4.1
18251 # FIXME: insert proper C++ library support
18255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18256 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'
18258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18259 hardcode_libdir_separator_CXX=:
18261 # Commands to make compiler produce verbose output that lists
18262 # what "hidden" libraries, object files and flags are used when
18263 # linking a shared library.
18265 # There doesn't appear to be a way to prevent this compiler from
18266 # explicitly linking system object files so we need to strip them
18267 # from the output so that they don't get included in the library
18269 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'
18272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18274 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'
18276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18277 hardcode_libdir_separator_CXX=:
18279 # Commands to make compiler produce verbose output that lists
18280 # what "hidden" libraries, object files and flags are used when
18281 # linking a shared library.
18282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
18285 # FIXME: insert proper C++ library support
18292 case $cc_basename in
18294 # Kuck and Associates, Inc. (KAI) C++ Compiler
18296 # KCC will only create a shared library if the output file
18297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18298 # to its proper name (with version) after linking.
18299 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'
18301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18302 hardcode_libdir_separator_CXX=:
18304 # Archives containing C++ object files must be created using
18305 # the KAI C++ compiler.
18306 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18309 # Rational C++ 2.4.1
18310 # FIXME: insert proper C++ library support
18314 allow_undefined_flag_CXX=' -expect_unresolved \*'
18315 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'
18316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
18317 echo "-hidden">> $lib.exp~
18318 $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~
18321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18322 hardcode_libdir_separator_CXX=:
18324 # Commands to make compiler produce verbose output that lists
18325 # what "hidden" libraries, object files and flags are used when
18326 # linking a shared library.
18328 # There doesn't appear to be a way to prevent this compiler from
18329 # explicitly linking system object files so we need to strip them
18330 # from the output so that they don't get included in the library
18332 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'
18335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18336 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18337 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'
18339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18340 hardcode_libdir_separator_CXX=:
18342 # Commands to make compiler produce verbose output that lists
18343 # what "hidden" libraries, object files and flags are used when
18344 # linking a shared library.
18345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
18348 # FIXME: insert proper C++ library support
18355 # FIXME: insert proper C++ library support
18359 archive_cmds_need_lc_CXX=no
18360 case $cc_basename in
18362 # FIXME: insert proper C++ library support
18366 # FIXME: insert proper C++ library support
18372 case $cc_basename in
18375 # FIXME: insert proper C++ library support
18380 # FIXME: insert proper C++ library support
18384 # FIXME: insert proper C++ library support
18390 case $cc_basename in
18392 # Sun C++ 4.2, 5.x and Centerline C++
18393 no_undefined_flag_CXX=' -zdefs'
18394 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18395 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18396 $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'
18398 hardcode_libdir_flag_spec_CXX='-R$libdir'
18399 hardcode_shlibpath_var_CXX=no
18401 solaris2.0-5 | solaris2.0-5.*) ;;
18403 # The C++ compiler is used as linker so we must use $wl
18404 # flag to pass the commands to the underlying system
18406 # Supported since Solaris 2.6 (maybe 2.5.1?)
18407 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18410 link_all_deplibs_CXX=yes
18412 # Commands to make compiler produce verbose output that lists
18413 # what "hidden" libraries, object files and flags are used when
18414 # linking a shared library.
18416 # There doesn't appear to be a way to prevent this compiler from
18417 # explicitly linking system object files so we need to strip them
18418 # from the output so that they don't get included in the library
18420 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'
18422 # Archives containing C++ object files must be created using
18423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18424 # necessary to make sure instantiated templates are included
18426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18429 # Green Hills C++ Compiler
18430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18432 # The C++ compiler must be used to create the archive.
18433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18436 # GNU C++ compiler with Solaris linker
18437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18438 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18439 if $CC --version | egrep -v '^2\.7' > /dev/null; then
18440 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
18441 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18442 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
18444 # Commands to make compiler produce verbose output that lists
18445 # what "hidden" libraries, object files and flags are used when
18446 # linking a shared library.
18447 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
18449 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18451 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
18452 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18453 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
18455 # Commands to make compiler produce verbose output that lists
18456 # what "hidden" libraries, object files and flags are used when
18457 # linking a shared library.
18458 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
18461 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18466 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18467 archive_cmds_need_lc_CXX=no
18470 case $cc_basename in
18472 # NonStop-UX NCC 3.20
18473 # FIXME: insert proper C++ library support
18477 # FIXME: insert proper C++ library support
18483 # FIXME: insert proper C++ library support
18487 # FIXME: insert proper C++ library support
18491 echo "$as_me:18491: result: $ld_shlibs_CXX" >&5
18492 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18493 test "$ld_shlibs_CXX" = no && can_build_shared=no
18495 # Figure out "hidden" C++ library dependencies from verbose
18496 # compiler output whening linking a shared library.
18497 cat > conftest.$ac_ext <<EOF
18501 Foo (void) { a = 0; }
18507 if { (eval echo "$as_me:18507: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>&5
18510 echo "$as_me:18510: \$? = $ac_status" >&5
18511 (exit $ac_status); }; then
18512 # Parse the compiler output and extract the necessary
18513 # objects, libraries and library flags.
18515 # Sentinel used to keep track of whether or not we are before
18516 # the conftest object file.
18517 pre_test_object_deps_done=no
18519 # The `*' in the case matches for architectures that use `case' in
18520 # $output_verbose_cmd can trigger glob expansion during the loop
18521 # eval without this substitution.
18522 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
18524 for p in `eval $output_verbose_link_cmd`; do
18528 # Some compilers place space between "-{L,R}" and the path.
18529 # Remove the space.
18530 if test $p = "-L" \
18531 || test $p = "-R"; then
18538 if test "$pre_test_object_deps_done" = no; then
18541 # Internal compiler library paths should come after those
18542 # provided the user. The postdeps already come after the
18543 # user supplied libs so there is no need to process them.
18544 if test -z "$compiler_lib_search_path_CXX"; then
18545 compiler_lib_search_path_CXX="${prev}${p}"
18547 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18550 # The "-l" case would never come before the object being
18551 # linked, so don't bother handling this case.
18554 if test -z "$postdeps_CXX"; then
18555 postdeps_CXX="${prev}${p}"
18557 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18562 *.$objext|*.$libext)
18563 # This assumes that the test object file only shows up
18564 # once in the compiler output.
18565 if test "$p" = "conftest.$objext"; then
18566 pre_test_object_deps_done=yes
18570 if test "$pre_test_object_deps_done" = no; then
18571 if test -z "$predep_objects_CXX"; then
18572 predep_objects_CXX="$p"
18574 predep_objects_CXX="$predep_objects_CXX $p"
18577 if test -z "$postdep_objects_CXX"; then
18578 postdep_objects_CXX="$p"
18580 postdep_objects_CXX="$postdep_objects_CXX $p"
18585 *) ;; # Ignore the rest.
18593 echo "libtool.m4: error: problem compiling C++ test program"
18596 $rm -f confest.$objext
18598 case " $postdeps_CXX " in
18599 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18600 *) archive_cmds_need_lc_CXX=yes ;;
18606 lt_prog_compiler_wl_CXX=
18607 lt_prog_compiler_pic_CXX=
18608 lt_prog_compiler_static_CXX=
18610 echo "$as_me:18610: checking for $compiler option to produce PIC" >&5
18611 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18613 # C++ specific cases for pic, static, wl, etc.
18614 if test "$GXX" = yes; then
18615 lt_prog_compiler_wl_CXX='-Wl,'
18616 lt_prog_compiler_static_CXX='-static'
18620 # All AIX code is PIC.
18621 if test "$host_cpu" = ia64; then
18622 # AIX 5 now supports IA64 processor
18623 lt_prog_compiler_static_CXX='-Bstatic'
18627 # FIXME: we need at least 68020 code to build shared libraries, but
18628 # adding the `-m68020' flag to GCC prevents building anything better,
18630 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18633 # PIC is the default for these OSes.
18635 cygwin* | mingw* | os2*)
18636 # This hack is so that the source file can tell whether it is being
18637 # built for inclusion in a dll (and should export symbols for example).
18638 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18640 darwin* | rhapsody*)
18641 # PIC is the default on this platform
18642 # Common symbols not allowed in MH_DYLIB files
18643 lt_prog_compiler_pic_CXX='-fno-common'
18646 # DJGPP does not support shared libraries at all
18647 lt_prog_compiler_pic_CXX=
18650 if test -d /usr/nec; then
18651 lt_prog_compiler_pic_CXX=-Kconform_pic
18655 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
18656 if test "$host_cpu" != ia64; then
18657 lt_prog_compiler_pic_CXX='-fPIC'
18661 lt_prog_compiler_pic_CXX='-fPIC'
18667 # All AIX code is PIC.
18668 if test "$host_cpu" = ia64; then
18669 # AIX 5 now supports IA64 processor
18670 lt_prog_compiler_static_CXX='-Bstatic'
18672 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18676 case $cc_basename in
18678 # Green Hills C++ Compiler
18679 # _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"
18684 case $cc_basename in
18686 lt_prog_compiler_pic_CXX='-KPIC'
18689 # Green Hills C++ Compiler
18690 lt_prog_compiler_pic_CXX='-pic'
18697 # FreeBSD uses GNU C++
18699 hpux9* | hpux10* | hpux11*)
18700 case $cc_basename in
18702 lt_prog_compiler_wl_CXX='-Wl,'
18703 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
18704 if test "$host_cpu" != ia64; then
18705 lt_prog_compiler_pic_CXX='+Z'
18709 lt_prog_compiler_wl_CXX='-Wl,'
18710 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
18711 if test "$host_cpu" != ia64; then
18712 lt_prog_compiler_pic_CXX='+Z'
18719 irix5* | irix6* | nonstopux*)
18720 case $cc_basename in
18722 lt_prog_compiler_wl_CXX='-Wl,'
18723 lt_prog_compiler_static_CXX='-non_shared'
18724 # CC pic flag -KPIC is the default.
18731 case $cc_basename in
18734 lt_prog_compiler_wl_CXX='--backend -Wl,'
18735 lt_prog_compiler_pic_CXX='-fPIC'
18739 # Make sure the PIC flag is empty. It appears that all Alpha
18740 # Linux and Compaq Tru64 Unix objects are PIC.
18741 lt_prog_compiler_pic_CXX=
18742 lt_prog_compiler_static_CXX='-non_shared'
18753 case $cc_basename in
18755 lt_prog_compiler_pic_CXX='-W c,exportall'
18763 osf3* | osf4* | osf5*)
18764 case $cc_basename in
18766 lt_prog_compiler_wl_CXX='--backend -Wl,'
18769 # Rational C++ 2.4.1
18770 lt_prog_compiler_pic_CXX='-pic'
18773 # Digital/Compaq C++
18774 lt_prog_compiler_wl_CXX='-Wl,'
18775 # Make sure the PIC flag is empty. It appears that all Alpha
18776 # Linux and Compaq Tru64 Unix objects are PIC.
18777 lt_prog_compiler_pic_CXX=
18778 lt_prog_compiler_static_CXX='-non_shared'
18787 case $cc_basename in
18789 lt_prog_compiler_pic_CXX='-fPIC'
18796 case $cc_basename in
18798 # Sun C++ 4.2, 5.x and Centerline C++
18799 lt_prog_compiler_pic_CXX='-KPIC'
18800 lt_prog_compiler_static_CXX='-Bstatic'
18801 lt_prog_compiler_wl_CXX='-Qoption ld '
18804 # Green Hills C++ Compiler
18805 lt_prog_compiler_pic_CXX='-PIC'
18812 case $cc_basename in
18815 lt_prog_compiler_pic_CXX='-pic'
18816 lt_prog_compiler_static_CXX='-Bstatic'
18820 lt_prog_compiler_pic_CXX='-pic'
18827 case $cc_basename in
18829 # NonStop-UX NCC 3.20
18830 lt_prog_compiler_pic_CXX='-KPIC'
18841 lt_prog_compiler_can_build_shared_CXX=no
18846 echo "$as_me:18846: result: $lt_prog_compiler_pic_CXX" >&5
18847 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18850 # Check to make sure the PIC flag actually works.
18852 if test -n "$lt_prog_compiler_pic_CXX"; then
18853 echo "$as_me:18853: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18855 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 lt_prog_compiler_pic_works_CXX=no
18859 ac_outfile=conftest.$ac_objext
18860 save_CFLAGS="$CFLAGS"
18861 CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
18862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18863 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
18864 # The compiler can only warn and ignore the option if not recognized
18865 # So say no if there are warnings
18866 if test -s conftest.err; then
18867 # Append any errors to the config.log.
18868 cat conftest.err 1>&5
18870 lt_prog_compiler_pic_works_CXX=yes
18874 CFLAGS="$save_CFLAGS"
18877 echo "$as_me:18877: result: $lt_prog_compiler_pic_works_CXX" >&5
18878 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18880 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18881 case $lt_prog_compiler_pic_CXX in
18883 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18886 lt_prog_compiler_pic_CXX=
18887 lt_prog_compiler_can_build_shared_CXX=no
18892 # For platforms which do not support PIC, -DPIC is meaningless:
18894 lt_prog_compiler_pic_CXX=
18897 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18901 echo "$as_me:18901: checking if $compiler supports -c -o file.$ac_objext" >&5
18902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18903 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 lt_cv_prog_compiler_c_o_CXX=no
18907 $rm -r conftest 2>/dev/null
18911 save_CXXFLAGS="$CXXFLAGS"
18912 CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
18913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
18916 # that will create temporary files in the current directory regardless of
18917 # the output directory. Thus, making CWD read-only will cause this test
18918 # to fail, enabling locking or at least warning the user not to do parallel
18922 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
18924 # The compiler can only warn and ignore the option if not recognized
18925 # So say no if there are warnings
18926 if test -s out/conftest.err; then
18927 # Append any errors to the config.log.
18928 cat out/conftest.err 1>&5
18930 lt_cv_prog_compiler_c_o_CXX=yes
18933 CXXFLAGS="$save_CXXFLAGS"
18935 $rm conftest* out/*
18942 echo "$as_me:18942: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18945 hard_links="nottested"
18946 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18947 # do not overwrite the value of need_locks provided by the user
18948 echo "$as_me:18948: checking if we can lock with hard links" >&5
18949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18954 ln conftest.a conftest.b 2>&5 || hard_links=no
18955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18956 echo "$as_me:18956: result: $hard_links" >&5
18957 echo "${ECHO_T}$hard_links" >&6
18958 if test "$hard_links" = no; then
18959 { echo "$as_me:18959: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18967 echo "$as_me:18967: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18968 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
18973 # If we're using GNU nm, then we don't want the "-C" option.
18974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18975 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
18976 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'
18978 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'
18981 cygwin* | mingw* | pw32*)
18982 export_symbols_cmds_CXX="$ltdll_cmds"
18985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
18989 echo "$as_me:18989: result: $ld_shlibs_CXX" >&5
18990 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18991 test "$ld_shlibs_CXX" = no && can_build_shared=no
18993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18994 if test "$GCC" = yes; then
18995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18999 # Do we need to explicitly link libc?
19001 archive_cmds_need_lc_CXX=yes
19002 if test "$enable_shared" = yes && test "$GCC" = yes; then
19003 case $archive_cmds_CXX in
19005 # FIXME: we may have to deal with multi-command sequences.
19008 # Test whether the compiler implicitly links with -lc since on some
19009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19010 # to ld, don't add -lc before -lgcc.
19011 echo "$as_me:19011: checking whether -lc should be explicitly linked in" >&5
19012 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19014 echo 'static int dummy;' > conftest.$ac_ext
19016 if { (eval echo "$as_me:19016: \"$ac_compile\"") >&5
19017 (eval $ac_compile) 2>&5
19019 echo "$as_me:19019: \$? = $ac_status" >&5
19020 (exit $ac_status); } 2>conftest.err; then
19023 libobjs=conftest.$ac_objext
19025 wl=$lt_prog_compiler_wl_CXX
19031 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19032 allow_undefined_flag_CXX=
19033 if { (eval echo "$as_me:19033: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19034 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19036 echo "$as_me:19036: \$? = $ac_status" >&5
19037 (exit $ac_status); }
19039 archive_cmds_need_lc_CXX=no
19041 archive_cmds_need_lc_CXX=yes
19043 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19045 cat conftest.err 1>&5
19048 echo "$as_me:19048: result: $archive_cmds_need_lc_CXX" >&5
19049 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
19054 echo "$as_me:19054: checking how to hardcode library paths into programs" >&5
19055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19056 hardcode_action_CXX=
19057 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19058 test -n "$runpath_var CXX"; then
19060 # We can hardcode non-existant directories.
19061 if test "$hardcode_direct_CXX" != no &&
19062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063 # have to relink, otherwise we might link with an installed library
19064 # when we should be linking with a yet-to-be-installed one
19065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19066 test "$hardcode_minus_L_CXX" != no; then
19067 # Linking always hardcodes the temporary library directory.
19068 hardcode_action_CXX=relink
19070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071 hardcode_action_CXX=immediate
19074 # We cannot hardcode anything, or else we can only hardcode existing
19076 hardcode_action_CXX=unsupported
19078 echo "$as_me:19078: result: $hardcode_action_CXX" >&5
19079 echo "${ECHO_T}$hardcode_action_CXX" >&6
19081 if test "$hardcode_action_CXX" = relink; then
19082 # Fast installation is not supported
19083 enable_fast_install=no
19084 elif test "$shlibpath_overrides_runpath" = yes ||
19085 test "$enable_shared" = no; then
19086 # Fast installation is not necessary
19087 enable_fast_install=needless
19092 echo "$as_me:19092: checking whether stripping libraries is possible" >&5
19093 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19094 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19097 echo "$as_me:19097: result: yes" >&5
19098 echo "${ECHO_T}yes" >&6
19100 echo "$as_me:19100: result: no" >&5
19101 echo "${ECHO_T}no" >&6
19104 echo "$as_me:19104: checking dynamic linker characteristics" >&5
19105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19106 library_names_spec=
19107 libname_spec='lib$name'
19110 postuninstall_cmds=
19114 shlibpath_overrides_runpath=unknown
19116 dynamic_linker="$host_os ld.so"
19117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19119 need_lib_prefix=unknown
19120 hardcode_into_libs=no
19122 # when you set need_version to no, make sure it does not cause -set_version
19123 # flags to be left without arguments
19124 need_version=unknown
19129 library_names_spec='${libname}${release}.so$versuffix $libname.a'
19130 shlibpath_var=LIBPATH
19132 # AIX 3 has no versioning support, so we append a major version to the name.
19133 soname_spec='${libname}${release}.so$major'
19138 if test "$host_cpu" = ia64; then
19139 # AIX 5 supports IA64
19140 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
19141 shlibpath_var=LD_LIBRARY_PATH
19143 # With GCC up to 2.95.x, collect2 would create an import file
19144 # for dependence libraries. The import file would start with
19145 # the line `#! .'. This would cause the generated library to
19146 # depend on `.', always an invalid library. This was fixed in
19147 # development snapshots of GCC prior to 3.0.
19149 aix4 | aix4.[01] | aix4.[01].*)
19150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19155 can_build_shared=no
19159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19160 # soname into executable. Probably we can add versioning support to
19161 # collect2, so additional links can be useful in future.
19162 if test "$aix_use_runtimelinking" = yes; then
19163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19164 # instead of lib<name>.a to let people know that these are not
19165 # typical AIX shared libraries.
19166 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19168 # We preserve .a as extension for shared libraries through AIX4.2
19169 # and later when we are not doing run time linking.
19170 library_names_spec='${libname}${release}.a $libname.a'
19171 soname_spec='${libname}${release}.so$major'
19173 shlibpath_var=LIBPATH
19178 library_names_spec='$libname.ixlibrary $libname.a'
19179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19180 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'
19184 library_names_spec='${libname}.so'
19185 dynamic_linker="$host_os ld.so"
19186 shlibpath_var=LIBRARY_PATH
19192 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19193 soname_spec='${libname}${release}.so$major'
19194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19195 shlibpath_var=LD_LIBRARY_PATH
19196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19198 # the default ld.so.conf also contains /usr/contrib/lib and
19199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19200 # libtool to hard-code these into programs
19203 cygwin* | mingw* | pw32*)
19204 version_type=windows
19207 case $GCC,$host_os in
19209 library_names_spec='$libname.dll.a'
19210 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
19211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
19212 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
19213 dldir=$destdir/`dirname \$dlpath`~
19214 test -d \$dldir || mkdir -p \$dldir~
19215 $install_prog .libs/$dlname \$dldir/$dlname'
19216 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
19217 dlpath=$dir/\$dldll~
19221 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
19222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
19223 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
19224 # It is most probably a Windows format PATH printed by
19225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19226 # path with ; separators, and with drive letters. We can handle the
19227 # drive letters (cygwin fileutils understands them), so leave them,
19228 # especially as we might pass files found there to a mingw objdump,
19229 # which wouldn't understand a cygwinified path. Ahh.
19230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
19232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
19236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
19239 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
19242 dynamic_linker='Win32 ld.exe'
19243 # FIXME: first we should search . and the directory the executable is in
19247 darwin* | rhapsody*)
19248 dynamic_linker="$host_os dyld"
19249 version_type=darwin
19252 # FIXME: Relying on posixy $() will cause problems for
19253 # cross-compilation, but unfortunately the echo tests do not
19254 # yet detect zsh echo's removal of \ escapes.
19255 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)'
19256 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
19257 shlibpath_overrides_runpath=yes
19258 shlibpath_var=DYLD_LIBRARY_PATH
19265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19266 soname_spec='${libname}${release}.so$major'
19267 shlibpath_var=LD_LIBRARY_PATH
19275 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19276 version_type=freebsd-$objformat
19277 case $version_type in
19279 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
19284 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
19288 shlibpath_var=LD_LIBRARY_PATH
19291 shlibpath_overrides_runpath=yes
19293 freebsd3.01* | freebsdelf3.01*)
19294 shlibpath_overrides_runpath=yes
19295 hardcode_into_libs=yes
19298 shlibpath_overrides_runpath=no
19299 hardcode_into_libs=yes
19308 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
19309 soname_spec='${libname}${release}.so$major'
19310 shlibpath_var=LD_LIBRARY_PATH
19311 hardcode_into_libs=yes
19314 hpux9* | hpux10* | hpux11*)
19315 # Give a soname corresponding to the major version so that dld.sl refuses to
19316 # link against other versions.
19320 if test "$host_cpu" = ia64; then
19321 hardcode_into_libs=yes
19322 dynamic_linker="$host_os dld.so"
19323 shlibpath_var=LD_LIBRARY_PATH
19324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19325 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19326 soname_spec='${libname}${release}.so$major'
19327 if test "X$HPUX_IA64_MODE" = X32; then
19328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19334 dynamic_linker="$host_os dld.sl"
19335 shlibpath_var=SHLIB_PATH
19336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19337 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
19338 soname_spec='${libname}${release}.sl$major'
19340 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19341 postinstall_cmds='chmod 555 $lib'
19344 irix5* | irix6* | nonstopux*)
19346 nonstopux*) version_type=nonstopux ;;
19347 *) version_type=irix ;;
19351 soname_spec='${libname}${release}.so$major'
19352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
19354 irix5* | nonstopux*)
19355 libsuff= shlibsuff=
19358 case $LD in # libtool.m4 will add one of these switches to LD
19359 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
19360 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
19361 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
19362 *) libsuff= shlibsuff= libmagic=never-match;;
19366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19367 shlibpath_overrides_runpath=no
19368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19372 # No shared lib support for Linux oldld, aout, or coff.
19373 linux*oldld* | linux*aout* | linux*coff*)
19377 # This must be Linux ELF.
19382 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19383 soname_spec='${libname}${release}.so$major'
19384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19386 if test "x$LINUX_64_MODE" = x64; then
19387 # Some platforms are per default 64-bit, so there's no /lib64
19388 if test -d /lib64; then
19392 shlibpath_var=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath=no
19394 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19395 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19396 # This implies no fast_install, which is unacceptable.
19397 # Some rework will be needed to allow for fast_install
19398 # before this can be enabled.
19399 hardcode_into_libs=yes
19401 # We used to test for /lib/ld.so.1 and disable shared libraries on
19402 # powerpc, because MkLinux only supported shared libraries with the
19403 # GNU dynamic linker. Since this was broken with cross compilers,
19404 # most powerpc-linux boxes support dynamic linking these days and
19405 # people can always --disable-shared, the test was removed, and we
19406 # assume the GNU/Linux dynamic linker is in use.
19407 dynamic_linker='GNU/Linux ld.so'
19414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19415 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
19416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19417 dynamic_linker='NetBSD (a.out) ld.so'
19419 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
19420 soname_spec='${libname}${release}.so$major'
19421 dynamic_linker='NetBSD ld.elf_so'
19423 shlibpath_var=LD_LIBRARY_PATH
19424 shlibpath_overrides_runpath=yes
19425 hardcode_into_libs=yes
19430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 shlibpath_overrides_runpath=yes
19439 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19440 soname_spec='${libname}${release}.so$major'
19441 shlibpath_var=LD_LIBRARY_PATH
19442 shlibpath_overrides_runpath=yes
19449 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
19450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19454 openbsd2.[89] | openbsd2.[89].*)
19455 shlibpath_overrides_runpath=no
19458 shlibpath_overrides_runpath=yes
19462 shlibpath_overrides_runpath=yes
19467 libname_spec='$name'
19469 library_names_spec='$libname.dll $libname.a'
19470 dynamic_linker='OS/2 ld.exe'
19471 shlibpath_var=LIBPATH
19474 osf3* | osf4* | osf5*)
19478 soname_spec='${libname}${release}.so'
19479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
19480 shlibpath_var=LD_LIBRARY_PATH
19481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19487 soname_spec='${libname}${release}.so$major'
19488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19489 shlibpath_var=LD_LIBRARY_PATH
19496 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19497 soname_spec='${libname}${release}.so$major'
19498 shlibpath_var=LD_LIBRARY_PATH
19499 shlibpath_overrides_runpath=yes
19500 hardcode_into_libs=yes
19501 # ldd complains unless libraries are executable
19502 postinstall_cmds='chmod +x $lib'
19507 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
19508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19509 shlibpath_var=LD_LIBRARY_PATH
19510 shlibpath_overrides_runpath=yes
19511 if test "$with_gnu_ld" = yes; then
19517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19520 soname_spec='${libname}${release}.so$major'
19521 shlibpath_var=LD_LIBRARY_PATH
19522 case $host_vendor in
19524 shlibpath_overrides_runpath=no
19529 shlibpath_overrides_runpath=no
19530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19536 if test -d /usr/nec ;then
19538 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
19539 soname_spec='$libname.so.$major'
19540 shlibpath_var=LD_LIBRARY_PATH
19546 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
19547 soname_spec='${libname}${release}.so$major'
19548 shlibpath_var=LD_LIBRARY_PATH
19555 echo "$as_me:19555: result: $dynamic_linker" >&5
19556 echo "${ECHO_T}$dynamic_linker" >&6
19557 test "$dynamic_linker" = no && can_build_shared=no
19559 if test "x$enable_dlopen" != xyes; then
19560 enable_dlopen=unknown
19561 enable_dlopen_self=unknown
19562 enable_dlopen_self_static=unknown
19569 lt_cv_dlopen="load_add_on"
19571 lt_cv_dlopen_self=yes
19574 cygwin* | mingw* | pw32*)
19575 lt_cv_dlopen="LoadLibrary"
19580 echo "$as_me:19580: checking for shl_load" >&5
19581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19582 if test "${ac_cv_func_shl_load+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19586 #line 19586 "configure"
19587 #include "confdefs.h"
19588 /* System header to define __stub macros and hopefully few prototypes,
19589 which can conflict with char shl_load (); below. */
19590 #include <assert.h>
19591 /* Override any gcc2 internal prototype to avoid an error. */
19595 /* We use char because int might match the return type of a gcc2
19596 builtin and then its argument prototype would still apply. */
19603 /* The GNU C library defines this for functions which it implements
19604 to always fail with ENOSYS. Some functions are actually named
19605 something starting with __ and the normal name is an alias. */
19606 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (eval echo "$as_me:19617: \"$ac_link\"") >&5
19618 (eval $ac_link) 2>&5
19620 echo "$as_me:19620: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -s conftest$ac_exeext'
19623 { (eval echo "$as_me:19623: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:19626: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_func_shl_load=yes
19630 echo "$as_me: failed program was:" >&5
19631 cat conftest.$ac_ext >&5
19632 ac_cv_func_shl_load=no
19634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19636 echo "$as_me:19636: result: $ac_cv_func_shl_load" >&5
19637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19638 if test $ac_cv_func_shl_load = yes; then
19639 lt_cv_dlopen="shl_load"
19641 echo "$as_me:19641: checking for shl_load in -ldld" >&5
19642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 ac_check_lib_save_LIBS=$LIBS
19648 cat >conftest.$ac_ext <<_ACEOF
19649 #line 19649 "configure"
19650 #include "confdefs.h"
19652 /* Override any gcc2 internal prototype to avoid an error. */
19656 /* We use char because int might match the return type of a gcc2
19657 builtin and then its argument prototype would still apply. */
19667 rm -f conftest.$ac_objext conftest$ac_exeext
19668 if { (eval echo "$as_me:19668: \"$ac_link\"") >&5
19669 (eval $ac_link) 2>&5
19671 echo "$as_me:19671: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -s conftest$ac_exeext'
19674 { (eval echo "$as_me:19674: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:19677: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 ac_cv_lib_dld_shl_load=yes
19681 echo "$as_me: failed program was:" >&5
19682 cat conftest.$ac_ext >&5
19683 ac_cv_lib_dld_shl_load=no
19685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 echo "$as_me:19688: result: $ac_cv_lib_dld_shl_load" >&5
19689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19690 if test $ac_cv_lib_dld_shl_load = yes; then
19691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19693 echo "$as_me:19693: checking for dlopen" >&5
19694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19695 if test "${ac_cv_func_dlopen+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19699 #line 19699 "configure"
19700 #include "confdefs.h"
19701 /* System header to define __stub macros and hopefully few prototypes,
19702 which can conflict with char dlopen (); below. */
19703 #include <assert.h>
19704 /* Override any gcc2 internal prototype to avoid an error. */
19708 /* We use char because int might match the return type of a gcc2
19709 builtin and then its argument prototype would still apply. */
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:19730: \"$ac_link\"") >&5
19731 (eval $ac_link) 2>&5
19733 echo "$as_me:19733: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -s conftest$ac_exeext'
19736 { (eval echo "$as_me:19736: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19739 echo "$as_me:19739: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_cv_func_dlopen=yes
19743 echo "$as_me: failed program was:" >&5
19744 cat conftest.$ac_ext >&5
19745 ac_cv_func_dlopen=no
19747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19749 echo "$as_me:19749: result: $ac_cv_func_dlopen" >&5
19750 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19751 if test $ac_cv_func_dlopen = yes; then
19752 lt_cv_dlopen="dlopen"
19754 echo "$as_me:19754: checking for dlopen in -ldl" >&5
19755 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19756 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 ac_check_lib_save_LIBS=$LIBS
19761 cat >conftest.$ac_ext <<_ACEOF
19762 #line 19762 "configure"
19763 #include "confdefs.h"
19765 /* Override any gcc2 internal prototype to avoid an error. */
19769 /* We use char because int might match the return type of a gcc2
19770 builtin and then its argument prototype would still apply. */
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (eval echo "$as_me:19781: \"$ac_link\"") >&5
19782 (eval $ac_link) 2>&5
19784 echo "$as_me:19784: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -s conftest$ac_exeext'
19787 { (eval echo "$as_me:19787: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 echo "$as_me:19790: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_lib_dl_dlopen=yes
19794 echo "$as_me: failed program was:" >&5
19795 cat conftest.$ac_ext >&5
19796 ac_cv_lib_dl_dlopen=no
19798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 echo "$as_me:19801: result: $ac_cv_lib_dl_dlopen" >&5
19802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19803 if test $ac_cv_lib_dl_dlopen = yes; then
19804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19806 echo "$as_me:19806: checking for dlopen in -lsvld" >&5
19807 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19808 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 ac_check_lib_save_LIBS=$LIBS
19812 LIBS="-lsvld $LIBS"
19813 cat >conftest.$ac_ext <<_ACEOF
19814 #line 19814 "configure"
19815 #include "confdefs.h"
19817 /* Override any gcc2 internal prototype to avoid an error. */
19821 /* We use char because int might match the return type of a gcc2
19822 builtin and then its argument prototype would still apply. */
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (eval echo "$as_me:19833: \"$ac_link\"") >&5
19834 (eval $ac_link) 2>&5
19836 echo "$as_me:19836: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -s conftest$ac_exeext'
19839 { (eval echo "$as_me:19839: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:19842: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_lib_svld_dlopen=yes
19846 echo "$as_me: failed program was:" >&5
19847 cat conftest.$ac_ext >&5
19848 ac_cv_lib_svld_dlopen=no
19850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19851 LIBS=$ac_check_lib_save_LIBS
19853 echo "$as_me:19853: result: $ac_cv_lib_svld_dlopen" >&5
19854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19855 if test $ac_cv_lib_svld_dlopen = yes; then
19856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19858 echo "$as_me:19858: checking for dld_link in -ldld" >&5
19859 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 ac_check_lib_save_LIBS=$LIBS
19865 cat >conftest.$ac_ext <<_ACEOF
19866 #line 19866 "configure"
19867 #include "confdefs.h"
19869 /* Override any gcc2 internal prototype to avoid an error. */
19873 /* We use char because int might match the return type of a gcc2
19874 builtin and then its argument prototype would still apply. */
19884 rm -f conftest.$ac_objext conftest$ac_exeext
19885 if { (eval echo "$as_me:19885: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>&5
19888 echo "$as_me:19888: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -s conftest$ac_exeext'
19891 { (eval echo "$as_me:19891: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:19894: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_cv_lib_dld_dld_link=yes
19898 echo "$as_me: failed program was:" >&5
19899 cat conftest.$ac_ext >&5
19900 ac_cv_lib_dld_dld_link=no
19902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19903 LIBS=$ac_check_lib_save_LIBS
19905 echo "$as_me:19905: result: $ac_cv_lib_dld_dld_link" >&5
19906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19907 if test $ac_cv_lib_dld_dld_link = yes; then
19908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19924 if test "x$lt_cv_dlopen" != xno; then
19930 case $lt_cv_dlopen in
19932 save_CPPFLAGS="$CPPFLAGS"
19933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19935 save_LDFLAGS="$LDFLAGS"
19936 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19939 LIBS="$lt_cv_dlopen_libs $LIBS"
19941 echo "$as_me:19941: checking whether a program can dlopen itself" >&5
19942 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19943 if test "${lt_cv_dlopen_self+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 if test "$cross_compiling" = yes; then :
19947 lt_cv_dlopen_self=cross
19949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19950 lt_status=$lt_dlunknown
19951 cat > conftest.$ac_ext <<EOF
19952 #line 19952 "configure"
19953 #include "confdefs.h"
19962 # define LT_DLGLOBAL RTLD_GLOBAL
19965 # define LT_DLGLOBAL DL_GLOBAL
19967 # define LT_DLGLOBAL 0
19971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19972 find out it does not work in some platform. */
19973 #ifndef LT_DLLAZY_OR_NOW
19975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19978 # define LT_DLLAZY_OR_NOW DL_LAZY
19981 # define LT_DLLAZY_OR_NOW RTLD_NOW
19984 # define LT_DLLAZY_OR_NOW DL_NOW
19986 # define LT_DLLAZY_OR_NOW 0
19994 extern "C" void exit (int);
19997 void fnord() { int i=42;}
20000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20001 int status = $lt_dlunknown;
20005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20006 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20007 /* dlclose (self); */
20013 if { (eval echo "$as_me:20013: \"$ac_link\"") >&5
20014 (eval $ac_link) 2>&5
20016 echo "$as_me:20016: \$? = $ac_status" >&5
20017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20018 (./conftest; exit; ) 2>/dev/null
20020 case x$lt_status in
20021 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20022 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20023 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20026 # compilation failed
20027 lt_cv_dlopen_self=no
20033 echo "$as_me:20033: result: $lt_cv_dlopen_self" >&5
20034 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20036 if test "x$lt_cv_dlopen_self" = xyes; then
20037 LDFLAGS="$LDFLAGS $link_static_flag"
20038 echo "$as_me:20038: checking whether a statically linked program can dlopen itself" >&5
20039 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20040 if test "${lt_cv_dlopen_self_static+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 if test "$cross_compiling" = yes; then :
20044 lt_cv_dlopen_self_static=cross
20046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20047 lt_status=$lt_dlunknown
20048 cat > conftest.$ac_ext <<EOF
20049 #line 20049 "configure"
20050 #include "confdefs.h"
20059 # define LT_DLGLOBAL RTLD_GLOBAL
20062 # define LT_DLGLOBAL DL_GLOBAL
20064 # define LT_DLGLOBAL 0
20068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20069 find out it does not work in some platform. */
20070 #ifndef LT_DLLAZY_OR_NOW
20072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20075 # define LT_DLLAZY_OR_NOW DL_LAZY
20078 # define LT_DLLAZY_OR_NOW RTLD_NOW
20081 # define LT_DLLAZY_OR_NOW DL_NOW
20083 # define LT_DLLAZY_OR_NOW 0
20091 extern "C" void exit (int);
20094 void fnord() { int i=42;}
20097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20098 int status = $lt_dlunknown;
20102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20104 /* dlclose (self); */
20110 if { (eval echo "$as_me:20110: \"$ac_link\"") >&5
20111 (eval $ac_link) 2>&5
20113 echo "$as_me:20113: \$? = $ac_status" >&5
20114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20115 (./conftest; exit; ) 2>/dev/null
20117 case x$lt_status in
20118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20120 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20123 # compilation failed
20124 lt_cv_dlopen_self_static=no
20130 echo "$as_me:20130: result: $lt_cv_dlopen_self_static" >&5
20131 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20134 CPPFLAGS="$save_CPPFLAGS"
20135 LDFLAGS="$save_LDFLAGS"
20140 case $lt_cv_dlopen_self in
20141 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20142 *) enable_dlopen_self=unknown ;;
20145 case $lt_cv_dlopen_self_static in
20146 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20147 *) enable_dlopen_self_static=unknown ;;
20151 # The else clause should only fire when bootstrapping the
20152 # libtool distribution, otherwise you forgot to ship ltmain.sh
20153 # with your package, and you will get complaints that there are
20154 # no rules to generate ltmain.sh.
20155 if test -f "$ltmain"; then
20156 # Now quote all the things that may contain metacharacters while being
20157 # careful not to overquote the AC_SUBSTed values. We take copies of the
20158 # variables and quote the copies for generation of the libtool script.
20159 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
20160 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20161 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20162 deplibs_check_method reload_flag reload_cmds need_locks \
20163 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20164 lt_cv_sys_global_symbol_to_c_name_address \
20165 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20166 old_postinstall_cmds old_postuninstall_cmds \
20170 lt_prog_compiler_wl_CXX \
20171 lt_prog_compiler_pic_CXX \
20172 lt_prog_compiler_static_CXX \
20173 lt_prog_compiler_no_builtin_flag_CXX \
20174 export_dynamic_flag_spec_CXX \
20175 thread_safe_flag_spec_CXX \
20176 whole_archive_flag_spec_CXX \
20177 old_archive_cmds_CXX \
20178 old_archive_from_new_cmds_CXX \
20179 predep_objects_CXX \
20180 postdep_objects_CXX \
20183 compiler_lib_search_path_CXX \
20185 archive_expsym_cmds_CXX \
20186 postinstall_cmds_CXX \
20187 postuninstall_cmds_CXX \
20188 old_archive_from_expsyms_cmds_CXX \
20189 allow_undefined_flag_CXX \
20190 no_undefined_flag_CXX \
20191 export_symbols_cmds_CXX \
20192 hardcode_libdir_flag_spec_CXX \
20193 hardcode_libdir_separator_CXX \
20194 lt_cv_prog_compiler_c_o_CXX \
20195 exclude_expsyms_CXX \
20196 include_expsyms_CXX; do
20199 old_archive_cmds_CXX | \
20200 old_archive_from_new_cmds_CXX | \
20201 archive_cmds_CXX | \
20202 archive_expsym_cmds_CXX | \
20203 old_archive_from_expsyms_cmds_CXX | \
20204 export_symbols_cmds_CXX | \
20205 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20206 postinstall_cmds | postuninstall_cmds | \
20207 old_postinstall_cmds | old_postuninstall_cmds | \
20208 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20209 # Double-quote double-evaled strings.
20210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20219 *'\$0 --fallback-echo"')
20220 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20226 cat <<__EOF__ >> "$cfgfile"
20227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20231 # Shell to use when invoking shell scripts.
20234 # Whether or not to build shared libraries.
20235 build_libtool_libs=$enable_shared
20237 # Whether or not to build static libraries.
20238 build_old_libs=$enable_static
20240 # Whether or not to add -lc for building shared libraries.
20241 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20243 # Whether or not to optimize for fast installation.
20244 fast_install=$enable_fast_install
20247 host_alias=$host_alias
20250 # An echo program that does not interpret backslashes.
20255 AR_FLAGS=$lt_AR_FLAGS
20260 # A language-specific compiler.
20261 CC=$lt_compiler_CXX
20263 # Is the compiler the GNU C compiler?
20266 # The linker used to build libraries.
20269 # Whether we need hard or soft links.
20272 # A BSD-compatible nm program.
20275 # A sed program that does not truncate output.
20278 # A symbol stripping program
20281 # Used to examine libraries when file_magic_cmd begins "file"
20282 MAGIC_CMD=$MAGIC_CMD
20284 # Used on cygwin: DLL creation program.
20287 # Used on cygwin: object dumper.
20290 # Used on cygwin: assembler.
20293 # The name of the directory that contains temporary libtool files.
20296 # How to create reloadable object files.
20297 reload_flag=$lt_reload_flag
20298 reload_cmds=$lt_reload_cmds
20300 # How to pass a linker flag through the compiler.
20301 wl=$lt_lt_prog_compiler_wl_CXX
20303 # Object file suffix (normally "o").
20304 objext="$ac_objext"
20306 # Old archive suffix (normally "a").
20309 # Executable file suffix (normally "").
20312 # Additional compiler flags for building library objects.
20313 pic_flag=$lt_lt_prog_compiler_pic_CXX
20316 # What is the maximum length of a command?
20317 max_cmd_len=$lt_cv_sys_max_cmd_len
20319 # Does compiler simultaneously support -c and -o options?
20320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20322 # Must we lock files when doing compilation ?
20323 need_locks=$lt_need_locks
20325 # Do we need the lib prefix for modules?
20326 need_lib_prefix=$need_lib_prefix
20328 # Do we need a version for libraries?
20329 need_version=$need_version
20331 # Whether dlopen is supported.
20332 dlopen_support=$enable_dlopen
20334 # Whether dlopen of programs is supported.
20335 dlopen_self=$enable_dlopen_self
20337 # Whether dlopen of statically linked programs is supported.
20338 dlopen_self_static=$enable_dlopen_self_static
20340 # Compiler flag to prevent dynamic linking.
20341 link_static_flag=$lt_lt_prog_compiler_static_CXX
20343 # Compiler flag to turn off builtin functions.
20344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20346 # Compiler flag to allow reflexive dlopens.
20347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20349 # Compiler flag to generate shared objects directly from archives.
20350 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20352 # Compiler flag to generate thread-safe objects.
20353 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20355 # Library versioning type.
20356 version_type=$version_type
20358 # Format of library name prefix.
20359 libname_spec=$lt_libname_spec
20361 # List of archive names. First name is the real one, the rest are links.
20362 # The last name is the one that the linker finds with -lNAME.
20363 library_names_spec=$lt_library_names_spec
20365 # The coded name of the library, if different from the real name.
20366 soname_spec=$lt_soname_spec
20368 # Commands used to build and install an old-style archive.
20370 old_archive_cmds=$lt_old_archive_cmds_CXX
20371 old_postinstall_cmds=$lt_old_postinstall_cmds
20372 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20374 # Create an old-style archive from a shared archive.
20375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20377 # Create a temporary old-style archive to link instead of a shared archive.
20378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20380 # Commands used to build and install a shared archive.
20381 archive_cmds=$lt_archive_cmds_CXX
20382 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20383 postinstall_cmds=$lt_postinstall_cmds
20384 postuninstall_cmds=$lt_postuninstall_cmds
20386 # Commands to strip libraries.
20387 old_striplib=$lt_old_striplib
20388 striplib=$lt_striplib
20390 # Dependencies to place before the objects being linked to create a
20392 predep_objects=$lt_predep_objects_CXX
20394 # Dependencies to place after the objects being linked to create a
20396 postdep_objects=$lt_postdep_objects_CXX
20398 # Dependencies to place before the objects being linked to create a
20400 predeps=$lt_predeps_CXX
20402 # Dependencies to place after the objects being linked to create a
20404 postdeps=$lt_postdeps_CXX
20406 # The library search path used internally by the compiler when linking
20407 # a shared library.
20408 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20410 # Method to check whether dependent libraries are shared objects.
20411 deplibs_check_method=$lt_deplibs_check_method
20413 # Command to use when deplibs_check_method == file_magic.
20414 file_magic_cmd=$lt_file_magic_cmd
20416 # Flag that allows shared libraries with undefined symbols to be built.
20417 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20419 # Flag that forces no undefined symbols.
20420 no_undefined_flag=$lt_no_undefined_flag_CXX
20422 # Commands used to finish a libtool library installation in a directory.
20423 finish_cmds=$lt_finish_cmds
20425 # Same as above, but a single script fragment to be evaled but not shown.
20426 finish_eval=$lt_finish_eval
20428 # Take the output of nm and produce a listing of raw symbols and C names.
20429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20431 # Transform the output of nm in a proper C declaration
20432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20434 # Transform the output of nm in a C name address pair
20435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20437 # This is the shared library runtime path variable.
20438 runpath_var=$runpath_var
20440 # This is the shared library path variable.
20441 shlibpath_var=$shlibpath_var
20443 # Is shlibpath searched before the hard-coded library search path?
20444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20446 # How to hardcode a shared library path into an executable.
20447 hardcode_action=$hardcode_action_CXX
20449 # Whether we should hardcode library paths into libraries.
20450 hardcode_into_libs=$hardcode_into_libs
20452 # Flag to hardcode \$libdir into a binary during linking.
20453 # This must work even if \$libdir does not exist.
20454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20456 # Whether we need a single -rpath flag with a separated argument.
20457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20459 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
20460 # resulting binary.
20461 hardcode_direct=$hardcode_direct_CXX
20463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20464 # resulting binary.
20465 hardcode_minus_L=$hardcode_minus_L_CXX
20467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20468 # the resulting binary.
20469 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20471 # Variables whose values should be saved in libtool wrapper scripts and
20472 # restored at relink time.
20473 variables_saved_for_relink="$variables_saved_for_relink"
20475 # Whether libtool must link a program against all its dependency libraries.
20476 link_all_deplibs=$link_all_deplibs_CXX
20478 # Compile-time system search path for libraries
20479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20481 # Run-time system search path for libraries
20482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20484 # Fix the shell variable \$srcfile for the compiler.
20485 fix_srcfile_path="$fix_srcfile_path_CXX"
20487 # Set to yes if exported symbols are required.
20488 always_export_symbols=$always_export_symbols_CXX
20490 # The commands to list exported symbols.
20491 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20493 # The commands to extract the exported symbol list from a shared archive.
20494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20496 # Symbols that should not be listed in the preloaded symbols.
20497 exclude_expsyms=$lt_exclude_expsyms_CXX
20499 # Symbols that must always be exported.
20500 include_expsyms=$lt_include_expsyms_CXX
20502 # ### END LIBTOOL TAG CONFIG: $tagname
20507 # If there is no Makefile yet, we rely on a make rule to execute
20508 # `config.status --recheck' to rerun these tests and create the
20509 # libtool script then.
20510 test -f Makefile && make "$ltmain"
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20525 # Source file extension for C test sources.
20528 # Object file extension for compiled C test sources.
20532 # Code to be used in simple compile tests
20533 lt_simple_compile_test_code="class foo {}"
20535 # Code to be used in simple link tests
20536 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
20538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20540 # If no C compiler was specified, use CC.
20543 # Allow CC to be a program name with arguments.
20547 # Allow CC to be a program name with arguments.
20554 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20555 archive_cmds_need_lc_GCJ=no
20557 lt_prog_compiler_no_builtin_flag_GCJ=
20559 if test "$GCC" = yes; then
20560 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20562 echo "$as_me:20562: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20563 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20564 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 lt_cv_prog_compiler_rtti_exceptions=no
20568 ac_outfile=conftest.$ac_objext
20569 save_CFLAGS="$CFLAGS"
20570 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
20571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20572 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
20573 # The compiler can only warn and ignore the option if not recognized
20574 # So say no if there are warnings
20575 if test -s conftest.err; then
20576 # Append any errors to the config.log.
20577 cat conftest.err 1>&5
20579 lt_cv_prog_compiler_rtti_exceptions=yes
20583 CFLAGS="$save_CFLAGS"
20586 echo "$as_me:20586: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20587 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20590 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20597 lt_prog_compiler_wl_GCJ=
20598 lt_prog_compiler_pic_GCJ=
20599 lt_prog_compiler_static_GCJ=
20601 echo "$as_me:20601: checking for $compiler option to produce PIC" >&5
20602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20604 if test "$GCC" = yes; then
20605 lt_prog_compiler_wl_GCJ='-Wl,'
20606 lt_prog_compiler_static_GCJ='-static'
20610 # All AIX code is PIC.
20611 if test "$host_cpu" = ia64; then
20612 # AIX 5 now supports IA64 processor
20613 lt_prog_compiler_static_GCJ='-Bstatic'
20618 # FIXME: we need at least 68020 code to build shared libraries, but
20619 # adding the `-m68020' flag to GCC prevents building anything better,
20621 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20625 # PIC is the default for these OSes.
20628 cygwin* | mingw* | pw32* | os2*)
20629 # This hack is so that the source file can tell whether it is being
20630 # built for inclusion in a dll (and should export symbols for example).
20631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20634 darwin* | rhapsody*)
20635 # PIC is the default on this platform
20636 # Common symbols not allowed in MH_DYLIB files
20637 lt_prog_compiler_pic_GCJ='-fno-common'
20641 # Just because we use GCC doesn't mean we suddenly get shared libraries
20642 # on systems that don't support them.
20643 lt_prog_compiler_can_build_shared_GCJ=no
20648 if test -d /usr/nec; then
20649 lt_prog_compiler_pic_GCJ=-Kconform_pic
20654 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
20655 if test "$host_cpu" != ia64; then
20656 lt_prog_compiler_pic_GCJ='-fPIC'
20661 lt_prog_compiler_pic_GCJ='-fPIC'
20665 # PORTME Check for flag to pass linker flags through the system compiler.
20668 lt_prog_compiler_wl_GCJ='-Wl,'
20669 if test "$host_cpu" = ia64; then
20670 # AIX 5 now supports IA64 processor
20671 lt_prog_compiler_static_GCJ='-Bstatic'
20673 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20677 cygwin* | mingw* | pw32* | os2*)
20678 # This hack is so that the source file can tell whether it is being
20679 # built for inclusion in a dll (and should export symbols for example).
20680 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20683 hpux9* | hpux10* | hpux11*)
20684 lt_prog_compiler_wl_GCJ='-Wl,'
20685 if test "$host_cpu" != ia64; then
20686 lt_prog_compiler_pic_GCJ='+Z'
20688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20689 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20692 irix5* | irix6* | nonstopux*)
20693 lt_prog_compiler_wl_GCJ='-Wl,'
20694 # PIC (with -KPIC) is the default.
20695 lt_prog_compiler_static_GCJ='-non_shared'
20699 lt_prog_compiler_pic_GCJ='-KPIC'
20700 lt_prog_compiler_static_GCJ='-Bstatic'
20703 osf3* | osf4* | osf5*)
20704 lt_prog_compiler_wl_GCJ='-Wl,'
20705 # All OSF/1 code is PIC.
20706 lt_prog_compiler_static_GCJ='-non_shared'
20710 lt_prog_compiler_pic_GCJ='-Kpic'
20711 lt_prog_compiler_static_GCJ='-dn'
20715 lt_prog_compiler_wl_GCJ='-Wl,'
20716 lt_prog_compiler_pic_GCJ='-KPIC'
20717 lt_prog_compiler_static_GCJ='-Bstatic'
20721 lt_prog_compiler_wl_GCJ='-Qoption ld '
20722 lt_prog_compiler_pic_GCJ='-PIC'
20723 lt_prog_compiler_static_GCJ='-Bstatic'
20726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20727 if test "x$host_vendor" = xsni; then
20728 lt_prog_compiler_wl_GCJ='-LD'
20730 lt_prog_compiler_wl_GCJ='-Wl,'
20732 lt_prog_compiler_pic_GCJ='-KPIC'
20733 lt_prog_compiler_static_GCJ='-Bstatic'
20737 if test -d /usr/nec ;then
20738 lt_prog_compiler_pic_GCJ='-Kconform_pic'
20739 lt_prog_compiler_static_GCJ='-Bstatic'
20744 lt_prog_compiler_pic_GCJ='-pic'
20745 lt_prog_compiler_static_GCJ='-Bstatic'
20749 lt_prog_compiler_can_build_shared_GCJ=no
20754 echo "$as_me:20754: result: $lt_prog_compiler_pic_GCJ" >&5
20755 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
20758 # Check to make sure the PIC flag actually works.
20760 if test -n "$lt_prog_compiler_pic_GCJ"; then
20761 echo "$as_me:20761: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
20763 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 lt_prog_compiler_pic_works_GCJ=no
20767 ac_outfile=conftest.$ac_objext
20768 save_CFLAGS="$CFLAGS"
20769 CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
20770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20771 if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
20772 # The compiler can only warn and ignore the option if not recognized
20773 # So say no if there are warnings
20774 if test -s conftest.err; then
20775 # Append any errors to the config.log.
20776 cat conftest.err 1>&5
20778 lt_prog_compiler_pic_works_GCJ=yes
20782 CFLAGS="$save_CFLAGS"
20785 echo "$as_me:20785: result: $lt_prog_compiler_pic_works_GCJ" >&5
20786 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
20788 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
20789 case $lt_prog_compiler_pic_GCJ in
20791 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20794 lt_prog_compiler_pic_GCJ=
20795 lt_prog_compiler_can_build_shared_GCJ=no
20800 # For platforms which do not support PIC, -DPIC is meaningless:
20802 lt_prog_compiler_pic_GCJ=
20805 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
20809 echo "$as_me:20809: checking if $compiler supports -c -o file.$ac_objext" >&5
20810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20811 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 lt_cv_prog_compiler_c_o_GCJ=no
20815 $rm -r conftest 2>/dev/null
20819 save_GCJFLAGS="$GCJFLAGS"
20820 GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
20821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20823 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
20824 # that will create temporary files in the current directory regardless of
20825 # the output directory. Thus, making CWD read-only will cause this test
20826 # to fail, enabling locking or at least warning the user not to do parallel
20830 if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
20832 # The compiler can only warn and ignore the option if not recognized
20833 # So say no if there are warnings
20834 if test -s out/conftest.err; then
20835 # Append any errors to the config.log.
20836 cat out/conftest.err 1>&5
20838 lt_cv_prog_compiler_c_o_GCJ=yes
20841 GCJFLAGS="$save_GCJFLAGS"
20843 $rm conftest* out/*
20850 echo "$as_me:20850: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
20853 hard_links="nottested"
20854 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20855 # do not overwrite the value of need_locks provided by the user
20856 echo "$as_me:20856: checking if we can lock with hard links" >&5
20857 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20862 ln conftest.a conftest.b 2>&5 || hard_links=no
20863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20864 echo "$as_me:20864: result: $hard_links" >&5
20865 echo "${ECHO_T}$hard_links" >&6
20866 if test "$hard_links" = no; then
20867 { echo "$as_me:20867: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20868 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20875 echo "$as_me:20875: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20876 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20879 allow_undefined_flag_GCJ=
20882 archive_cmds_need_lc_GCJ=
20883 archive_expsym_cmds_GCJ=
20884 old_archive_From_new_cmds_GCJ=
20885 old_archive_from_expsyms_cmds_GCJ=
20886 export_dynamic_flag_spec_GCJ=
20887 whole_archive_flag_spec_GCJ=
20888 thread_safe_flag_spec_GCJ=
20889 hardcode_libdir_flag_spec_GCJ=
20890 hardcode_libdir_separator_GCJ=
20891 hardcode_direct_GCJ=no
20892 hardcode_minus_L_GCJ=no
20893 hardcode_shlibpath_var_GCJ=unsupported
20894 link_all_deplibs_GCJ=unknown
20895 always_export_symbols_GCJ=no
20896 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
20897 # include_expsyms should be a list of space-separated symbols to be *always*
20898 # included in the symbol list
20899 include_expsyms_GCJ=
20900 # exclude_expsyms can be an egrep regular expression of symbols to exclude
20901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20903 # as well as any symbol that contains `d'.
20904 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
20905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20906 # platforms (ab)use it in PIC code, but their linkers get confused if
20907 # the symbol is explicitly referenced. Since portable code cannot
20908 # rely on this symbol name, it's probably fine to never include it in
20909 # preloaded symbol tables.
20910 extract_expsyms_cmds=
20913 cygwin* | mingw* | pw32*)
20914 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20915 # When not using gcc, we currently assume that we are using
20916 # Microsoft Visual C++.
20917 if test "$GCC" != yes; then
20927 if test "$with_gnu_ld" = yes; then
20928 # If archive_cmds runs LD, not CC, wlarc should be empty
20931 # See if GNU ld supports shared libraries.
20933 aix3* | aix4* | aix5*)
20934 # On AIX/PPC, the GNU linker is very broken
20935 if test "$host_cpu" != ia64; then
20939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20940 *** to be unable to reliably create shared libraries on AIX.
20941 *** Therefore, libtool is disabling shared libraries support. If you
20942 *** really care for shared libraries, you may want to modify your PATH
20943 *** so that a non-GNU linker is found, and then restart.
20950 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)'
20951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20952 hardcode_minus_L_GCJ=yes
20954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20955 # that the semantics of dynamic libraries on AmigaOS, at least up
20956 # to version 4, is to share data among multiple programs linked
20957 # with the same dynamic library. Since this doesn't match the
20958 # behavior of shared libraries on other platforms, we can't use
20964 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
20965 allow_undefined_flag_GCJ=unsupported
20966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20967 # support --undefined. This deserves some investigation. FIXME
20968 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20974 cygwin* | mingw* | pw32*)
20975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
20976 # no search path for DLLs.
20977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20978 allow_undefined_flag_GCJ=unsupported
20979 always_export_symbols_GCJ=yes
20981 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
20982 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
20983 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
20984 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
20985 else $CC -o impgen impgen.c ; fi)~
20986 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
20988 old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
20990 # cygwin and mingw dlls have different entry points and sets of symbols
20992 # FIXME: what about values for MSVC?
20993 dll_entry=__cygwin_dll_entry@12
20994 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
20998 dll_entry=_DllMainCRTStartup@12
20999 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
21003 # mingw and cygwin differ, and it's simplest to just exclude the union
21004 # of the two symbol sets.
21005 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
21007 # recent cygwin and mingw systems supply a stub DllMain which the user
21008 # can override, but on older systems we have to supply one (in ltdll.c)
21009 if test "x$lt_cv_need_dllmain" = "xyes"; then
21010 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
21011 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~
21012 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
21018 # Extract the symbol export list from an `--export-all' def file,
21019 # then regenerate the def file from the symbol export list, so that
21020 # the compiled dll only exports the symbol export list.
21021 # Be careful not to strip the DATA tag left by newer dlltools.
21022 export_symbols_cmds_GCJ="$ltdll_cmds"'
21023 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
21024 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
21026 # If the export-symbols file already is a .def file (1st line
21027 # is EXPORTS), use it as is.
21028 # If DATA tags from a recent dlltool are present, honour them!
21029 archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
21030 cp $export_symbols $output_objdir/$soname-def;
21032 echo EXPORTS > $output_objdir/$soname-def;
21034 cat $export_symbols | while read symbol; do
21035 set dummy \$symbol;
21037 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
21038 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
21040 _lt_hint=`expr 1 + \$_lt_hint`;
21044 $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~
21045 $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~
21046 $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~
21047 $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~
21048 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
21052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21053 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21056 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21057 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21062 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
21066 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21067 *** create shared libraries on Solaris systems. Therefore, libtool
21068 *** is disabling shared libraries support. We urge you to upgrade GNU
21069 *** binutils to release 2.9.1 or newer. Another option is to modify
21070 *** your PATH or compiler configuration so that the native linker is
21071 *** used, and then restart.
21074 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
21075 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21076 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21083 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21085 hardcode_direct_GCJ=yes
21086 hardcode_shlibpath_var_GCJ=no
21090 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
21091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21092 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21099 if test "$ld_shlibs_GCJ" = yes; then
21100 runpath_var=LD_RUN_PATH
21101 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21102 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21104 cygwin* | mingw* | pw32*)
21105 # dlltool doesn't understand --whole-archive et. al.
21106 whole_archive_flag_spec_GCJ=
21109 # ancient GNU ld didn't support --whole-archive et. al.
21110 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
21111 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21113 whole_archive_flag_spec_GCJ=
21119 # PORTME fill in a description of your system's linker (not GNU ld)
21122 allow_undefined_flag_GCJ=unsupported
21123 always_export_symbols_GCJ=yes
21124 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'
21125 # Note: this linker hardcodes the directories in LIBPATH if there
21126 # are no directories specified by -L.
21127 hardcode_minus_L_GCJ=yes
21128 if test "$GCC" = yes && test -z "$link_static_flag"; then
21129 # Neither direct hardcoding nor static linking is supported with a
21131 hardcode_direct_GCJ=unsupported
21136 if test "$host_cpu" = ia64; then
21137 # On IA64, the linker does run time linking by default, so we don't
21138 # have to do anything special.
21139 aix_use_runtimelinking=no
21140 exp_sym_flag='-Bexport'
21143 # If we're using GNU nm, then we don't want the "-C" option.
21144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21145 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
21146 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'
21148 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'
21151 # KDE requires run time linking. Make it the default.
21152 aix_use_runtimelinking=yes
21153 exp_sym_flag='-bexport'
21154 no_entry_flag='-bnoentry'
21157 # When large executables or shared objects are built, AIX ld can
21158 # have problems creating the table of contents. If linking a library
21159 # or program results in "error TOC overflow" add -mminimal-toc to
21160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21163 archive_cmds_GCJ=''
21164 hardcode_direct_GCJ=yes
21165 hardcode_libdir_separator_GCJ=':'
21166 link_all_deplibs_GCJ=yes
21168 if test "$GCC" = yes; then
21169 case $host_os in aix4.012|aix4.012.*)
21170 # We only want to do this on AIX 4.2 and lower, the check
21171 # below for broken collect2 doesn't work under 4.3+
21172 collect2name=`${CC} -print-prog-name=collect2`
21173 if test -f "$collect2name" && \
21174 strings "$collect2name" | grep resolve_lib_name >/dev/null
21176 # We have reworked collect2
21177 hardcode_direct_GCJ=yes
21179 # We have old collect2
21180 hardcode_direct_GCJ=unsupported
21181 # It fails to find uninstalled libraries when the uninstalled
21182 # path is not listed in the libpath. Setting hardcode_minus_L
21183 # to unsupported forces relinking
21184 hardcode_minus_L_GCJ=yes
21185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21186 hardcode_libdir_separator_GCJ=
21189 shared_flag='-shared'
21192 if test "$host_cpu" = ia64; then
21193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21194 # chokes on -Wl,-G. The following line is correct:
21197 if test "$aix_use_runtimelinking" = yes; then
21198 shared_flag='-qmkshrobj ${wl}-G'
21200 shared_flag='-qmkshrobj'
21205 # Let the compiler handle the export list.
21206 always_export_symbols_GCJ=no
21207 if test "$aix_use_runtimelinking" = yes; then
21208 # Warning - without using the other runtime loading flags (-brtl),
21209 # -berok will link without error, but may produce a broken library.
21210 allow_undefined_flag_GCJ='-berok'
21211 # Determine the default libpath from the value encoded in an empty executable.
21212 cat >conftest.$ac_ext <<_ACEOF
21213 #line 21213 "configure"
21214 #include "confdefs.h"
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (eval echo "$as_me:21225: \"$ac_link\"") >&5
21226 (eval $ac_link) 2>&5
21228 echo "$as_me:21228: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -s conftest$ac_exeext'
21231 { (eval echo "$as_me:21231: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21234 echo "$as_me:21234: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21239 # Check for a 64-bit object if we didn't find anything.
21240 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; }
21243 echo "$as_me: failed program was:" >&5
21244 cat conftest.$ac_ext >&5
21246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21250 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"
21251 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"
21253 if test "$host_cpu" = ia64; then
21254 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21255 allow_undefined_flag_GCJ="-z nodefs"
21256 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"
21258 # Determine the default libpath from the value encoded in an empty executable.
21259 cat >conftest.$ac_ext <<_ACEOF
21260 #line 21260 "configure"
21261 #include "confdefs.h"
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (eval echo "$as_me:21272: \"$ac_link\"") >&5
21273 (eval $ac_link) 2>&5
21275 echo "$as_me:21275: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -s conftest$ac_exeext'
21278 { (eval echo "$as_me:21278: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:21281: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21286 # Check for a 64-bit object if we didn't find anything.
21287 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; }
21290 echo "$as_me: failed program was:" >&5
21291 cat conftest.$ac_ext >&5
21293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21296 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21297 # Warning - without using the other run time loading flags,
21298 # -berok will link without error, but may produce a broken library.
21299 no_undefined_flag_GCJ=' ${wl}-bernotok'
21300 allow_undefined_flag_GCJ=' ${wl}-berok'
21301 # -bexpall does not export symbols beginning with underscore (_)
21302 always_export_symbols_GCJ=yes
21303 # Exported symbols can be pulled into shared objects from archives
21304 whole_archive_flag_spec_GCJ=' '
21305 archive_cmds_need_lc_GCJ=yes
21306 # This is similar to how AIX traditionally builds it's shared libraries.
21307 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'
21313 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)'
21314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21315 hardcode_minus_L_GCJ=yes
21316 # see comment about different semantics on the GNU ld section
21321 export_dynamic_flag_spec_GCJ=-rdynamic
21324 cygwin* | mingw* | pw32*)
21325 # When not using gcc, we currently assume that we are using
21326 # Microsoft Visual C++.
21327 # hardcode_libdir_flag_spec is actually meaningless, as there is
21328 # no search path for DLLs.
21329 hardcode_libdir_flag_spec_GCJ=' '
21330 allow_undefined_flag_GCJ=unsupported
21331 # Tell ltmain to make .lib files, not .a files.
21333 # FIXME: Setting linknames here is a bad hack.
21334 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
21335 # The linker will automatically build a .lib file if we build a DLL.
21336 old_archive_From_new_cmds_GCJ='true'
21337 # FIXME: Should let the user specify the lib program.
21338 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21339 fix_srcfile_path='`cygpath -w "$srcfile"`'
21342 darwin* | rhapsody*)
21344 rhapsody* | darwin1.[012])
21345 allow_undefined_flag_GCJ='-undefined suppress'
21348 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
21352 # FIXME: Relying on posixy $() will cause problems for
21353 # cross-compilation, but unfortunately the echo tests do not
21354 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
21355 # `"' quotes if we put them in here... so don't!
21356 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'
21357 # We need to add '_' to the symbols in $export_symbols first
21358 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
21359 hardcode_direct_GCJ=yes
21360 hardcode_shlibpath_var_GCJ=no
21361 whole_archive_flag_spec_GCJ='-all_load $convenience'
21365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21367 hardcode_shlibpath_var_GCJ=no
21374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21375 # support. Future versions do this automatically, but an explicit c++rt0.o
21376 # does not break anything, and helps significantly (at the cost of a little
21379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21381 hardcode_direct_GCJ=yes
21382 hardcode_shlibpath_var_GCJ=no
21385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21387 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21388 hardcode_direct_GCJ=yes
21389 hardcode_minus_L_GCJ=yes
21390 hardcode_shlibpath_var_GCJ=no
21393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21395 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21397 hardcode_direct_GCJ=yes
21398 hardcode_shlibpath_var_GCJ=no
21401 hpux9* | hpux10* | hpux11*)
21402 if test "$GCC" = yes; then
21405 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'
21408 if test "$host_cpu" = ia64; then
21409 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21411 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21418 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'
21421 if test "$host_cpu" = ia64; then
21422 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21424 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21429 if test "$host_cpu" = ia64; then
21430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21431 hardcode_direct_GCJ=no
21432 hardcode_shlibpath_var_GCJ=no
21434 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21435 hardcode_libdir_separator_GCJ=:
21436 hardcode_direct_GCJ=yes
21438 # hardcode_minus_L: Not really in the search PATH,
21439 # but as the default location of the library.
21440 hardcode_minus_L_GCJ=yes
21441 export_dynamic_flag_spec_GCJ='${wl}-E'
21444 irix5* | irix6* | nonstopux*)
21445 if test "$GCC" = yes; then
21446 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'
21448 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'
21450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21451 hardcode_libdir_separator_GCJ=:
21452 link_all_deplibs_GCJ=yes
21456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21459 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21461 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21462 hardcode_direct_GCJ=yes
21463 hardcode_shlibpath_var_GCJ=no
21467 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21468 hardcode_direct_GCJ=yes
21469 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21470 hardcode_libdir_separator_GCJ=:
21471 hardcode_shlibpath_var_GCJ=no
21475 hardcode_direct_GCJ=yes
21476 hardcode_shlibpath_var_GCJ=no
21478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21479 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
21480 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21481 export_dynamic_flag_spec_GCJ='${wl}-E'
21484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21485 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21489 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
21490 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21498 hardcode_minus_L_GCJ=yes
21499 allow_undefined_flag_GCJ=unsupported
21500 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'
21501 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21505 if test "$GCC" = yes; then
21506 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21507 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'
21509 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21510 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'
21512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21513 hardcode_libdir_separator_GCJ=:
21516 osf4* | osf5*) # as osf3* with the addition of -msym flag
21517 if test "$GCC" = yes; then
21518 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21519 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'
21520 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21522 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21523 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'
21524 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~
21525 $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'
21527 # Both c and cxx compiler support -rpath directly
21528 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21530 hardcode_libdir_separator_GCJ=:
21534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21535 hardcode_shlibpath_var_GCJ=no
21536 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21537 runpath_var=LD_RUN_PATH
21538 hardcode_runpath_var=yes
21542 no_undefined_flag_GCJ=' -z text'
21543 if test "$GCC" = yes; then
21544 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21545 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21546 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21548 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21549 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21552 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21553 hardcode_shlibpath_var_GCJ=no
21555 solaris2.[0-5] | solaris2.[0-5].*) ;;
21556 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21557 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21559 link_all_deplibs_GCJ=yes
21563 if test "x$host_vendor" = xsequent; then
21564 # Use $CC to link under sequent, because it throws in some extra .o
21565 # files that make .init and .fini sections work.
21566 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21568 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21570 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21571 hardcode_direct_GCJ=yes
21572 hardcode_minus_L_GCJ=yes
21573 hardcode_shlibpath_var_GCJ=no
21577 if test "x$host_vendor" = xsni; then
21578 archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
21579 hardcode_direct_GCJ=yes # is this really true???
21581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21582 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21584 runpath_var='LD_RUN_PATH'
21585 hardcode_shlibpath_var_GCJ=no
21589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21590 hardcode_shlibpath_var_GCJ=no
21591 export_dynamic_flag_spec_GCJ='-Bexport'
21595 if test -d /usr/nec; then
21596 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21597 hardcode_shlibpath_var_GCJ=no
21598 runpath_var=LD_RUN_PATH
21599 hardcode_runpath_var=yes
21605 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21606 hardcode_direct_GCJ=yes
21607 hardcode_minus_L_GCJ=no
21608 hardcode_shlibpath_var_GCJ=no
21609 hardcode_runpath_var=yes
21610 runpath_var=LD_RUN_PATH
21613 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21614 no_undefined_flag_GCJ='${wl}-z ${wl}text'
21615 if test "$GCC" = yes; then
21616 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21618 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21620 runpath_var='LD_RUN_PATH'
21621 hardcode_shlibpath_var_GCJ=no
21625 no_undefined_flag_GCJ=' -z text'
21626 # $CC -shared without GNU ld will not create a library from C++
21627 # object files and a static libstdc++, better avoid it by now
21628 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21629 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21631 hardcode_libdir_flag_spec_GCJ=
21632 hardcode_shlibpath_var_GCJ=no
21633 runpath_var='LD_RUN_PATH'
21637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21639 hardcode_shlibpath_var_GCJ=no
21648 echo "$as_me:21648: result: $ld_shlibs_GCJ" >&5
21649 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
21650 test "$ld_shlibs_GCJ" = no && can_build_shared=no
21652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21653 if test "$GCC" = yes; then
21654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21658 # Do we need to explicitly link libc?
21660 archive_cmds_need_lc_GCJ=yes
21661 if test "$enable_shared" = yes && test "$GCC" = yes; then
21662 case $archive_cmds_GCJ in
21664 # FIXME: we may have to deal with multi-command sequences.
21667 # Test whether the compiler implicitly links with -lc since on some
21668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21669 # to ld, don't add -lc before -lgcc.
21670 echo "$as_me:21670: checking whether -lc should be explicitly linked in" >&5
21671 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21673 echo 'static int dummy;' > conftest.$ac_ext
21675 if { (eval echo "$as_me:21675: \"$ac_compile\"") >&5
21676 (eval $ac_compile) 2>&5
21678 echo "$as_me:21678: \$? = $ac_status" >&5
21679 (exit $ac_status); } 2>conftest.err; then
21682 libobjs=conftest.$ac_objext
21684 wl=$lt_prog_compiler_wl_GCJ
21690 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21691 allow_undefined_flag_GCJ=
21692 if { (eval echo "$as_me:21692: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21693 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21695 echo "$as_me:21695: \$? = $ac_status" >&5
21696 (exit $ac_status); }
21698 archive_cmds_need_lc_GCJ=no
21700 archive_cmds_need_lc_GCJ=yes
21702 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21704 cat conftest.err 1>&5
21707 echo "$as_me:21707: result: $archive_cmds_need_lc_GCJ" >&5
21708 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
21713 echo "$as_me:21713: checking how to hardcode library paths into programs" >&5
21714 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21715 hardcode_action_GCJ=
21716 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21717 test -n "$runpath_var GCJ"; then
21719 # We can hardcode non-existant directories.
21720 if test "$hardcode_direct_GCJ" != no &&
21721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21722 # have to relink, otherwise we might link with an installed library
21723 # when we should be linking with a yet-to-be-installed one
21724 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21725 test "$hardcode_minus_L_GCJ" != no; then
21726 # Linking always hardcodes the temporary library directory.
21727 hardcode_action_GCJ=relink
21729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21730 hardcode_action_GCJ=immediate
21733 # We cannot hardcode anything, or else we can only hardcode existing
21735 hardcode_action_GCJ=unsupported
21737 echo "$as_me:21737: result: $hardcode_action_GCJ" >&5
21738 echo "${ECHO_T}$hardcode_action_GCJ" >&6
21740 if test "$hardcode_action_GCJ" = relink; then
21741 # Fast installation is not supported
21742 enable_fast_install=no
21743 elif test "$shlibpath_overrides_runpath" = yes ||
21744 test "$enable_shared" = no; then
21745 # Fast installation is not necessary
21746 enable_fast_install=needless
21751 echo "$as_me:21751: checking whether stripping libraries is possible" >&5
21752 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21753 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21754 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21755 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21756 echo "$as_me:21756: result: yes" >&5
21757 echo "${ECHO_T}yes" >&6
21759 echo "$as_me:21759: result: no" >&5
21760 echo "${ECHO_T}no" >&6
21763 echo "$as_me:21763: checking dynamic linker characteristics" >&5
21764 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21765 library_names_spec=
21766 libname_spec='lib$name'
21769 postuninstall_cmds=
21773 shlibpath_overrides_runpath=unknown
21775 dynamic_linker="$host_os ld.so"
21776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21778 need_lib_prefix=unknown
21779 hardcode_into_libs=no
21781 # when you set need_version to no, make sure it does not cause -set_version
21782 # flags to be left without arguments
21783 need_version=unknown
21788 library_names_spec='${libname}${release}.so$versuffix $libname.a'
21789 shlibpath_var=LIBPATH
21791 # AIX 3 has no versioning support, so we append a major version to the name.
21792 soname_spec='${libname}${release}.so$major'
21797 if test "$host_cpu" = ia64; then
21798 # AIX 5 supports IA64
21799 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
21800 shlibpath_var=LD_LIBRARY_PATH
21802 # With GCC up to 2.95.x, collect2 would create an import file
21803 # for dependence libraries. The import file would start with
21804 # the line `#! .'. This would cause the generated library to
21805 # depend on `.', always an invalid library. This was fixed in
21806 # development snapshots of GCC prior to 3.0.
21808 aix4 | aix4.[01] | aix4.[01].*)
21809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21814 can_build_shared=no
21818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21819 # soname into executable. Probably we can add versioning support to
21820 # collect2, so additional links can be useful in future.
21821 if test "$aix_use_runtimelinking" = yes; then
21822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21823 # instead of lib<name>.a to let people know that these are not
21824 # typical AIX shared libraries.
21825 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
21827 # We preserve .a as extension for shared libraries through AIX4.2
21828 # and later when we are not doing run time linking.
21829 library_names_spec='${libname}${release}.a $libname.a'
21830 soname_spec='${libname}${release}.so$major'
21832 shlibpath_var=LIBPATH
21837 library_names_spec='$libname.ixlibrary $libname.a'
21838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21839 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'
21843 library_names_spec='${libname}.so'
21844 dynamic_linker="$host_os ld.so"
21845 shlibpath_var=LIBRARY_PATH
21851 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
21852 soname_spec='${libname}${release}.so$major'
21853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21854 shlibpath_var=LD_LIBRARY_PATH
21855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21857 # the default ld.so.conf also contains /usr/contrib/lib and
21858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21859 # libtool to hard-code these into programs
21862 cygwin* | mingw* | pw32*)
21863 version_type=windows
21866 case $GCC,$host_os in
21868 library_names_spec='$libname.dll.a'
21869 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
21870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
21871 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
21872 dldir=$destdir/`dirname \$dlpath`~
21873 test -d \$dldir || mkdir -p \$dldir~
21874 $install_prog .libs/$dlname \$dldir/$dlname'
21875 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
21876 dlpath=$dir/\$dldll~
21880 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
21881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
21882 if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
21883 # It is most probably a Windows format PATH printed by
21884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21885 # path with ; separators, and with drive letters. We can handle the
21886 # drive letters (cygwin fileutils understands them), so leave them,
21887 # especially as we might pass files found there to a mingw objdump,
21888 # which wouldn't understand a cygwinified path. Ahh.
21889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
21891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
21895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
21898 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
21901 dynamic_linker='Win32 ld.exe'
21902 # FIXME: first we should search . and the directory the executable is in
21906 darwin* | rhapsody*)
21907 dynamic_linker="$host_os dyld"
21908 version_type=darwin
21911 # FIXME: Relying on posixy $() will cause problems for
21912 # cross-compilation, but unfortunately the echo tests do not
21913 # yet detect zsh echo's removal of \ escapes.
21914 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)'
21915 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
21916 shlibpath_overrides_runpath=yes
21917 shlibpath_var=DYLD_LIBRARY_PATH
21924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
21925 soname_spec='${libname}${release}.so$major'
21926 shlibpath_var=LD_LIBRARY_PATH
21934 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21935 version_type=freebsd-$objformat
21936 case $version_type in
21938 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
21943 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
21947 shlibpath_var=LD_LIBRARY_PATH
21950 shlibpath_overrides_runpath=yes
21952 freebsd3.01* | freebsdelf3.01*)
21953 shlibpath_overrides_runpath=yes
21954 hardcode_into_libs=yes
21957 shlibpath_overrides_runpath=no
21958 hardcode_into_libs=yes
21967 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
21968 soname_spec='${libname}${release}.so$major'
21969 shlibpath_var=LD_LIBRARY_PATH
21970 hardcode_into_libs=yes
21973 hpux9* | hpux10* | hpux11*)
21974 # Give a soname corresponding to the major version so that dld.sl refuses to
21975 # link against other versions.
21979 if test "$host_cpu" = ia64; then
21980 hardcode_into_libs=yes
21981 dynamic_linker="$host_os dld.so"
21982 shlibpath_var=LD_LIBRARY_PATH
21983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21984 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
21985 soname_spec='${libname}${release}.so$major'
21986 if test "X$HPUX_IA64_MODE" = X32; then
21987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21993 dynamic_linker="$host_os dld.sl"
21994 shlibpath_var=SHLIB_PATH
21995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21996 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
21997 soname_spec='${libname}${release}.sl$major'
21999 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22000 postinstall_cmds='chmod 555 $lib'
22003 irix5* | irix6* | nonstopux*)
22005 nonstopux*) version_type=nonstopux ;;
22006 *) version_type=irix ;;
22010 soname_spec='${libname}${release}.so$major'
22011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
22013 irix5* | nonstopux*)
22014 libsuff= shlibsuff=
22017 case $LD in # libtool.m4 will add one of these switches to LD
22018 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
22019 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
22020 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
22021 *) libsuff= shlibsuff= libmagic=never-match;;
22025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22026 shlibpath_overrides_runpath=no
22027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22031 # No shared lib support for Linux oldld, aout, or coff.
22032 linux*oldld* | linux*aout* | linux*coff*)
22036 # This must be Linux ELF.
22041 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22042 soname_spec='${libname}${release}.so$major'
22043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22045 if test "x$LINUX_64_MODE" = x64; then
22046 # Some platforms are per default 64-bit, so there's no /lib64
22047 if test -d /lib64; then
22051 shlibpath_var=LD_LIBRARY_PATH
22052 shlibpath_overrides_runpath=no
22053 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
22054 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22055 # This implies no fast_install, which is unacceptable.
22056 # Some rework will be needed to allow for fast_install
22057 # before this can be enabled.
22058 hardcode_into_libs=yes
22060 # We used to test for /lib/ld.so.1 and disable shared libraries on
22061 # powerpc, because MkLinux only supported shared libraries with the
22062 # GNU dynamic linker. Since this was broken with cross compilers,
22063 # most powerpc-linux boxes support dynamic linking these days and
22064 # people can always --disable-shared, the test was removed, and we
22065 # assume the GNU/Linux dynamic linker is in use.
22066 dynamic_linker='GNU/Linux ld.so'
22073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22074 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
22075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22076 dynamic_linker='NetBSD (a.out) ld.so'
22078 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
22079 soname_spec='${libname}${release}.so$major'
22080 dynamic_linker='NetBSD ld.elf_so'
22082 shlibpath_var=LD_LIBRARY_PATH
22083 shlibpath_overrides_runpath=yes
22084 hardcode_into_libs=yes
22089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22090 shlibpath_var=LD_LIBRARY_PATH
22091 shlibpath_overrides_runpath=yes
22098 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22099 soname_spec='${libname}${release}.so$major'
22100 shlibpath_var=LD_LIBRARY_PATH
22101 shlibpath_overrides_runpath=yes
22108 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
22109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22110 shlibpath_var=LD_LIBRARY_PATH
22111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22113 openbsd2.[89] | openbsd2.[89].*)
22114 shlibpath_overrides_runpath=no
22117 shlibpath_overrides_runpath=yes
22121 shlibpath_overrides_runpath=yes
22126 libname_spec='$name'
22128 library_names_spec='$libname.dll $libname.a'
22129 dynamic_linker='OS/2 ld.exe'
22130 shlibpath_var=LIBPATH
22133 osf3* | osf4* | osf5*)
22137 soname_spec='${libname}${release}.so'
22138 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22146 soname_spec='${libname}${release}.so$major'
22147 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22148 shlibpath_var=LD_LIBRARY_PATH
22155 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22156 soname_spec='${libname}${release}.so$major'
22157 shlibpath_var=LD_LIBRARY_PATH
22158 shlibpath_overrides_runpath=yes
22159 hardcode_into_libs=yes
22160 # ldd complains unless libraries are executable
22161 postinstall_cmds='chmod +x $lib'
22166 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
22167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22168 shlibpath_var=LD_LIBRARY_PATH
22169 shlibpath_overrides_runpath=yes
22170 if test "$with_gnu_ld" = yes; then
22176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22178 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22179 soname_spec='${libname}${release}.so$major'
22180 shlibpath_var=LD_LIBRARY_PATH
22181 case $host_vendor in
22183 shlibpath_overrides_runpath=no
22188 shlibpath_overrides_runpath=no
22189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22195 if test -d /usr/nec ;then
22197 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
22198 soname_spec='$libname.so.$major'
22199 shlibpath_var=LD_LIBRARY_PATH
22205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
22206 soname_spec='${libname}${release}.so$major'
22207 shlibpath_var=LD_LIBRARY_PATH
22214 echo "$as_me:22214: result: $dynamic_linker" >&5
22215 echo "${ECHO_T}$dynamic_linker" >&6
22216 test "$dynamic_linker" = no && can_build_shared=no
22218 if test "x$enable_dlopen" != xyes; then
22219 enable_dlopen=unknown
22220 enable_dlopen_self=unknown
22221 enable_dlopen_self_static=unknown
22228 lt_cv_dlopen="load_add_on"
22230 lt_cv_dlopen_self=yes
22233 cygwin* | mingw* | pw32*)
22234 lt_cv_dlopen="LoadLibrary"
22239 echo "$as_me:22239: checking for shl_load" >&5
22240 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22241 if test "${ac_cv_func_shl_load+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 cat >conftest.$ac_ext <<_ACEOF
22245 #line 22245 "configure"
22246 #include "confdefs.h"
22247 /* System header to define __stub macros and hopefully few prototypes,
22248 which can conflict with char shl_load (); below. */
22249 #include <assert.h>
22250 /* Override any gcc2 internal prototype to avoid an error. */
22254 /* We use char because int might match the return type of a gcc2
22255 builtin and then its argument prototype would still apply. */
22262 /* The GNU C library defines this for functions which it implements
22263 to always fail with ENOSYS. Some functions are actually named
22264 something starting with __ and the normal name is an alias. */
22265 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (eval echo "$as_me:22276: \"$ac_link\"") >&5
22277 (eval $ac_link) 2>&5
22279 echo "$as_me:22279: \$? = $ac_status" >&5
22280 (exit $ac_status); } &&
22281 { ac_try='test -s conftest$ac_exeext'
22282 { (eval echo "$as_me:22282: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22285 echo "$as_me:22285: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
22287 ac_cv_func_shl_load=yes
22289 echo "$as_me: failed program was:" >&5
22290 cat conftest.$ac_ext >&5
22291 ac_cv_func_shl_load=no
22293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22295 echo "$as_me:22295: result: $ac_cv_func_shl_load" >&5
22296 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22297 if test $ac_cv_func_shl_load = yes; then
22298 lt_cv_dlopen="shl_load"
22300 echo "$as_me:22300: checking for shl_load in -ldld" >&5
22301 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 ac_check_lib_save_LIBS=$LIBS
22307 cat >conftest.$ac_ext <<_ACEOF
22308 #line 22308 "configure"
22309 #include "confdefs.h"
22311 /* Override any gcc2 internal prototype to avoid an error. */
22315 /* We use char because int might match the return type of a gcc2
22316 builtin and then its argument prototype would still apply. */
22326 rm -f conftest.$ac_objext conftest$ac_exeext
22327 if { (eval echo "$as_me:22327: \"$ac_link\"") >&5
22328 (eval $ac_link) 2>&5
22330 echo "$as_me:22330: \$? = $ac_status" >&5
22331 (exit $ac_status); } &&
22332 { ac_try='test -s conftest$ac_exeext'
22333 { (eval echo "$as_me:22333: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22336 echo "$as_me:22336: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_cv_lib_dld_shl_load=yes
22340 echo "$as_me: failed program was:" >&5
22341 cat conftest.$ac_ext >&5
22342 ac_cv_lib_dld_shl_load=no
22344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22345 LIBS=$ac_check_lib_save_LIBS
22347 echo "$as_me:22347: result: $ac_cv_lib_dld_shl_load" >&5
22348 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
22349 if test $ac_cv_lib_dld_shl_load = yes; then
22350 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
22352 echo "$as_me:22352: checking for dlopen" >&5
22353 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
22354 if test "${ac_cv_func_dlopen+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 cat >conftest.$ac_ext <<_ACEOF
22358 #line 22358 "configure"
22359 #include "confdefs.h"
22360 /* System header to define __stub macros and hopefully few prototypes,
22361 which can conflict with char dlopen (); below. */
22362 #include <assert.h>
22363 /* Override any gcc2 internal prototype to avoid an error. */
22367 /* We use char because int might match the return type of a gcc2
22368 builtin and then its argument prototype would still apply. */
22375 /* The GNU C library defines this for functions which it implements
22376 to always fail with ENOSYS. Some functions are actually named
22377 something starting with __ and the normal name is an alias. */
22378 #if defined (__stub_dlopen) || defined (__stub___dlopen)
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (eval echo "$as_me:22389: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22392 echo "$as_me:22392: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -s conftest$ac_exeext'
22395 { (eval echo "$as_me:22395: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:22398: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ac_cv_func_dlopen=yes
22402 echo "$as_me: failed program was:" >&5
22403 cat conftest.$ac_ext >&5
22404 ac_cv_func_dlopen=no
22406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22408 echo "$as_me:22408: result: $ac_cv_func_dlopen" >&5
22409 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
22410 if test $ac_cv_func_dlopen = yes; then
22411 lt_cv_dlopen="dlopen"
22413 echo "$as_me:22413: checking for dlopen in -ldl" >&5
22414 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22415 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 ac_check_lib_save_LIBS=$LIBS
22420 cat >conftest.$ac_ext <<_ACEOF
22421 #line 22421 "configure"
22422 #include "confdefs.h"
22424 /* Override any gcc2 internal prototype to avoid an error. */
22428 /* We use char because int might match the return type of a gcc2
22429 builtin and then its argument prototype would still apply. */
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (eval echo "$as_me:22440: \"$ac_link\"") >&5
22441 (eval $ac_link) 2>&5
22443 echo "$as_me:22443: \$? = $ac_status" >&5
22444 (exit $ac_status); } &&
22445 { ac_try='test -s conftest$ac_exeext'
22446 { (eval echo "$as_me:22446: \"$ac_try\"") >&5
22447 (eval $ac_try) 2>&5
22449 echo "$as_me:22449: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_cv_lib_dl_dlopen=yes
22453 echo "$as_me: failed program was:" >&5
22454 cat conftest.$ac_ext >&5
22455 ac_cv_lib_dl_dlopen=no
22457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22458 LIBS=$ac_check_lib_save_LIBS
22460 echo "$as_me:22460: result: $ac_cv_lib_dl_dlopen" >&5
22461 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22462 if test $ac_cv_lib_dl_dlopen = yes; then
22463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22465 echo "$as_me:22465: checking for dlopen in -lsvld" >&5
22466 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
22467 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
22468 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 ac_check_lib_save_LIBS=$LIBS
22471 LIBS="-lsvld $LIBS"
22472 cat >conftest.$ac_ext <<_ACEOF
22473 #line 22473 "configure"
22474 #include "confdefs.h"
22476 /* Override any gcc2 internal prototype to avoid an error. */
22480 /* We use char because int might match the return type of a gcc2
22481 builtin and then its argument prototype would still apply. */
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (eval echo "$as_me:22492: \"$ac_link\"") >&5
22493 (eval $ac_link) 2>&5
22495 echo "$as_me:22495: \$? = $ac_status" >&5
22496 (exit $ac_status); } &&
22497 { ac_try='test -s conftest$ac_exeext'
22498 { (eval echo "$as_me:22498: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22501 echo "$as_me:22501: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 ac_cv_lib_svld_dlopen=yes
22505 echo "$as_me: failed program was:" >&5
22506 cat conftest.$ac_ext >&5
22507 ac_cv_lib_svld_dlopen=no
22509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22510 LIBS=$ac_check_lib_save_LIBS
22512 echo "$as_me:22512: result: $ac_cv_lib_svld_dlopen" >&5
22513 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
22514 if test $ac_cv_lib_svld_dlopen = yes; then
22515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22517 echo "$as_me:22517: checking for dld_link in -ldld" >&5
22518 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
22519 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 ac_check_lib_save_LIBS=$LIBS
22524 cat >conftest.$ac_ext <<_ACEOF
22525 #line 22525 "configure"
22526 #include "confdefs.h"
22528 /* Override any gcc2 internal prototype to avoid an error. */
22532 /* We use char because int might match the return type of a gcc2
22533 builtin and then its argument prototype would still apply. */
22543 rm -f conftest.$ac_objext conftest$ac_exeext
22544 if { (eval echo "$as_me:22544: \"$ac_link\"") >&5
22545 (eval $ac_link) 2>&5
22547 echo "$as_me:22547: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -s conftest$ac_exeext'
22550 { (eval echo "$as_me:22550: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:22553: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }; then
22555 ac_cv_lib_dld_dld_link=yes
22557 echo "$as_me: failed program was:" >&5
22558 cat conftest.$ac_ext >&5
22559 ac_cv_lib_dld_dld_link=no
22561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22562 LIBS=$ac_check_lib_save_LIBS
22564 echo "$as_me:22564: result: $ac_cv_lib_dld_dld_link" >&5
22565 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
22566 if test $ac_cv_lib_dld_dld_link = yes; then
22567 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
22583 if test "x$lt_cv_dlopen" != xno; then
22589 case $lt_cv_dlopen in
22591 save_CPPFLAGS="$CPPFLAGS"
22592 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22594 save_LDFLAGS="$LDFLAGS"
22595 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22598 LIBS="$lt_cv_dlopen_libs $LIBS"
22600 echo "$as_me:22600: checking whether a program can dlopen itself" >&5
22601 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
22602 if test "${lt_cv_dlopen_self+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 if test "$cross_compiling" = yes; then :
22606 lt_cv_dlopen_self=cross
22608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22609 lt_status=$lt_dlunknown
22610 cat > conftest.$ac_ext <<EOF
22611 #line 22611 "configure"
22612 #include "confdefs.h"
22621 # define LT_DLGLOBAL RTLD_GLOBAL
22624 # define LT_DLGLOBAL DL_GLOBAL
22626 # define LT_DLGLOBAL 0
22630 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22631 find out it does not work in some platform. */
22632 #ifndef LT_DLLAZY_OR_NOW
22634 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22637 # define LT_DLLAZY_OR_NOW DL_LAZY
22640 # define LT_DLLAZY_OR_NOW RTLD_NOW
22643 # define LT_DLLAZY_OR_NOW DL_NOW
22645 # define LT_DLLAZY_OR_NOW 0
22653 extern "C" void exit (int);
22656 void fnord() { int i=42;}
22659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22660 int status = $lt_dlunknown;
22664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22665 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22666 /* dlclose (self); */
22672 if { (eval echo "$as_me:22672: \"$ac_link\"") >&5
22673 (eval $ac_link) 2>&5
22675 echo "$as_me:22675: \$? = $ac_status" >&5
22676 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22677 (./conftest; exit; ) 2>/dev/null
22679 case x$lt_status in
22680 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22681 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22682 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
22685 # compilation failed
22686 lt_cv_dlopen_self=no
22692 echo "$as_me:22692: result: $lt_cv_dlopen_self" >&5
22693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
22695 if test "x$lt_cv_dlopen_self" = xyes; then
22696 LDFLAGS="$LDFLAGS $link_static_flag"
22697 echo "$as_me:22697: checking whether a statically linked program can dlopen itself" >&5
22698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
22699 if test "${lt_cv_dlopen_self_static+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 if test "$cross_compiling" = yes; then :
22703 lt_cv_dlopen_self_static=cross
22705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22706 lt_status=$lt_dlunknown
22707 cat > conftest.$ac_ext <<EOF
22708 #line 22708 "configure"
22709 #include "confdefs.h"
22718 # define LT_DLGLOBAL RTLD_GLOBAL
22721 # define LT_DLGLOBAL DL_GLOBAL
22723 # define LT_DLGLOBAL 0
22727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22728 find out it does not work in some platform. */
22729 #ifndef LT_DLLAZY_OR_NOW
22731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22734 # define LT_DLLAZY_OR_NOW DL_LAZY
22737 # define LT_DLLAZY_OR_NOW RTLD_NOW
22740 # define LT_DLLAZY_OR_NOW DL_NOW
22742 # define LT_DLLAZY_OR_NOW 0
22750 extern "C" void exit (int);
22753 void fnord() { int i=42;}
22756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22757 int status = $lt_dlunknown;
22761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22763 /* dlclose (self); */
22769 if { (eval echo "$as_me:22769: \"$ac_link\"") >&5
22770 (eval $ac_link) 2>&5
22772 echo "$as_me:22772: \$? = $ac_status" >&5
22773 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22774 (./conftest; exit; ) 2>/dev/null
22776 case x$lt_status in
22777 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22778 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22779 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22782 # compilation failed
22783 lt_cv_dlopen_self_static=no
22789 echo "$as_me:22789: result: $lt_cv_dlopen_self_static" >&5
22790 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
22793 CPPFLAGS="$save_CPPFLAGS"
22794 LDFLAGS="$save_LDFLAGS"
22799 case $lt_cv_dlopen_self in
22800 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22801 *) enable_dlopen_self=unknown ;;
22804 case $lt_cv_dlopen_self_static in
22805 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22806 *) enable_dlopen_self_static=unknown ;;
22810 # The else clause should only fire when bootstrapping the
22811 # libtool distribution, otherwise you forgot to ship ltmain.sh
22812 # with your package, and you will get complaints that there are
22813 # no rules to generate ltmain.sh.
22814 if test -f "$ltmain"; then
22815 # Now quote all the things that may contain metacharacters while being
22816 # careful not to overquote the AC_SUBSTed values. We take copies of the
22817 # variables and quote the copies for generation of the libtool script.
22818 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
22819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22821 deplibs_check_method reload_flag reload_cmds need_locks \
22822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22823 lt_cv_sys_global_symbol_to_c_name_address \
22824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22825 old_postinstall_cmds old_postuninstall_cmds \
22829 lt_prog_compiler_wl_GCJ \
22830 lt_prog_compiler_pic_GCJ \
22831 lt_prog_compiler_static_GCJ \
22832 lt_prog_compiler_no_builtin_flag_GCJ \
22833 export_dynamic_flag_spec_GCJ \
22834 thread_safe_flag_spec_GCJ \
22835 whole_archive_flag_spec_GCJ \
22836 old_archive_cmds_GCJ \
22837 old_archive_from_new_cmds_GCJ \
22838 predep_objects_GCJ \
22839 postdep_objects_GCJ \
22842 compiler_lib_search_path_GCJ \
22844 archive_expsym_cmds_GCJ \
22845 postinstall_cmds_GCJ \
22846 postuninstall_cmds_GCJ \
22847 old_archive_from_expsyms_cmds_GCJ \
22848 allow_undefined_flag_GCJ \
22849 no_undefined_flag_GCJ \
22850 export_symbols_cmds_GCJ \
22851 hardcode_libdir_flag_spec_GCJ \
22852 hardcode_libdir_separator_GCJ \
22853 lt_cv_prog_compiler_c_o_GCJ \
22854 exclude_expsyms_GCJ \
22855 include_expsyms_GCJ; do
22858 old_archive_cmds_GCJ | \
22859 old_archive_from_new_cmds_GCJ | \
22860 archive_cmds_GCJ | \
22861 archive_expsym_cmds_GCJ | \
22862 old_archive_from_expsyms_cmds_GCJ | \
22863 export_symbols_cmds_GCJ | \
22864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22865 postinstall_cmds | postuninstall_cmds | \
22866 old_postinstall_cmds | old_postuninstall_cmds | \
22867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22868 # Double-quote double-evaled strings.
22869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22878 *'\$0 --fallback-echo"')
22879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22885 cat <<__EOF__ >> "$cfgfile"
22886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22890 # Shell to use when invoking shell scripts.
22893 # Whether or not to build shared libraries.
22894 build_libtool_libs=$enable_shared
22896 # Whether or not to build static libraries.
22897 build_old_libs=$enable_static
22899 # Whether or not to add -lc for building shared libraries.
22900 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22902 # Whether or not to optimize for fast installation.
22903 fast_install=$enable_fast_install
22906 host_alias=$host_alias
22909 # An echo program that does not interpret backslashes.
22914 AR_FLAGS=$lt_AR_FLAGS
22919 # A language-specific compiler.
22920 CC=$lt_compiler_GCJ
22922 # Is the compiler the GNU C compiler?
22925 # The linker used to build libraries.
22928 # Whether we need hard or soft links.
22931 # A BSD-compatible nm program.
22934 # A sed program that does not truncate output.
22937 # A symbol stripping program
22940 # Used to examine libraries when file_magic_cmd begins "file"
22941 MAGIC_CMD=$MAGIC_CMD
22943 # Used on cygwin: DLL creation program.
22946 # Used on cygwin: object dumper.
22949 # Used on cygwin: assembler.
22952 # The name of the directory that contains temporary libtool files.
22955 # How to create reloadable object files.
22956 reload_flag=$lt_reload_flag
22957 reload_cmds=$lt_reload_cmds
22959 # How to pass a linker flag through the compiler.
22960 wl=$lt_lt_prog_compiler_wl_GCJ
22962 # Object file suffix (normally "o").
22963 objext="$ac_objext"
22965 # Old archive suffix (normally "a").
22968 # Executable file suffix (normally "").
22971 # Additional compiler flags for building library objects.
22972 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22975 # What is the maximum length of a command?
22976 max_cmd_len=$lt_cv_sys_max_cmd_len
22978 # Does compiler simultaneously support -c and -o options?
22979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22981 # Must we lock files when doing compilation ?
22982 need_locks=$lt_need_locks
22984 # Do we need the lib prefix for modules?
22985 need_lib_prefix=$need_lib_prefix
22987 # Do we need a version for libraries?
22988 need_version=$need_version
22990 # Whether dlopen is supported.
22991 dlopen_support=$enable_dlopen
22993 # Whether dlopen of programs is supported.
22994 dlopen_self=$enable_dlopen_self
22996 # Whether dlopen of statically linked programs is supported.
22997 dlopen_self_static=$enable_dlopen_self_static
22999 # Compiler flag to prevent dynamic linking.
23000 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23002 # Compiler flag to turn off builtin functions.
23003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23005 # Compiler flag to allow reflexive dlopens.
23006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23008 # Compiler flag to generate shared objects directly from archives.
23009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23011 # Compiler flag to generate thread-safe objects.
23012 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23014 # Library versioning type.
23015 version_type=$version_type
23017 # Format of library name prefix.
23018 libname_spec=$lt_libname_spec
23020 # List of archive names. First name is the real one, the rest are links.
23021 # The last name is the one that the linker finds with -lNAME.
23022 library_names_spec=$lt_library_names_spec
23024 # The coded name of the library, if different from the real name.
23025 soname_spec=$lt_soname_spec
23027 # Commands used to build and install an old-style archive.
23029 old_archive_cmds=$lt_old_archive_cmds_GCJ
23030 old_postinstall_cmds=$lt_old_postinstall_cmds
23031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23033 # Create an old-style archive from a shared archive.
23034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23036 # Create a temporary old-style archive to link instead of a shared archive.
23037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23039 # Commands used to build and install a shared archive.
23040 archive_cmds=$lt_archive_cmds_GCJ
23041 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23042 postinstall_cmds=$lt_postinstall_cmds
23043 postuninstall_cmds=$lt_postuninstall_cmds
23045 # Commands to strip libraries.
23046 old_striplib=$lt_old_striplib
23047 striplib=$lt_striplib
23049 # Dependencies to place before the objects being linked to create a
23051 predep_objects=$lt_predep_objects_GCJ
23053 # Dependencies to place after the objects being linked to create a
23055 postdep_objects=$lt_postdep_objects_GCJ
23057 # Dependencies to place before the objects being linked to create a
23059 predeps=$lt_predeps_GCJ
23061 # Dependencies to place after the objects being linked to create a
23063 postdeps=$lt_postdeps_GCJ
23065 # The library search path used internally by the compiler when linking
23066 # a shared library.
23067 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23069 # Method to check whether dependent libraries are shared objects.
23070 deplibs_check_method=$lt_deplibs_check_method
23072 # Command to use when deplibs_check_method == file_magic.
23073 file_magic_cmd=$lt_file_magic_cmd
23075 # Flag that allows shared libraries with undefined symbols to be built.
23076 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23078 # Flag that forces no undefined symbols.
23079 no_undefined_flag=$lt_no_undefined_flag_GCJ
23081 # Commands used to finish a libtool library installation in a directory.
23082 finish_cmds=$lt_finish_cmds
23084 # Same as above, but a single script fragment to be evaled but not shown.
23085 finish_eval=$lt_finish_eval
23087 # Take the output of nm and produce a listing of raw symbols and C names.
23088 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23090 # Transform the output of nm in a proper C declaration
23091 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23093 # Transform the output of nm in a C name address pair
23094 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23096 # This is the shared library runtime path variable.
23097 runpath_var=$runpath_var
23099 # This is the shared library path variable.
23100 shlibpath_var=$shlibpath_var
23102 # Is shlibpath searched before the hard-coded library search path?
23103 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23105 # How to hardcode a shared library path into an executable.
23106 hardcode_action=$hardcode_action_GCJ
23108 # Whether we should hardcode library paths into libraries.
23109 hardcode_into_libs=$hardcode_into_libs
23111 # Flag to hardcode \$libdir into a binary during linking.
23112 # This must work even if \$libdir does not exist.
23113 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23115 # Whether we need a single -rpath flag with a separated argument.
23116 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23118 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
23119 # resulting binary.
23120 hardcode_direct=$hardcode_direct_GCJ
23122 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23123 # resulting binary.
23124 hardcode_minus_L=$hardcode_minus_L_GCJ
23126 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23127 # the resulting binary.
23128 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23130 # Variables whose values should be saved in libtool wrapper scripts and
23131 # restored at relink time.
23132 variables_saved_for_relink="$variables_saved_for_relink"
23134 # Whether libtool must link a program against all its dependency libraries.
23135 link_all_deplibs=$link_all_deplibs_GCJ
23137 # Compile-time system search path for libraries
23138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23140 # Run-time system search path for libraries
23141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23143 # Fix the shell variable \$srcfile for the compiler.
23144 fix_srcfile_path="$fix_srcfile_path_GCJ"
23146 # Set to yes if exported symbols are required.
23147 always_export_symbols=$always_export_symbols_GCJ
23149 # The commands to list exported symbols.
23150 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23152 # The commands to extract the exported symbol list from a shared archive.
23153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23155 # Symbols that should not be listed in the preloaded symbols.
23156 exclude_expsyms=$lt_exclude_expsyms_GCJ
23158 # Symbols that must always be exported.
23159 include_expsyms=$lt_include_expsyms_GCJ
23161 # ### END LIBTOOL TAG CONFIG: $tagname
23166 # If there is no Makefile yet, we rely on a make rule to execute
23167 # `config.status --recheck' to rerun these tests and create the
23168 # libtool script then.
23169 test -f Makefile && make "$ltmain"
23173 ac_cpp='$CPP $CPPFLAGS'
23174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23184 # Source file extension for RC test sources.
23187 # Object file extension for compiled RC test sources.
23191 # Code to be used in simple compile tests
23192 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23194 # Code to be used in simple link tests
23195 lt_simple_link_test_code="$lt_simple_compile_test_code"
23197 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23199 # If no C compiler was specified, use CC.
23202 # Allow CC to be a program name with arguments.
23206 # Allow CC to be a program name with arguments.
23212 lt_cv_prog_compiler_c_o_RC=yes
23214 # The else clause should only fire when bootstrapping the
23215 # libtool distribution, otherwise you forgot to ship ltmain.sh
23216 # with your package, and you will get complaints that there are
23217 # no rules to generate ltmain.sh.
23218 if test -f "$ltmain"; then
23219 # Now quote all the things that may contain metacharacters while being
23220 # careful not to overquote the AC_SUBSTed values. We take copies of the
23221 # variables and quote the copies for generation of the libtool script.
23222 for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
23223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23225 deplibs_check_method reload_flag reload_cmds need_locks \
23226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23227 lt_cv_sys_global_symbol_to_c_name_address \
23228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23229 old_postinstall_cmds old_postuninstall_cmds \
23233 lt_prog_compiler_wl_RC \
23234 lt_prog_compiler_pic_RC \
23235 lt_prog_compiler_static_RC \
23236 lt_prog_compiler_no_builtin_flag_RC \
23237 export_dynamic_flag_spec_RC \
23238 thread_safe_flag_spec_RC \
23239 whole_archive_flag_spec_RC \
23240 old_archive_cmds_RC \
23241 old_archive_from_new_cmds_RC \
23242 predep_objects_RC \
23243 postdep_objects_RC \
23246 compiler_lib_search_path_RC \
23248 archive_expsym_cmds_RC \
23249 postinstall_cmds_RC \
23250 postuninstall_cmds_RC \
23251 old_archive_from_expsyms_cmds_RC \
23252 allow_undefined_flag_RC \
23253 no_undefined_flag_RC \
23254 export_symbols_cmds_RC \
23255 hardcode_libdir_flag_spec_RC \
23256 hardcode_libdir_separator_RC \
23257 lt_cv_prog_compiler_c_o_RC \
23258 exclude_expsyms_RC \
23259 include_expsyms_RC; do
23262 old_archive_cmds_RC | \
23263 old_archive_from_new_cmds_RC | \
23264 archive_cmds_RC | \
23265 archive_expsym_cmds_RC | \
23266 old_archive_from_expsyms_cmds_RC | \
23267 export_symbols_cmds_RC | \
23268 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23269 postinstall_cmds | postuninstall_cmds | \
23270 old_postinstall_cmds | old_postuninstall_cmds | \
23271 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23272 # Double-quote double-evaled strings.
23273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23282 *'\$0 --fallback-echo"')
23283 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23289 cat <<__EOF__ >> "$cfgfile"
23290 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23294 # Shell to use when invoking shell scripts.
23297 # Whether or not to build shared libraries.
23298 build_libtool_libs=$enable_shared
23300 # Whether or not to build static libraries.
23301 build_old_libs=$enable_static
23303 # Whether or not to add -lc for building shared libraries.
23304 build_libtool_need_lc=$archive_cmds_need_lc_RC
23306 # Whether or not to optimize for fast installation.
23307 fast_install=$enable_fast_install
23310 host_alias=$host_alias
23313 # An echo program that does not interpret backslashes.
23318 AR_FLAGS=$lt_AR_FLAGS
23323 # A language-specific compiler.
23326 # Is the compiler the GNU C compiler?
23329 # The linker used to build libraries.
23332 # Whether we need hard or soft links.
23335 # A BSD-compatible nm program.
23338 # A sed program that does not truncate output.
23341 # A symbol stripping program
23344 # Used to examine libraries when file_magic_cmd begins "file"
23345 MAGIC_CMD=$MAGIC_CMD
23347 # Used on cygwin: DLL creation program.
23350 # Used on cygwin: object dumper.
23353 # Used on cygwin: assembler.
23356 # The name of the directory that contains temporary libtool files.
23359 # How to create reloadable object files.
23360 reload_flag=$lt_reload_flag
23361 reload_cmds=$lt_reload_cmds
23363 # How to pass a linker flag through the compiler.
23364 wl=$lt_lt_prog_compiler_wl_RC
23366 # Object file suffix (normally "o").
23367 objext="$ac_objext"
23369 # Old archive suffix (normally "a").
23372 # Executable file suffix (normally "").
23375 # Additional compiler flags for building library objects.
23376 pic_flag=$lt_lt_prog_compiler_pic_RC
23379 # What is the maximum length of a command?
23380 max_cmd_len=$lt_cv_sys_max_cmd_len
23382 # Does compiler simultaneously support -c and -o options?
23383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23385 # Must we lock files when doing compilation ?
23386 need_locks=$lt_need_locks
23388 # Do we need the lib prefix for modules?
23389 need_lib_prefix=$need_lib_prefix
23391 # Do we need a version for libraries?
23392 need_version=$need_version
23394 # Whether dlopen is supported.
23395 dlopen_support=$enable_dlopen
23397 # Whether dlopen of programs is supported.
23398 dlopen_self=$enable_dlopen_self
23400 # Whether dlopen of statically linked programs is supported.
23401 dlopen_self_static=$enable_dlopen_self_static
23403 # Compiler flag to prevent dynamic linking.
23404 link_static_flag=$lt_lt_prog_compiler_static_RC
23406 # Compiler flag to turn off builtin functions.
23407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23409 # Compiler flag to allow reflexive dlopens.
23410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23412 # Compiler flag to generate shared objects directly from archives.
23413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23415 # Compiler flag to generate thread-safe objects.
23416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23418 # Library versioning type.
23419 version_type=$version_type
23421 # Format of library name prefix.
23422 libname_spec=$lt_libname_spec
23424 # List of archive names. First name is the real one, the rest are links.
23425 # The last name is the one that the linker finds with -lNAME.
23426 library_names_spec=$lt_library_names_spec
23428 # The coded name of the library, if different from the real name.
23429 soname_spec=$lt_soname_spec
23431 # Commands used to build and install an old-style archive.
23433 old_archive_cmds=$lt_old_archive_cmds_RC
23434 old_postinstall_cmds=$lt_old_postinstall_cmds
23435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23437 # Create an old-style archive from a shared archive.
23438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23440 # Create a temporary old-style archive to link instead of a shared archive.
23441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23443 # Commands used to build and install a shared archive.
23444 archive_cmds=$lt_archive_cmds_RC
23445 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23446 postinstall_cmds=$lt_postinstall_cmds
23447 postuninstall_cmds=$lt_postuninstall_cmds
23449 # Commands to strip libraries.
23450 old_striplib=$lt_old_striplib
23451 striplib=$lt_striplib
23453 # Dependencies to place before the objects being linked to create a
23455 predep_objects=$lt_predep_objects_RC
23457 # Dependencies to place after the objects being linked to create a
23459 postdep_objects=$lt_postdep_objects_RC
23461 # Dependencies to place before the objects being linked to create a
23463 predeps=$lt_predeps_RC
23465 # Dependencies to place after the objects being linked to create a
23467 postdeps=$lt_postdeps_RC
23469 # The library search path used internally by the compiler when linking
23470 # a shared library.
23471 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23473 # Method to check whether dependent libraries are shared objects.
23474 deplibs_check_method=$lt_deplibs_check_method
23476 # Command to use when deplibs_check_method == file_magic.
23477 file_magic_cmd=$lt_file_magic_cmd
23479 # Flag that allows shared libraries with undefined symbols to be built.
23480 allow_undefined_flag=$lt_allow_undefined_flag_RC
23482 # Flag that forces no undefined symbols.
23483 no_undefined_flag=$lt_no_undefined_flag_RC
23485 # Commands used to finish a libtool library installation in a directory.
23486 finish_cmds=$lt_finish_cmds
23488 # Same as above, but a single script fragment to be evaled but not shown.
23489 finish_eval=$lt_finish_eval
23491 # Take the output of nm and produce a listing of raw symbols and C names.
23492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23494 # Transform the output of nm in a proper C declaration
23495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23497 # Transform the output of nm in a C name address pair
23498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23500 # This is the shared library runtime path variable.
23501 runpath_var=$runpath_var
23503 # This is the shared library path variable.
23504 shlibpath_var=$shlibpath_var
23506 # Is shlibpath searched before the hard-coded library search path?
23507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23509 # How to hardcode a shared library path into an executable.
23510 hardcode_action=$hardcode_action_RC
23512 # Whether we should hardcode library paths into libraries.
23513 hardcode_into_libs=$hardcode_into_libs
23515 # Flag to hardcode \$libdir into a binary during linking.
23516 # This must work even if \$libdir does not exist.
23517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23519 # Whether we need a single -rpath flag with a separated argument.
23520 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23522 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
23523 # resulting binary.
23524 hardcode_direct=$hardcode_direct_RC
23526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23527 # resulting binary.
23528 hardcode_minus_L=$hardcode_minus_L_RC
23530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23531 # the resulting binary.
23532 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23534 # Variables whose values should be saved in libtool wrapper scripts and
23535 # restored at relink time.
23536 variables_saved_for_relink="$variables_saved_for_relink"
23538 # Whether libtool must link a program against all its dependency libraries.
23539 link_all_deplibs=$link_all_deplibs_RC
23541 # Compile-time system search path for libraries
23542 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23544 # Run-time system search path for libraries
23545 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23547 # Fix the shell variable \$srcfile for the compiler.
23548 fix_srcfile_path="$fix_srcfile_path_RC"
23550 # Set to yes if exported symbols are required.
23551 always_export_symbols=$always_export_symbols_RC
23553 # The commands to list exported symbols.
23554 export_symbols_cmds=$lt_export_symbols_cmds_RC
23556 # The commands to extract the exported symbol list from a shared archive.
23557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23559 # Symbols that should not be listed in the preloaded symbols.
23560 exclude_expsyms=$lt_exclude_expsyms_RC
23562 # Symbols that must always be exported.
23563 include_expsyms=$lt_include_expsyms_RC
23565 # ### END LIBTOOL TAG CONFIG: $tagname
23570 # If there is no Makefile yet, we rely on a make rule to execute
23571 # `config.status --recheck' to rerun these tests and create the
23572 # libtool script then.
23573 test -f Makefile && make "$ltmain"
23577 ac_cpp='$CPP $CPPFLAGS'
23578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23587 { { echo "$as_me:23587: error: Unsupported tag name: $tagname" >&5
23588 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23589 { (exit 1); exit 1; }; }
23593 # Append the new tag name to the list of available tags.
23594 available_tags="$available_tags $tagname"
23599 # Now substitute the updated list of available tags.
23600 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23601 mv "${ofile}T" "$ofile"
23605 { { echo "$as_me:23605: error: unable to update list of available tagged configurations." >&5
23606 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23607 { (exit 1); exit 1; }; }
23611 LIBTOOL_SHELL="/bin/sh ./libtool"
23612 # LIBTOOL="$LIBTOOL --silent"
23614 echo "$as_me:23614: checking for cfg_getstr in -lconfuse" >&5
23615 echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6
23616 if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23619 ac_check_lib_save_LIBS=$LIBS
23620 LIBS="-lconfuse $LIBS"
23621 cat >conftest.$ac_ext <<_ACEOF
23622 #line 23622 "configure"
23623 #include "confdefs.h"
23625 /* Override any gcc2 internal prototype to avoid an error. */
23629 /* We use char because int might match the return type of a gcc2
23630 builtin and then its argument prototype would still apply. */
23631 char cfg_getstr ();
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (eval echo "$as_me:23641: \"$ac_link\"") >&5
23642 (eval $ac_link) 2>&5
23644 echo "$as_me:23644: \$? = $ac_status" >&5
23645 (exit $ac_status); } &&
23646 { ac_try='test -s conftest$ac_exeext'
23647 { (eval echo "$as_me:23647: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23650 echo "$as_me:23650: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_cv_lib_confuse_cfg_getstr=yes
23654 echo "$as_me: failed program was:" >&5
23655 cat conftest.$ac_ext >&5
23656 ac_cv_lib_confuse_cfg_getstr=no
23658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23659 LIBS=$ac_check_lib_save_LIBS
23661 echo "$as_me:23661: result: $ac_cv_lib_confuse_cfg_getstr" >&5
23662 echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6
23663 if test $ac_cv_lib_confuse_cfg_getstr = yes; then
23664 cat >>confdefs.h <<EOF
23665 #define HAVE_LIBCONFUSE 1
23668 LIBS="-lconfuse $LIBS"
23671 { { echo "$as_me:23671: error: can't find confuse library" >&5
23672 echo "$as_me: error: can't find confuse library" >&2;}
23673 { (exit 1); exit 1; }; }
23676 # Extract the first word of "libftdi-config", so it can be a program name with args.
23677 set dummy libftdi-config; ac_word=$2
23678 echo "$as_me:23678: checking for $ac_word" >&5
23679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23680 if test "${ac_cv_path_HAVELIBFTDI+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 case $HAVELIBFTDI in
23685 ac_cv_path_HAVELIBFTDI="$HAVELIBFTDI" # Let the user override the test with a path.
23688 ac_save_IFS=$IFS; IFS=$ac_path_separator
23690 for ac_dir in $ac_dummy; do
23692 test -z "$ac_dir" && ac_dir=.
23693 if $as_executable_p "$ac_dir/$ac_word"; then
23694 ac_cv_path_HAVELIBFTDI="$ac_dir/$ac_word"
23695 echo "$as_me:23695: found $ac_dir/$ac_word" >&5
23700 test -z "$ac_cv_path_HAVELIBFTDI" && ac_cv_path_HAVELIBFTDI="$PATH"
23704 HAVELIBFTDI=$ac_cv_path_HAVELIBFTDI
23706 if test -n "$HAVELIBFTDI"; then
23707 echo "$as_me:23707: result: $HAVELIBFTDI" >&5
23708 echo "${ECHO_T}$HAVELIBFTDI" >&6
23710 echo "$as_me:23710: result: no" >&5
23711 echo "${ECHO_T}no" >&6
23714 if test ! -z "$HAVELIBFTDI"; then
23715 LIBFTDI_LIBS=`$HAVELIBFTDI --libs`
23717 CFLAGS="$CFLAGS $LIBFTDI_CFLAGS"
23718 LIBS="$LIBS $LIBFTDI_LIBS"
23720 { { echo "$as_me:23720: error: *** libftdi-config not found. You need a working libftdi installation." >&5
23721 echo "$as_me: error: *** libftdi-config not found. You need a working libftdi installation." >&2;}
23722 { (exit 1); exit 1; }; }
23725 echo "$as_me:23725: checking for extra includes" >&5
23726 echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
23728 # Check whether --with-extra-includes or --without-extra-includes was given.
23729 if test "${with_extra_includes+set}" = set; then
23730 withval="$with_extra_includes"
23731 kde_use_extra_includes="$withval"
23733 kde_use_extra_includes=NONE
23736 kde_extra_includes=
23737 if test -n "$kde_use_extra_includes" && \
23738 test "$kde_use_extra_includes" != "NONE"; then
23742 for dir in $kde_use_extra_includes; do
23743 kde_extra_includes="$kde_extra_includes $dir"
23744 USER_INCLUDES="$USER_INCLUDES -I$dir"
23747 kde_use_extra_includes="added"
23749 kde_use_extra_includes="no"
23752 echo "$as_me:23752: result: $kde_use_extra_includes" >&5
23753 echo "${ECHO_T}$kde_use_extra_includes" >&6
23756 echo "$as_me:23756: checking for extra libs" >&5
23757 echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
23759 # Check whether --with-extra-libs or --without-extra-libs was given.
23760 if test "${with_extra_libs+set}" = set; then
23761 withval="$with_extra_libs"
23762 kde_use_extra_libs=$withval
23764 kde_use_extra_libs=NONE
23767 if test -n "$kde_use_extra_libs" && \
23768 test "$kde_use_extra_libs" != "NONE"; then
23772 for dir in $kde_use_extra_libs; do
23773 kde_extra_libs="$kde_extra_libs $dir"
23774 KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
23775 USER_LDFLAGS="$USER_LDFLAGS -L$dir"
23778 kde_use_extra_libs="added"
23780 kde_use_extra_libs="no"
23783 echo "$as_me:23783: result: $kde_use_extra_libs" >&5
23784 echo "${ECHO_T}$kde_use_extra_libs" >&6
23786 all_libraries="$all_libraries $USER_LDFLAGS"
23787 all_includes="$all_includes $USER_INCLUDES"
23789 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
23791 if test ! -s $srcdir/subdirs; then
23793 files=`cd $srcdir && ls -1`
23794 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
23796 echo $i >> $srcdir/subdirs
23800 if test -s $srcdir/inst-apps; then
23801 ac_topsubdirs="`cat $srcdir/inst-apps`"
23803 ac_topsubdirs="`cat $srcdir/subdirs`"
23806 for i in $ac_topsubdirs; do
23807 echo "$as_me:23807: checking if $i should be compiled" >&5
23808 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
23809 if test -d $srcdir/$i; then
23811 for j in $DO_NOT_COMPILE; do
23812 if test $i = $j; then
23819 echo "$as_me:23819: result: $install_it" >&5
23820 echo "${ECHO_T}$install_it" >&6
23821 vari=`echo $i | sed -e 's,[-+.],_,g'`
23822 if test $install_it = "yes"; then
23823 TOPSUBDIRS="$TOPSUBDIRS $i"
23824 eval "$vari""_SUBDIR_included=yes"
23826 eval "$vari""_SUBDIR_included=no"
23830 ac_config_files="$ac_config_files Makefile"
23832 ac_config_files="$ac_config_files ftdi_eeprom/Makefile"
23834 cat >confcache <<\_ACEOF
23835 # This file is a shell script that caches the results of configure
23836 # tests run on this system so they can be shared between configure
23837 # scripts and configure runs, see configure's option --config-cache.
23838 # It is not useful on other systems. If it contains results you don't
23839 # want to keep, you may remove or edit it.
23841 # config.status only pays attention to the cache file if you give it
23842 # the --recheck option to rerun configure.
23844 # `ac_cv_env_foo' variables (set or unset) will be overriden when
23845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23846 # following values.
23850 # The following way of writing the cache mishandles newlines in values,
23851 # but we know of no workaround that is simple, portable, and efficient.
23852 # So, don't put newlines in cache variables' values.
23853 # Ultrix sh set writes to stderr and can't be redirected directly,
23854 # and sets the high bit in the cache file unless we assign to the vars.
23857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23859 # `set' does not quote correctly, so add quotes (double-quote
23860 # substitution turns \\\\ into \\, and sed turns \\ into \).
23863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23866 # `set' quotes correctly as required by POSIX, so do not add quotes.
23868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23879 if cmp -s $cache_file confcache; then :; else
23880 if test -w $cache_file; then
23881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23882 cat confcache >$cache_file
23884 echo "not updating unwritable cache $cache_file"
23889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23890 # Let make expand exec_prefix.
23891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23895 # trailing colons and then remove the whole line if VPATH becomes empty
23896 # (actually we leave an empty line to preserve line numbers).
23897 if test "x$srcdir" = x.; then
23898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23899 s/:*\$(srcdir):*/:/;
23900 s/:*\${srcdir}:*/:/;
23902 s/^\([^=]*=[ ]*\):*/\1/;
23908 DEFS=-DHAVE_CONFIG_H
23910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23911 { { echo "$as_me:23911: error: conditional \"AMDEP\" was never defined.
23912 Usually this means the macro was only invoked conditionally." >&5
23913 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23914 Usually this means the macro was only invoked conditionally." >&2;}
23915 { (exit 1); exit 1; }; }
23918 : ${CONFIG_STATUS=./config.status}
23919 ac_clean_files_save=$ac_clean_files
23920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23921 { echo "$as_me:23921: creating $CONFIG_STATUS" >&5
23922 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23923 cat >$CONFIG_STATUS <<_ACEOF
23925 # Generated automatically by configure.
23926 # Run this file to recreate the current configuration.
23927 # Compiler output produced by configure, useful for debugging
23928 # configure, is in config.log if it exists.
23931 SHELL=\${CONFIG_SHELL-$SHELL}
23932 ac_cs_invocation="\$0 \$@"
23936 cat >>$CONFIG_STATUS <<\_ACEOF
23937 # Be Bourne compatible
23938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23941 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23945 # Name of the executable.
23946 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23948 if expr a : '\(a\)' >/dev/null 2>&1; then
23954 rm -f conf$$ conf$$.exe conf$$.file
23956 if ln -s conf$$.file conf$$ 2>/dev/null; then
23957 # We could just check for DJGPP; but this test a) works b) is more generic
23958 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23959 if test -f conf$$.exe; then
23960 # Don't use ln at all; we don't have any links
23965 elif ln conf$$.file conf$$ 2>/dev/null; then
23970 rm -f conf$$ conf$$.exe conf$$.file
23972 as_executable_p="test -f"
23974 # Support unset when possible.
23975 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23982 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23983 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23984 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23985 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23986 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23987 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23988 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23989 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23992 # We need space, tab and new line, in precisely that order.
23998 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
24004 # Files that config.status was made for.
24005 if test -n "$ac_config_files"; then
24006 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24009 if test -n "$ac_config_headers"; then
24010 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24013 if test -n "$ac_config_links"; then
24014 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24017 if test -n "$ac_config_commands"; then
24018 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24021 cat >>$CONFIG_STATUS <<\EOF
24024 \`$as_me' instantiates files from templates according to the
24025 current configuration.
24027 Usage: $0 [OPTIONS] [FILE]...
24029 -h, --help print this help, then exit
24030 -V, --version print version number, then exit
24031 -d, --debug don't remove temporary files
24032 --recheck update $as_me by reconfiguring in the same conditions
24033 --file=FILE[:TEMPLATE]
24034 instantiate the configuration file FILE
24035 --header=FILE[:TEMPLATE]
24036 instantiate the configuration header FILE
24038 Configuration files:
24041 Configuration headers:
24044 Configuration commands:
24047 Report bugs to <bug-autoconf@gnu.org>."
24050 cat >>$CONFIG_STATUS <<EOF
24053 configured by $0, generated by GNU Autoconf 2.52,
24054 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24056 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24057 Free Software Foundation, Inc.
24058 This config.status script is free software; the Free Software Foundation
24059 gives unlimited permission to copy, distribute and modify it."
24064 cat >>$CONFIG_STATUS <<\EOF
24065 # If no file are specified by the user, then we need to provide default
24066 # value. By we need to know if files were specified by the user.
24072 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24073 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24075 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
24079 *) # This is not an option, so the user has probably given explicit
24081 ac_need_defaults=false;;
24085 # Handling of the options.
24087 cat >>$CONFIG_STATUS <<EOF
24088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24089 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
24090 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
24092 cat >>$CONFIG_STATUS <<\EOF
24093 --version | --vers* | -V )
24094 echo "$ac_cs_version"; exit 0 ;;
24096 # Conflict between --help and --header
24097 { { echo "$as_me:24097: error: ambiguous option: $1
24098 Try \`$0 --help' for more information." >&5
24099 echo "$as_me: error: ambiguous option: $1
24100 Try \`$0 --help' for more information." >&2;}
24101 { (exit 1); exit 1; }; };;
24102 --help | --hel | -h )
24103 echo "$ac_cs_usage"; exit 0 ;;
24104 --debug | --d* | -d )
24106 --file | --fil | --fi | --f )
24108 CONFIG_FILES="$CONFIG_FILES $1"
24109 ac_need_defaults=false;;
24110 --header | --heade | --head | --hea )
24112 CONFIG_HEADERS="$CONFIG_HEADERS $1"
24113 ac_need_defaults=false;;
24115 # This is an error.
24116 -*) { { echo "$as_me:24116: error: unrecognized option: $1
24117 Try \`$0 --help' for more information." >&5
24118 echo "$as_me: error: unrecognized option: $1
24119 Try \`$0 --help' for more information." >&2;}
24120 { (exit 1); exit 1; }; } ;;
24122 *) ac_config_targets="$ac_config_targets $1" ;;
24131 ## ----------------------- ##
24132 ## Running config.status. ##
24133 ## ----------------------- ##
24135 This file was extended by $as_me 2.52, executed with
24136 CONFIG_FILES = $CONFIG_FILES
24137 CONFIG_HEADERS = $CONFIG_HEADERS
24138 CONFIG_LINKS = $CONFIG_LINKS
24139 CONFIG_COMMANDS = $CONFIG_COMMANDS
24140 > $ac_cs_invocation
24141 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24146 cat >>$CONFIG_STATUS <<EOF
24148 # INIT-COMMANDS section.
24151 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24155 cat >>$CONFIG_STATUS <<\EOF
24156 for ac_config_target in $ac_config_targets
24158 case "$ac_config_target" in
24159 # Handling of arguments.
24160 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24161 "ftdi_eeprom/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi_eeprom/Makefile" ;;
24162 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24163 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24164 *) { { echo "$as_me:24164: error: invalid argument: $ac_config_target" >&5
24165 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24166 { (exit 1); exit 1; }; };;
24170 # If the user did not use the arguments to specify the items to instantiate,
24171 # then the envvar interface is used. Set only those that are not.
24172 # We use the long form for the default assignment because of an extremely
24173 # bizarre bug on SunOS 4.1.3.
24174 if $ac_need_defaults; then
24175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24176 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24177 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24180 # Create a temporary directory, and hook for its removal unless debugging.
24183 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24184 trap '{ (exit 1); exit 1; }' 1 2 13 15
24187 # Create a (secure) tmp directory for tmp files.
24190 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
24191 test -n "$tmp" && test -d "$tmp"
24194 tmp=$TMPDIR/cs$$-$RANDOM
24195 (umask 077 && mkdir $tmp)
24198 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
24199 { (exit 1); exit 1; }
24204 cat >>$CONFIG_STATUS <<EOF
24207 # CONFIG_FILES section.
24210 # No need to generate the scripts if there are no CONFIG_FILES.
24211 # This happens for instance when ./config.status config.h
24212 if test -n "\$CONFIG_FILES"; then
24213 # Protect against being on the right side of a sed subst in config.status.
24214 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24215 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24216 s,@SHELL@,$SHELL,;t t
24217 s,@exec_prefix@,$exec_prefix,;t t
24218 s,@prefix@,$prefix,;t t
24219 s,@program_transform_name@,$program_transform_name,;t t
24220 s,@bindir@,$bindir,;t t
24221 s,@sbindir@,$sbindir,;t t
24222 s,@libexecdir@,$libexecdir,;t t
24223 s,@datadir@,$datadir,;t t
24224 s,@sysconfdir@,$sysconfdir,;t t
24225 s,@sharedstatedir@,$sharedstatedir,;t t
24226 s,@localstatedir@,$localstatedir,;t t
24227 s,@libdir@,$libdir,;t t
24228 s,@includedir@,$includedir,;t t
24229 s,@oldincludedir@,$oldincludedir,;t t
24230 s,@infodir@,$infodir,;t t
24231 s,@mandir@,$mandir,;t t
24232 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24233 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24234 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24235 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24236 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24237 s,@build_alias@,$build_alias,;t t
24238 s,@host_alias@,$host_alias,;t t
24239 s,@target_alias@,$target_alias,;t t
24240 s,@ECHO_C@,$ECHO_C,;t t
24241 s,@ECHO_N@,$ECHO_N,;t t
24242 s,@ECHO_T@,$ECHO_T,;t t
24243 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24244 s,@DEFS@,$DEFS,;t t
24245 s,@LIBS@,$LIBS,;t t
24246 s,@build@,$build,;t t
24247 s,@build_cpu@,$build_cpu,;t t
24248 s,@build_vendor@,$build_vendor,;t t
24249 s,@build_os@,$build_os,;t t
24250 s,@host@,$host,;t t
24251 s,@host_cpu@,$host_cpu,;t t
24252 s,@host_vendor@,$host_vendor,;t t
24253 s,@host_os@,$host_os,;t t
24254 s,@target@,$target,;t t
24255 s,@target_cpu@,$target_cpu,;t t
24256 s,@target_vendor@,$target_vendor,;t t
24257 s,@target_os@,$target_os,;t t
24258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24259 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24260 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24261 s,@PACKAGE@,$PACKAGE,;t t
24262 s,@VERSION@,$VERSION,;t t
24263 s,@ACLOCAL@,$ACLOCAL,;t t
24264 s,@AUTOCONF@,$AUTOCONF,;t t
24265 s,@AUTOMAKE@,$AUTOMAKE,;t t
24266 s,@AUTOHEADER@,$AUTOHEADER,;t t
24267 s,@MAKEINFO@,$MAKEINFO,;t t
24268 s,@AMTAR@,$AMTAR,;t t
24269 s,@install_sh@,$install_sh,;t t
24270 s,@STRIP@,$STRIP,;t t
24271 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24272 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24274 s,@SET_MAKE@,$SET_MAKE,;t t
24275 s,@CONF_FILES@,$CONF_FILES,;t t
24277 s,@CFLAGS@,$CFLAGS,;t t
24278 s,@LDFLAGS@,$LDFLAGS,;t t
24279 s,@CPPFLAGS@,$CPPFLAGS,;t t
24280 s,@ac_ct_CC@,$ac_ct_CC,;t t
24281 s,@EXEEXT@,$EXEEXT,;t t
24282 s,@OBJEXT@,$OBJEXT,;t t
24283 s,@DEPDIR@,$DEPDIR,;t t
24284 s,@am__include@,$am__include,;t t
24285 s,@am__quote@,$am__quote,;t t
24286 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24287 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24288 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24289 s,@CCDEPMODE@,$CCDEPMODE,;t t
24291 s,@CXXFLAGS@,$CXXFLAGS,;t t
24292 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24293 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24294 s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
24295 s,@USE_RTTI@,$USE_RTTI,;t t
24297 s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
24298 s,@REPO@,$REPO,;t t
24299 s,@NOREPO@,$NOREPO,;t t
24300 s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
24301 s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
24302 s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
24303 s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
24304 s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t
24305 s,@LN_S@,$LN_S,;t t
24306 s,@ECHO@,$ECHO,;t t
24307 s,@RANLIB@,$RANLIB,;t t
24308 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24309 s,@CXXCPP@,$CXXCPP,;t t
24310 s,@LIBTOOL@,$LIBTOOL,;t t
24311 s,@HAVELIBFTDI@,$HAVELIBFTDI,;t t
24312 s,@USER_INCLUDES@,$USER_INCLUDES,;t t
24313 s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
24314 s,@all_includes@,$all_includes,;t t
24315 s,@all_libraries@,$all_libraries,;t t
24316 s,@AUTODIRS@,$AUTODIRS,;t t
24317 s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
24322 cat >>$CONFIG_STATUS <<\EOF
24323 # Split the substitutions into bite-sized pieces for seds with
24324 # small command number limits, like on Digital OSF/1 and HP-UX.
24325 ac_max_sed_lines=48
24326 ac_sed_frag=1 # Number of current file.
24327 ac_beg=1 # First line for current file.
24328 ac_end=$ac_max_sed_lines # Line after last line for current file.
24331 while $ac_more_lines; do
24332 if test $ac_beg -gt 1; then
24333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24337 if test ! -s $tmp/subs.frag; then
24338 ac_more_lines=false
24340 # The purpose of the label and of the branching condition is to
24341 # speed up the sed processing (if there are no `@' at all, there
24342 # is no need to browse any of the substitutions).
24343 # These are the two extra sed commands mentioned above.
24345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24346 if test -z "$ac_sed_cmds"; then
24347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24351 ac_sed_frag=`expr $ac_sed_frag + 1`
24353 ac_end=`expr $ac_end + $ac_max_sed_lines`
24356 if test -z "$ac_sed_cmds"; then
24359 fi # test -n "$CONFIG_FILES"
24362 cat >>$CONFIG_STATUS <<\EOF
24363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24366 - | *:- | *:-:* ) # input from stdin
24368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24372 * ) ac_file_in=$ac_file.in ;;
24375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24376 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24377 X"$ac_file" : 'X\(//\)[^/]' \| \
24378 X"$ac_file" : 'X\(//\)$' \| \
24379 X"$ac_file" : 'X\(/\)' \| \
24380 . : '\(.\)' 2>/dev/null ||
24382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24384 /^X\(\/\/\)$/{ s//\1/; q; }
24385 /^X\(\/\).*/{ s//\1/; q; }
24387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24388 { case "$ac_dir" in
24389 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24393 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24394 case $as_mkdir_dir in
24395 # Skip DOS drivespec
24396 ?:) as_incr_dir=$as_mkdir_dir ;;
24398 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24399 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24404 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
24405 # A "../" for each directory in $ac_dir_suffix.
24406 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
24408 ac_dir_suffix= ac_dots=
24413 if test -z "$ac_dots"; then
24416 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
24418 [\\/]* | ?:[\\/]* )
24419 ac_srcdir=$srcdir$ac_dir_suffix;
24420 ac_top_srcdir=$srcdir ;;
24421 *) # Relative path.
24422 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
24423 ac_top_srcdir=$ac_dots$srcdir ;;
24427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24428 *) ac_INSTALL=$ac_dots$INSTALL ;;
24431 if test x"$ac_file" != x-; then
24432 { echo "$as_me:24432: creating $ac_file" >&5
24433 echo "$as_me: creating $ac_file" >&6;}
24436 # Let's still pretend it is `configure' which instantiates (i.e., don't
24437 # use $as_me), people would be surprised to read:
24438 # /* config.h. Generated automatically by config.status. */
24439 configure_input="Generated automatically from `echo $ac_file_in |
24440 sed 's,.*/,,'` by configure."
24442 # First look for the input files in the build tree, otherwise in the
24444 ac_file_inputs=`IFS=:
24445 for f in $ac_file_in; do
24447 -) echo $tmp/stdin ;;
24449 # Absolute (can't be DOS-style, as IFS=:)
24450 test -f "$f" || { { echo "$as_me:24450: error: cannot find input file: $f" >&5
24451 echo "$as_me: error: cannot find input file: $f" >&2;}
24452 { (exit 1); exit 1; }; }
24455 if test -f "$f"; then
24458 elif test -f "$srcdir/$f"; then
24463 { { echo "$as_me:24463: error: cannot find input file: $f" >&5
24464 echo "$as_me: error: cannot find input file: $f" >&2;}
24465 { (exit 1); exit 1; }; }
24468 done` || { (exit 1); exit 1; }
24470 cat >>$CONFIG_STATUS <<EOF
24474 cat >>$CONFIG_STATUS <<\EOF
24476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24477 s,@configure_input@,$configure_input,;t t
24478 s,@srcdir@,$ac_srcdir,;t t
24479 s,@top_srcdir@,$ac_top_srcdir,;t t
24480 s,@INSTALL@,$ac_INSTALL,;t t
24481 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24483 if test x"$ac_file" != x-; then
24484 mv $tmp/out $ac_file
24492 cat >>$CONFIG_STATUS <<\EOF
24495 # CONFIG_HEADER section.
24498 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24499 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24501 # ac_d sets the value in "#define NAME VALUE" lines.
24502 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24503 ac_dB='[ ].*$,\1#\2'
24506 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24507 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24508 ac_uB='$,\1#\2define\3'
24512 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24515 - | *:- | *:-:* ) # input from stdin
24517 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24519 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24521 * ) ac_file_in=$ac_file.in ;;
24524 test x"$ac_file" != x- && { echo "$as_me:24524: creating $ac_file" >&5
24525 echo "$as_me: creating $ac_file" >&6;}
24527 # First look for the input files in the build tree, otherwise in the
24529 ac_file_inputs=`IFS=:
24530 for f in $ac_file_in; do
24532 -) echo $tmp/stdin ;;
24534 # Absolute (can't be DOS-style, as IFS=:)
24535 test -f "$f" || { { echo "$as_me:24535: error: cannot find input file: $f" >&5
24536 echo "$as_me: error: cannot find input file: $f" >&2;}
24537 { (exit 1); exit 1; }; }
24540 if test -f "$f"; then
24543 elif test -f "$srcdir/$f"; then
24548 { { echo "$as_me:24548: error: cannot find input file: $f" >&5
24549 echo "$as_me: error: cannot find input file: $f" >&2;}
24550 { (exit 1); exit 1; }; }
24553 done` || { (exit 1); exit 1; }
24554 # Remove the trailing spaces.
24555 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24559 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24560 # `conftest.undefs', that substitutes the proper values into
24561 # config.h.in to produce config.h. The first handles `#define'
24562 # templates, and the second `#undef' templates.
24563 # And first: Protect against being on the right side of a sed subst in
24564 # config.status. Protect against being in an unquoted here document
24565 # in config.status.
24566 rm -f conftest.defines conftest.undefs
24567 # Using a here document instead of a string reduces the quoting nightmare.
24568 # Putting comments in sed scripts is not portable.
24570 # `end' is used to avoid that the second main sed command (meant for
24571 # 0-ary CPP macros) applies to n-ary macro definitions.
24572 # See the Autoconf documentation for `clear'.
24573 cat >confdef2sed.sed <<\EOF
24578 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
24580 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24583 # If some macros were called several times there might be several times
24584 # the same #defines, which is useless. Nevertheless, we may not want to
24585 # sort them, since we want the *last* AC-DEFINE to be honored.
24586 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24587 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24588 rm -f confdef2sed.sed
24590 # This sed command replaces #undef with comments. This is necessary, for
24591 # example, in the case of _POSIX_SOURCE, which is predefined and required
24592 # on some systems where configure will not decide to define it.
24593 cat >>conftest.undefs <<\EOF
24594 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24597 # Break up conftest.defines because some shells have a limit on the size
24598 # of here documents, and old seds have small limits too (100 cmds).
24599 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24600 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24601 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24602 echo ' :' >>$CONFIG_STATUS
24603 rm -f conftest.tail
24604 while grep . conftest.defines >/dev/null
24606 # Write a limited-size here document to $tmp/defines.sed.
24607 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24608 # Speed up: don't consider the non `#define' lines.
24609 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24610 # Work around the forget-to-reset-the-flag bug.
24611 echo 't clr' >>$CONFIG_STATUS
24612 echo ': clr' >>$CONFIG_STATUS
24613 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24615 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24617 mv $tmp/out $tmp/in
24619 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24620 rm -f conftest.defines
24621 mv conftest.tail conftest.defines
24623 rm -f conftest.defines
24624 echo ' fi # egrep' >>$CONFIG_STATUS
24625 echo >>$CONFIG_STATUS
24627 # Break up conftest.undefs because some shells have a limit on the size
24628 # of here documents, and old seds have small limits too (100 cmds).
24629 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24630 rm -f conftest.tail
24631 while grep . conftest.undefs >/dev/null
24633 # Write a limited-size here document to $tmp/undefs.sed.
24634 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24635 # Speed up: don't consider the non `#undef'
24636 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24637 # Work around the forget-to-reset-the-flag bug.
24638 echo 't clr' >>$CONFIG_STATUS
24639 echo ': clr' >>$CONFIG_STATUS
24640 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24642 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24644 mv $tmp/out $tmp/in
24646 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24647 rm -f conftest.undefs
24648 mv conftest.tail conftest.undefs
24650 rm -f conftest.undefs
24652 cat >>$CONFIG_STATUS <<\EOF
24653 # Let's still pretend it is `configure' which instantiates (i.e., don't
24654 # use $as_me), people would be surprised to read:
24655 # /* config.h. Generated automatically by config.status. */
24656 if test x"$ac_file" = x-; then
24657 echo "/* Generated automatically by configure. */" >$tmp/config.h
24659 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24661 cat $tmp/in >>$tmp/config.h
24663 if test x"$ac_file" != x-; then
24664 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24665 { echo "$as_me:24665: $ac_file is unchanged" >&5
24666 echo "$as_me: $ac_file is unchanged" >&6;}
24668 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24669 X"$ac_file" : 'X\(//\)[^/]' \| \
24670 X"$ac_file" : 'X\(//\)$' \| \
24671 X"$ac_file" : 'X\(/\)' \| \
24672 . : '\(.\)' 2>/dev/null ||
24674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24676 /^X\(\/\/\)$/{ s//\1/; q; }
24677 /^X\(\/\).*/{ s//\1/; q; }
24679 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24680 { case "$ac_dir" in
24681 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24685 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24686 case $as_mkdir_dir in
24687 # Skip DOS drivespec
24688 ?:) as_incr_dir=$as_mkdir_dir ;;
24690 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24691 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24698 mv $tmp/config.h $ac_file
24702 rm -f $tmp/config.h
24704 # Run the commands associated with the file.
24706 config.h ) # update the timestamp
24707 echo 'timestamp for config.h' >"./stamp-h1"
24712 cat >>$CONFIG_STATUS <<\EOF
24715 # CONFIG_COMMANDS section.
24717 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24718 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24719 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24722 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24723 # Strip MF so we end up with the name of the file.
24724 mf=`echo "$mf" | sed -e 's/:.*$//'`
24725 # Check whether this is an Automake generated Makefile or not.
24726 # We used to match only the files named `Makefile.in', but
24727 # some people rename them; so instead we look at the file content.
24728 # Grep'ing the first line is not enough: some people post-process
24729 # each Makefile.in and add a new line on top of each file to say so.
24730 # So let's grep whole file.
24731 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24732 dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24733 X"$mf" : 'X\(//\)[^/]' \| \
24734 X"$mf" : 'X\(//\)$' \| \
24735 X"$mf" : 'X\(/\)' \| \
24736 . : '\(.\)' 2>/dev/null ||
24738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24740 /^X\(\/\/\)$/{ s//\1/; q; }
24741 /^X\(\/\).*/{ s//\1/; q; }
24746 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24747 # Extract the definition of DEP_FILES from the Makefile without
24749 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24750 test -z "$DEPDIR" && continue
24751 # When using ansi2knr, U may be empty or an underscore; expand it
24752 U=`sed -n -e '/^U = / s///p' < "$mf"`
24753 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24754 # We invoke sed twice because it is the simplest approach to
24755 # changing $(DEPDIR) to its actual value in the expansion.
24756 for file in `sed -n -e '
24757 /^DEP_FILES = .*\\\\$/ {
24766 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24768 # Make sure the directory exists.
24769 test -f "$dirpart/$file" && continue
24770 fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24771 X"$file" : 'X\(//\)[^/]' \| \
24772 X"$file" : 'X\(//\)$' \| \
24773 X"$file" : 'X\(/\)' \| \
24774 . : '\(.\)' 2>/dev/null ||
24776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24778 /^X\(\/\/\)$/{ s//\1/; q; }
24779 /^X\(\/\).*/{ s//\1/; q; }
24781 { case $dirpart/$fdir in
24782 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24785 as_dummy=$dirpart/$fdir
24786 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24787 case $as_mkdir_dir in
24788 # Skip DOS drivespec
24789 ?:) as_incr_dir=$as_mkdir_dir ;;
24791 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24792 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24797 # echo "creating $dirpart/$file"
24798 echo '# dummy' > "$dirpart/$file"
24806 cat >>$CONFIG_STATUS <<\EOF
24808 { (exit 0); exit 0; }
24810 chmod +x $CONFIG_STATUS
24811 ac_clean_files=$ac_clean_files_save
24813 # configure is writing to config.log, and then calls config.status.
24814 # config.status does its own redirection, appending to config.log.
24815 # Unfortunately, on DOS this fails, as config.log is still kept open
24816 # by configure, so config.status won't be able to write to it; its
24817 # output is simply discarded. So we exec the FD to /dev/null,
24818 # effectively closing config.log, so it can be properly (re)opened and
24819 # appended to by config.status. When coming back to configure, we
24820 # need to make the FD available again.
24821 if test "$no_create" != yes; then
24824 $SHELL $CONFIG_STATUS || ac_cs_success=false
24826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24827 # would make configure fail if this is the last instruction.
24828 $ac_cs_success || { (exit 1); exit 1; }
24831 if test "$all_tests" = "bad"; then
24832 if test ! "$cache_file" = "/dev/null"; then
24834 echo "Please remove the file $cache_file after changing your setup"
24835 echo "so that configure will find the changes next time."
24840 echo "Good - your configure finished. Start make now"