2009-05-06 Le-Chun Wu <lcwu@google.com>
[official-gcc.git] / libjava / libltdl / configure
blobba1258c3192f74c578b082a86d1bb168309063ad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470 ac_pwd=`pwd`
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
510 ac_prev=
511 for ac_option
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
524 case $ac_option in
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
543 --config-cache | -C)
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 esac
807 done
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
882 else
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
967 Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 _ACEOF
980 cat <<_ACEOF
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007 _ACEOF
1009 cat <<\_ACEOF
1011 Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 _ACEOF
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of libltdl 1.2:";;
1025 esac
1026 cat <<\_ACEOF
1028 Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
1033 --enable-multilib build many library versions (default)
1034 --disable-dependency-tracking speeds up one-time build
1035 --enable-dependency-tracking do not reject slow dependency extractors
1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-static[=PKGS]
1039 build static libraries [default=yes]
1040 --enable-fast-install[=PKGS]
1041 optimize for fast installation [default=yes]
1042 --disable-libtool-lock avoid locking (might break parallel builds)
1043 --enable-ltdl-install install libltdl
1045 Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CPP C preprocessor
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <bug-libtool@gnu.org>.
1072 _ACEOF
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087 ac_dir_suffix= ac_top_builddir=
1090 case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1111 case "$ac_dir" in
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1129 case $ac_srcdir in
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 esac;;
1143 esac
1145 cd $ac_dir
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1148 echo
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1151 echo
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1155 echo
1156 $ac_configure --help
1157 else
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 cd $ac_popdir
1161 done
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166 cat <<\_ACEOF
1167 libltdl configure 1.2
1168 generated by GNU Autoconf 2.59
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174 exit 0
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by libltdl $as_me 1.2, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1184 $ $0 $@
1186 _ACEOF
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210 _ASUNAME
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1215 IFS=$as_save_IFS
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1218 done
1220 } >&5
1222 cat >&5 <<_ACEOF
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1229 _ACEOF
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1244 for ac_arg
1246 case $ac_arg in
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 continue ;;
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 esac
1254 case $ac_pass in
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1260 else
1261 case $ac_arg in
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 esac
1270 -* ) ac_must_keep_next=true ;;
1271 esac
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1275 ac_sep=" "
1277 esac
1278 done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1291 echo
1293 cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298 echo
1299 # The following way of writing the cache mishandles newlines in values,
1301 (set) 2>&1 |
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 *ac_space=\ *)
1304 sed -n \
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 sed -n \
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 esac;
1314 echo
1316 cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321 echo
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1326 done | sort
1327 echo
1329 if test -n "$ac_subst_files"; then
1330 cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1344 if test -s confdefs.h; then
1345 cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350 echo
1351 sed "/^$/d" confdefs.h | sort
1352 echo
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1357 } >&5
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 exit $exit_status
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 else
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1413 . "$ac_site_file"
1415 done
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423 case $cache_file in
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1426 esac
1428 else
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431 >$cache_file
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1444 set,)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,set)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,);;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 # differences in whitespace do not lead to failure.
1456 ac_old_val_w=`echo x $ac_old_val`
1457 ac_new_val_w=`echo x $ac_new_val`
1458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1459 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1460 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1461 ac_cache_corrupted=:
1462 else
1463 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1464 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1465 eval $ac_var=\$ac_old_val
1467 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1468 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1469 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1470 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1485 done
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1488 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1489 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493 { (exit 1); exit 1; }; }
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 ## GCJ LOCAL: gcc tree uses maintainer mode.
1534 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1535 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1536 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1537 if test "${enable_maintainer_mode+set}" = set; then
1538 enableval="$enable_maintainer_mode"
1539 USE_MAINTAINER_MODE=$enableval
1540 else
1541 USE_MAINTAINER_MODE=no
1543 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1544 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1547 if test $USE_MAINTAINER_MODE = yes; then
1548 MAINTAINER_MODE_TRUE=
1549 MAINTAINER_MODE_FALSE='#'
1550 else
1551 MAINTAINER_MODE_TRUE='#'
1552 MAINTAINER_MODE_FALSE=
1555 MAINT=$MAINTAINER_MODE_TRUE
1559 # Default to --enable-multilib
1560 # Check whether --enable-multilib or --disable-multilib was given.
1561 if test "${enable_multilib+set}" = set; then
1562 enableval="$enable_multilib"
1563 case "$enableval" in
1564 yes) multilib=yes ;;
1565 no) multilib=no ;;
1566 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1567 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1568 { (exit 1); exit 1; }; } ;;
1569 esac
1570 else
1571 multilib=yes
1574 # We may get other options which we leave undocumented:
1575 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1576 # See config-ml.in if you want the gory details.
1578 if test "$srcdir" = "."; then
1579 if test "$with_target_subdir" != "."; then
1580 multi_basedir="$srcdir/$with_multisrctop../../.."
1581 else
1582 multi_basedir="$srcdir/$with_multisrctop../.."
1584 else
1585 multi_basedir="$srcdir/../.."
1589 # Even if the default multilib is not a cross compilation,
1590 # it may be that some of the other multilibs are.
1591 if test $cross_compiling = no && test $multilib = yes \
1592 && test "x${with_multisubdir}" != x ; then
1593 cross_compiling=maybe
1596 ac_config_commands="$ac_config_commands default-1"
1599 ## ------------------------------- ##
1600 ## Libltdl specific configuration. ##
1601 ## ------------------------------- ##
1603 ac_aux_dir=
1604 for ac_dir in . $srcdir/.; do
1605 if test -f $ac_dir/install-sh; then
1606 ac_aux_dir=$ac_dir
1607 ac_install_sh="$ac_aux_dir/install-sh -c"
1608 break
1609 elif test -f $ac_dir/install.sh; then
1610 ac_aux_dir=$ac_dir
1611 ac_install_sh="$ac_aux_dir/install.sh -c"
1612 break
1613 elif test -f $ac_dir/shtool; then
1614 ac_aux_dir=$ac_dir
1615 ac_install_sh="$ac_aux_dir/shtool install -c"
1616 break
1618 done
1619 if test -z "$ac_aux_dir"; then
1620 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1621 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1622 { (exit 1); exit 1; }; }
1624 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1625 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1626 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1630 if test -f ${srcdir}/ltmain.sh; then
1631 # if libltdl is libtoolized, it is assumed to be stand-alone and
1632 # installed unless the command line overrides it (tested above)
1633 enable_ltdl_install=yes
1634 else
1635 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1636 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1637 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1638 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1639 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1640 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1641 { (exit 1); exit 1; }; }
1646 ## ------------------------ ##
1647 ## Automake Initialisation. ##
1648 ## ------------------------ ##
1649 am__api_version="1.9"
1650 # Find a good install program. We prefer a C program (faster),
1651 # so one script is as good as another. But avoid the broken or
1652 # incompatible versions:
1653 # SysV /etc/install, /usr/sbin/install
1654 # SunOS /usr/etc/install
1655 # IRIX /sbin/install
1656 # AIX /bin/install
1657 # AmigaOS /C/install, which installs bootblocks on floppy discs
1658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1661 # OS/2's system install, which has a completely different semantic
1662 # ./install, which can be erroneously created by make from ./install.sh.
1663 # Reject install programs that cannot install multiple files.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1676 case $as_dir/ in
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 /usr/ucb/* ) ;;
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1684 # by default.
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1696 else
1697 rm -rf conftest.one conftest.two conftest.dir
1698 echo one > conftest.one
1699 echo two > conftest.two
1700 mkdir conftest.dir
1701 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1702 test -s conftest.one && test -s conftest.two &&
1703 test -s conftest.dir/conftest.one &&
1704 test -s conftest.dir/conftest.two
1705 then
1706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 break 3
1711 done
1712 done
1714 esac
1715 done
1717 rm -rf conftest.one conftest.two conftest.dir
1720 if test "${ac_cv_path_install+set}" = set; then
1721 INSTALL=$ac_cv_path_install
1722 else
1723 # As a last resort, use the slow shell script. Don't cache a
1724 # value for INSTALL within a source directory, because that will
1725 # break other packages using the cache if that directory is
1726 # removed, or if the value is a relative name.
1727 INSTALL=$ac_install_sh
1730 echo "$as_me:$LINENO: result: $INSTALL" >&5
1731 echo "${ECHO_T}$INSTALL" >&6
1733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1734 # It thinks the first close brace ends the variable substitution.
1735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1741 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1742 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1743 # Just in case
1744 sleep 1
1745 echo timestamp > conftest.file
1746 # Do `set' in a subshell so we don't clobber the current shell's
1747 # arguments. Must try -L first in case configure is actually a
1748 # symlink; some systems play weird games with the mod time of symlinks
1749 # (eg FreeBSD returns the mod time of the symlink's containing
1750 # directory).
1751 if (
1752 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1753 if test "$*" = "X"; then
1754 # -L didn't work.
1755 set X `ls -t $srcdir/configure conftest.file`
1757 rm -f conftest.file
1758 if test "$*" != "X $srcdir/configure conftest.file" \
1759 && test "$*" != "X conftest.file $srcdir/configure"; then
1761 # If neither matched, then we have a broken ls. This can happen
1762 # if, for instance, CONFIG_SHELL is bash and it inherits a
1763 # broken ls alias from the environment. This has actually
1764 # happened. Such a system could not be considered "sane".
1765 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1766 alias in your environment" >&5
1767 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1768 alias in your environment" >&2;}
1769 { (exit 1); exit 1; }; }
1772 test "$2" = conftest.file
1774 then
1775 # Ok.
1777 else
1778 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1779 Check your system clock" >&5
1780 echo "$as_me: error: newly created file is older than distributed files!
1781 Check your system clock" >&2;}
1782 { (exit 1); exit 1; }; }
1784 echo "$as_me:$LINENO: result: yes" >&5
1785 echo "${ECHO_T}yes" >&6
1786 test "$program_prefix" != NONE &&
1787 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1788 # Use a double $ so make ignores it.
1789 test "$program_suffix" != NONE &&
1790 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1791 # Double any \ or $. echo might interpret backslashes.
1792 # By default was `s,x,x', remove it if useless.
1793 cat <<\_ACEOF >conftest.sed
1794 s/[\\$]/&&/g;s/;s,x,x,$//
1795 _ACEOF
1796 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1797 rm conftest.sed
1799 # expand $ac_aux_dir to an absolute path
1800 am_aux_dir=`cd $ac_aux_dir && pwd`
1802 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1803 # Use eval to expand $SHELL
1804 if eval "$MISSING --run true"; then
1805 am_missing_run="$MISSING --run "
1806 else
1807 am_missing_run=
1808 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1809 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1812 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1813 # We used to keeping the `.' as first argument, in order to
1814 # allow $(mkdir_p) to be used without argument. As in
1815 # $(mkdir_p) $(somedir)
1816 # where $(somedir) is conditionally defined. However this is wrong
1817 # for two reasons:
1818 # 1. if the package is installed by a user who cannot write `.'
1819 # make install will fail,
1820 # 2. the above comment should most certainly read
1821 # $(mkdir_p) $(DESTDIR)$(somedir)
1822 # so it does not work when $(somedir) is undefined and
1823 # $(DESTDIR) is not.
1824 # To support the latter case, we have to write
1825 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1826 # so the `.' trick is pointless.
1827 mkdir_p='mkdir -p --'
1828 else
1829 # On NextStep and OpenStep, the `mkdir' command does not
1830 # recognize any option. It will interpret all options as
1831 # directories to create, and then abort because `.' already
1832 # exists.
1833 for d in ./-p ./--version;
1835 test -d $d && rmdir $d
1836 done
1837 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1838 if test -f "$ac_aux_dir/mkinstalldirs"; then
1839 mkdir_p='$(mkinstalldirs)'
1840 else
1841 mkdir_p='$(install_sh) -d'
1845 for ac_prog in gawk mawk nawk awk
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848 set dummy $ac_prog; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_AWK+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test -n "$AWK"; then
1855 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_AWK="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1868 done
1869 done
1873 AWK=$ac_cv_prog_AWK
1874 if test -n "$AWK"; then
1875 echo "$as_me:$LINENO: result: $AWK" >&5
1876 echo "${ECHO_T}$AWK" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1882 test -n "$AWK" && break
1883 done
1885 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1886 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1887 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1888 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 cat >conftest.make <<\_ACEOF
1892 all:
1893 @echo 'ac_maketemp="$(MAKE)"'
1894 _ACEOF
1895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1896 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1897 if test -n "$ac_maketemp"; then
1898 eval ac_cv_prog_make_${ac_make}_set=yes
1899 else
1900 eval ac_cv_prog_make_${ac_make}_set=no
1902 rm -f conftest.make
1904 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1905 echo "$as_me:$LINENO: result: yes" >&5
1906 echo "${ECHO_T}yes" >&6
1907 SET_MAKE=
1908 else
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 SET_MAKE="MAKE=${MAKE-make}"
1914 rm -rf .tst 2>/dev/null
1915 mkdir .tst 2>/dev/null
1916 if test -d .tst; then
1917 am__leading_dot=.
1918 else
1919 am__leading_dot=_
1921 rmdir .tst 2>/dev/null
1923 # test to see if srcdir already configured
1924 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1925 test -f $srcdir/config.status; then
1926 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1927 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # test whether we have cygpath
1932 if test -z "$CYGPATH_W"; then
1933 if (cygpath --version) >/dev/null 2>/dev/null; then
1934 CYGPATH_W='cygpath -w'
1935 else
1936 CYGPATH_W=echo
1941 # Define the identity of the package.
1942 PACKAGE=libltdl
1943 VERSION=1.2
1946 # Some tools Automake needs.
1948 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1951 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1954 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1957 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1960 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1962 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1964 # Installed binaries are usually stripped using `strip' when the user
1965 # run `make install-strip'. However `strip' might not be the right
1966 # tool to use in cross-compilation environments, therefore Automake
1967 # will honor the `STRIP' environment variable to overrule this program.
1968 if test "$cross_compiling" != no; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}strip; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_STRIP+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$STRIP"; then
1978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1991 done
1992 done
1996 STRIP=$ac_cv_prog_STRIP
1997 if test -n "$STRIP"; then
1998 echo "$as_me:$LINENO: result: $STRIP" >&5
1999 echo "${ECHO_T}$STRIP" >&6
2000 else
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2006 if test -z "$ac_cv_prog_STRIP"; then
2007 ac_ct_STRIP=$STRIP
2008 # Extract the first word of "strip", so it can be a program name with args.
2009 set dummy strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$ac_ct_STRIP"; then
2016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_ac_ct_STRIP="strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2029 done
2030 done
2032 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2035 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2036 if test -n "$ac_ct_STRIP"; then
2037 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2038 echo "${ECHO_T}$ac_ct_STRIP" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 STRIP=$ac_ct_STRIP
2045 else
2046 STRIP="$ac_cv_prog_STRIP"
2050 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2052 # We need awk for the "check" target. The system "awk" is bad on
2053 # some platforms.
2054 # Always define AMTAR for backward compatibility.
2056 AMTAR=${AMTAR-"${am_missing_run}tar"}
2058 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2064 ac_config_headers="$ac_config_headers config.h:config-h.in"
2068 ## ------------------ ##
2069 ## C compiler checks. ##
2070 ## ------------------ ##
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2103 CC=$ac_cv_prog_CC
2104 if test -n "$CC"; then
2105 echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2113 if test -z "$ac_cv_prog_CC"; then
2114 ac_ct_CC=$CC
2115 # Extract the first word of "gcc", so it can be a program name with args.
2116 set dummy gcc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_ac_ct_CC="gcc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 CC=$ac_ct_CC
2151 else
2152 CC="$ac_cv_prog_CC"
2155 if test -z "$CC"; then
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}cc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="${ac_tool_prefix}cc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2193 if test -z "$ac_cv_prog_CC"; then
2194 ac_ct_CC=$CC
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_CC="cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2225 else
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 ac_prog_rejected=no
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2256 ac_prog_rejected=yes
2257 continue
2259 ac_cv_prog_CC="cc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2263 done
2264 done
2266 if test $ac_prog_rejected = yes; then
2267 # We found a bogon in the path, so make sure we never use it.
2268 set dummy $ac_cv_prog_CC
2269 shift
2270 if test $# != 0; then
2271 # We chose a different compiler from the bogus one.
2272 # However, it has the same basename, so the bogon will be chosen
2273 # first if we set CC to just the basename; use the full file name.
2274 shift
2275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2280 CC=$ac_cv_prog_CC
2281 if test -n "$CC"; then
2282 echo "$as_me:$LINENO: result: $CC" >&5
2283 echo "${ECHO_T}$CC" >&6
2284 else
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog in cl
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$CC" && break
2330 done
2332 if test -z "$CC"; then
2333 ac_ct_CC=$CC
2334 for ac_prog in cl
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy $ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$ac_ct_CC" && break
2372 done
2374 CC=$ac_ct_CC
2380 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2381 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: no acceptable C compiler found in \$PATH
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }; }
2388 # Provide some information about the compiler.
2389 echo "$as_me:$LINENO:" \
2390 "checking for C compiler version" >&5
2391 ac_compiler=`set X $ac_compile; echo $2`
2392 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2393 (eval $ac_compiler --version </dev/null >&5) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2398 (eval $ac_compiler -v </dev/null >&5) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }
2402 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2403 (eval $ac_compiler -V </dev/null >&5) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2420 return 0;
2422 _ACEOF
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2427 # of exeext.
2428 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2429 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2432 (eval $ac_link_default) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # Find the output, starting from the most likely. This scheme is
2437 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2438 # resort.
2440 # Be careful to initialize this variable, since it used to be cached.
2441 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2442 ac_cv_exeext=
2443 # b.out is created by i960 compilers.
2444 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2446 test -f "$ac_file" || continue
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2450 conftest.$ac_ext )
2451 # This is the source file.
2453 [ab].out )
2454 # We found the default executable, but exeext='' is most
2455 # certainly right.
2456 break;;
2457 *.* )
2458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 # FIXME: I believe we export ac_cv_exeext for Libtool,
2460 # but it would be cool to find out if it's true. Does anybody
2461 # maintain Libtool? --akim.
2462 export ac_cv_exeext
2463 break;;
2465 break;;
2466 esac
2467 done
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2472 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2473 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&2;}
2478 { (exit 77); exit 77; }; }; }
2481 ac_exeext=$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_file" >&5
2483 echo "${ECHO_T}$ac_file" >&6
2485 # Check the compiler produces executables we can run. If not, either
2486 # the compiler is broken, or we cross compile.
2487 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2490 # If not cross compiling, check that we can run a simple program.
2491 if test "$cross_compiling" != yes; then
2492 if { ac_try='./$ac_file'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 cross_compiling=no
2499 else
2500 if test "$cross_compiling" = maybe; then
2501 cross_compiling=yes
2502 else
2503 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2506 If you meant to cross compile, use \`--host'.
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }; }
2515 echo "$as_me:$LINENO: result: yes" >&5
2516 echo "${ECHO_T}yes" >&6
2518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2519 ac_clean_files=$ac_clean_files_save
2520 # Check the compiler produces executables we can run. If not, either
2521 # the compiler is broken, or we cross compile.
2522 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2524 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2525 echo "${ECHO_T}$cross_compiling" >&6
2527 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2530 (eval $ac_link) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 # `rm'.
2538 for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 export ac_cv_exeext
2544 break;;
2545 * ) break;;
2546 esac
2547 done
2548 else
2549 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2550 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }; }
2558 rm -f conftest$ac_cv_exeext
2559 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2564 ac_exeext=$EXEEXT
2565 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2567 if test "${ac_cv_objext+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2578 main ()
2582 return 0;
2584 _ACEOF
2585 rm -f conftest.o conftest.obj
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597 done
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2603 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }; }
2611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614 echo "${ECHO_T}$ac_cv_objext" >&6
2615 OBJEXT=$ac_cv_objext
2616 ac_objext=$OBJEXT
2617 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 main ()
2632 #ifndef __GNUC__
2633 choke me
2634 #endif
2637 return 0;
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_compiler_gnu=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_compiler_gnu=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 CFLAGS="-g"
2679 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2680 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2681 if test "${ac_cv_prog_cc_g+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag"
2709 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 ac_cv_prog_cc_g=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 ac_cv_prog_cc_g=no
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2732 if test "$ac_test_CFLAGS" = set; then
2733 CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735 if test "$GCC" = yes; then
2736 CFLAGS="-g -O2"
2737 else
2738 CFLAGS="-g"
2740 else
2741 if test "$GCC" = yes; then
2742 CFLAGS="-O2"
2743 else
2744 CFLAGS=
2747 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2748 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2749 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 ac_cv_prog_cc_stdc=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768 char **p;
2769 int i;
2771 return p[i];
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2775 char *s;
2776 va_list v;
2777 va_start (v,p);
2778 s = g (p, va_arg (v,int));
2779 va_end (v);
2780 return s;
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not '\xHH' hex character constants.
2785 These don't provoke an error unfortunately, instead are silently treated
2786 as 'x'. The following induces an error, until -std1 is added to get
2787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2788 array size at least. It's necessary to write '\x00'==0 to get something
2789 that's true only with -std1. */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792 int test (int i, double x);
2793 struct s1 {int (*f) (int a);};
2794 struct s2 {int (*f) (double a);};
2795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2796 int argc;
2797 char **argv;
2799 main ()
2801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2803 return 0;
2805 _ACEOF
2806 # Don't try gcc -ansi; that turns off useful extensions and
2807 # breaks some systems' header files.
2808 # AIX -qlanglvl=ansi
2809 # Ultrix and OSF/1 -std1
2810 # HP-UX 10.20 and later -Ae
2811 # HP-UX older versions -Aa -D_HPUX_SOURCE
2812 # SVR4 -Xc -D__EXTENSIONS__
2813 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 CC="$ac_save_CC $ac_arg"
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag"
2826 || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_prog_cc_stdc=$ac_arg
2839 break
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f conftest.err conftest.$ac_objext
2846 done
2847 rm -f conftest.$ac_ext conftest.$ac_objext
2848 CC=$ac_save_CC
2852 case "x$ac_cv_prog_cc_stdc" in
2853 x|xno)
2854 echo "$as_me:$LINENO: result: none needed" >&5
2855 echo "${ECHO_T}none needed" >&6 ;;
2857 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2859 CC="$CC $ac_cv_prog_cc_stdc" ;;
2860 esac
2862 # Some people use a C++ compiler to compile C. Since we use `exit',
2863 # in C++ we need to declare it. In case someone uses the same compiler
2864 # for both compiling C and C++ we need to have the C++ compiler decide
2865 # the declaration of exit, since it's the most demanding environment.
2866 cat >conftest.$ac_ext <<_ACEOF
2867 #ifndef __cplusplus
2868 choke me
2869 #endif
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 for ac_declaration in \
2894 '' \
2895 'extern "C" void std::exit (int) throw (); using std::exit;' \
2896 'extern "C" void std::exit (int); using std::exit;' \
2897 'extern "C" void exit (int) throw ();' \
2898 'extern "C" void exit (int);' \
2899 'void exit (int);'
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 $ac_declaration
2908 #include <stdlib.h>
2910 main ()
2912 exit (42);
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2920 ac_status=$?
2921 grep -v '^ *+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 continue
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 $ac_declaration
2955 main ()
2957 exit (42);
2959 return 0;
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -z "$ac_c_werror_flag"
2972 || test ! -s conftest.err'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 break
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 done
2992 rm -f conftest*
2993 if test -n "$ac_declaration"; then
2994 echo '#ifdef __cplusplus' >>confdefs.h
2995 echo $ac_declaration >>confdefs.h
2996 echo '#endif' >>confdefs.h
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 DEPDIR="${am__leading_dot}deps"
3012 ac_config_commands="$ac_config_commands depfiles"
3015 am_make=${MAKE-make}
3016 cat > confinc << 'END'
3017 am__doit:
3018 @echo done
3019 .PHONY: am__doit
3021 # If we don't find an include directive, just comment out the code.
3022 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3023 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3024 am__include="#"
3025 am__quote=
3026 _am_result=none
3027 # First try GNU make style include.
3028 echo "include confinc" > confmf
3029 # We grep out `Entering directory' and `Leaving directory'
3030 # messages which can occur if `w' ends up in MAKEFLAGS.
3031 # In particular we don't look at `^make:' because GNU make might
3032 # be invoked under some other name (usually "gmake"), in which
3033 # case it prints its new name instead of `make'.
3034 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3035 am__include=include
3036 am__quote=
3037 _am_result=GNU
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3043 am__include=.include
3044 am__quote="\""
3045 _am_result=BSD
3050 echo "$as_me:$LINENO: result: $_am_result" >&5
3051 echo "${ECHO_T}$_am_result" >&6
3052 rm -f confinc confmf
3054 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3055 if test "${enable_dependency_tracking+set}" = set; then
3056 enableval="$enable_dependency_tracking"
3059 if test "x$enable_dependency_tracking" != xno; then
3060 am_depcomp="$ac_aux_dir/depcomp"
3061 AMDEPBACKSLASH='\'
3065 if test "x$enable_dependency_tracking" != xno; then
3066 AMDEP_TRUE=
3067 AMDEP_FALSE='#'
3068 else
3069 AMDEP_TRUE='#'
3070 AMDEP_FALSE=
3076 depcc="$CC" am_compiler_list=
3078 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3084 # We make a subdir and do the tests there. Otherwise we can end up
3085 # making bogus files that we don't know about and never remove. For
3086 # instance it was reported that on HP-UX the gcc test will end up
3087 # making a dummy file named `D' -- because `-MD' means `put the output
3088 # in D'.
3089 mkdir conftest.dir
3090 # Copy depcomp to subdir because otherwise we won't find it if we're
3091 # using a relative directory.
3092 cp "$am_depcomp" conftest.dir
3093 cd conftest.dir
3094 # We will build objects and dependencies in a subdirectory because
3095 # it helps to detect inapplicable dependency modes. For instance
3096 # both Tru64's cc and ICC support -MD to output dependencies as a
3097 # side effect of compilation, but ICC will put the dependencies in
3098 # the current directory while Tru64 will put them in the object
3099 # directory.
3100 mkdir sub
3102 am_cv_CC_dependencies_compiler_type=none
3103 if test "$am_compiler_list" = ""; then
3104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3106 for depmode in $am_compiler_list; do
3107 # Setup a source with many dependencies, because some compilers
3108 # like to wrap large dependency lists on column 80 (with \), and
3109 # we should not choose a depcomp mode which is confused by this.
3111 # We need to recreate these files for each test, as the compiler may
3112 # overwrite some of them when testing with obscure command lines.
3113 # This happens at least with the AIX C compiler.
3114 : > sub/conftest.c
3115 for i in 1 2 3 4 5 6; do
3116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3117 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3118 # Solaris 8's {/usr,}/bin/sh.
3119 touch sub/conftst$i.h
3120 done
3121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3123 case $depmode in
3124 nosideeffect)
3125 # after this tag, mechanisms are not by side-effect, so they'll
3126 # only be used when explicitly requested
3127 if test "x$enable_dependency_tracking" = xyes; then
3128 continue
3129 else
3130 break
3133 none) break ;;
3134 esac
3135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3136 # mode. It turns out that the SunPro C++ compiler does not properly
3137 # handle `-M -o', and we need to detect this.
3138 if depmode=$depmode \
3139 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3141 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3142 >/dev/null 2>conftest.err &&
3143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3144 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3146 # icc doesn't choke on unknown options, it will just issue warnings
3147 # or remarks (even with -Werror). So we grep stderr for any message
3148 # that says an option was ignored or not supported.
3149 # When given -MP, icc 7.0 and 7.1 complain thusly:
3150 # icc: Command line warning: ignoring option '-M'; no argument required
3151 # The diagnosis changed in icc 8.0:
3152 # icc: Command line remark: option '-MP' not supported
3153 if (grep 'ignoring option' conftest.err ||
3154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3155 am_cv_CC_dependencies_compiler_type=$depmode
3156 break
3159 done
3161 cd ..
3162 rm -rf conftest.dir
3163 else
3164 am_cv_CC_dependencies_compiler_type=none
3168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3175 test "x$enable_dependency_tracking" != xno \
3176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3177 am__fastdepCC_TRUE=
3178 am__fastdepCC_FALSE='#'
3179 else
3180 am__fastdepCC_TRUE='#'
3181 am__fastdepCC_FALSE=
3186 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3187 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3188 if test "${ac_cv_c_const+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3199 main ()
3201 /* FIXME: Include the comments suggested by Paul. */
3202 #ifndef __cplusplus
3203 /* Ultrix mips cc rejects this. */
3204 typedef int charset[2];
3205 const charset x;
3206 /* SunOS 4.1.1 cc rejects this. */
3207 char const *const *ccp;
3208 char **p;
3209 /* NEC SVR4.0.2 mips cc rejects this. */
3210 struct point {int x, y;};
3211 static struct point const zero = {0,0};
3212 /* AIX XL C 1.02.0.0 rejects this.
3213 It does not let you subtract one const X* pointer from another in
3214 an arm of an if-expression whose if-part is not a constant
3215 expression */
3216 const char *g = "string";
3217 ccp = &g + (g ? g-g : 0);
3218 /* HPUX 7.0 cc rejects these. */
3219 ++ccp;
3220 p = (char**) ccp;
3221 ccp = (char const *const *) p;
3222 { /* SCO 3.2v4 cc rejects this. */
3223 char *t;
3224 char const *s = 0 ? (char *) 0 : (char const *) 0;
3226 *t++ = 0;
3228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3229 int x[] = {25, 17};
3230 const int *foo = &x[0];
3231 ++foo;
3233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3234 typedef const int *iptr;
3235 iptr p = 0;
3236 ++p;
3238 { /* AIX XL C 1.02.0.0 rejects this saying
3239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3240 struct s { int j; const int *ap[3]; };
3241 struct s *b; b->j = 5;
3243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3244 const int foo = 10;
3246 #endif
3249 return 0;
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_c_const=yes
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 ac_cv_c_const=no
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3284 echo "${ECHO_T}$ac_cv_c_const" >&6
3285 if test $ac_cv_c_const = no; then
3287 cat >>confdefs.h <<\_ACEOF
3288 #define const
3289 _ACEOF
3293 echo "$as_me:$LINENO: checking for inline" >&5
3294 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3295 if test "${ac_cv_c_inline+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298 ac_cv_c_inline=no
3299 for ac_kw in inline __inline__ __inline; do
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #ifndef __cplusplus
3307 typedef int foo_t;
3308 static $ac_kw foo_t static_foo () {return 0; }
3309 $ac_kw foo_t foo () {return 0; }
3310 #endif
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315 (eval $ac_compile) 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -z "$ac_c_werror_flag"
3323 || test ! -s conftest.err'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 ac_cv_c_inline=$ac_kw; break
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342 done
3345 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3346 echo "${ECHO_T}$ac_cv_c_inline" >&6
3349 case $ac_cv_c_inline in
3350 inline | yes) ;;
3352 case $ac_cv_c_inline in
3353 no) ac_val=;;
3354 *) ac_val=$ac_cv_c_inline;;
3355 esac
3356 cat >>confdefs.h <<_ACEOF
3357 #ifndef __cplusplus
3358 #define inline $ac_val
3359 #endif
3360 _ACEOF
3362 esac
3366 ## ----------------------- ##
3367 ## Libtool initialisation. ##
3368 ## ----------------------- ##
3371 # Check whether --enable-shared or --disable-shared was given.
3372 if test "${enable_shared+set}" = set; then
3373 enableval="$enable_shared"
3374 p=${PACKAGE-default}
3375 case $enableval in
3376 yes) enable_shared=yes ;;
3377 no) enable_shared=no ;;
3379 enable_shared=no
3380 # Look at the argument we got. We use all the common list separators.
3381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3382 for pkg in $enableval; do
3383 IFS="$lt_save_ifs"
3384 if test "X$pkg" = "X$p"; then
3385 enable_shared=yes
3387 done
3388 IFS="$lt_save_ifs"
3390 esac
3391 else
3392 enable_shared=yes
3395 # Check whether --enable-static or --disable-static was given.
3396 if test "${enable_static+set}" = set; then
3397 enableval="$enable_static"
3398 p=${PACKAGE-default}
3399 case $enableval in
3400 yes) enable_static=yes ;;
3401 no) enable_static=no ;;
3403 enable_static=no
3404 # Look at the argument we got. We use all the common list separators.
3405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3406 for pkg in $enableval; do
3407 IFS="$lt_save_ifs"
3408 if test "X$pkg" = "X$p"; then
3409 enable_static=yes
3411 done
3412 IFS="$lt_save_ifs"
3414 esac
3415 else
3416 enable_static=yes
3419 # Check whether --enable-fast-install or --disable-fast-install was given.
3420 if test "${enable_fast_install+set}" = set; then
3421 enableval="$enable_fast_install"
3422 p=${PACKAGE-default}
3423 case $enableval in
3424 yes) enable_fast_install=yes ;;
3425 no) enable_fast_install=no ;;
3427 enable_fast_install=no
3428 # Look at the argument we got. We use all the common list separators.
3429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3430 for pkg in $enableval; do
3431 IFS="$lt_save_ifs"
3432 if test "X$pkg" = "X$p"; then
3433 enable_fast_install=yes
3435 done
3436 IFS="$lt_save_ifs"
3438 esac
3439 else
3440 enable_fast_install=yes
3443 # Make sure we can run config.sub.
3444 $ac_config_sub sun4 >/dev/null 2>&1 ||
3445 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3446 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3447 { (exit 1); exit 1; }; }
3449 echo "$as_me:$LINENO: checking build system type" >&5
3450 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3451 if test "${ac_cv_build+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 ac_cv_build_alias=$build_alias
3455 test -z "$ac_cv_build_alias" &&
3456 ac_cv_build_alias=`$ac_config_guess`
3457 test -z "$ac_cv_build_alias" &&
3458 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3459 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3460 { (exit 1); exit 1; }; }
3461 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3463 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3464 { (exit 1); exit 1; }; }
3467 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3468 echo "${ECHO_T}$ac_cv_build" >&6
3469 build=$ac_cv_build
3470 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3471 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3472 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3475 echo "$as_me:$LINENO: checking host system type" >&5
3476 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3477 if test "${ac_cv_host+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 ac_cv_host_alias=$host_alias
3481 test -z "$ac_cv_host_alias" &&
3482 ac_cv_host_alias=$ac_cv_build_alias
3483 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3485 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3486 { (exit 1); exit 1; }; }
3489 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3490 echo "${ECHO_T}$ac_cv_host" >&6
3491 host=$ac_cv_host
3492 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3493 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3494 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3497 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3498 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3499 if test "${lt_cv_path_SED+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 # Loop through the user's path and test for sed and gsed.
3503 # Then use that list of sed's as ones to test for truncation.
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for lt_ac_prog in sed gsed; do
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3512 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3514 done
3515 done
3516 done
3517 lt_ac_max=0
3518 lt_ac_count=0
3519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3520 # along with /bin/sed that truncates output.
3521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3522 test ! -f $lt_ac_sed && continue
3523 cat /dev/null > conftest.in
3524 lt_ac_count=0
3525 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3526 # Check for GNU sed and select it if it is found.
3527 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3528 lt_cv_path_SED=$lt_ac_sed
3529 break
3531 while true; do
3532 cat conftest.in conftest.in >conftest.tmp
3533 mv conftest.tmp conftest.in
3534 cp conftest.in conftest.nl
3535 echo >>conftest.nl
3536 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3537 cmp -s conftest.out conftest.nl || break
3538 # 10000 chars as input seems more than enough
3539 test $lt_ac_count -gt 10 && break
3540 lt_ac_count=`expr $lt_ac_count + 1`
3541 if test $lt_ac_count -gt $lt_ac_max; then
3542 lt_ac_max=$lt_ac_count
3543 lt_cv_path_SED=$lt_ac_sed
3545 done
3546 done
3550 SED=$lt_cv_path_SED
3551 echo "$as_me:$LINENO: result: $SED" >&5
3552 echo "${ECHO_T}$SED" >&6
3554 echo "$as_me:$LINENO: checking for egrep" >&5
3555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3556 if test "${ac_cv_prog_egrep+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3560 then ac_cv_prog_egrep='grep -E'
3561 else ac_cv_prog_egrep='egrep'
3564 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3565 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3566 EGREP=$ac_cv_prog_egrep
3570 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3571 if test "${with_gnu_ld+set}" = set; then
3572 withval="$with_gnu_ld"
3573 test "$withval" = no || with_gnu_ld=yes
3574 else
3575 with_gnu_ld=no
3577 ac_prog=ld
3578 if test "$GCC" = yes; then
3579 # Check if gcc -print-prog-name=ld gives a path.
3580 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3581 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3582 case $host in
3583 *-*-mingw*)
3584 # gcc leaves a trailing carriage return which upsets mingw
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3588 esac
3589 case $ac_prog in
3590 # Accept absolute paths.
3591 [\\/]* | ?:[\\/]*)
3592 re_direlt='/[^/][^/]*/\.\./'
3593 # Canonicalize the pathname of ld
3594 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3595 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3597 done
3598 test -z "$LD" && LD="$ac_prog"
3601 # If it fails, then pretend we aren't using GCC.
3602 ac_prog=ld
3605 # If it is relative, then search for the first ld in PATH.
3606 with_gnu_ld=unknown
3608 esac
3609 elif test "$with_gnu_ld" = yes; then
3610 echo "$as_me:$LINENO: checking for GNU ld" >&5
3611 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3612 else
3613 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3616 if test "${lt_cv_path_LD+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test -z "$LD"; then
3620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621 for ac_dir in $PATH; do
3622 IFS="$lt_save_ifs"
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625 lt_cv_path_LD="$ac_dir/$ac_prog"
3626 # Check to see if the program is GNU ld. I'd rather use --version,
3627 # but apparently some GNU ld's only accept -v.
3628 # Break only if it was the GNU/non-GNU ld that we prefer.
3629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3630 *GNU* | *'with BFD'*)
3631 test "$with_gnu_ld" != no && break
3634 test "$with_gnu_ld" != yes && break
3636 esac
3638 done
3639 IFS="$lt_save_ifs"
3640 else
3641 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3645 LD="$lt_cv_path_LD"
3646 if test -n "$LD"; then
3647 echo "$as_me:$LINENO: result: $LD" >&5
3648 echo "${ECHO_T}$LD" >&6
3649 else
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3653 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3654 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3655 { (exit 1); exit 1; }; }
3656 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3657 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3658 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3662 case `$LD -v 2>&1 </dev/null` in
3663 *GNU* | *'with BFD'*)
3664 lt_cv_prog_gnu_ld=yes
3667 lt_cv_prog_gnu_ld=no
3669 esac
3671 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3672 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3673 with_gnu_ld=$lt_cv_prog_gnu_ld
3676 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3677 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3678 if test "${lt_cv_ld_reload_flag+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 lt_cv_ld_reload_flag='-r'
3683 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3684 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3685 reload_flag=$lt_cv_ld_reload_flag
3686 case $reload_flag in
3687 "" | " "*) ;;
3688 *) reload_flag=" $reload_flag" ;;
3689 esac
3690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691 case $host_os in
3692 darwin*)
3693 if test "$GCC" = yes; then
3694 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3695 else
3696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3699 esac
3701 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3702 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3703 if test "${lt_cv_path_NM+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 if test -n "$NM"; then
3707 # Let the user override the test.
3708 lt_cv_path_NM="$NM"
3709 else
3710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3711 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3712 IFS="$lt_save_ifs"
3713 test -z "$ac_dir" && ac_dir=.
3714 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3716 # Check to see if the nm accepts a BSD-compat flag.
3717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3718 # nm: unknown option "B" ignored
3719 # Tru64's nm complains that /dev/null is an invalid object file
3720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3721 */dev/null* | *'Invalid file or object type'*)
3722 lt_cv_path_NM="$tmp_nm -B"
3723 break
3726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3727 */dev/null*)
3728 lt_cv_path_NM="$tmp_nm -p"
3729 break
3732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3733 continue # so that we can try to find one that supports BSD flags
3735 esac
3736 esac
3738 done
3739 IFS="$lt_save_ifs"
3740 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3743 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3744 echo "${ECHO_T}$lt_cv_path_NM" >&6
3745 NM="$lt_cv_path_NM"
3747 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3749 LN_S=$as_ln_s
3750 if test "$LN_S" = "ln -s"; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3755 echo "${ECHO_T}no, using $LN_S" >&6
3758 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3759 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3760 if test "${lt_cv_deplibs_check_method+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 lt_cv_file_magic_cmd='$MAGIC_CMD'
3764 lt_cv_file_magic_test_file=
3765 lt_cv_deplibs_check_method='unknown'
3766 # Need to set the preceding variable on all platforms that support
3767 # interlibrary dependencies.
3768 # 'none' -- dependencies not supported.
3769 # `unknown' -- same as none, but documents that we really don't know.
3770 # 'pass_all' -- all dependencies passed with no checks.
3771 # 'test_compile' -- check by making test program.
3772 # 'file_magic [[regex]]' -- check by looking for files in library path
3773 # which responds to the $file_magic_cmd with a given extended regex.
3774 # If you have `file' or equivalent on your system and you're not sure
3775 # whether `pass_all' will *always* work, you probably want this one.
3777 case $host_os in
3778 aix4* | aix5*)
3779 lt_cv_deplibs_check_method=pass_all
3782 beos*)
3783 lt_cv_deplibs_check_method=pass_all
3786 bsdi[45]*)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3788 lt_cv_file_magic_cmd='/usr/bin/file -L'
3789 lt_cv_file_magic_test_file=/shlib/libc.so
3792 cygwin*)
3793 # func_win32_libid is a shell function defined in ltmain.sh
3794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3795 lt_cv_file_magic_cmd='func_win32_libid'
3798 mingw* | pw32*)
3799 # Base MSYS/MinGW do not provide the 'file' command needed by
3800 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3801 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3802 lt_cv_file_magic_cmd='$OBJDUMP -f'
3805 darwin* | rhapsody*)
3806 lt_cv_deplibs_check_method=pass_all
3809 freebsd* | kfreebsd*-gnu | dragonfly*)
3810 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3811 case $host_cpu in
3812 i*86 )
3813 # Not sure whether the presence of OpenBSD here was a mistake.
3814 # Let's accept both of them until this is cleared up.
3815 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3816 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3819 esac
3820 else
3821 lt_cv_deplibs_check_method=pass_all
3825 gnu*)
3826 lt_cv_deplibs_check_method=pass_all
3829 hpux10.20* | hpux11*)
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 case "$host_cpu" in
3832 ia64*)
3833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3834 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3836 hppa*64*)
3837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3838 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3841 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3842 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3844 esac
3847 irix5* | irix6* | nonstopux*)
3848 case $LD in
3849 *-32|*"-32 ") libmagic=32-bit;;
3850 *-n32|*"-n32 ") libmagic=N32;;
3851 *-64|*"-64 ") libmagic=64-bit;;
3852 *) libmagic=never-match;;
3853 esac
3854 lt_cv_deplibs_check_method=pass_all
3857 # This must be Linux ELF.
3858 linux*)
3859 lt_cv_deplibs_check_method=pass_all
3862 netbsd*)
3863 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3865 else
3866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3870 newos6*)
3871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3872 lt_cv_file_magic_cmd=/usr/bin/file
3873 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3876 nto-qnx*)
3877 lt_cv_deplibs_check_method=unknown
3880 openbsd*)
3881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3883 else
3884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3888 osf3* | osf4* | osf5*)
3889 lt_cv_deplibs_check_method=pass_all
3892 sco3.2v5*)
3893 lt_cv_deplibs_check_method=pass_all
3896 solaris*)
3897 lt_cv_deplibs_check_method=pass_all
3900 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3901 case $host_vendor in
3902 motorola)
3903 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]'
3904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3906 ncr)
3907 lt_cv_deplibs_check_method=pass_all
3909 sequent)
3910 lt_cv_file_magic_cmd='/bin/file'
3911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3913 sni)
3914 lt_cv_file_magic_cmd='/bin/file'
3915 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3916 lt_cv_file_magic_test_file=/lib/libc.so
3918 siemens)
3919 lt_cv_deplibs_check_method=pass_all
3921 esac
3924 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3925 lt_cv_deplibs_check_method=pass_all
3927 esac
3930 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3931 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3932 file_magic_cmd=$lt_cv_file_magic_cmd
3933 deplibs_check_method=$lt_cv_deplibs_check_method
3934 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3939 # If no C compiler was specified, use CC.
3940 LTCC=${LTCC-"$CC"}
3942 # Allow CC to be a program name with arguments.
3943 compiler=$CC
3945 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3946 if test "${enable_libtool_lock+set}" = set; then
3947 enableval="$enable_libtool_lock"
3950 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3952 # Some flags need to be propagated to the compiler or linker for good
3953 # libtool support.
3954 case $host in
3955 ia64-*-hpux*)
3956 # Find out which ABI we are using.
3957 echo 'int i;' > conftest.$ac_ext
3958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959 (eval $ac_compile) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; then
3963 case `/usr/bin/file conftest.$ac_objext` in
3964 *ELF-32*)
3965 HPUX_IA64_MODE="32"
3967 *ELF-64*)
3968 HPUX_IA64_MODE="64"
3970 esac
3972 rm -rf conftest*
3974 *-*-irix6*)
3975 # Find out which ABI we are using.
3976 echo '#line 3976 "configure"' > conftest.$ac_ext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; then
3982 if test "$lt_cv_prog_gnu_ld" = yes; then
3983 case `/usr/bin/file conftest.$ac_objext` in
3984 *32-bit*)
3985 LD="${LD-ld} -melf32bsmip"
3987 *N32*)
3988 LD="${LD-ld} -melf32bmipn32"
3990 *64-bit*)
3991 LD="${LD-ld} -melf64bmip"
3993 esac
3994 else
3995 case `/usr/bin/file conftest.$ac_objext` in
3996 *32-bit*)
3997 LD="${LD-ld} -32"
3999 *N32*)
4000 LD="${LD-ld} -n32"
4002 *64-bit*)
4003 LD="${LD-ld} -64"
4005 esac
4008 rm -rf conftest*
4011 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4012 # Find out which ABI we are using.
4013 echo 'int i;' > conftest.$ac_ext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; then
4019 case "`/usr/bin/file conftest.o`" in
4020 *32-bit*)
4021 case $host in
4022 x86_64-*linux*)
4023 LD="${LD-ld} -m elf_i386"
4025 ppc64-*linux*|powerpc64-*linux*)
4026 LD="${LD-ld} -m elf32ppclinux"
4028 s390x-*linux*)
4029 LD="${LD-ld} -m elf_s390"
4031 sparc64-*linux*)
4032 LD="${LD-ld} -m elf32_sparc"
4034 esac
4036 *64-bit*)
4037 case $host in
4038 x86_64-*linux*)
4039 LD="${LD-ld} -m elf_x86_64"
4041 ppc*-*linux*|powerpc*-*linux*)
4042 LD="${LD-ld} -m elf64ppc"
4044 s390*-*linux*)
4045 LD="${LD-ld} -m elf64_s390"
4047 sparc*-*linux*)
4048 LD="${LD-ld} -m elf64_sparc"
4050 esac
4052 esac
4054 rm -rf conftest*
4057 *-*-sco3.2v5*)
4058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4059 SAVE_CFLAGS="$CFLAGS"
4060 CFLAGS="$CFLAGS -belf"
4061 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4062 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4063 if test "${lt_cv_cc_needs_belf+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 rm -f conftest.$ac_objext conftest$ac_exeext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4089 (eval $ac_link) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest$ac_exeext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 lt_cv_cc_needs_belf=yes
4110 else
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 lt_cv_cc_needs_belf=no
4116 rm -f conftest.err conftest.$ac_objext \
4117 conftest$ac_exeext conftest.$ac_ext
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4126 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4127 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4129 CFLAGS="$SAVE_CFLAGS"
4132 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 if test -n "$DLLTOOL"; then
4142 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4160 DLLTOOL=$ac_cv_prog_DLLTOOL
4161 if test -n "$DLLTOOL"; then
4162 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4163 echo "${ECHO_T}$DLLTOOL" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4170 if test -z "$ac_cv_prog_DLLTOOL"; then
4171 ac_ct_DLLTOOL=$DLLTOOL
4172 # Extract the first word of "dlltool", so it can be a program name with args.
4173 set dummy dlltool; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 if test -n "$ac_ct_DLLTOOL"; then
4180 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4196 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4199 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4200 if test -n "$ac_ct_DLLTOOL"; then
4201 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4202 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6
4208 DLLTOOL=$ac_ct_DLLTOOL
4209 else
4210 DLLTOOL="$ac_cv_prog_DLLTOOL"
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}as; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_AS+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -n "$AS"; then
4222 ac_cv_prog_AS="$AS" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_AS="${ac_tool_prefix}as"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4240 AS=$ac_cv_prog_AS
4241 if test -n "$AS"; then
4242 echo "$as_me:$LINENO: result: $AS" >&5
4243 echo "${ECHO_T}$AS" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4250 if test -z "$ac_cv_prog_AS"; then
4251 ac_ct_AS=$AS
4252 # Extract the first word of "as", so it can be a program name with args.
4253 set dummy as; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 if test -n "$ac_ct_AS"; then
4260 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_AS="as"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4276 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4279 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4280 if test -n "$ac_ct_AS"; then
4281 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4282 echo "${ECHO_T}$ac_ct_AS" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4288 AS=$ac_ct_AS
4289 else
4290 AS="$ac_cv_prog_AS"
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if test -n "$OBJDUMP"; then
4302 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4320 OBJDUMP=$ac_cv_prog_OBJDUMP
4321 if test -n "$OBJDUMP"; then
4322 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4323 echo "${ECHO_T}$OBJDUMP" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4330 if test -z "$ac_cv_prog_OBJDUMP"; then
4331 ac_ct_OBJDUMP=$OBJDUMP
4332 # Extract the first word of "objdump", so it can be a program name with args.
4333 set dummy objdump; ac_word=$2
4334 echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 if test -n "$ac_ct_OBJDUMP"; then
4340 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4356 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4359 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4360 if test -n "$ac_ct_OBJDUMP"; then
4361 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4362 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4368 OBJDUMP=$ac_ct_OBJDUMP
4369 else
4370 OBJDUMP="$ac_cv_prog_OBJDUMP"
4375 esac
4377 need_locks="$enable_libtool_lock"
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4386 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4387 # On Suns, sometimes $CPP names a directory.
4388 if test -n "$CPP" && test -d "$CPP"; then
4389 CPP=
4391 if test -z "$CPP"; then
4392 if test "${ac_cv_prog_CPP+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395 # Double quotes because CPP needs to be expanded
4396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4398 ac_preproc_ok=false
4399 for ac_c_preproc_warn_flag in '' yes
4401 # Use a header file that comes with gcc, so configuring glibc
4402 # with a fresh cross-compiler works.
4403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4404 # <limits.h> exists even on freestanding compilers.
4405 # On the NeXT, cc -E runs the code through the compiler's parser,
4406 # not just through cpp. "Syntax error" is here to catch this case.
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #ifdef __STDC__
4414 # include <limits.h>
4415 #else
4416 # include <assert.h>
4417 #endif
4418 Syntax error
4419 _ACEOF
4420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } >/dev/null; then
4428 if test -s conftest.err; then
4429 ac_cpp_err=$ac_c_preproc_warn_flag
4430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4431 else
4432 ac_cpp_err=
4434 else
4435 ac_cpp_err=yes
4437 if test -z "$ac_cpp_err"; then
4439 else
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 # Broken: fails on valid input.
4444 continue
4446 rm -f conftest.err conftest.$ac_ext
4448 # OK, works on sane cases. Now check whether non-existent headers
4449 # can be detected and how.
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ac_nonexistent.h>
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469 else
4470 ac_cpp_err=
4472 else
4473 ac_cpp_err=yes
4475 if test -z "$ac_cpp_err"; then
4476 # Broken: success on invalid input.
4477 continue
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 # Passes both tests.
4483 ac_preproc_ok=:
4484 break
4486 rm -f conftest.err conftest.$ac_ext
4488 done
4489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4490 rm -f conftest.err conftest.$ac_ext
4491 if $ac_preproc_ok; then
4492 break
4495 done
4496 ac_cv_prog_CPP=$CPP
4499 CPP=$ac_cv_prog_CPP
4500 else
4501 ac_cv_prog_CPP=$CPP
4503 echo "$as_me:$LINENO: result: $CPP" >&5
4504 echo "${ECHO_T}$CPP" >&6
4505 ac_preproc_ok=false
4506 for ac_c_preproc_warn_flag in '' yes
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525 Syntax error
4526 _ACEOF
4527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } >/dev/null; then
4535 if test -s conftest.err; then
4536 ac_cpp_err=$ac_c_preproc_warn_flag
4537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4538 else
4539 ac_cpp_err=
4541 else
4542 ac_cpp_err=yes
4544 if test -z "$ac_cpp_err"; then
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 # Broken: fails on valid input.
4551 continue
4553 rm -f conftest.err conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether non-existent headers
4556 # can be detected and how.
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <ac_nonexistent.h>
4564 _ACEOF
4565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } >/dev/null; then
4573 if test -s conftest.err; then
4574 ac_cpp_err=$ac_c_preproc_warn_flag
4575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4576 else
4577 ac_cpp_err=
4579 else
4580 ac_cpp_err=yes
4582 if test -z "$ac_cpp_err"; then
4583 # Broken: success on invalid input.
4584 continue
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 # Passes both tests.
4590 ac_preproc_ok=:
4591 break
4593 rm -f conftest.err conftest.$ac_ext
4595 done
4596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4597 rm -f conftest.err conftest.$ac_ext
4598 if $ac_preproc_ok; then
4600 else
4601 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4602 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4604 See \`config.log' for more details." >&5
4605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details." >&2;}
4607 { (exit 1); exit 1; }; }; }
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4619 if test "${ac_cv_header_stdc+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #include <stdlib.h>
4629 #include <stdarg.h>
4630 #include <string.h>
4631 #include <float.h>
4634 main ()
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag"
4651 || test ! -s conftest.err'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; } &&
4657 { ac_try='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_header_stdc=yes
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 ac_cv_header_stdc=no
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $ac_cv_header_stdc = yes; then
4673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4674 cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h. */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680 #include <string.h>
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "memchr" >/dev/null 2>&1; then
4686 else
4687 ac_cv_header_stdc=no
4689 rm -f conftest*
4693 if test $ac_cv_header_stdc = yes; then
4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <stdlib.h>
4703 _ACEOF
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705 $EGREP "free" >/dev/null 2>&1; then
4707 else
4708 ac_cv_header_stdc=no
4710 rm -f conftest*
4714 if test $ac_cv_header_stdc = yes; then
4715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4716 if test "$cross_compiling" = yes; then
4718 else
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #include <ctype.h>
4726 #if ((' ' & 0x0FF) == 0x020)
4727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4729 #else
4730 # define ISLOWER(c) \
4731 (('a' <= (c) && (c) <= 'i') \
4732 || ('j' <= (c) && (c) <= 'r') \
4733 || ('s' <= (c) && (c) <= 'z'))
4734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4735 #endif
4737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4739 main ()
4741 int i;
4742 for (i = 0; i < 256; i++)
4743 if (XOR (islower (i), ISLOWER (i))
4744 || toupper (i) != TOUPPER (i))
4745 exit(2);
4746 exit (0);
4748 _ACEOF
4749 rm -f conftest$ac_exeext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4761 else
4762 echo "$as_me: program exited with status $ac_status" >&5
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 ( exit $ac_status )
4767 ac_cv_header_stdc=no
4769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4773 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4774 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4775 if test $ac_cv_header_stdc = yes; then
4777 cat >>confdefs.h <<\_ACEOF
4778 #define STDC_HEADERS 1
4779 _ACEOF
4783 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4794 inttypes.h stdint.h unistd.h
4796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4797 echo "$as_me:$LINENO: checking for $ac_header" >&5
4798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4810 #include <$ac_header>
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -z "$ac_c_werror_flag"
4822 || test ! -s conftest.err'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; } &&
4828 { ac_try='test -s conftest.$ac_objext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 eval "$as_ac_Header=yes"
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 eval "$as_ac_Header=no"
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4848 _ACEOF
4852 done
4856 for ac_header in dlfcn.h
4858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4860 echo "$as_me:$LINENO: checking for $ac_header" >&5
4861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4867 else
4868 # Is the header compilable?
4869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 $ac_includes_default
4878 #include <$ac_header>
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_header_compiler=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_header_compiler=no
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4911 echo "${ECHO_T}$ac_header_compiler" >&6
4913 # Is the header present?
4914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #include <$ac_header>
4923 _ACEOF
4924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } >/dev/null; then
4932 if test -s conftest.err; then
4933 ac_cpp_err=$ac_c_preproc_warn_flag
4934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4935 else
4936 ac_cpp_err=
4938 else
4939 ac_cpp_err=yes
4941 if test -z "$ac_cpp_err"; then
4942 ac_header_preproc=yes
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_header_preproc=no
4949 rm -f conftest.err conftest.$ac_ext
4950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4951 echo "${ECHO_T}$ac_header_preproc" >&6
4953 # So? What about this header?
4954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4955 yes:no: )
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4960 ac_header_preproc=yes
4962 no:yes:* )
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4976 cat <<\_ASBOX
4977 ## ---------------------------------- ##
4978 ## Report this to bug-libtool@gnu.org ##
4979 ## ---------------------------------- ##
4980 _ASBOX
4982 sed "s/^/$as_me: WARNING: /" >&2
4984 esac
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 eval "$as_ac_Header=\$ac_header_preproc"
4992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4997 cat >>confdefs.h <<_ACEOF
4998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5003 done
5005 ac_ext=cc
5006 ac_cpp='$CXXCPP $CPPFLAGS'
5007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_CXX+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 if test -n "$CXX"; then
5021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5039 CXX=$ac_cv_prog_CXX
5040 if test -n "$CXX"; then
5041 echo "$as_me:$LINENO: result: $CXX" >&5
5042 echo "${ECHO_T}$CXX" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5048 test -n "$CXX" && break
5049 done
5051 if test -z "$CXX"; then
5052 ac_ct_CXX=$CXX
5053 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062 if test -n "$ac_ct_CXX"; then
5063 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_ac_ct_CXX="$ac_prog"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5082 if test -n "$ac_ct_CXX"; then
5083 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5084 echo "${ECHO_T}$ac_ct_CXX" >&6
5085 else
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5090 test -n "$ac_ct_CXX" && break
5091 done
5092 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5094 CXX=$ac_ct_CXX
5098 # Provide some information about the compiler.
5099 echo "$as_me:$LINENO:" \
5100 "checking for C++ compiler version" >&5
5101 ac_compiler=`set X $ac_compile; echo $2`
5102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103 (eval $ac_compiler --version </dev/null >&5) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }
5107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108 (eval $ac_compiler -v </dev/null >&5) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }
5112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113 (eval $ac_compiler -V </dev/null >&5) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }
5118 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5119 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5120 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5131 main ()
5133 #ifndef __GNUC__
5134 choke me
5135 #endif
5138 return 0;
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -z "$ac_cxx_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_compiler_gnu=yes
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_compiler_gnu=no
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5174 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5175 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5176 GXX=`test $ac_compiler_gnu = yes && echo yes`
5177 ac_test_CXXFLAGS=${CXXFLAGS+set}
5178 ac_save_CXXFLAGS=$CXXFLAGS
5179 CXXFLAGS="-g"
5180 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5181 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5182 if test "${ac_cv_prog_cxx_g+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5193 main ()
5197 return 0;
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_cxx_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_prog_cxx_g=yes
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_cv_prog_cxx_g=no
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5232 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5233 if test "$ac_test_CXXFLAGS" = set; then
5234 CXXFLAGS=$ac_save_CXXFLAGS
5235 elif test $ac_cv_prog_cxx_g = yes; then
5236 if test "$GXX" = yes; then
5237 CXXFLAGS="-g -O2"
5238 else
5239 CXXFLAGS="-g"
5241 else
5242 if test "$GXX" = yes; then
5243 CXXFLAGS="-O2"
5244 else
5245 CXXFLAGS=
5248 for ac_declaration in \
5249 '' \
5250 'extern "C" void std::exit (int) throw (); using std::exit;' \
5251 'extern "C" void std::exit (int); using std::exit;' \
5252 'extern "C" void exit (int) throw ();' \
5253 'extern "C" void exit (int);' \
5254 'void exit (int);'
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_declaration
5263 #include <stdlib.h>
5265 main ()
5267 exit (42);
5269 return 0;
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_cxx_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 continue
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 $ac_declaration
5310 main ()
5312 exit (42);
5314 return 0;
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 break
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 done
5347 rm -f conftest*
5348 if test -n "$ac_declaration"; then
5349 echo '#ifdef __cplusplus' >>confdefs.h
5350 echo $ac_declaration >>confdefs.h
5351 echo '#endif' >>confdefs.h
5354 ac_ext=cc
5355 ac_cpp='$CXXCPP $CPPFLAGS'
5356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5360 depcc="$CXX" am_compiler_list=
5362 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5363 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5364 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368 # We make a subdir and do the tests there. Otherwise we can end up
5369 # making bogus files that we don't know about and never remove. For
5370 # instance it was reported that on HP-UX the gcc test will end up
5371 # making a dummy file named `D' -- because `-MD' means `put the output
5372 # in D'.
5373 mkdir conftest.dir
5374 # Copy depcomp to subdir because otherwise we won't find it if we're
5375 # using a relative directory.
5376 cp "$am_depcomp" conftest.dir
5377 cd conftest.dir
5378 # We will build objects and dependencies in a subdirectory because
5379 # it helps to detect inapplicable dependency modes. For instance
5380 # both Tru64's cc and ICC support -MD to output dependencies as a
5381 # side effect of compilation, but ICC will put the dependencies in
5382 # the current directory while Tru64 will put them in the object
5383 # directory.
5384 mkdir sub
5386 am_cv_CXX_dependencies_compiler_type=none
5387 if test "$am_compiler_list" = ""; then
5388 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5390 for depmode in $am_compiler_list; do
5391 # Setup a source with many dependencies, because some compilers
5392 # like to wrap large dependency lists on column 80 (with \), and
5393 # we should not choose a depcomp mode which is confused by this.
5395 # We need to recreate these files for each test, as the compiler may
5396 # overwrite some of them when testing with obscure command lines.
5397 # This happens at least with the AIX C compiler.
5398 : > sub/conftest.c
5399 for i in 1 2 3 4 5 6; do
5400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5402 # Solaris 8's {/usr,}/bin/sh.
5403 touch sub/conftst$i.h
5404 done
5405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5407 case $depmode in
5408 nosideeffect)
5409 # after this tag, mechanisms are not by side-effect, so they'll
5410 # only be used when explicitly requested
5411 if test "x$enable_dependency_tracking" = xyes; then
5412 continue
5413 else
5414 break
5417 none) break ;;
5418 esac
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this.
5422 if depmode=$depmode \
5423 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5426 >/dev/null 2>conftest.err &&
5427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5428 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5430 # icc doesn't choke on unknown options, it will just issue warnings
5431 # or remarks (even with -Werror). So we grep stderr for any message
5432 # that says an option was ignored or not supported.
5433 # When given -MP, icc 7.0 and 7.1 complain thusly:
5434 # icc: Command line warning: ignoring option '-M'; no argument required
5435 # The diagnosis changed in icc 8.0:
5436 # icc: Command line remark: option '-MP' not supported
5437 if (grep 'ignoring option' conftest.err ||
5438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5439 am_cv_CXX_dependencies_compiler_type=$depmode
5440 break
5443 done
5445 cd ..
5446 rm -rf conftest.dir
5447 else
5448 am_cv_CXX_dependencies_compiler_type=none
5452 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5453 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5454 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5459 test "x$enable_dependency_tracking" != xno \
5460 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5461 am__fastdepCXX_TRUE=
5462 am__fastdepCXX_FALSE='#'
5463 else
5464 am__fastdepCXX_TRUE='#'
5465 am__fastdepCXX_FALSE=
5471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5473 (test "X$CXX" != "Xg++"))) ; then
5474 ac_ext=cc
5475 ac_cpp='$CXXCPP $CPPFLAGS'
5476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5479 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5480 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5481 if test -z "$CXXCPP"; then
5482 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 # Double quotes because CXXCPP needs to be expanded
5486 for CXXCPP in "$CXX -E" "/lib/cpp"
5488 ac_preproc_ok=false
5489 for ac_cxx_preproc_warn_flag in '' yes
5491 # Use a header file that comes with gcc, so configuring glibc
5492 # with a fresh cross-compiler works.
5493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494 # <limits.h> exists even on freestanding compilers.
5495 # On the NeXT, cc -E runs the code through the compiler's parser,
5496 # not just through cpp. "Syntax error" is here to catch this case.
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508 Syntax error
5509 _ACEOF
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null; then
5518 if test -s conftest.err; then
5519 ac_cpp_err=$ac_cxx_preproc_warn_flag
5520 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5521 else
5522 ac_cpp_err=
5524 else
5525 ac_cpp_err=yes
5527 if test -z "$ac_cpp_err"; then
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 # Broken: fails on valid input.
5534 continue
5536 rm -f conftest.err conftest.$ac_ext
5538 # OK, works on sane cases. Now check whether non-existent headers
5539 # can be detected and how.
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ac_nonexistent.h>
5547 _ACEOF
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_cxx_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5559 else
5560 ac_cpp_err=
5562 else
5563 ac_cpp_err=yes
5565 if test -z "$ac_cpp_err"; then
5566 # Broken: success on invalid input.
5567 continue
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5576 rm -f conftest.err conftest.$ac_ext
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5582 break
5585 done
5586 ac_cv_prog_CXXCPP=$CXXCPP
5589 CXXCPP=$ac_cv_prog_CXXCPP
5590 else
5591 ac_cv_prog_CXXCPP=$CXXCPP
5593 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5594 echo "${ECHO_T}$CXXCPP" >&6
5595 ac_preproc_ok=false
5596 for ac_cxx_preproc_warn_flag in '' yes
5598 # Use a header file that comes with gcc, so configuring glibc
5599 # with a fresh cross-compiler works.
5600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601 # <limits.h> exists even on freestanding compilers.
5602 # On the NeXT, cc -E runs the code through the compiler's parser,
5603 # not just through cpp. "Syntax error" is here to catch this case.
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #ifdef __STDC__
5611 # include <limits.h>
5612 #else
5613 # include <assert.h>
5614 #endif
5615 Syntax error
5616 _ACEOF
5617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_cxx_preproc_warn_flag
5627 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5628 else
5629 ac_cpp_err=
5631 else
5632 ac_cpp_err=yes
5634 if test -z "$ac_cpp_err"; then
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 # Broken: fails on valid input.
5641 continue
5643 rm -f conftest.err conftest.$ac_ext
5645 # OK, works on sane cases. Now check whether non-existent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_cxx_preproc_warn_flag
5665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5666 else
5667 ac_cpp_err=
5669 else
5670 ac_cpp_err=yes
5672 if test -z "$ac_cpp_err"; then
5673 # Broken: success on invalid input.
5674 continue
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5683 rm -f conftest.err conftest.$ac_ext
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then
5690 else
5691 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5692 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5693 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5694 See \`config.log' for more details." >&5
5695 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5696 See \`config.log' for more details." >&2;}
5697 { (exit 1); exit 1; }; }; }
5700 ac_ext=cc
5701 ac_cpp='$CXXCPP $CPPFLAGS'
5702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5709 ac_ext=f
5710 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5711 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5713 if test -n "$ac_tool_prefix"; then
5714 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5718 echo "$as_me:$LINENO: checking for $ac_word" >&5
5719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720 if test "${ac_cv_prog_F77+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723 if test -n "$F77"; then
5724 ac_cv_prog_F77="$F77" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5742 F77=$ac_cv_prog_F77
5743 if test -n "$F77"; then
5744 echo "$as_me:$LINENO: result: $F77" >&5
5745 echo "${ECHO_T}$F77" >&6
5746 else
5747 echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5751 test -n "$F77" && break
5752 done
5754 if test -z "$F77"; then
5755 ac_ct_F77=$F77
5756 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 if test -n "$ac_ct_F77"; then
5766 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_ac_ct_F77="$ac_prog"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5784 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5785 if test -n "$ac_ct_F77"; then
5786 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5787 echo "${ECHO_T}$ac_ct_F77" >&6
5788 else
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5793 test -n "$ac_ct_F77" && break
5794 done
5796 F77=$ac_ct_F77
5800 # Provide some information about the compiler.
5801 echo "$as_me:5801:" \
5802 "checking for Fortran 77 compiler version" >&5
5803 ac_compiler=`set X $ac_compile; echo $2`
5804 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5805 (eval $ac_compiler --version </dev/null >&5) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }
5809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5810 (eval $ac_compiler -v </dev/null >&5) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }
5814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5815 (eval $ac_compiler -V </dev/null >&5) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }
5819 rm -f a.out
5821 # If we don't use `.F' as extension, the preprocessor is not run on the
5822 # input file. (Note that this only needs to work for GNU compilers.)
5823 ac_save_ext=$ac_ext
5824 ac_ext=F
5825 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5826 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5827 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 program main
5832 #ifndef __GNUC__
5833 choke me
5834 #endif
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_f77_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_compiler_gnu=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_compiler_gnu=no
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5871 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5872 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5873 ac_ext=$ac_save_ext
5874 ac_test_FFLAGS=${FFLAGS+set}
5875 ac_save_FFLAGS=$FFLAGS
5876 FFLAGS=
5877 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5878 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5879 if test "${ac_cv_prog_f77_g+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 FFLAGS=-g
5883 cat >conftest.$ac_ext <<_ACEOF
5884 program main
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>conftest.er1
5891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_f77_werror_flag"
5898 || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try='test -s conftest.$ac_objext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_prog_f77_g=yes
5911 else
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5915 ac_cv_prog_f77_g=no
5917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5920 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5921 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5922 if test "$ac_test_FFLAGS" = set; then
5923 FFLAGS=$ac_save_FFLAGS
5924 elif test $ac_cv_prog_f77_g = yes; then
5925 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5926 FFLAGS="-g -O2"
5927 else
5928 FFLAGS="-g"
5930 else
5931 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5932 FFLAGS="-O2"
5933 else
5934 FFLAGS=
5938 G77=`test $ac_compiler_gnu = yes && echo yes`
5939 ac_ext=c
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5949 # find the maximum length of command line arguments
5950 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5951 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5952 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5956 teststring="ABCD"
5958 case $build_os in
5959 msdosdjgpp*)
5960 # On DJGPP, this test can blow up pretty badly due to problems in libc
5961 # (any single argument exceeding 2000 bytes causes a buffer overrun
5962 # during glob expansion). Even if it were fixed, the result of this
5963 # check would be larger than it should be.
5964 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5967 gnu*)
5968 # Under GNU Hurd, this test is not required because there is
5969 # no limit to the length of command line arguments.
5970 # Libtool will interpret -1 as no limit whatsoever
5971 lt_cv_sys_max_cmd_len=-1;
5974 cygwin* | mingw*)
5975 # On Win9x/ME, this test blows up -- it succeeds, but takes
5976 # about 5 minutes as the teststring grows exponentially.
5977 # Worse, since 9x/ME are not pre-emptively multitasking,
5978 # you end up with a "frozen" computer, even though with patience
5979 # the test eventually succeeds (with a max line length of 256k).
5980 # Instead, let's just punt: use the minimum linelength reported by
5981 # all of the supported platforms: 8192 (on NT/2K/XP).
5982 lt_cv_sys_max_cmd_len=8192;
5985 amigaos*)
5986 # On AmigaOS with pdksh, this test takes hours, literally.
5987 # So we just punt and use a minimum line length of 8192.
5988 lt_cv_sys_max_cmd_len=8192;
5991 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5992 # This has been around since 386BSD, at least. Likely further.
5993 if test -x /sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5995 elif test -x /usr/sbin/sysctl; then
5996 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5997 else
5998 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6000 # And add a safety zone
6001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6004 osf*)
6005 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6006 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6007 # nice to cause kernel panics so lets avoid the loop below.
6008 # First set a reasonable default.
6009 lt_cv_sys_max_cmd_len=16384
6011 if test -x /sbin/sysconfig; then
6012 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6013 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6014 esac
6018 # If test is not a shell built-in, we'll probably end up computing a
6019 # maximum length that is only half of the actual maximum length, but
6020 # we can't tell.
6021 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6022 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6023 = "XX$teststring") >/dev/null 2>&1 &&
6024 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6025 lt_cv_sys_max_cmd_len=$new_result &&
6026 test $i != 17 # 1/2 MB should be enough
6028 i=`expr $i + 1`
6029 teststring=$teststring$teststring
6030 done
6031 teststring=
6032 # Add a significant safety factor because C++ compilers can tack on massive
6033 # amounts of additional arguments before passing them to the linker.
6034 # It appears as though 1/2 is a usable value.
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6037 esac
6041 if test -n $lt_cv_sys_max_cmd_len ; then
6042 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6043 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6044 else
6045 echo "$as_me:$LINENO: result: none" >&5
6046 echo "${ECHO_T}none" >&6
6052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6053 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6054 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6055 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6059 # These are sane defaults that work on at least a few old systems.
6060 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6062 # Character class describing NM global symbol codes.
6063 symcode='[BCDEGRST]'
6065 # Regexp to match symbols that can be accessed directly from C.
6066 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6068 # Transform an extracted symbol line into a proper C declaration
6069 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6071 # Transform an extracted symbol line into symbol name and symbol address
6072 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'"
6074 # Define system-specific variables.
6075 case $host_os in
6076 aix*)
6077 symcode='[BCDT]'
6079 cygwin* | mingw* | pw32*)
6080 symcode='[ABCDGISTW]'
6082 hpux*) # Its linker distinguishes data from code symbols
6083 if test "$host_cpu" = ia64; then
6084 symcode='[ABCDEGRST]'
6086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6087 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'"
6089 linux*)
6090 if test "$host_cpu" = ia64; then
6091 symcode='[ABCDGIRSTW]'
6092 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6093 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'"
6096 irix* | nonstopux*)
6097 symcode='[BCDEGRST]'
6099 osf*)
6100 symcode='[BCDEGQRST]'
6102 solaris* | sysv5*)
6103 symcode='[BDRT]'
6105 sysv4)
6106 symcode='[DFNSTU]'
6108 esac
6110 # Handle CRLF in mingw tool chain
6111 opt_cr=
6112 case $build_os in
6113 mingw*)
6114 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 esac
6118 # If we're using GNU nm, then use its standard symbol codes.
6119 case `$NM -V 2>&1` in
6120 *GNU* | *'with BFD'*)
6121 symcode='[ABCDGIRSTW]' ;;
6122 esac
6124 # Try without a prefix undercore, then with it.
6125 for ac_symprfx in "" "_"; do
6127 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6128 symxfrm="\\1 $ac_symprfx\\2 \\2"
6130 # Write the raw and C identifiers.
6131 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6133 # Check to see that the pipe works correctly.
6134 pipe_works=no
6136 rm -f conftest*
6137 cat > conftest.$ac_ext <<EOF
6138 #ifdef __cplusplus
6139 extern "C" {
6140 #endif
6141 char nm_test_var;
6142 void nm_test_func(){}
6143 #ifdef __cplusplus
6145 #endif
6146 int main(){nm_test_var='a';nm_test_func();return(0);}
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150 (eval $ac_compile) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; then
6154 # Now try to grab the symbols.
6155 nlist=conftest.nm
6156 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6157 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && test -s "$nlist"; then
6161 # Try sorting and uniquifying the output.
6162 if sort "$nlist" | uniq > "$nlist"T; then
6163 mv -f "$nlist"T "$nlist"
6164 else
6165 rm -f "$nlist"T
6168 # Make sure that we snagged all the symbols we need.
6169 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6170 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6171 cat <<EOF > conftest.$ac_ext
6172 #ifdef __cplusplus
6173 extern "C" {
6174 #endif
6177 # Now generate the symbol file.
6178 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6180 cat <<EOF >> conftest.$ac_ext
6181 #if defined (__STDC__) && __STDC__
6182 # define lt_ptr_t void *
6183 #else
6184 # define lt_ptr_t char *
6185 # define const
6186 #endif
6188 /* The mapping between symbol names and symbols. */
6189 const struct {
6190 const char *name;
6191 lt_ptr_t address;
6193 lt_preloaded_symbols[] =
6196 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6197 cat <<\EOF >> conftest.$ac_ext
6198 {0, (lt_ptr_t) 0}
6201 #ifdef __cplusplus
6203 #endif
6205 # Now try linking the two files.
6206 mv conftest.$ac_objext conftstm.$ac_objext
6207 lt_save_LIBS="$LIBS"
6208 lt_save_CFLAGS="$CFLAGS"
6209 LIBS="conftstm.$ac_objext"
6210 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6216 pipe_works=yes
6218 LIBS="$lt_save_LIBS"
6219 CFLAGS="$lt_save_CFLAGS"
6220 else
6221 echo "cannot find nm_test_func in $nlist" >&5
6223 else
6224 echo "cannot find nm_test_var in $nlist" >&5
6226 else
6227 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6229 else
6230 echo "$progname: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 rm -f conftest* conftst*
6235 # Do not use the global_symbol_pipe unless it works.
6236 if test "$pipe_works" = yes; then
6237 break
6238 else
6239 lt_cv_sys_global_symbol_pipe=
6241 done
6245 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6246 lt_cv_sys_global_symbol_to_cdecl=
6248 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6249 echo "$as_me:$LINENO: result: failed" >&5
6250 echo "${ECHO_T}failed" >&6
6251 else
6252 echo "$as_me:$LINENO: result: ok" >&5
6253 echo "${ECHO_T}ok" >&6
6256 echo "$as_me:$LINENO: checking for objdir" >&5
6257 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6258 if test "${lt_cv_objdir+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 rm -f .libs 2>/dev/null
6262 mkdir .libs 2>/dev/null
6263 if test -d .libs; then
6264 lt_cv_objdir=.libs
6265 else
6266 # MS-DOS does not allow filenames that begin with a dot.
6267 lt_cv_objdir=_libs
6269 rmdir .libs 2>/dev/null
6271 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6272 echo "${ECHO_T}$lt_cv_objdir" >&6
6273 objdir=$lt_cv_objdir
6279 case $host_os in
6280 aix3*)
6281 # AIX sometimes has problems with the GCC collect2 program. For some
6282 # reason, if we set the COLLECT_NAMES environment variable, the problems
6283 # vanish in a puff of smoke.
6284 if test "X${COLLECT_NAMES+set}" != Xset; then
6285 COLLECT_NAMES=
6286 export COLLECT_NAMES
6289 esac
6291 # Sed substitution that helps us do robust quoting. It backslashifies
6292 # metacharacters that are still active within double-quoted strings.
6293 Xsed='sed -e 1s/^X//'
6294 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6296 # Same as above, but do not quote variable references.
6297 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6299 # Sed substitution to delay expansion of an escaped shell variable in a
6300 # double_quote_subst'ed string.
6301 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6303 # Sed substitution to avoid accidental globbing in evaled expressions
6304 no_glob_subst='s/\*/\\\*/g'
6306 # Constants:
6307 rm="rm -f"
6309 # Global variables:
6310 default_ofile=libtool
6311 can_build_shared=yes
6313 # All known linkers require a `.a' archive for static linking (except M$VC,
6314 # which needs '.lib').
6315 libext=a
6316 ltmain="$ac_aux_dir/ltmain.sh"
6317 ofile="$default_ofile"
6318 with_gnu_ld="$lt_cv_prog_gnu_ld"
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}ar; ac_word=$2
6323 echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325 if test "${ac_cv_prog_AR+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 if test -n "$AR"; then
6329 ac_cv_prog_AR="$AR" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_AR="${ac_tool_prefix}ar"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6342 done
6343 done
6347 AR=$ac_cv_prog_AR
6348 if test -n "$AR"; then
6349 echo "$as_me:$LINENO: result: $AR" >&5
6350 echo "${ECHO_T}$AR" >&6
6351 else
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6357 if test -z "$ac_cv_prog_AR"; then
6358 ac_ct_AR=$AR
6359 # Extract the first word of "ar", so it can be a program name with args.
6360 set dummy ar; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 if test -n "$ac_ct_AR"; then
6367 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_AR="ar"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6380 done
6381 done
6383 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6386 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6387 if test -n "$ac_ct_AR"; then
6388 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6389 echo "${ECHO_T}$ac_ct_AR" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6
6395 AR=$ac_ct_AR
6396 else
6397 AR="$ac_cv_prog_AR"
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6403 echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405 if test "${ac_cv_prog_RANLIB+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408 if test -n "$RANLIB"; then
6409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6422 done
6423 done
6427 RANLIB=$ac_cv_prog_RANLIB
6428 if test -n "$RANLIB"; then
6429 echo "$as_me:$LINENO: result: $RANLIB" >&5
6430 echo "${ECHO_T}$RANLIB" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6
6437 if test -z "$ac_cv_prog_RANLIB"; then
6438 ac_ct_RANLIB=$RANLIB
6439 # Extract the first word of "ranlib", so it can be a program name with args.
6440 set dummy ranlib; ac_word=$2
6441 echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446 if test -n "$ac_ct_RANLIB"; then
6447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_RANLIB="ranlib"
6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6463 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6467 if test -n "$ac_ct_RANLIB"; then
6468 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6469 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6470 else
6471 echo "$as_me:$LINENO: result: no" >&5
6472 echo "${ECHO_T}no" >&6
6475 RANLIB=$ac_ct_RANLIB
6476 else
6477 RANLIB="$ac_cv_prog_RANLIB"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}strip; ac_word=$2
6483 echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6485 if test "${ac_cv_prog_STRIP+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488 if test -n "$STRIP"; then
6489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6507 STRIP=$ac_cv_prog_STRIP
6508 if test -n "$STRIP"; then
6509 echo "$as_me:$LINENO: result: $STRIP" >&5
6510 echo "${ECHO_T}$STRIP" >&6
6511 else
6512 echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6
6517 if test -z "$ac_cv_prog_STRIP"; then
6518 ac_ct_STRIP=$STRIP
6519 # Extract the first word of "strip", so it can be a program name with args.
6520 set dummy strip; ac_word=$2
6521 echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 if test -n "$ac_ct_STRIP"; then
6527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_ac_ct_STRIP="strip"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6540 done
6541 done
6543 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6547 if test -n "$ac_ct_STRIP"; then
6548 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6549 echo "${ECHO_T}$ac_ct_STRIP" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6555 STRIP=$ac_ct_STRIP
6556 else
6557 STRIP="$ac_cv_prog_STRIP"
6561 old_CC="$CC"
6562 old_CFLAGS="$CFLAGS"
6564 # Set sane defaults for various variables
6565 test -z "$AR" && AR=ar
6566 test -z "$AR_FLAGS" && AR_FLAGS=cru
6567 test -z "$AS" && AS=as
6568 test -z "$CC" && CC=cc
6569 test -z "$LTCC" && LTCC=$CC
6570 test -z "$DLLTOOL" && DLLTOOL=dlltool
6571 test -z "$LD" && LD=ld
6572 test -z "$LN_S" && LN_S="ln -s"
6573 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6574 test -z "$NM" && NM=nm
6575 test -z "$SED" && SED=sed
6576 test -z "$OBJDUMP" && OBJDUMP=objdump
6577 test -z "$RANLIB" && RANLIB=:
6578 test -z "$STRIP" && STRIP=:
6579 test -z "$ac_objext" && ac_objext=o
6581 # Determine commands to create old-style static archives.
6582 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6583 old_postinstall_cmds='chmod 644 $oldlib'
6584 old_postuninstall_cmds=
6586 if test -n "$RANLIB"; then
6587 case $host_os in
6588 openbsd*)
6589 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6592 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6594 esac
6595 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6598 for cc_temp in $compiler""; do
6599 case $cc_temp in
6600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6602 \-*) ;;
6603 *) break;;
6604 esac
6605 done
6606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6609 # Only perform the check for file, if the check method requires it
6610 case $deplibs_check_method in
6611 file_magic*)
6612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6613 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6614 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 case $MAGIC_CMD in
6619 [\\/*] | ?:[\\/]*)
6620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6623 lt_save_MAGIC_CMD="$MAGIC_CMD"
6624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6626 for ac_dir in $ac_dummy; do
6627 IFS="$lt_save_ifs"
6628 test -z "$ac_dir" && ac_dir=.
6629 if test -f $ac_dir/${ac_tool_prefix}file; then
6630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6631 if test -n "$file_magic_test_file"; then
6632 case $deplibs_check_method in
6633 "file_magic "*)
6634 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6637 $EGREP "$file_magic_regex" > /dev/null; then
6639 else
6640 cat <<EOF 1>&2
6642 *** Warning: the command libtool uses to detect shared libraries,
6643 *** $file_magic_cmd, produces output that libtool cannot recognize.
6644 *** The result is that libtool may fail to recognize shared libraries
6645 *** as such. This will affect the creation of libtool libraries that
6646 *** depend on shared libraries, but programs linked with such libtool
6647 *** libraries will work regardless of this problem. Nevertheless, you
6648 *** may want to report the problem to your system manager and/or to
6649 *** bug-libtool@gnu.org
6652 fi ;;
6653 esac
6655 break
6657 done
6658 IFS="$lt_save_ifs"
6659 MAGIC_CMD="$lt_save_MAGIC_CMD"
6661 esac
6664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6665 if test -n "$MAGIC_CMD"; then
6666 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6667 echo "${ECHO_T}$MAGIC_CMD" >&6
6668 else
6669 echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6
6673 if test -z "$lt_cv_path_MAGIC_CMD"; then
6674 if test -n "$ac_tool_prefix"; then
6675 echo "$as_me:$LINENO: checking for file" >&5
6676 echo $ECHO_N "checking for file... $ECHO_C" >&6
6677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 case $MAGIC_CMD in
6681 [\\/*] | ?:[\\/]*)
6682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6685 lt_save_MAGIC_CMD="$MAGIC_CMD"
6686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6688 for ac_dir in $ac_dummy; do
6689 IFS="$lt_save_ifs"
6690 test -z "$ac_dir" && ac_dir=.
6691 if test -f $ac_dir/file; then
6692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6693 if test -n "$file_magic_test_file"; then
6694 case $deplibs_check_method in
6695 "file_magic "*)
6696 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6699 $EGREP "$file_magic_regex" > /dev/null; then
6701 else
6702 cat <<EOF 1>&2
6704 *** Warning: the command libtool uses to detect shared libraries,
6705 *** $file_magic_cmd, produces output that libtool cannot recognize.
6706 *** The result is that libtool may fail to recognize shared libraries
6707 *** as such. This will affect the creation of libtool libraries that
6708 *** depend on shared libraries, but programs linked with such libtool
6709 *** libraries will work regardless of this problem. Nevertheless, you
6710 *** may want to report the problem to your system manager and/or to
6711 *** bug-libtool@gnu.org
6714 fi ;;
6715 esac
6717 break
6719 done
6720 IFS="$lt_save_ifs"
6721 MAGIC_CMD="$lt_save_MAGIC_CMD"
6723 esac
6726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727 if test -n "$MAGIC_CMD"; then
6728 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6729 echo "${ECHO_T}$MAGIC_CMD" >&6
6730 else
6731 echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6
6735 else
6736 MAGIC_CMD=:
6742 esac
6744 enable_dlopen=no
6745 enable_win32_dll=yes
6747 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6748 if test "${enable_libtool_lock+set}" = set; then
6749 enableval="$enable_libtool_lock"
6752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6755 # Check whether --with-pic or --without-pic was given.
6756 if test "${with_pic+set}" = set; then
6757 withval="$with_pic"
6758 pic_mode="$withval"
6759 else
6760 pic_mode=default
6762 test -z "$pic_mode" && pic_mode=default
6764 # Use C for the default configuration in the libtool script
6765 tagname=
6766 lt_save_CC="$CC"
6767 ac_ext=c
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774 # Source file extension for C test sources.
6775 ac_ext=c
6777 # Object file extension for compiled C test sources.
6778 objext=o
6779 objext=$objext
6781 # Code to be used in simple compile tests
6782 lt_simple_compile_test_code="int some_variable = 0;\n"
6784 # Code to be used in simple link tests
6785 lt_simple_link_test_code='int main(){return(0);}\n'
6788 # If no C compiler was specified, use CC.
6789 LTCC=${LTCC-"$CC"}
6791 # Allow CC to be a program name with arguments.
6792 compiler=$CC
6795 # save warnings/boilerplate of simple test code
6796 ac_outfile=conftest.$ac_objext
6797 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6799 _lt_compiler_boilerplate=`cat conftest.err`
6800 $rm conftest*
6802 ac_outfile=conftest.$ac_objext
6803 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6805 _lt_linker_boilerplate=`cat conftest.err`
6806 $rm conftest*
6810 # Check for any special shared library compilation flags.
6812 lt_prog_cc_shlib=
6813 if test "$GCC" = no; then
6814 case $host_os in
6815 sco3.2v5*)
6816 lt_prog_cc_shlib='-belf'
6818 esac
6820 if test -n "$lt_prog_cc_shlib"; then
6821 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6822 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6823 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6824 else
6825 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6826 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6827 lt_cv_prog_cc_can_build_shared=no
6833 # Check to make sure the static flag actually works.
6835 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6836 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6837 if test "${lt_prog_compiler_static_works+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 lt_prog_compiler_static_works=no
6841 save_LDFLAGS="$LDFLAGS"
6842 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6843 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6845 # The compiler can only warn and ignore the option if not recognized
6846 # So say no if there are warnings
6847 if test -s conftest.err; then
6848 # Append any errors to the config.log.
6849 cat conftest.err 1>&5
6850 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6851 $SED '/^$/d' conftest.err >conftest.er2
6852 if diff conftest.exp conftest.er2 >/dev/null; then
6853 lt_prog_compiler_static_works=yes
6855 else
6856 lt_prog_compiler_static_works=yes
6859 $rm conftest*
6860 LDFLAGS="$save_LDFLAGS"
6863 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6864 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6866 if test x"$lt_prog_compiler_static_works" = xyes; then
6868 else
6869 lt_prog_compiler_static=
6874 ## CAVEAT EMPTOR:
6875 ## There is no encapsulation within the following macros, do not change
6876 ## the running order or otherwise move them around unless you know exactly
6877 ## what you are doing...
6879 lt_prog_compiler_no_builtin_flag=
6881 if test "$GCC" = yes; then
6882 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6885 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6886 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6887 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890 lt_cv_prog_compiler_rtti_exceptions=no
6891 ac_outfile=conftest.$ac_objext
6892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6893 lt_compiler_flag="-fno-rtti -fno-exceptions"
6894 # Insert the option either (1) after the last *FLAGS variable, or
6895 # (2) before a word containing "conftest.", or (3) at the end.
6896 # Note that $ac_compile itself does not contain backslashes and begins
6897 # with a dollar sign (not a hyphen), so the echo should work correctly.
6898 # The option is referenced via a variable to avoid confusing sed.
6899 lt_compile=`echo "$ac_compile" | $SED \
6900 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6902 -e 's:$: $lt_compiler_flag:'`
6903 (eval echo "\"\$as_me:6903: $lt_compile\"" >&5)
6904 (eval "$lt_compile" 2>conftest.err)
6905 ac_status=$?
6906 cat conftest.err >&5
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 if (exit $ac_status) && test -s "$ac_outfile"; then
6909 # The compiler can only warn and ignore the option if not recognized
6910 # So say no if there are warnings other than the usual output.
6911 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6912 $SED '/^$/d' conftest.err >conftest.er2
6913 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6914 lt_cv_prog_compiler_rtti_exceptions=yes
6917 $rm conftest*
6920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6921 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6923 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6925 else
6931 lt_prog_compiler_wl=
6932 lt_prog_compiler_pic=
6933 lt_prog_compiler_static=
6935 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6938 if test "$GCC" = yes; then
6939 lt_prog_compiler_wl='-Wl,'
6940 lt_prog_compiler_static='-static'
6942 case $host_os in
6943 aix*)
6944 # All AIX code is PIC.
6945 if test "$host_cpu" = ia64; then
6946 # AIX 5 now supports IA64 processor
6947 lt_prog_compiler_static='-Bstatic'
6951 amigaos*)
6952 # FIXME: we need at least 68020 code to build shared libraries, but
6953 # adding the `-m68020' flag to GCC prevents building anything better,
6954 # like `-m68040'.
6955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6959 # PIC is the default for these OSes.
6962 mingw* | pw32* | os2*)
6963 # This hack is so that the source file can tell whether it is being
6964 # built for inclusion in a dll (and should export symbols for example).
6965 lt_prog_compiler_pic='-DDLL_EXPORT'
6968 darwin* | rhapsody*)
6969 # PIC is the default on this platform
6970 # Common symbols not allowed in MH_DYLIB files
6971 lt_prog_compiler_pic='-fno-common'
6974 msdosdjgpp*)
6975 # Just because we use GCC doesn't mean we suddenly get shared libraries
6976 # on systems that don't support them.
6977 lt_prog_compiler_can_build_shared=no
6978 enable_shared=no
6981 sysv4*MP*)
6982 if test -d /usr/nec; then
6983 lt_prog_compiler_pic=-Kconform_pic
6987 hpux*)
6988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6989 # not for PA HP-UX.
6990 case "$host_cpu" in
6991 hppa*64*|ia64*)
6992 # +Z the default
6995 lt_prog_compiler_pic='-fPIC'
6997 esac
7001 lt_prog_compiler_pic='-fPIC'
7003 esac
7004 else
7005 # PORTME Check for flag to pass linker flags through the system compiler.
7006 case $host_os in
7007 aix*)
7008 lt_prog_compiler_wl='-Wl,'
7009 if test "$host_cpu" = ia64; then
7010 # AIX 5 now supports IA64 processor
7011 lt_prog_compiler_static='-Bstatic'
7012 else
7013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7016 darwin*)
7017 # PIC is the default on this platform
7018 # Common symbols not allowed in MH_DYLIB files
7019 case $cc_basename in
7020 xlc*)
7021 lt_prog_compiler_pic='-qnocommon'
7022 lt_prog_compiler_wl='-Wl,'
7024 esac
7027 mingw* | pw32* | os2*)
7028 # This hack is so that the source file can tell whether it is being
7029 # built for inclusion in a dll (and should export symbols for example).
7030 lt_prog_compiler_pic='-DDLL_EXPORT'
7033 hpux9* | hpux10* | hpux11*)
7034 lt_prog_compiler_wl='-Wl,'
7035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7036 # not for PA HP-UX.
7037 case "$host_cpu" in
7038 hppa*64*|ia64*)
7039 # +Z the default
7042 lt_prog_compiler_pic='+Z'
7044 esac
7045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7046 lt_prog_compiler_static='${wl}-a ${wl}archive'
7049 irix5* | irix6* | nonstopux*)
7050 lt_prog_compiler_wl='-Wl,'
7051 # PIC (with -KPIC) is the default.
7052 lt_prog_compiler_static='-non_shared'
7055 newsos6)
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7060 linux*)
7061 case $cc_basename in
7062 icc* | ecc*)
7063 lt_prog_compiler_wl='-Wl,'
7064 lt_prog_compiler_pic='-KPIC'
7065 lt_prog_compiler_static='-static'
7067 pgcc* | pgf77* | pgf90*)
7068 # Portland Group compilers (*not* the Pentium gcc compiler,
7069 # which looks to be a dead project)
7070 lt_prog_compiler_wl='-Wl,'
7071 lt_prog_compiler_pic='-fpic'
7072 lt_prog_compiler_static='-static'
7074 ccc*)
7075 lt_prog_compiler_wl='-Wl,'
7076 # All Alpha code is PIC.
7077 lt_prog_compiler_static='-non_shared'
7079 esac
7082 osf3* | osf4* | osf5*)
7083 lt_prog_compiler_wl='-Wl,'
7084 # All OSF/1 code is PIC.
7085 lt_prog_compiler_static='-non_shared'
7088 sco3.2v5*)
7089 lt_prog_compiler_pic='-Kpic'
7090 lt_prog_compiler_static='-dn'
7093 solaris*)
7094 lt_prog_compiler_pic='-KPIC'
7095 lt_prog_compiler_static='-Bstatic'
7096 case $cc_basename in
7097 f77* | f90* | f95*)
7098 lt_prog_compiler_wl='-Qoption ld ';;
7100 lt_prog_compiler_wl='-Wl,';;
7101 esac
7104 sunos4*)
7105 lt_prog_compiler_wl='-Qoption ld '
7106 lt_prog_compiler_pic='-PIC'
7107 lt_prog_compiler_static='-Bstatic'
7110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7111 lt_prog_compiler_wl='-Wl,'
7112 lt_prog_compiler_pic='-KPIC'
7113 lt_prog_compiler_static='-Bstatic'
7116 sysv4*MP*)
7117 if test -d /usr/nec ;then
7118 lt_prog_compiler_pic='-Kconform_pic'
7119 lt_prog_compiler_static='-Bstatic'
7123 unicos*)
7124 lt_prog_compiler_wl='-Wl,'
7125 lt_prog_compiler_can_build_shared=no
7128 uts4*)
7129 lt_prog_compiler_pic='-pic'
7130 lt_prog_compiler_static='-Bstatic'
7134 lt_prog_compiler_can_build_shared=no
7136 esac
7139 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7140 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7143 # Check to make sure the PIC flag actually works.
7145 if test -n "$lt_prog_compiler_pic"; then
7147 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7148 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7149 if test "${lt_prog_compiler_pic_works+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 lt_prog_compiler_pic_works=no
7153 ac_outfile=conftest.$ac_objext
7154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7155 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7156 # Insert the option either (1) after the last *FLAGS variable, or
7157 # (2) before a word containing "conftest.", or (3) at the end.
7158 # Note that $ac_compile itself does not contain backslashes and begins
7159 # with a dollar sign (not a hyphen), so the echo should work correctly.
7160 # The option is referenced via a variable to avoid confusing sed.
7161 lt_compile=`echo "$ac_compile" | $SED \
7162 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164 -e 's:$: $lt_compiler_flag:'`
7165 (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7166 (eval "$lt_compile" 2>conftest.err)
7167 ac_status=$?
7168 cat conftest.err >&5
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 if (exit $ac_status) && test -s "$ac_outfile"; then
7171 # The compiler can only warn and ignore the option if not recognized
7172 # So say no if there are warnings other than the usual output.
7173 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7174 $SED '/^$/d' conftest.err >conftest.er2
7175 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7176 lt_prog_compiler_pic_works=yes
7179 $rm conftest*
7182 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7183 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7185 if test x"$lt_prog_compiler_pic_works" = xyes; then
7186 case $lt_prog_compiler_pic in
7187 "" | " "*) ;;
7188 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7189 esac
7190 else
7191 lt_prog_compiler_pic=
7192 lt_prog_compiler_can_build_shared=no
7196 case "$host_os" in
7197 # For platforms which do not support PIC, -DPIC is meaningless:
7198 *djgpp*)
7199 lt_prog_compiler_pic=
7202 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7204 esac
7206 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7207 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7208 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 lt_cv_prog_compiler_c_o=no
7212 $rm -r conftest 2>/dev/null
7213 mkdir conftest
7214 cd conftest
7215 mkdir out
7216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7218 lt_compiler_flag="-o out/conftest2.$ac_objext"
7219 # Insert the option either (1) after the last *FLAGS variable, or
7220 # (2) before a word containing "conftest.", or (3) at the end.
7221 # Note that $ac_compile itself does not contain backslashes and begins
7222 # with a dollar sign (not a hyphen), so the echo should work correctly.
7223 lt_compile=`echo "$ac_compile" | $SED \
7224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7226 -e 's:$: $lt_compiler_flag:'`
7227 (eval echo "\"\$as_me:7227: $lt_compile\"" >&5)
7228 (eval "$lt_compile" 2>out/conftest.err)
7229 ac_status=$?
7230 cat out/conftest.err >&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7233 then
7234 # The compiler can only warn and ignore the option if not recognized
7235 # So say no if there are warnings
7236 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7237 $SED '/^$/d' out/conftest.err >out/conftest.er2
7238 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7239 lt_cv_prog_compiler_c_o=yes
7242 chmod u+w .
7243 $rm conftest*
7244 # SGI C++ compiler will create directory out/ii_files/ for
7245 # template instantiation
7246 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7247 $rm out/* && rmdir out
7248 cd ..
7249 rmdir conftest
7250 $rm conftest*
7253 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7254 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7257 hard_links="nottested"
7258 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7259 # do not overwrite the value of need_locks provided by the user
7260 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7261 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7262 hard_links=yes
7263 $rm conftest*
7264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7265 touch conftest.a
7266 ln conftest.a conftest.b 2>&5 || hard_links=no
7267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7268 echo "$as_me:$LINENO: result: $hard_links" >&5
7269 echo "${ECHO_T}$hard_links" >&6
7270 if test "$hard_links" = no; then
7271 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7272 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7273 need_locks=warn
7275 else
7276 need_locks=no
7279 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7282 runpath_var=
7283 allow_undefined_flag=
7284 enable_shared_with_static_runtimes=no
7285 archive_cmds=
7286 archive_expsym_cmds=
7287 old_archive_From_new_cmds=
7288 old_archive_from_expsyms_cmds=
7289 export_dynamic_flag_spec=
7290 whole_archive_flag_spec=
7291 thread_safe_flag_spec=
7292 hardcode_libdir_flag_spec=
7293 hardcode_libdir_flag_spec_ld=
7294 hardcode_libdir_separator=
7295 hardcode_direct=no
7296 hardcode_minus_L=no
7297 hardcode_shlibpath_var=unsupported
7298 link_all_deplibs=unknown
7299 hardcode_automatic=no
7300 module_cmds=
7301 module_expsym_cmds=
7302 always_export_symbols=no
7303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7304 # include_expsyms should be a list of space-separated symbols to be *always*
7305 # included in the symbol list
7306 include_expsyms=
7307 # exclude_expsyms can be an extended regexp of symbols to exclude
7308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7310 # as well as any symbol that contains `d'.
7311 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7313 # platforms (ab)use it in PIC code, but their linkers get confused if
7314 # the symbol is explicitly referenced. Since portable code cannot
7315 # rely on this symbol name, it's probably fine to never include it in
7316 # preloaded symbol tables.
7317 extract_expsyms_cmds=
7318 # Just being paranoid about ensuring that cc_basename is set.
7319 for cc_temp in $compiler""; do
7320 case $cc_temp in
7321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7323 \-*) ;;
7324 *) break;;
7325 esac
7326 done
7327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7329 case $host_os in
7330 cygwin* | mingw* | pw32*)
7331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7332 # When not using gcc, we currently assume that we are using
7333 # Microsoft Visual C++.
7334 if test "$GCC" != yes; then
7335 with_gnu_ld=no
7338 openbsd*)
7339 with_gnu_ld=no
7341 esac
7343 ld_shlibs=yes
7344 if test "$with_gnu_ld" = yes; then
7345 # If archive_cmds runs LD, not CC, wlarc should be empty
7346 wlarc='${wl}'
7348 # Set some defaults for GNU ld with shared library support. These
7349 # are reset later if shared libraries are not supported. Putting them
7350 # here allows them to be overridden if necessary.
7351 runpath_var=LD_RUN_PATH
7352 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7353 export_dynamic_flag_spec='${wl}--export-dynamic'
7354 # ancient GNU ld didn't support --whole-archive et. al.
7355 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7356 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7357 else
7358 whole_archive_flag_spec=
7360 supports_anon_versioning=no
7361 case `$LD -v 2>/dev/null` in
7362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7365 *\ 2.11.*) ;; # other 2.11 versions
7366 *) supports_anon_versioning=yes ;;
7367 esac
7369 # See if GNU ld supports shared libraries.
7370 case $host_os in
7371 aix3* | aix4* | aix5*)
7372 # On AIX/PPC, the GNU linker is very broken
7373 if test "$host_cpu" != ia64; then
7374 ld_shlibs=no
7375 cat <<EOF 1>&2
7377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7378 *** to be unable to reliably create shared libraries on AIX.
7379 *** Therefore, libtool is disabling shared libraries support. If you
7380 *** really care for shared libraries, you may want to modify your PATH
7381 *** so that a non-GNU linker is found, and then restart.
7387 amigaos*)
7388 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)'
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 hardcode_minus_L=yes
7392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7393 # that the semantics of dynamic libraries on AmigaOS, at least up
7394 # to version 4, is to share data among multiple programs linked
7395 # with the same dynamic library. Since this doesn't match the
7396 # behavior of shared libraries on other platforms, we can't use
7397 # them.
7398 ld_shlibs=no
7401 beos*)
7402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7403 allow_undefined_flag=unsupported
7404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7405 # support --undefined. This deserves some investigation. FIXME
7406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7407 else
7408 ld_shlibs=no
7412 cygwin* | mingw* | pw32*)
7413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7414 # as there is no search path for DLLs.
7415 hardcode_libdir_flag_spec='-L$libdir'
7416 allow_undefined_flag=unsupported
7417 always_export_symbols=no
7418 enable_shared_with_static_runtimes=yes
7419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7423 # If the export-symbols file already is a .def file (1st line
7424 # is EXPORTS), use it as is; otherwise, prepend...
7425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7426 cp $export_symbols $output_objdir/$soname.def;
7427 else
7428 echo EXPORTS > $output_objdir/$soname.def;
7429 cat $export_symbols >> $output_objdir/$soname.def;
7431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7432 else
7433 ld_shlibs=no
7437 linux*)
7438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7439 tmp_addflag=
7440 case $cc_basename,$host_cpu in
7441 pgcc*) # Portland Group C compiler
7442 whole_archive_flag_spec=
7444 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7445 whole_archive_flag_spec=
7446 tmp_addflag=' -fpic -Mnomain' ;;
7447 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7448 tmp_addflag=' -i_dynamic' ;;
7449 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7450 tmp_addflag=' -i_dynamic -nofor_main' ;;
7451 ifc* | ifort*) # Intel Fortran compiler
7452 tmp_addflag=' -nofor_main' ;;
7453 esac
7454 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7456 if test $supports_anon_versioning = yes; then
7457 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7459 $echo "local: *; };" >> $output_objdir/$libname.ver~
7460 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7462 else
7463 ld_shlibs=no
7467 netbsd*)
7468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7469 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7470 wlarc=
7471 else
7472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7477 solaris* | sysv5*)
7478 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7479 ld_shlibs=no
7480 cat <<EOF 1>&2
7482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7483 *** create shared libraries on Solaris systems. Therefore, libtool
7484 *** is disabling shared libraries support. We urge you to upgrade GNU
7485 *** binutils to release 2.9.1 or newer. Another option is to modify
7486 *** your PATH or compiler configuration so that the native linker is
7487 *** used, and then restart.
7490 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7493 else
7494 ld_shlibs=no
7498 sunos4*)
7499 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7500 wlarc=
7501 hardcode_direct=yes
7502 hardcode_shlibpath_var=no
7506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7509 else
7510 ld_shlibs=no
7513 esac
7515 if test "$ld_shlibs" = no; then
7516 runpath_var=
7517 hardcode_libdir_flag_spec=
7518 export_dynamic_flag_spec=
7519 whole_archive_flag_spec=
7521 else
7522 # PORTME fill in a description of your system's linker (not GNU ld)
7523 case $host_os in
7524 aix3*)
7525 allow_undefined_flag=unsupported
7526 always_export_symbols=yes
7527 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'
7528 # Note: this linker hardcodes the directories in LIBPATH if there
7529 # are no directories specified by -L.
7530 hardcode_minus_L=yes
7531 if test "$GCC" = yes && test -z "$link_static_flag"; then
7532 # Neither direct hardcoding nor static linking is supported with a
7533 # broken collect2.
7534 hardcode_direct=unsupported
7538 aix4* | aix5*)
7539 if test "$host_cpu" = ia64; then
7540 # On IA64, the linker does run time linking by default, so we don't
7541 # have to do anything special.
7542 aix_use_runtimelinking=no
7543 exp_sym_flag='-Bexport'
7544 no_entry_flag=""
7545 else
7546 # If we're using GNU nm, then we don't want the "-C" option.
7547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7549 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'
7550 else
7551 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'
7553 aix_use_runtimelinking=no
7555 # Test if we are trying to use run time linking or normal
7556 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7557 # need to do runtime linking.
7558 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7559 for ld_flag in $LDFLAGS; do
7560 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7561 aix_use_runtimelinking=yes
7562 break
7564 done
7565 esac
7567 exp_sym_flag='-bexport'
7568 no_entry_flag='-bnoentry'
7571 # When large executables or shared objects are built, AIX ld can
7572 # have problems creating the table of contents. If linking a library
7573 # or program results in "error TOC overflow" add -mminimal-toc to
7574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7577 archive_cmds=''
7578 hardcode_direct=yes
7579 hardcode_libdir_separator=':'
7580 link_all_deplibs=yes
7582 if test "$GCC" = yes; then
7583 case $host_os in aix4.[012]|aix4.[012].*)
7584 # We only want to do this on AIX 4.2 and lower, the check
7585 # below for broken collect2 doesn't work under 4.3+
7586 collect2name=`${CC} -print-prog-name=collect2`
7587 if test -f "$collect2name" && \
7588 strings "$collect2name" | grep resolve_lib_name >/dev/null
7589 then
7590 # We have reworked collect2
7591 hardcode_direct=yes
7592 else
7593 # We have old collect2
7594 hardcode_direct=unsupported
7595 # It fails to find uninstalled libraries when the uninstalled
7596 # path is not listed in the libpath. Setting hardcode_minus_L
7597 # to unsupported forces relinking
7598 hardcode_minus_L=yes
7599 hardcode_libdir_flag_spec='-L$libdir'
7600 hardcode_libdir_separator=
7602 esac
7603 shared_flag='-shared'
7604 if test "$aix_use_runtimelinking" = yes; then
7605 shared_flag="$shared_flag "'${wl}-G'
7607 else
7608 # not using gcc
7609 if test "$host_cpu" = ia64; then
7610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7611 # chokes on -Wl,-G. The following line is correct:
7612 shared_flag='-G'
7613 else
7614 if test "$aix_use_runtimelinking" = yes; then
7615 shared_flag='${wl}-G'
7616 else
7617 shared_flag='${wl}-bM:SRE'
7622 # It seems that -bexpall does not export symbols beginning with
7623 # underscore (_), so it is better to generate a list of symbols to export.
7624 always_export_symbols=yes
7625 if test "$aix_use_runtimelinking" = yes; then
7626 # Warning - without using the other runtime loading flags (-brtl),
7627 # -berok will link without error, but may produce a broken library.
7628 allow_undefined_flag='-berok'
7629 # Determine the default libpath from the value encoded in an empty executable.
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7638 main ()
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext conftest$ac_exeext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7647 (eval $ac_link) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7670 # Check for a 64-bit object if we didn't find anything.
7671 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; }
7672 }'`; fi
7673 else
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7678 rm -f conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7683 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7684 else
7685 if test "$host_cpu" = ia64; then
7686 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7687 allow_undefined_flag="-z nodefs"
7688 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"
7689 else
7690 # Determine the default libpath from the value encoded in an empty executable.
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7699 main ()
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7731 # Check for a 64-bit object if we didn't find anything.
7732 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; }
7733 }'`; fi
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7739 rm -f conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7744 # Warning - without using the other run time loading flags,
7745 # -berok will link without error, but may produce a broken library.
7746 no_undefined_flag=' ${wl}-bernotok'
7747 allow_undefined_flag=' ${wl}-berok'
7748 # -bexpall does not export symbols beginning with underscore (_)
7749 always_export_symbols=yes
7750 # Exported symbols can be pulled into shared objects from archives
7751 whole_archive_flag_spec=' '
7752 archive_cmds_need_lc=yes
7753 # This is similar to how AIX traditionally builds it's shared libraries.
7754 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'
7759 amigaos*)
7760 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)'
7761 hardcode_libdir_flag_spec='-L$libdir'
7762 hardcode_minus_L=yes
7763 # see comment about different semantics on the GNU ld section
7764 ld_shlibs=no
7767 bsdi[45]*)
7768 export_dynamic_flag_spec=-rdynamic
7771 cygwin* | mingw* | pw32*)
7772 # When not using gcc, we currently assume that we are using
7773 # Microsoft Visual C++.
7774 # hardcode_libdir_flag_spec is actually meaningless, as there is
7775 # no search path for DLLs.
7776 hardcode_libdir_flag_spec=' '
7777 allow_undefined_flag=unsupported
7778 # Tell ltmain to make .lib files, not .a files.
7779 libext=lib
7780 # Tell ltmain to make .dll files, not .so files.
7781 shrext_cmds=".dll"
7782 # FIXME: Setting linknames here is a bad hack.
7783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7784 # The linker will automatically build a .lib file if we build a DLL.
7785 old_archive_From_new_cmds='true'
7786 # FIXME: Should let the user specify the lib program.
7787 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7788 fix_srcfile_path='`cygpath -w "$srcfile"`'
7789 enable_shared_with_static_runtimes=yes
7792 darwin* | rhapsody*)
7793 case "$host_os" in
7794 rhapsody* | darwin1.[012])
7795 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7797 *) # Darwin 1.3 on
7798 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7799 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7800 else
7801 case ${MACOSX_DEPLOYMENT_TARGET} in
7802 10.[012])
7803 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7805 10.*)
7806 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7808 esac
7811 esac
7812 archive_cmds_need_lc=no
7813 hardcode_direct=no
7814 hardcode_automatic=yes
7815 hardcode_shlibpath_var=unsupported
7816 whole_archive_flag_spec=''
7817 link_all_deplibs=yes
7818 if test "$GCC" = yes ; then
7819 output_verbose_link_cmd='echo'
7820 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7821 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7823 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7824 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7825 else
7826 case $cc_basename in
7827 xlc*)
7828 output_verbose_link_cmd='echo'
7829 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7830 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7831 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7832 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7833 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7836 ld_shlibs=no
7838 esac
7842 dgux*)
7843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7844 hardcode_libdir_flag_spec='-L$libdir'
7845 hardcode_shlibpath_var=no
7848 freebsd1*)
7849 ld_shlibs=no
7852 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7853 # support. Future versions do this automatically, but an explicit c++rt0.o
7854 # does not break anything, and helps significantly (at the cost of a little
7855 # extra space).
7856 freebsd2.2*)
7857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7858 hardcode_libdir_flag_spec='-R$libdir'
7859 hardcode_direct=yes
7860 hardcode_shlibpath_var=no
7863 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7864 freebsd2*)
7865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7866 hardcode_direct=yes
7867 hardcode_minus_L=yes
7868 hardcode_shlibpath_var=no
7871 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7872 freebsd* | kfreebsd*-gnu | dragonfly*)
7873 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7874 hardcode_libdir_flag_spec='-R$libdir'
7875 hardcode_direct=yes
7876 hardcode_shlibpath_var=no
7879 hpux9*)
7880 if test "$GCC" = yes; then
7881 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'
7882 else
7883 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'
7885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7886 hardcode_libdir_separator=:
7887 hardcode_direct=yes
7889 # hardcode_minus_L: Not really in the search PATH,
7890 # but as the default location of the library.
7891 hardcode_minus_L=yes
7892 export_dynamic_flag_spec='${wl}-E'
7895 hpux10* | hpux11*)
7896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7897 case "$host_cpu" in
7898 hppa*64*|ia64*)
7899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7904 esac
7905 else
7906 case "$host_cpu" in
7907 hppa*64*|ia64*)
7908 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7911 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7913 esac
7915 if test "$with_gnu_ld" = no; then
7916 case "$host_cpu" in
7917 hppa*64*)
7918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7919 hardcode_libdir_flag_spec_ld='+b $libdir'
7920 hardcode_libdir_separator=:
7921 hardcode_direct=no
7922 hardcode_shlibpath_var=no
7924 ia64*)
7925 hardcode_libdir_flag_spec='-L$libdir'
7926 hardcode_direct=no
7927 hardcode_shlibpath_var=no
7929 # hardcode_minus_L: Not really in the search PATH,
7930 # but as the default location of the library.
7931 hardcode_minus_L=yes
7934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7935 hardcode_libdir_separator=:
7936 hardcode_direct=yes
7937 export_dynamic_flag_spec='${wl}-E'
7939 # hardcode_minus_L: Not really in the search PATH,
7940 # but as the default location of the library.
7941 hardcode_minus_L=yes
7943 esac
7947 irix5* | irix6* | nonstopux*)
7948 if test "$GCC" = yes; then
7949 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'
7950 else
7951 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'
7952 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955 hardcode_libdir_separator=:
7956 link_all_deplibs=yes
7959 netbsd*)
7960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7962 else
7963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7965 hardcode_libdir_flag_spec='-R$libdir'
7966 hardcode_direct=yes
7967 hardcode_shlibpath_var=no
7970 newsos6)
7971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7972 hardcode_direct=yes
7973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7974 hardcode_libdir_separator=:
7975 hardcode_shlibpath_var=no
7978 openbsd*)
7979 hardcode_direct=yes
7980 hardcode_shlibpath_var=no
7981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7985 export_dynamic_flag_spec='${wl}-E'
7986 else
7987 case $host_os in
7988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7990 hardcode_libdir_flag_spec='-R$libdir'
7993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7996 esac
8000 os2*)
8001 hardcode_libdir_flag_spec='-L$libdir'
8002 hardcode_minus_L=yes
8003 allow_undefined_flag=unsupported
8004 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'
8005 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8008 osf3*)
8009 if test "$GCC" = yes; then
8010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8011 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'
8012 else
8013 allow_undefined_flag=' -expect_unresolved \*'
8014 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'
8016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8017 hardcode_libdir_separator=:
8020 osf4* | osf5*) # as osf3* with the addition of -msym flag
8021 if test "$GCC" = yes; then
8022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8023 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'
8024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8025 else
8026 allow_undefined_flag=' -expect_unresolved \*'
8027 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'
8028 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8029 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8031 # Both c and cxx compiler support -rpath directly
8032 hardcode_libdir_flag_spec='-rpath $libdir'
8034 hardcode_libdir_separator=:
8037 sco3.2v5*)
8038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039 hardcode_shlibpath_var=no
8040 export_dynamic_flag_spec='${wl}-Bexport'
8041 runpath_var=LD_RUN_PATH
8042 hardcode_runpath_var=yes
8045 solaris*)
8046 no_undefined_flag=' -z text'
8047 if test "$GCC" = yes; then
8048 wlarc='${wl}'
8049 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8052 else
8053 wlarc=''
8054 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8058 hardcode_libdir_flag_spec='-R$libdir'
8059 hardcode_shlibpath_var=no
8060 case $host_os in
8061 solaris2.[0-5] | solaris2.[0-5].*) ;;
8063 # The compiler driver will combine linker options so we
8064 # cannot just pass the convience library names through
8065 # without $wl, iff we do not link with $LD.
8066 # Luckily, gcc supports the same syntax we need for Sun Studio.
8067 # Supported since Solaris 2.6 (maybe 2.5.1?)
8068 case $wlarc in
8070 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8072 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8073 esac ;;
8074 esac
8075 link_all_deplibs=yes
8078 sunos4*)
8079 if test "x$host_vendor" = xsequent; then
8080 # Use $CC to link under sequent, because it throws in some extra .o
8081 # files that make .init and .fini sections work.
8082 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8083 else
8084 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_direct=yes
8088 hardcode_minus_L=yes
8089 hardcode_shlibpath_var=no
8092 sysv4)
8093 case $host_vendor in
8094 sni)
8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_direct=yes # is this really true???
8098 siemens)
8099 ## LD is ld it makes a PLAMLIB
8100 ## CC just makes a GrossModule.
8101 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8102 reload_cmds='$CC -r -o $output$reload_objs'
8103 hardcode_direct=no
8105 motorola)
8106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8107 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8109 esac
8110 runpath_var='LD_RUN_PATH'
8111 hardcode_shlibpath_var=no
8114 sysv4.3*)
8115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116 hardcode_shlibpath_var=no
8117 export_dynamic_flag_spec='-Bexport'
8120 sysv4*MP*)
8121 if test -d /usr/nec; then
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_shlibpath_var=no
8124 runpath_var=LD_RUN_PATH
8125 hardcode_runpath_var=yes
8126 ld_shlibs=yes
8130 sysv4.2uw2*)
8131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_direct=yes
8133 hardcode_minus_L=no
8134 hardcode_shlibpath_var=no
8135 hardcode_runpath_var=yes
8136 runpath_var=LD_RUN_PATH
8139 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8140 no_undefined_flag='${wl}-z ${wl}text'
8141 if test "$GCC" = yes; then
8142 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143 else
8144 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8146 runpath_var='LD_RUN_PATH'
8147 hardcode_shlibpath_var=no
8150 sysv5*)
8151 no_undefined_flag=' -z text'
8152 # $CC -shared without GNU ld will not create a library from C++
8153 # object files and a static libstdc++, better avoid it by now
8154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8155 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8157 hardcode_libdir_flag_spec=
8158 hardcode_shlibpath_var=no
8159 runpath_var='LD_RUN_PATH'
8162 uts4*)
8163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8164 hardcode_libdir_flag_spec='-L$libdir'
8165 hardcode_shlibpath_var=no
8169 ld_shlibs=no
8171 esac
8174 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8175 echo "${ECHO_T}$ld_shlibs" >&6
8176 test "$ld_shlibs" = no && can_build_shared=no
8178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8179 if test "$GCC" = yes; then
8180 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8184 # Do we need to explicitly link libc?
8186 case "x$archive_cmds_need_lc" in
8187 x|xyes)
8188 # Assume -lc should be added
8189 archive_cmds_need_lc=yes
8191 if test "$enable_shared" = yes && test "$GCC" = yes; then
8192 case $archive_cmds in
8193 *'~'*)
8194 # FIXME: we may have to deal with multi-command sequences.
8196 '$CC '*)
8197 # Test whether the compiler implicitly links with -lc since on some
8198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8199 # to ld, don't add -lc before -lgcc.
8200 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8201 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8202 $rm conftest*
8203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } 2>conftest.err; then
8210 soname=conftest
8211 lib=conftest
8212 libobjs=conftest.$ac_objext
8213 deplibs=
8214 wl=$lt_prog_compiler_wl
8215 compiler_flags=-v
8216 linker_flags=-v
8217 verstring=
8218 output_objdir=.
8219 libname=conftest
8220 lt_save_allow_undefined_flag=$allow_undefined_flag
8221 allow_undefined_flag=
8222 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8223 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }
8227 then
8228 archive_cmds_need_lc=no
8229 else
8230 archive_cmds_need_lc=yes
8232 allow_undefined_flag=$lt_save_allow_undefined_flag
8233 else
8234 cat conftest.err 1>&5
8236 $rm conftest*
8237 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8238 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8240 esac
8243 esac
8245 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8247 library_names_spec=
8248 libname_spec='lib$name'
8249 soname_spec=
8250 shrext_cmds=".so"
8251 postinstall_cmds=
8252 postuninstall_cmds=
8253 finish_cmds=
8254 finish_eval=
8255 shlibpath_var=
8256 shlibpath_overrides_runpath=unknown
8257 version_type=none
8258 dynamic_linker="$host_os ld.so"
8259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8260 if test "$GCC" = yes; then
8261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8263 # if the path contains ";" then we assume it to be the separator
8264 # otherwise default to the standard path separator (i.e. ":") - it is
8265 # assumed that no part of a normal pathname contains ";" but that should
8266 # okay in the real world where ";" in dirpaths is itself problematic.
8267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8268 else
8269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8271 else
8272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8274 need_lib_prefix=unknown
8275 hardcode_into_libs=no
8277 # when you set need_version to no, make sure it does not cause -set_version
8278 # flags to be left without arguments
8279 need_version=unknown
8281 case $host_os in
8282 aix3*)
8283 version_type=linux
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8285 shlibpath_var=LIBPATH
8287 # AIX 3 has no versioning support, so we append a major version to the name.
8288 soname_spec='${libname}${release}${shared_ext}$major'
8291 aix4* | aix5*)
8292 version_type=linux
8293 need_lib_prefix=no
8294 need_version=no
8295 hardcode_into_libs=yes
8296 if test "$host_cpu" = ia64; then
8297 # AIX 5 supports IA64
8298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 else
8301 # With GCC up to 2.95.x, collect2 would create an import file
8302 # for dependence libraries. The import file would start with
8303 # the line `#! .'. This would cause the generated library to
8304 # depend on `.', always an invalid library. This was fixed in
8305 # development snapshots of GCC prior to 3.0.
8306 case $host_os in
8307 aix4 | aix4.[01] | aix4.[01].*)
8308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8309 echo ' yes '
8310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8312 else
8313 can_build_shared=no
8316 esac
8317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8318 # soname into executable. Probably we can add versioning support to
8319 # collect2, so additional links can be useful in future.
8320 if test "$aix_use_runtimelinking" = yes; then
8321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8322 # instead of lib<name>.a to let people know that these are not
8323 # typical AIX shared libraries.
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 else
8326 # We preserve .a as extension for shared libraries through AIX4.2
8327 # and later when we are not doing run time linking.
8328 library_names_spec='${libname}${release}.a $libname.a'
8329 soname_spec='${libname}${release}${shared_ext}$major'
8331 shlibpath_var=LIBPATH
8335 amigaos*)
8336 library_names_spec='$libname.ixlibrary $libname.a'
8337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8338 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'
8341 beos*)
8342 library_names_spec='${libname}${shared_ext}'
8343 dynamic_linker="$host_os ld.so"
8344 shlibpath_var=LIBRARY_PATH
8347 bsdi[45]*)
8348 version_type=linux
8349 need_version=no
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8356 # the default ld.so.conf also contains /usr/contrib/lib and
8357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8358 # libtool to hard-code these into programs
8361 cygwin* | mingw* | pw32*)
8362 version_type=windows
8363 shrext_cmds=".dll"
8364 need_version=no
8365 need_lib_prefix=no
8367 case $GCC,$host_os in
8368 yes,cygwin* | yes,mingw* | yes,pw32*)
8369 library_names_spec='$libname.dll.a'
8370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8371 postinstall_cmds='base_file=`basename \${file}`~
8372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8373 dldir=$destdir/`dirname \$dlpath`~
8374 test -d \$dldir || mkdir -p \$dldir~
8375 $install_prog $dir/$dlname \$dldir/$dlname'
8376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8377 dlpath=$dir/\$dldll~
8378 $rm \$dlpath'
8379 shlibpath_overrides_runpath=yes
8381 case $host_os in
8382 cygwin*)
8383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8387 mingw*)
8388 # MinGW DLLs use traditional 'lib' prefix
8389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8392 # It is most probably a Windows format PATH printed by
8393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8394 # path with ; separators, and with drive letters. We can handle the
8395 # drive letters (cygwin fileutils understands them), so leave them,
8396 # especially as we might pass files found there to a mingw objdump,
8397 # which wouldn't understand a cygwinified path. Ahh.
8398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8399 else
8400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8403 pw32*)
8404 # pw32 DLLs use 'pw' prefix rather than 'lib'
8405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8407 esac
8411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8413 esac
8414 dynamic_linker='Win32 ld.exe'
8415 # FIXME: first we should search . and the directory the executable is in
8416 shlibpath_var=PATH
8419 darwin* | rhapsody*)
8420 dynamic_linker="$host_os dyld"
8421 version_type=darwin
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8425 soname_spec='${libname}${release}${major}$shared_ext'
8426 shlibpath_overrides_runpath=yes
8427 shlibpath_var=DYLD_LIBRARY_PATH
8428 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8430 if test "$GCC" = yes; then
8431 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8432 else
8433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8438 dgux*)
8439 version_type=linux
8440 need_lib_prefix=no
8441 need_version=no
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 shlibpath_var=LD_LIBRARY_PATH
8447 freebsd1*)
8448 dynamic_linker=no
8451 kfreebsd*-gnu)
8452 version_type=linux
8453 need_lib_prefix=no
8454 need_version=no
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 shlibpath_overrides_runpath=no
8459 hardcode_into_libs=yes
8460 dynamic_linker='GNU ld.so'
8463 freebsd* | dragonfly*)
8464 # DragonFly does not have aout. When/if they implement a new
8465 # versioning mechanism, adjust this.
8466 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8467 version_type=freebsd-$objformat
8468 case $version_type in
8469 freebsd-elf*)
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8471 need_version=no
8472 need_lib_prefix=no
8474 freebsd-*)
8475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8476 need_version=yes
8478 esac
8479 shlibpath_var=LD_LIBRARY_PATH
8480 case $host_os in
8481 freebsd2*)
8482 shlibpath_overrides_runpath=yes
8484 freebsd3.[01]* | freebsdelf3.[01]*)
8485 shlibpath_overrides_runpath=yes
8486 hardcode_into_libs=yes
8488 *) # from 3.2 on
8489 shlibpath_overrides_runpath=no
8490 hardcode_into_libs=yes
8492 esac
8495 gnu*)
8496 version_type=linux
8497 need_lib_prefix=no
8498 need_version=no
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8500 soname_spec='${libname}${release}${shared_ext}$major'
8501 shlibpath_var=LD_LIBRARY_PATH
8502 hardcode_into_libs=yes
8505 hpux9* | hpux10* | hpux11*)
8506 # Give a soname corresponding to the major version so that dld.sl refuses to
8507 # link against other versions.
8508 version_type=sunos
8509 need_lib_prefix=no
8510 need_version=no
8511 case "$host_cpu" in
8512 ia64*)
8513 shrext_cmds='.so'
8514 hardcode_into_libs=yes
8515 dynamic_linker="$host_os dld.so"
8516 shlibpath_var=LD_LIBRARY_PATH
8517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8519 soname_spec='${libname}${release}${shared_ext}$major'
8520 if test "X$HPUX_IA64_MODE" = X32; then
8521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8522 else
8523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8527 hppa*64*)
8528 shrext_cmds='.sl'
8529 hardcode_into_libs=yes
8530 dynamic_linker="$host_os dld.sl"
8531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534 soname_spec='${libname}${release}${shared_ext}$major'
8535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8539 shrext_cmds='.sl'
8540 dynamic_linker="$host_os dld.sl"
8541 shlibpath_var=SHLIB_PATH
8542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8544 soname_spec='${libname}${release}${shared_ext}$major'
8546 esac
8547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8548 postinstall_cmds='chmod 555 $lib'
8551 irix5* | irix6* | nonstopux*)
8552 case $host_os in
8553 nonstopux*) version_type=nonstopux ;;
8555 if test "$lt_cv_prog_gnu_ld" = yes; then
8556 version_type=linux
8557 else
8558 version_type=irix
8559 fi ;;
8560 esac
8561 need_lib_prefix=no
8562 need_version=no
8563 soname_spec='${libname}${release}${shared_ext}$major'
8564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8565 case $host_os in
8566 irix5* | nonstopux*)
8567 libsuff= shlibsuff=
8570 case $LD in # libtool.m4 will add one of these switches to LD
8571 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8572 libsuff= shlibsuff= libmagic=32-bit;;
8573 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8574 libsuff=32 shlibsuff=N32 libmagic=N32;;
8575 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8576 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8577 *) libsuff= shlibsuff= libmagic=never-match;;
8578 esac
8580 esac
8581 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8582 shlibpath_overrides_runpath=no
8583 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8584 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8585 hardcode_into_libs=yes
8588 # No shared lib support for Linux oldld, aout, or coff.
8589 linux*oldld* | linux*aout* | linux*coff*)
8590 dynamic_linker=no
8593 # This must be Linux ELF.
8594 linux*)
8595 version_type=linux
8596 need_lib_prefix=no
8597 need_version=no
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 shlibpath_overrides_runpath=no
8603 # This implies no fast_install, which is unacceptable.
8604 # Some rework will be needed to allow for fast_install
8605 # before this can be enabled.
8606 hardcode_into_libs=yes
8608 # find out which ABI we are using
8609 libsuff=
8610 case "$host_cpu" in
8611 x86_64*|s390x*|powerpc64*)
8612 echo '#line 8612 "configure"' > conftest.$ac_ext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; then
8618 case `/usr/bin/file conftest.$ac_objext` in
8619 *64-bit*)
8620 libsuff=64
8621 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8623 esac
8625 rm -rf conftest*
8627 esac
8629 # Append ld.so.conf contents to the search path
8630 if test -f /etc/ld.so.conf; then
8631 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8632 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8635 # We used to test for /lib/ld.so.1 and disable shared libraries on
8636 # powerpc, because MkLinux only supported shared libraries with the
8637 # GNU dynamic linker. Since this was broken with cross compilers,
8638 # most powerpc-linux boxes support dynamic linking these days and
8639 # people can always --disable-shared, the test was removed, and we
8640 # assume the GNU/Linux dynamic linker is in use.
8641 dynamic_linker='GNU/Linux ld.so'
8644 knetbsd*-gnu)
8645 version_type=linux
8646 need_lib_prefix=no
8647 need_version=no
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 shlibpath_overrides_runpath=no
8652 hardcode_into_libs=yes
8653 dynamic_linker='GNU ld.so'
8656 netbsd*)
8657 version_type=sunos
8658 need_lib_prefix=no
8659 need_version=no
8660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8663 dynamic_linker='NetBSD (a.out) ld.so'
8664 else
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 dynamic_linker='NetBSD ld.elf_so'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 shlibpath_overrides_runpath=yes
8671 hardcode_into_libs=yes
8674 newsos6)
8675 version_type=linux
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 shlibpath_overrides_runpath=yes
8681 nto-qnx*)
8682 version_type=linux
8683 need_lib_prefix=no
8684 need_version=no
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8686 soname_spec='${libname}${release}${shared_ext}$major'
8687 shlibpath_var=LD_LIBRARY_PATH
8688 shlibpath_overrides_runpath=yes
8691 openbsd*)
8692 version_type=sunos
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8697 shlibpath_var=LD_LIBRARY_PATH
8698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8699 case $host_os in
8700 openbsd2.[89] | openbsd2.[89].*)
8701 shlibpath_overrides_runpath=no
8704 shlibpath_overrides_runpath=yes
8706 esac
8707 else
8708 shlibpath_overrides_runpath=yes
8712 os2*)
8713 libname_spec='$name'
8714 shrext_cmds=".dll"
8715 need_lib_prefix=no
8716 library_names_spec='$libname${shared_ext} $libname.a'
8717 dynamic_linker='OS/2 ld.exe'
8718 shlibpath_var=LIBPATH
8721 osf3* | osf4* | osf5*)
8722 version_type=osf
8723 need_lib_prefix=no
8724 need_version=no
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8732 sco3.2v5*)
8733 version_type=osf
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736 shlibpath_var=LD_LIBRARY_PATH
8739 solaris*)
8740 version_type=linux
8741 need_lib_prefix=no
8742 need_version=no
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 shlibpath_overrides_runpath=yes
8747 hardcode_into_libs=yes
8748 # ldd complains unless libraries are executable
8749 postinstall_cmds='chmod +x $lib'
8752 sunos4*)
8753 version_type=sunos
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=yes
8758 if test "$with_gnu_ld" = yes; then
8759 need_lib_prefix=no
8761 need_version=yes
8764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8765 version_type=linux
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 case $host_vendor in
8770 sni)
8771 shlibpath_overrides_runpath=no
8772 need_lib_prefix=no
8773 export_dynamic_flag_spec='${wl}-Blargedynsym'
8774 runpath_var=LD_RUN_PATH
8776 siemens)
8777 need_lib_prefix=no
8779 motorola)
8780 need_lib_prefix=no
8781 need_version=no
8782 shlibpath_overrides_runpath=no
8783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8785 esac
8788 sysv4*MP*)
8789 if test -d /usr/nec ;then
8790 version_type=linux
8791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8792 soname_spec='$libname${shared_ext}.$major'
8793 shlibpath_var=LD_LIBRARY_PATH
8797 uts4*)
8798 version_type=linux
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 shlibpath_var=LD_LIBRARY_PATH
8805 dynamic_linker=no
8807 esac
8808 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8809 echo "${ECHO_T}$dynamic_linker" >&6
8810 test "$dynamic_linker" = no && can_build_shared=no
8812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8814 hardcode_action=
8815 if test -n "$hardcode_libdir_flag_spec" || \
8816 test -n "$runpath_var" || \
8817 test "X$hardcode_automatic" = "Xyes" ; then
8819 # We can hardcode non-existant directories.
8820 if test "$hardcode_direct" != no &&
8821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8822 # have to relink, otherwise we might link with an installed library
8823 # when we should be linking with a yet-to-be-installed one
8824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8825 test "$hardcode_minus_L" != no; then
8826 # Linking always hardcodes the temporary library directory.
8827 hardcode_action=relink
8828 else
8829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8830 hardcode_action=immediate
8832 else
8833 # We cannot hardcode anything, or else we can only hardcode existing
8834 # directories.
8835 hardcode_action=unsupported
8837 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8838 echo "${ECHO_T}$hardcode_action" >&6
8840 if test "$hardcode_action" = relink; then
8841 # Fast installation is not supported
8842 enable_fast_install=no
8843 elif test "$shlibpath_overrides_runpath" = yes ||
8844 test "$enable_shared" = no; then
8845 # Fast installation is not necessary
8846 enable_fast_install=needless
8849 striplib=
8850 old_striplib=
8851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8856 echo "$as_me:$LINENO: result: yes" >&5
8857 echo "${ECHO_T}yes" >&6
8858 else
8859 # FIXME - insert some real tests, host_os isn't really good enough
8860 case $host_os in
8861 darwin*)
8862 if test -n "$STRIP" ; then
8863 striplib="$STRIP -x"
8864 echo "$as_me:$LINENO: result: yes" >&5
8865 echo "${ECHO_T}yes" >&6
8866 else
8867 echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8872 echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6
8875 esac
8878 if test "x$enable_dlopen" != xyes; then
8879 enable_dlopen=unknown
8880 enable_dlopen_self=unknown
8881 enable_dlopen_self_static=unknown
8882 else
8883 lt_cv_dlopen=no
8884 lt_cv_dlopen_libs=
8886 case $host_os in
8887 beos*)
8888 lt_cv_dlopen="load_add_on"
8889 lt_cv_dlopen_libs=
8890 lt_cv_dlopen_self=yes
8893 mingw* | pw32*)
8894 lt_cv_dlopen="LoadLibrary"
8895 lt_cv_dlopen_libs=
8898 cygwin*)
8899 lt_cv_dlopen="dlopen"
8900 lt_cv_dlopen_libs=
8903 darwin*)
8904 # if libdl is installed we need to link against it
8905 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8906 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-ldl $LIBS"
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8919 /* Override any gcc2 internal prototype to avoid an error. */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8925 char dlopen ();
8927 main ()
8929 dlopen ();
8931 return 0;
8933 _ACEOF
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936 (eval $ac_link) 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try='test -z "$ac_c_werror_flag"
8944 || test ! -s conftest.err'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest$ac_exeext'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_cv_lib_dl_dlopen=yes
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_cv_lib_dl_dlopen=no
8963 rm -f conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LIBS=$ac_check_lib_save_LIBS
8967 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8969 if test $ac_cv_lib_dl_dlopen = yes; then
8970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8971 else
8973 lt_cv_dlopen="dyld"
8974 lt_cv_dlopen_libs=
8975 lt_cv_dlopen_self=yes
8982 echo "$as_me:$LINENO: checking for shl_load" >&5
8983 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8984 if test "${ac_cv_func_shl_load+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8995 #define shl_load innocuous_shl_load
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char shl_load (); below.
8999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9000 <limits.h> exists even on freestanding compilers. */
9002 #ifdef __STDC__
9003 # include <limits.h>
9004 #else
9005 # include <assert.h>
9006 #endif
9008 #undef shl_load
9010 /* Override any gcc2 internal prototype to avoid an error. */
9011 #ifdef __cplusplus
9012 extern "C"
9014 #endif
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9017 char shl_load ();
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9022 choke me
9023 #else
9024 char (*f) () = shl_load;
9025 #endif
9026 #ifdef __cplusplus
9028 #endif
9031 main ()
9033 return f != shl_load;
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_func_shl_load=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_func_shl_load=no
9067 rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9071 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9072 if test $ac_cv_func_shl_load = yes; then
9073 lt_cv_dlopen="shl_load"
9074 else
9075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9076 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9077 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-ldld $LIBS"
9082 cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9095 char shl_load ();
9097 main ()
9099 shl_load ();
9101 return 0;
9103 _ACEOF
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_dld_shl_load=yes
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_dld_shl_load=no
9133 rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9138 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9139 if test $ac_cv_lib_dld_shl_load = yes; then
9140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9141 else
9142 echo "$as_me:$LINENO: checking for dlopen" >&5
9143 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9144 if test "${ac_cv_func_dlopen+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9155 #define dlopen innocuous_dlopen
9157 /* System header to define __stub macros and hopefully few prototypes,
9158 which can conflict with char dlopen (); below.
9159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 <limits.h> exists even on freestanding compilers. */
9162 #ifdef __STDC__
9163 # include <limits.h>
9164 #else
9165 # include <assert.h>
9166 #endif
9168 #undef dlopen
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 #ifdef __cplusplus
9172 extern "C"
9174 #endif
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9177 char dlopen ();
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9182 choke me
9183 #else
9184 char (*f) () = dlopen;
9185 #endif
9186 #ifdef __cplusplus
9188 #endif
9191 main ()
9193 return f != dlopen;
9195 return 0;
9197 _ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest$ac_exeext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_cv_func_dlopen=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_func_dlopen=no
9227 rm -f conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9230 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9231 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9232 if test $ac_cv_func_dlopen = yes; then
9233 lt_cv_dlopen="dlopen"
9234 else
9235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-ldl $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9249 /* Override any gcc2 internal prototype to avoid an error. */
9250 #ifdef __cplusplus
9251 extern "C"
9252 #endif
9253 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9255 char dlopen ();
9257 main ()
9259 dlopen ();
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9266 (eval $ac_link) 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -z "$ac_c_werror_flag"
9274 || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_lib_dl_dlopen=yes
9287 else
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_lib_dl_dlopen=no
9293 rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9299 if test $ac_cv_lib_dl_dlopen = yes; then
9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9301 else
9302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9303 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307 ac_check_lib_save_LIBS=$LIBS
9308 LIBS="-lsvld $LIBS"
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h. */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9322 char dlopen ();
9324 main ()
9326 dlopen ();
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>conftest.er1
9334 ac_status=$?
9335 grep -v '^ *+' conftest.er1 >conftest.err
9336 rm -f conftest.er1
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -z "$ac_c_werror_flag"
9341 || test ! -s conftest.err'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_lib_svld_dlopen=yes
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_cv_lib_svld_dlopen=no
9360 rm -f conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9364 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9365 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9366 if test $ac_cv_lib_svld_dlopen = yes; then
9367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9368 else
9369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9370 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9371 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 ac_check_lib_save_LIBS=$LIBS
9375 LIBS="-ldld $LIBS"
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 /* We use char because int might match the return type of a gcc2
9388 builtin and then its argument prototype would still apply. */
9389 char dld_link ();
9391 main ()
9393 dld_link ();
9395 return 0;
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 ac_cv_lib_dld_dld_link=yes
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_cv_lib_dld_dld_link=no
9427 rm -f conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9432 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9433 if test $ac_cv_lib_dld_dld_link = yes; then
9434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9453 esac
9455 if test "x$lt_cv_dlopen" != xno; then
9456 enable_dlopen=yes
9457 else
9458 enable_dlopen=no
9461 case $lt_cv_dlopen in
9462 dlopen)
9463 save_CPPFLAGS="$CPPFLAGS"
9464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9466 save_LDFLAGS="$LDFLAGS"
9467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9469 save_LIBS="$LIBS"
9470 LIBS="$lt_cv_dlopen_libs $LIBS"
9472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9473 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9474 if test "${lt_cv_dlopen_self+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 if test "$cross_compiling" = yes; then :
9478 lt_cv_dlopen_self=cross
9479 else
9480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9481 lt_status=$lt_dlunknown
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9483 "configure"
9484 #include "confdefs.h"
9486 #if HAVE_DLFCN_H
9487 #include <dlfcn.h>
9488 #endif
9490 #include <stdio.h>
9492 #ifdef RTLD_GLOBAL
9493 # define LT_DLGLOBAL RTLD_GLOBAL
9494 #else
9495 # ifdef DL_GLOBAL
9496 # define LT_DLGLOBAL DL_GLOBAL
9497 # else
9498 # define LT_DLGLOBAL 0
9499 # endif
9500 #endif
9502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9503 find out it does not work in some platform. */
9504 #ifndef LT_DLLAZY_OR_NOW
9505 # ifdef RTLD_LAZY
9506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9507 # else
9508 # ifdef DL_LAZY
9509 # define LT_DLLAZY_OR_NOW DL_LAZY
9510 # else
9511 # ifdef RTLD_NOW
9512 # define LT_DLLAZY_OR_NOW RTLD_NOW
9513 # else
9514 # ifdef DL_NOW
9515 # define LT_DLLAZY_OR_NOW DL_NOW
9516 # else
9517 # define LT_DLLAZY_OR_NOW 0
9518 # endif
9519 # endif
9520 # endif
9521 # endif
9522 #endif
9524 #ifdef __cplusplus
9525 extern "C" void exit (int);
9526 #endif
9528 void fnord() { int i=42;}
9529 int main ()
9531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9532 int status = $lt_dlunknown;
9534 if (self)
9536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9538 /* dlclose (self); */
9541 exit (status);
9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545 (eval $ac_link) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9549 (./conftest; exit; ) 2>/dev/null
9550 lt_status=$?
9551 case x$lt_status in
9552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9555 esac
9556 else :
9557 # compilation failed
9558 lt_cv_dlopen_self=no
9561 rm -fr conftest*
9565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9568 if test "x$lt_cv_dlopen_self" = xyes; then
9569 LDFLAGS="$LDFLAGS $link_static_flag"
9570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9572 if test "${lt_cv_dlopen_self_static+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 if test "$cross_compiling" = yes; then :
9576 lt_cv_dlopen_self_static=cross
9577 else
9578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9579 lt_status=$lt_dlunknown
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9584 #if HAVE_DLFCN_H
9585 #include <dlfcn.h>
9586 #endif
9588 #include <stdio.h>
9590 #ifdef RTLD_GLOBAL
9591 # define LT_DLGLOBAL RTLD_GLOBAL
9592 #else
9593 # ifdef DL_GLOBAL
9594 # define LT_DLGLOBAL DL_GLOBAL
9595 # else
9596 # define LT_DLGLOBAL 0
9597 # endif
9598 #endif
9600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9601 find out it does not work in some platform. */
9602 #ifndef LT_DLLAZY_OR_NOW
9603 # ifdef RTLD_LAZY
9604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9605 # else
9606 # ifdef DL_LAZY
9607 # define LT_DLLAZY_OR_NOW DL_LAZY
9608 # else
9609 # ifdef RTLD_NOW
9610 # define LT_DLLAZY_OR_NOW RTLD_NOW
9611 # else
9612 # ifdef DL_NOW
9613 # define LT_DLLAZY_OR_NOW DL_NOW
9614 # else
9615 # define LT_DLLAZY_OR_NOW 0
9616 # endif
9617 # endif
9618 # endif
9619 # endif
9620 #endif
9622 #ifdef __cplusplus
9623 extern "C" void exit (int);
9624 #endif
9626 void fnord() { int i=42;}
9627 int main ()
9629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9630 int status = $lt_dlunknown;
9632 if (self)
9634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9636 /* dlclose (self); */
9639 exit (status);
9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9643 (eval $ac_link) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9647 (./conftest; exit; ) 2>/dev/null
9648 lt_status=$?
9649 case x$lt_status in
9650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9653 esac
9654 else :
9655 # compilation failed
9656 lt_cv_dlopen_self_static=no
9659 rm -fr conftest*
9663 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9664 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9667 CPPFLAGS="$save_CPPFLAGS"
9668 LDFLAGS="$save_LDFLAGS"
9669 LIBS="$save_LIBS"
9671 esac
9673 case $lt_cv_dlopen_self in
9674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9675 *) enable_dlopen_self=unknown ;;
9676 esac
9678 case $lt_cv_dlopen_self_static in
9679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9680 *) enable_dlopen_self_static=unknown ;;
9681 esac
9685 # Report which librarie types wil actually be built
9686 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9687 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9688 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9689 echo "${ECHO_T}$can_build_shared" >&6
9691 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9692 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9693 test "$can_build_shared" = "no" && enable_shared=no
9695 # On AIX, shared libraries and static libraries use the same namespace, and
9696 # are all built from PIC.
9697 case "$host_os" in
9698 aix3*)
9699 test "$enable_shared" = yes && enable_static=no
9700 if test -n "$RANLIB"; then
9701 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9702 postinstall_cmds='$RANLIB $lib'
9706 aix4* | aix5*)
9707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9708 test "$enable_shared" = yes && enable_static=no
9711 esac
9712 echo "$as_me:$LINENO: result: $enable_shared" >&5
9713 echo "${ECHO_T}$enable_shared" >&6
9715 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9716 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9717 # Make sure either enable_shared or enable_static is yes.
9718 test "$enable_shared" = yes || enable_static=yes
9719 echo "$as_me:$LINENO: result: $enable_static" >&5
9720 echo "${ECHO_T}$enable_static" >&6
9722 # The else clause should only fire when bootstrapping the
9723 # libtool distribution, otherwise you forgot to ship ltmain.sh
9724 # with your package, and you will get complaints that there are
9725 # no rules to generate ltmain.sh.
9726 if test -f "$ltmain"; then
9727 # See if we are running on zsh, and set the options which allow our commands through
9728 # without removal of \ escapes.
9729 if test -n "${ZSH_VERSION+set}" ; then
9730 setopt NO_GLOB_SUBST
9732 # Now quote all the things that may contain metacharacters while being
9733 # careful not to overquote the AC_SUBSTed values. We take copies of the
9734 # variables and quote the copies for generation of the libtool script.
9735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9736 SED SHELL STRIP \
9737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9739 deplibs_check_method reload_flag reload_cmds need_locks \
9740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9741 lt_cv_sys_global_symbol_to_c_name_address \
9742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9743 old_postinstall_cmds old_postuninstall_cmds \
9744 compiler \
9745 CC \
9746 LD \
9747 lt_prog_compiler_wl \
9748 lt_prog_compiler_pic \
9749 lt_prog_compiler_static \
9750 lt_prog_compiler_no_builtin_flag \
9751 export_dynamic_flag_spec \
9752 thread_safe_flag_spec \
9753 whole_archive_flag_spec \
9754 enable_shared_with_static_runtimes \
9755 old_archive_cmds \
9756 old_archive_from_new_cmds \
9757 predep_objects \
9758 postdep_objects \
9759 predeps \
9760 postdeps \
9761 compiler_lib_search_path \
9762 archive_cmds \
9763 archive_expsym_cmds \
9764 postinstall_cmds \
9765 postuninstall_cmds \
9766 old_archive_from_expsyms_cmds \
9767 allow_undefined_flag \
9768 no_undefined_flag \
9769 export_symbols_cmds \
9770 hardcode_libdir_flag_spec \
9771 hardcode_libdir_flag_spec_ld \
9772 hardcode_libdir_separator \
9773 hardcode_automatic \
9774 module_cmds \
9775 module_expsym_cmds \
9776 lt_cv_prog_compiler_c_o \
9777 exclude_expsyms \
9778 include_expsyms; do
9780 case $var in
9781 old_archive_cmds | \
9782 old_archive_from_new_cmds | \
9783 archive_cmds | \
9784 archive_expsym_cmds | \
9785 module_cmds | \
9786 module_expsym_cmds | \
9787 old_archive_from_expsyms_cmds | \
9788 export_symbols_cmds | \
9789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9790 postinstall_cmds | postuninstall_cmds | \
9791 old_postinstall_cmds | old_postuninstall_cmds | \
9792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9793 # Double-quote double-evaled strings.
9794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9799 esac
9800 done
9802 case $lt_echo in
9803 *'\$0 --fallback-echo"')
9804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9806 esac
9808 cfgfile="${ofile}T"
9809 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9810 $rm -f "$cfgfile"
9811 { echo "$as_me:$LINENO: creating $ofile" >&5
9812 echo "$as_me: creating $ofile" >&6;}
9814 cat <<__EOF__ >> "$cfgfile"
9815 #! $SHELL
9817 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9818 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9819 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9821 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9822 # Free Software Foundation, Inc.
9824 # This file is part of GNU Libtool:
9825 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9827 # This program is free software; you can redistribute it and/or modify
9828 # it under the terms of the GNU General Public License as published by
9829 # the Free Software Foundation; either version 2 of the License, or
9830 # (at your option) any later version.
9832 # This program is distributed in the hope that it will be useful, but
9833 # WITHOUT ANY WARRANTY; without even the implied warranty of
9834 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9835 # General Public License for more details.
9837 # You should have received a copy of the GNU General Public License
9838 # along with this program; if not, write to the Free Software
9839 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9841 # As a special exception to the GNU General Public License, if you
9842 # distribute this file as part of a program that contains a
9843 # configuration script generated by Autoconf, you may include it under
9844 # the same distribution terms that you use for the rest of that program.
9846 # A sed program that does not truncate output.
9847 SED=$lt_SED
9849 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9850 Xsed="$SED -e 1s/^X//"
9852 # The HP-UX ksh and POSIX shell print the target directory to stdout
9853 # if CDPATH is set.
9854 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9856 # The names of the tagged configurations supported by this script.
9857 available_tags=
9859 # ### BEGIN LIBTOOL CONFIG
9861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9863 # Shell to use when invoking shell scripts.
9864 SHELL=$lt_SHELL
9866 # Whether or not to build shared libraries.
9867 build_libtool_libs=$enable_shared
9869 # Whether or not to build static libraries.
9870 build_old_libs=$enable_static
9872 # Whether or not to add -lc for building shared libraries.
9873 build_libtool_need_lc=$archive_cmds_need_lc
9875 # Whether or not to disallow shared libs when runtime libs are static
9876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9878 # Whether or not to optimize for fast installation.
9879 fast_install=$enable_fast_install
9881 # The host system.
9882 host_alias=$host_alias
9883 host=$host
9884 host_os=$host_os
9886 # The build system.
9887 build_alias=$build_alias
9888 build=$build
9889 build_os=$build_os
9891 # An echo program that does not interpret backslashes.
9892 echo=$lt_echo
9894 # The archiver.
9895 AR=$lt_AR
9896 AR_FLAGS=$lt_AR_FLAGS
9898 # A C compiler.
9899 LTCC=$lt_LTCC
9901 # A language-specific compiler.
9902 CC=$lt_compiler
9904 # Is the compiler the GNU C compiler?
9905 with_gcc=$GCC
9907 # An ERE matcher.
9908 EGREP=$lt_EGREP
9910 # The linker used to build libraries.
9911 LD=$lt_LD
9913 # Whether we need hard or soft links.
9914 LN_S=$lt_LN_S
9916 # A BSD-compatible nm program.
9917 NM=$lt_NM
9919 # A symbol stripping program
9920 STRIP=$lt_STRIP
9922 # Used to examine libraries when file_magic_cmd begins "file"
9923 MAGIC_CMD=$MAGIC_CMD
9925 # Used on cygwin: DLL creation program.
9926 DLLTOOL="$DLLTOOL"
9928 # Used on cygwin: object dumper.
9929 OBJDUMP="$OBJDUMP"
9931 # Used on cygwin: assembler.
9932 AS="$AS"
9934 # The name of the directory that contains temporary libtool files.
9935 objdir=$objdir
9937 # How to create reloadable object files.
9938 reload_flag=$lt_reload_flag
9939 reload_cmds=$lt_reload_cmds
9941 # How to pass a linker flag through the compiler.
9942 wl=$lt_lt_prog_compiler_wl
9944 # Object file suffix (normally "o").
9945 objext="$ac_objext"
9947 # Old archive suffix (normally "a").
9948 libext="$libext"
9950 # Shared library suffix (normally ".so").
9951 shrext_cmds='$shrext_cmds'
9953 # Executable file suffix (normally "").
9954 exeext="$exeext"
9956 # Additional compiler flags for building library objects.
9957 pic_flag=$lt_lt_prog_compiler_pic
9958 pic_mode=$pic_mode
9960 # What is the maximum length of a command?
9961 max_cmd_len=$lt_cv_sys_max_cmd_len
9963 # Does compiler simultaneously support -c and -o options?
9964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9966 # Must we lock files when doing compilation?
9967 need_locks=$lt_need_locks
9969 # Do we need the lib prefix for modules?
9970 need_lib_prefix=$need_lib_prefix
9972 # Do we need a version for libraries?
9973 need_version=$need_version
9975 # Whether dlopen is supported.
9976 dlopen_support=$enable_dlopen
9978 # Whether dlopen of programs is supported.
9979 dlopen_self=$enable_dlopen_self
9981 # Whether dlopen of statically linked programs is supported.
9982 dlopen_self_static=$enable_dlopen_self_static
9984 # Compiler flag to prevent dynamic linking.
9985 link_static_flag=$lt_lt_prog_compiler_static
9987 # Compiler flag to turn off builtin functions.
9988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9990 # Compiler flag to allow reflexive dlopens.
9991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9993 # Compiler flag to generate shared objects directly from archives.
9994 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9996 # Compiler flag to generate thread-safe objects.
9997 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9999 # Library versioning type.
10000 version_type=$version_type
10002 # Format of library name prefix.
10003 libname_spec=$lt_libname_spec
10005 # List of archive names. First name is the real one, the rest are links.
10006 # The last name is the one that the linker finds with -lNAME.
10007 library_names_spec=$lt_library_names_spec
10009 # The coded name of the library, if different from the real name.
10010 soname_spec=$lt_soname_spec
10012 # Commands used to build and install an old-style archive.
10013 RANLIB=$lt_RANLIB
10014 old_archive_cmds=$lt_old_archive_cmds
10015 old_postinstall_cmds=$lt_old_postinstall_cmds
10016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10018 # Create an old-style archive from a shared archive.
10019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10021 # Create a temporary old-style archive to link instead of a shared archive.
10022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10024 # Commands used to build and install a shared archive.
10025 archive_cmds=$lt_archive_cmds
10026 archive_expsym_cmds=$lt_archive_expsym_cmds
10027 postinstall_cmds=$lt_postinstall_cmds
10028 postuninstall_cmds=$lt_postuninstall_cmds
10030 # Commands used to build a loadable module (assumed same as above if empty)
10031 module_cmds=$lt_module_cmds
10032 module_expsym_cmds=$lt_module_expsym_cmds
10034 # Commands to strip libraries.
10035 old_striplib=$lt_old_striplib
10036 striplib=$lt_striplib
10038 # Dependencies to place before the objects being linked to create a
10039 # shared library.
10040 predep_objects=$lt_predep_objects
10042 # Dependencies to place after the objects being linked to create a
10043 # shared library.
10044 postdep_objects=$lt_postdep_objects
10046 # Dependencies to place before the objects being linked to create a
10047 # shared library.
10048 predeps=$lt_predeps
10050 # Dependencies to place after the objects being linked to create a
10051 # shared library.
10052 postdeps=$lt_postdeps
10054 # The library search path used internally by the compiler when linking
10055 # a shared library.
10056 compiler_lib_search_path=$lt_compiler_lib_search_path
10058 # Method to check whether dependent libraries are shared objects.
10059 deplibs_check_method=$lt_deplibs_check_method
10061 # Command to use when deplibs_check_method == file_magic.
10062 file_magic_cmd=$lt_file_magic_cmd
10064 # Flag that allows shared libraries with undefined symbols to be built.
10065 allow_undefined_flag=$lt_allow_undefined_flag
10067 # Flag that forces no undefined symbols.
10068 no_undefined_flag=$lt_no_undefined_flag
10070 # Commands used to finish a libtool library installation in a directory.
10071 finish_cmds=$lt_finish_cmds
10073 # Same as above, but a single script fragment to be evaled but not shown.
10074 finish_eval=$lt_finish_eval
10076 # Take the output of nm and produce a listing of raw symbols and C names.
10077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10079 # Transform the output of nm in a proper C declaration
10080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10082 # Transform the output of nm in a C name address pair
10083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10085 # This is the shared library runtime path variable.
10086 runpath_var=$runpath_var
10088 # This is the shared library path variable.
10089 shlibpath_var=$shlibpath_var
10091 # Is shlibpath searched before the hard-coded library search path?
10092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10094 # How to hardcode a shared library path into an executable.
10095 hardcode_action=$hardcode_action
10097 # Whether we should hardcode library paths into libraries.
10098 hardcode_into_libs=$hardcode_into_libs
10100 # Flag to hardcode \$libdir into a binary during linking.
10101 # This must work even if \$libdir does not exist.
10102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10104 # If ld is used when linking, flag to hardcode \$libdir into
10105 # a binary during linking. This must work even if \$libdir does
10106 # not exist.
10107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10109 # Whether we need a single -rpath flag with a separated argument.
10110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10113 # resulting binary.
10114 hardcode_direct=$hardcode_direct
10116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10117 # resulting binary.
10118 hardcode_minus_L=$hardcode_minus_L
10120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10121 # the resulting binary.
10122 hardcode_shlibpath_var=$hardcode_shlibpath_var
10124 # Set to yes if building a shared library automatically hardcodes DIR into the library
10125 # and all subsequent libraries and executables linked against it.
10126 hardcode_automatic=$hardcode_automatic
10128 # Variables whose values should be saved in libtool wrapper scripts and
10129 # restored at relink time.
10130 variables_saved_for_relink="$variables_saved_for_relink"
10132 # Whether libtool must link a program against all its dependency libraries.
10133 link_all_deplibs=$link_all_deplibs
10135 # Compile-time system search path for libraries
10136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10138 # Run-time system search path for libraries
10139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10141 # Fix the shell variable \$srcfile for the compiler.
10142 fix_srcfile_path="$fix_srcfile_path"
10144 # Set to yes if exported symbols are required.
10145 always_export_symbols=$always_export_symbols
10147 # The commands to list exported symbols.
10148 export_symbols_cmds=$lt_export_symbols_cmds
10150 # The commands to extract the exported symbol list from a shared archive.
10151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10153 # Symbols that should not be listed in the preloaded symbols.
10154 exclude_expsyms=$lt_exclude_expsyms
10156 # Symbols that must always be exported.
10157 include_expsyms=$lt_include_expsyms
10159 # ### END LIBTOOL CONFIG
10161 __EOF__
10164 case $host_os in
10165 aix3*)
10166 cat <<\EOF >> "$cfgfile"
10168 # AIX sometimes has problems with the GCC collect2 program. For some
10169 # reason, if we set the COLLECT_NAMES environment variable, the problems
10170 # vanish in a puff of smoke.
10171 if test "X${COLLECT_NAMES+set}" != Xset; then
10172 COLLECT_NAMES=
10173 export COLLECT_NAMES
10177 esac
10179 # We use sed instead of cat because bash on DJGPP gets confused if
10180 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10181 # text mode, it properly converts lines to CR/LF. This bash problem
10182 # is reportedly fixed, but why not run on old versions too?
10183 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10185 mv -f "$cfgfile" "$ofile" || \
10186 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10187 chmod +x "$ofile"
10189 else
10190 # If there is no Makefile yet, we rely on a make rule to execute
10191 # `config.status --recheck' to rerun these tests and create the
10192 # libtool script then.
10193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10194 if test -f "$ltmain_in"; then
10195 test -f Makefile && make "$ltmain"
10200 ac_ext=c
10201 ac_cpp='$CPP $CPPFLAGS'
10202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10206 CC="$lt_save_CC"
10209 # Check whether --with-tags or --without-tags was given.
10210 if test "${with_tags+set}" = set; then
10211 withval="$with_tags"
10212 tagnames="$withval"
10215 if test -f "$ltmain" && test -n "$tagnames"; then
10216 if test ! -f "${ofile}"; then
10217 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10218 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10221 if test -z "$LTCC"; then
10222 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10223 if test -z "$LTCC"; then
10224 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10225 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10226 else
10227 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10228 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10232 # Extract list of available tagged configurations in $ofile.
10233 # Note that this assumes the entire list is on one line.
10234 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10237 for tagname in $tagnames; do
10238 IFS="$lt_save_ifs"
10239 # Check whether tagname contains only valid characters
10240 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10241 "") ;;
10242 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10243 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10244 { (exit 1); exit 1; }; }
10246 esac
10248 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10249 then
10250 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10251 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10252 { (exit 1); exit 1; }; }
10255 # Update the list of available tags.
10256 if test -n "$tagname"; then
10257 echo appending configuration tag \"$tagname\" to $ofile
10259 case $tagname in
10260 CXX)
10261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263 (test "X$CXX" != "Xg++"))) ; then
10264 ac_ext=cc
10265 ac_cpp='$CXXCPP $CPPFLAGS'
10266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10273 archive_cmds_need_lc_CXX=no
10274 allow_undefined_flag_CXX=
10275 always_export_symbols_CXX=no
10276 archive_expsym_cmds_CXX=
10277 export_dynamic_flag_spec_CXX=
10278 hardcode_direct_CXX=no
10279 hardcode_libdir_flag_spec_CXX=
10280 hardcode_libdir_flag_spec_ld_CXX=
10281 hardcode_libdir_separator_CXX=
10282 hardcode_minus_L_CXX=no
10283 hardcode_automatic_CXX=no
10284 module_cmds_CXX=
10285 module_expsym_cmds_CXX=
10286 link_all_deplibs_CXX=unknown
10287 old_archive_cmds_CXX=$old_archive_cmds
10288 no_undefined_flag_CXX=
10289 whole_archive_flag_spec_CXX=
10290 enable_shared_with_static_runtimes_CXX=no
10292 # Dependencies to place before and after the object being linked:
10293 predep_objects_CXX=
10294 postdep_objects_CXX=
10295 predeps_CXX=
10296 postdeps_CXX=
10297 compiler_lib_search_path_CXX=
10299 # Source file extension for C++ test sources.
10300 ac_ext=cc
10302 # Object file extension for compiled C++ test sources.
10303 objext=o
10304 objext_CXX=$objext
10306 # Code to be used in simple compile tests
10307 lt_simple_compile_test_code="int some_variable = 0;\n"
10309 # Code to be used in simple link tests
10310 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10314 # If no C compiler was specified, use CC.
10315 LTCC=${LTCC-"$CC"}
10317 # Allow CC to be a program name with arguments.
10318 compiler=$CC
10321 # save warnings/boilerplate of simple test code
10322 ac_outfile=conftest.$ac_objext
10323 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10325 _lt_compiler_boilerplate=`cat conftest.err`
10326 $rm conftest*
10328 ac_outfile=conftest.$ac_objext
10329 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10331 _lt_linker_boilerplate=`cat conftest.err`
10332 $rm conftest*
10335 # Allow CC to be a program name with arguments.
10336 lt_save_CC=$CC
10337 lt_save_LD=$LD
10338 lt_save_GCC=$GCC
10339 GCC=$GXX
10340 lt_save_with_gnu_ld=$with_gnu_ld
10341 lt_save_path_LD=$lt_cv_path_LD
10342 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10343 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10344 else
10345 unset lt_cv_prog_gnu_ld
10347 if test -n "${lt_cv_path_LDCXX+set}"; then
10348 lt_cv_path_LD=$lt_cv_path_LDCXX
10349 else
10350 unset lt_cv_path_LD
10352 test -z "${LDCXX+set}" || LD=$LDCXX
10353 CC=${CXX-"c++"}
10354 compiler=$CC
10355 compiler_CXX=$CC
10356 for cc_temp in $compiler""; do
10357 case $cc_temp in
10358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10360 \-*) ;;
10361 *) break;;
10362 esac
10363 done
10364 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10367 # We don't want -fno-exception wen compiling C++ code, so set the
10368 # no_builtin_flag separately
10369 if test "$GXX" = yes; then
10370 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10371 else
10372 lt_prog_compiler_no_builtin_flag_CXX=
10375 if test "$GXX" = yes; then
10376 # Set up default GNU C++ configuration
10379 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10380 if test "${with_gnu_ld+set}" = set; then
10381 withval="$with_gnu_ld"
10382 test "$withval" = no || with_gnu_ld=yes
10383 else
10384 with_gnu_ld=no
10386 ac_prog=ld
10387 if test "$GCC" = yes; then
10388 # Check if gcc -print-prog-name=ld gives a path.
10389 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10390 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10391 case $host in
10392 *-*-mingw*)
10393 # gcc leaves a trailing carriage return which upsets mingw
10394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10397 esac
10398 case $ac_prog in
10399 # Accept absolute paths.
10400 [\\/]* | ?:[\\/]*)
10401 re_direlt='/[^/][^/]*/\.\./'
10402 # Canonicalize the pathname of ld
10403 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10405 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10406 done
10407 test -z "$LD" && LD="$ac_prog"
10410 # If it fails, then pretend we aren't using GCC.
10411 ac_prog=ld
10414 # If it is relative, then search for the first ld in PATH.
10415 with_gnu_ld=unknown
10417 esac
10418 elif test "$with_gnu_ld" = yes; then
10419 echo "$as_me:$LINENO: checking for GNU ld" >&5
10420 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10421 else
10422 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10423 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10425 if test "${lt_cv_path_LD+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 if test -z "$LD"; then
10429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10430 for ac_dir in $PATH; do
10431 IFS="$lt_save_ifs"
10432 test -z "$ac_dir" && ac_dir=.
10433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10434 lt_cv_path_LD="$ac_dir/$ac_prog"
10435 # Check to see if the program is GNU ld. I'd rather use --version,
10436 # but apparently some GNU ld's only accept -v.
10437 # Break only if it was the GNU/non-GNU ld that we prefer.
10438 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10439 *GNU* | *'with BFD'*)
10440 test "$with_gnu_ld" != no && break
10443 test "$with_gnu_ld" != yes && break
10445 esac
10447 done
10448 IFS="$lt_save_ifs"
10449 else
10450 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10454 LD="$lt_cv_path_LD"
10455 if test -n "$LD"; then
10456 echo "$as_me:$LINENO: result: $LD" >&5
10457 echo "${ECHO_T}$LD" >&6
10458 else
10459 echo "$as_me:$LINENO: result: no" >&5
10460 echo "${ECHO_T}no" >&6
10462 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10463 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10464 { (exit 1); exit 1; }; }
10465 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10466 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10467 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10471 case `$LD -v 2>&1 </dev/null` in
10472 *GNU* | *'with BFD'*)
10473 lt_cv_prog_gnu_ld=yes
10476 lt_cv_prog_gnu_ld=no
10478 esac
10480 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10481 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10482 with_gnu_ld=$lt_cv_prog_gnu_ld
10486 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10487 # archiving commands below assume that GNU ld is being used.
10488 if test "$with_gnu_ld" = yes; then
10489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10490 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'
10492 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10495 # If archive_cmds runs LD, not CC, wlarc should be empty
10496 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10497 # investigate it a little bit more. (MM)
10498 wlarc='${wl}'
10500 # ancient GNU ld didn't support --whole-archive et. al.
10501 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10502 grep 'no-whole-archive' > /dev/null; then
10503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10504 else
10505 whole_archive_flag_spec_CXX=
10507 else
10508 with_gnu_ld=no
10509 wlarc=
10511 # A generic and very simple default shared library creation
10512 # command for GNU C++ for the case where it uses the native
10513 # linker, instead of GNU ld. If possible, this setting should
10514 # overridden to take advantage of the native linker features on
10515 # the platform it is being used on.
10516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10519 # Commands to make compiler produce verbose output that lists
10520 # what "hidden" libraries, object files and flags are used when
10521 # linking a shared library.
10522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10524 else
10525 GXX=no
10526 with_gnu_ld=no
10527 wlarc=
10530 # PORTME: fill in a description of your system's C++ link characteristics
10531 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10532 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10533 ld_shlibs_CXX=yes
10534 case $host_os in
10535 aix3*)
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10539 aix4* | aix5*)
10540 if test "$host_cpu" = ia64; then
10541 # On IA64, the linker does run time linking by default, so we don't
10542 # have to do anything special.
10543 aix_use_runtimelinking=no
10544 exp_sym_flag='-Bexport'
10545 no_entry_flag=""
10546 else
10547 aix_use_runtimelinking=no
10549 # Test if we are trying to use run time linking or normal
10550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10551 # need to do runtime linking.
10552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10553 for ld_flag in $LDFLAGS; do
10554 case $ld_flag in
10555 *-brtl*)
10556 aix_use_runtimelinking=yes
10557 break
10559 esac
10560 done
10561 esac
10563 exp_sym_flag='-bexport'
10564 no_entry_flag='-bnoentry'
10567 # When large executables or shared objects are built, AIX ld can
10568 # have problems creating the table of contents. If linking a library
10569 # or program results in "error TOC overflow" add -mminimal-toc to
10570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10573 archive_cmds_CXX=''
10574 hardcode_direct_CXX=yes
10575 hardcode_libdir_separator_CXX=':'
10576 link_all_deplibs_CXX=yes
10578 if test "$GXX" = yes; then
10579 case $host_os in aix4.[012]|aix4.[012].*)
10580 # We only want to do this on AIX 4.2 and lower, the check
10581 # below for broken collect2 doesn't work under 4.3+
10582 collect2name=`${CC} -print-prog-name=collect2`
10583 if test -f "$collect2name" && \
10584 strings "$collect2name" | grep resolve_lib_name >/dev/null
10585 then
10586 # We have reworked collect2
10587 hardcode_direct_CXX=yes
10588 else
10589 # We have old collect2
10590 hardcode_direct_CXX=unsupported
10591 # It fails to find uninstalled libraries when the uninstalled
10592 # path is not listed in the libpath. Setting hardcode_minus_L
10593 # to unsupported forces relinking
10594 hardcode_minus_L_CXX=yes
10595 hardcode_libdir_flag_spec_CXX='-L$libdir'
10596 hardcode_libdir_separator_CXX=
10598 esac
10599 shared_flag='-shared'
10600 if test "$aix_use_runtimelinking" = yes; then
10601 shared_flag="$shared_flag "'${wl}-G'
10603 else
10604 # not using gcc
10605 if test "$host_cpu" = ia64; then
10606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10607 # chokes on -Wl,-G. The following line is correct:
10608 shared_flag='-G'
10609 else
10610 if test "$aix_use_runtimelinking" = yes; then
10611 shared_flag='${wl}-G'
10612 else
10613 shared_flag='${wl}-bM:SRE'
10618 # It seems that -bexpall does not export symbols beginning with
10619 # underscore (_), so it is better to generate a list of symbols to export.
10620 always_export_symbols_CXX=yes
10621 if test "$aix_use_runtimelinking" = yes; then
10622 # Warning - without using the other runtime loading flags (-brtl),
10623 # -berok will link without error, but may produce a broken library.
10624 allow_undefined_flag_CXX='-berok'
10625 # Determine the default libpath from the value encoded in an empty executable.
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10634 main ()
10638 return 0;
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -z "$ac_cxx_werror_flag"
10651 || test ! -s conftest.err'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest$ac_exeext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10666 # Check for a 64-bit object if we didn't find anything.
10667 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; }
10668 }'`; fi
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10674 rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10678 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10680 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10681 else
10682 if test "$host_cpu" = ia64; then
10683 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10684 allow_undefined_flag_CXX="-z nodefs"
10685 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"
10686 else
10687 # Determine the default libpath from the value encoded in an empty executable.
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10696 main ()
10700 return 0;
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_cxx_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest$ac_exeext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10728 # Check for a 64-bit object if we didn't find anything.
10729 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; }
10730 }'`; fi
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10736 rm -f conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
10738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10740 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10741 # Warning - without using the other run time loading flags,
10742 # -berok will link without error, but may produce a broken library.
10743 no_undefined_flag_CXX=' ${wl}-bernotok'
10744 allow_undefined_flag_CXX=' ${wl}-berok'
10745 # -bexpall does not export symbols beginning with underscore (_)
10746 always_export_symbols_CXX=yes
10747 # Exported symbols can be pulled into shared objects from archives
10748 whole_archive_flag_spec_CXX=' '
10749 archive_cmds_need_lc_CXX=yes
10750 # This is similar to how AIX traditionally builds it's shared libraries.
10751 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'
10755 chorus*)
10756 case $cc_basename in
10758 # FIXME: insert proper C++ library support
10759 ld_shlibs_CXX=no
10761 esac
10765 cygwin* | mingw* | pw32*)
10766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10767 # as there is no search path for DLLs.
10768 hardcode_libdir_flag_spec_CXX='-L$libdir'
10769 allow_undefined_flag_CXX=unsupported
10770 always_export_symbols_CXX=no
10771 enable_shared_with_static_runtimes_CXX=yes
10773 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10775 # If the export-symbols file already is a .def file (1st line
10776 # is EXPORTS), use it as is; otherwise, prepend...
10777 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10778 cp $export_symbols $output_objdir/$soname.def;
10779 else
10780 echo EXPORTS > $output_objdir/$soname.def;
10781 cat $export_symbols >> $output_objdir/$soname.def;
10783 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10784 else
10785 ld_shlibs_CXX=no
10788 darwin* | rhapsody*)
10789 case "$host_os" in
10790 rhapsody* | darwin1.[012])
10791 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10793 *) # Darwin 1.3 on
10794 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10795 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10796 else
10797 case ${MACOSX_DEPLOYMENT_TARGET} in
10798 10.[012])
10799 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10801 10.*)
10802 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10804 esac
10807 esac
10808 archive_cmds_need_lc_CXX=no
10809 hardcode_direct_CXX=no
10810 hardcode_automatic_CXX=yes
10811 hardcode_shlibpath_var_CXX=unsupported
10812 whole_archive_flag_spec_CXX=''
10813 link_all_deplibs_CXX=yes
10815 if test "$GXX" = yes ; then
10816 lt_int_apple_cc_single_mod=no
10817 output_verbose_link_cmd='echo'
10818 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10819 lt_int_apple_cc_single_mod=yes
10821 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10822 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10823 else
10824 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10826 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10828 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10829 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10830 else
10831 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10833 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10834 else
10835 case $cc_basename in
10836 xlc*)
10837 output_verbose_link_cmd='echo'
10838 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10839 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10840 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10841 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10842 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10845 ld_shlibs_CXX=no
10847 esac
10851 dgux*)
10852 case $cc_basename in
10853 ec++*)
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10857 ghcx*)
10858 # Green Hills C++ Compiler
10859 # FIXME: insert proper C++ library support
10860 ld_shlibs_CXX=no
10863 # FIXME: insert proper C++ library support
10864 ld_shlibs_CXX=no
10866 esac
10868 freebsd[12]*)
10869 # C++ shared libraries reported to be fairly broken before switch to ELF
10870 ld_shlibs_CXX=no
10872 freebsd-elf*)
10873 archive_cmds_need_lc_CXX=no
10875 freebsd* | kfreebsd*-gnu | dragonfly*)
10876 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10877 # conventions
10878 ld_shlibs_CXX=yes
10880 gnu*)
10882 hpux9*)
10883 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10884 hardcode_libdir_separator_CXX=:
10885 export_dynamic_flag_spec_CXX='${wl}-E'
10886 hardcode_direct_CXX=yes
10887 hardcode_minus_L_CXX=yes # Not in the search PATH,
10888 # but as the default
10889 # location of the library.
10891 case $cc_basename in
10892 CC*)
10893 # FIXME: insert proper C++ library support
10894 ld_shlibs_CXX=no
10896 aCC*)
10897 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'
10898 # Commands to make compiler produce verbose output that lists
10899 # what "hidden" libraries, object files and flags are used when
10900 # linking a shared library.
10902 # There doesn't appear to be a way to prevent this compiler from
10903 # explicitly linking system object files so we need to strip them
10904 # from the output so that they don't get included in the library
10905 # dependencies.
10906 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10909 if test "$GXX" = yes; then
10910 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'
10911 else
10912 # FIXME: insert proper C++ library support
10913 ld_shlibs_CXX=no
10916 esac
10918 hpux10*|hpux11*)
10919 if test $with_gnu_ld = no; then
10920 case "$host_cpu" in
10921 hppa*64*)
10922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10923 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10924 hardcode_libdir_separator_CXX=:
10926 ia64*)
10927 hardcode_libdir_flag_spec_CXX='-L$libdir'
10930 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10931 hardcode_libdir_separator_CXX=:
10932 export_dynamic_flag_spec_CXX='${wl}-E'
10934 esac
10936 case "$host_cpu" in
10937 hppa*64*)
10938 hardcode_direct_CXX=no
10939 hardcode_shlibpath_var_CXX=no
10941 ia64*)
10942 hardcode_direct_CXX=no
10943 hardcode_shlibpath_var_CXX=no
10944 hardcode_minus_L_CXX=yes # Not in the search PATH,
10945 # but as the default
10946 # location of the library.
10949 hardcode_direct_CXX=yes
10950 hardcode_minus_L_CXX=yes # Not in the search PATH,
10951 # but as the default
10952 # location of the library.
10954 esac
10956 case $cc_basename in
10957 CC*)
10958 # FIXME: insert proper C++ library support
10959 ld_shlibs_CXX=no
10961 aCC*)
10962 case "$host_cpu" in
10963 hppa*64*|ia64*)
10964 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10969 esac
10970 # Commands to make compiler produce verbose output that lists
10971 # what "hidden" libraries, object files and flags are used when
10972 # linking a shared library.
10974 # There doesn't appear to be a way to prevent this compiler from
10975 # explicitly linking system object files so we need to strip them
10976 # from the output so that they don't get included in the library
10977 # dependencies.
10978 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10981 if test "$GXX" = yes; then
10982 if test $with_gnu_ld = no; then
10983 case "$host_cpu" in
10984 ia64*|hppa*64*)
10985 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10988 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'
10990 esac
10992 else
10993 # FIXME: insert proper C++ library support
10994 ld_shlibs_CXX=no
10997 esac
10999 irix5* | irix6*)
11000 case $cc_basename in
11001 CC*)
11002 # SGI C++
11003 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11005 # Archives containing C++ object files must be created using
11006 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11007 # necessary to make sure instantiated templates are included
11008 # in the archive.
11009 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11012 if test "$GXX" = yes; then
11013 if test "$with_gnu_ld" = no; then
11014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11015 else
11016 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11019 link_all_deplibs_CXX=yes
11021 esac
11022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11023 hardcode_libdir_separator_CXX=:
11025 linux*)
11026 case $cc_basename in
11027 KCC*)
11028 # Kuck and Associates, Inc. (KAI) C++ Compiler
11030 # KCC will only create a shared library if the output file
11031 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11032 # to its proper name (with version) after linking.
11033 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11034 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11035 # Commands to make compiler produce verbose output that lists
11036 # what "hidden" libraries, object files and flags are used when
11037 # linking a shared library.
11039 # There doesn't appear to be a way to prevent this compiler from
11040 # explicitly linking system object files so we need to strip them
11041 # from the output so that they don't get included in the library
11042 # dependencies.
11043 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11045 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048 # Archives containing C++ object files must be created using
11049 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11050 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11052 icpc*)
11053 # Intel C++
11054 with_gnu_ld=yes
11055 # version 8.0 and above of icpc choke on multiply defined symbols
11056 # if we add $predep_objects and $postdep_objects, however 7.1 and
11057 # earlier do not add the objects themselves.
11058 case `$CC -V 2>&1` in
11059 *"Version 7."*)
11060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11061 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11063 *) # Version 8.0 or newer
11064 tmp_idyn=
11065 case $host_cpu in
11066 ia64*) tmp_idyn=' -i_dynamic';;
11067 esac
11068 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11071 esac
11072 archive_cmds_need_lc_CXX=no
11073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11074 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11075 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11077 pgCC*)
11078 # Portland Group C++ compiler
11079 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11080 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11082 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11084 whole_archive_flag_spec_CXX=''
11086 cxx*)
11087 # Compaq C++
11088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089 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'
11091 runpath_var=LD_RUN_PATH
11092 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11093 hardcode_libdir_separator_CXX=:
11095 # Commands to make compiler produce verbose output that lists
11096 # what "hidden" libraries, object files and flags are used when
11097 # linking a shared library.
11099 # There doesn't appear to be a way to prevent this compiler from
11100 # explicitly linking system object files so we need to strip them
11101 # from the output so that they don't get included in the library
11102 # dependencies.
11103 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'
11105 esac
11107 lynxos*)
11108 # FIXME: insert proper C++ library support
11109 ld_shlibs_CXX=no
11111 m88k*)
11112 # FIXME: insert proper C++ library support
11113 ld_shlibs_CXX=no
11115 mvs*)
11116 case $cc_basename in
11117 cxx*)
11118 # FIXME: insert proper C++ library support
11119 ld_shlibs_CXX=no
11122 # FIXME: insert proper C++ library support
11123 ld_shlibs_CXX=no
11125 esac
11127 netbsd*)
11128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11129 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11130 wlarc=
11131 hardcode_libdir_flag_spec_CXX='-R$libdir'
11132 hardcode_direct_CXX=yes
11133 hardcode_shlibpath_var_CXX=no
11135 # Workaround some broken pre-1.5 toolchains
11136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11138 openbsd2*)
11139 # C++ shared libraries are fairly broken
11140 ld_shlibs_CXX=no
11142 openbsd*)
11143 hardcode_direct_CXX=yes
11144 hardcode_shlibpath_var_CXX=no
11145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11149 export_dynamic_flag_spec_CXX='${wl}-E'
11150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11152 output_verbose_link_cmd='echo'
11154 osf3*)
11155 case $cc_basename in
11156 KCC*)
11157 # Kuck and Associates, Inc. (KAI) C++ Compiler
11159 # KCC will only create a shared library if the output file
11160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11161 # to its proper name (with version) after linking.
11162 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11165 hardcode_libdir_separator_CXX=:
11167 # Archives containing C++ object files must be created using
11168 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11169 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11172 RCC*)
11173 # Rational C++ 2.4.1
11174 # FIXME: insert proper C++ library support
11175 ld_shlibs_CXX=no
11177 cxx*)
11178 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11179 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11182 hardcode_libdir_separator_CXX=:
11184 # Commands to make compiler produce verbose output that lists
11185 # what "hidden" libraries, object files and flags are used when
11186 # linking a shared library.
11188 # There doesn't appear to be a way to prevent this compiler from
11189 # explicitly linking system object files so we need to strip them
11190 # from the output so that they don't get included in the library
11191 # dependencies.
11192 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'
11195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11197 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11200 hardcode_libdir_separator_CXX=:
11202 # Commands to make compiler produce verbose output that lists
11203 # what "hidden" libraries, object files and flags are used when
11204 # linking a shared library.
11205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207 else
11208 # FIXME: insert proper C++ library support
11209 ld_shlibs_CXX=no
11212 esac
11214 osf4* | osf5*)
11215 case $cc_basename in
11216 KCC*)
11217 # Kuck and Associates, Inc. (KAI) C++ Compiler
11219 # KCC will only create a shared library if the output file
11220 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11221 # to its proper name (with version) after linking.
11222 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11225 hardcode_libdir_separator_CXX=:
11227 # Archives containing C++ object files must be created using
11228 # the KAI C++ compiler.
11229 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11231 RCC*)
11232 # Rational C++ 2.4.1
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11236 cxx*)
11237 allow_undefined_flag_CXX=' -expect_unresolved \*'
11238 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11239 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11240 echo "-hidden">> $lib.exp~
11241 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11242 $rm $lib.exp'
11244 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11245 hardcode_libdir_separator_CXX=:
11247 # Commands to make compiler produce verbose output that lists
11248 # what "hidden" libraries, object files and flags are used when
11249 # linking a shared library.
11251 # There doesn't appear to be a way to prevent this compiler from
11252 # explicitly linking system object files so we need to strip them
11253 # from the output so that they don't get included in the library
11254 # dependencies.
11255 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'
11258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11260 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11263 hardcode_libdir_separator_CXX=:
11265 # Commands to make compiler produce verbose output that lists
11266 # what "hidden" libraries, object files and flags are used when
11267 # linking a shared library.
11268 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11270 else
11271 # FIXME: insert proper C++ library support
11272 ld_shlibs_CXX=no
11275 esac
11277 psos*)
11278 # FIXME: insert proper C++ library support
11279 ld_shlibs_CXX=no
11281 sco*)
11282 archive_cmds_need_lc_CXX=no
11283 case $cc_basename in
11284 CC*)
11285 # FIXME: insert proper C++ library support
11286 ld_shlibs_CXX=no
11289 # FIXME: insert proper C++ library support
11290 ld_shlibs_CXX=no
11292 esac
11294 sunos4*)
11295 case $cc_basename in
11296 CC*)
11297 # Sun C++ 4.x
11298 # FIXME: insert proper C++ library support
11299 ld_shlibs_CXX=no
11301 lcc*)
11302 # Lucid
11303 # FIXME: insert proper C++ library support
11304 ld_shlibs_CXX=no
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11310 esac
11312 solaris*)
11313 case $cc_basename in
11314 CC*)
11315 # Sun C++ 4.2, 5.x and Centerline C++
11316 no_undefined_flag_CXX=' -zdefs'
11317 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11319 $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'
11321 hardcode_libdir_flag_spec_CXX='-R$libdir'
11322 hardcode_shlibpath_var_CXX=no
11323 case $host_os in
11324 solaris2.[0-5] | solaris2.[0-5].*) ;;
11326 # The C++ compiler is used as linker so we must use $wl
11327 # flag to pass the commands to the underlying system
11328 # linker. We must also pass each convience library through
11329 # to the system linker between allextract/defaultextract.
11330 # The C++ compiler will combine linker options so we
11331 # cannot just pass the convience library names through
11332 # without $wl.
11333 # Supported since Solaris 2.6 (maybe 2.5.1?)
11334 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11336 esac
11337 link_all_deplibs_CXX=yes
11339 # Commands to make compiler produce verbose output that lists
11340 # what "hidden" libraries, object files and flags are used when
11341 # linking a shared library.
11343 # There doesn't appear to be a way to prevent this compiler from
11344 # explicitly linking system object files so we need to strip them
11345 # from the output so that they don't get included in the library
11346 # dependencies.
11347 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11349 # Archives containing C++ object files must be created using
11350 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11351 # necessary to make sure instantiated templates are included
11352 # in the archive.
11353 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11355 gcx*)
11356 # Green Hills C++ Compiler
11357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359 # The C++ compiler must be used to create the archive.
11360 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11363 # GNU C++ compiler with Solaris linker
11364 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11365 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11366 if $CC --version | grep -v '^2\.7' > /dev/null; then
11367 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11368 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11369 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11371 # Commands to make compiler produce verbose output that lists
11372 # what "hidden" libraries, object files and flags are used when
11373 # linking a shared library.
11374 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11375 else
11376 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11377 # platform.
11378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11382 # Commands to make compiler produce verbose output that lists
11383 # what "hidden" libraries, object files and flags are used when
11384 # linking a shared library.
11385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11388 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11391 esac
11393 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11394 archive_cmds_need_lc_CXX=no
11396 tandem*)
11397 case $cc_basename in
11398 NCC*)
11399 # NonStop-UX NCC 3.20
11400 # FIXME: insert proper C++ library support
11401 ld_shlibs_CXX=no
11404 # FIXME: insert proper C++ library support
11405 ld_shlibs_CXX=no
11407 esac
11409 vxworks*)
11410 # FIXME: insert proper C++ library support
11411 ld_shlibs_CXX=no
11414 # FIXME: insert proper C++ library support
11415 ld_shlibs_CXX=no
11417 esac
11418 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11419 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11420 test "$ld_shlibs_CXX" = no && can_build_shared=no
11422 GCC_CXX="$GXX"
11423 LD_CXX="$LD"
11425 ## CAVEAT EMPTOR:
11426 ## There is no encapsulation within the following macros, do not change
11427 ## the running order or otherwise move them around unless you know exactly
11428 ## what you are doing...
11430 cat > conftest.$ac_ext <<EOF
11431 class Foo
11433 public:
11434 Foo (void) { a = 0; }
11435 private:
11436 int a;
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; then
11445 # Parse the compiler output and extract the necessary
11446 # objects, libraries and library flags.
11448 # Sentinel used to keep track of whether or not we are before
11449 # the conftest object file.
11450 pre_test_object_deps_done=no
11452 # The `*' in the case matches for architectures that use `case' in
11453 # $output_verbose_cmd can trigger glob expansion during the loop
11454 # eval without this substitution.
11455 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11457 for p in `eval $output_verbose_link_cmd`; do
11458 case $p in
11460 -L* | -R* | -l*)
11461 # Some compilers place space between "-{L,R}" and the path.
11462 # Remove the space.
11463 if test $p = "-L" \
11464 || test $p = "-R"; then
11465 prev=$p
11466 continue
11467 else
11468 prev=
11471 if test "$pre_test_object_deps_done" = no; then
11472 case $p in
11473 -L* | -R*)
11474 # Internal compiler library paths should come after those
11475 # provided the user. The postdeps already come after the
11476 # user supplied libs so there is no need to process them.
11477 if test -z "$compiler_lib_search_path_CXX"; then
11478 compiler_lib_search_path_CXX="${prev}${p}"
11479 else
11480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11483 # The "-l" case would never come before the object being
11484 # linked, so don't bother handling this case.
11485 esac
11486 else
11487 if test -z "$postdeps_CXX"; then
11488 postdeps_CXX="${prev}${p}"
11489 else
11490 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11495 *.$objext)
11496 # This assumes that the test object file only shows up
11497 # once in the compiler output.
11498 if test "$p" = "conftest.$objext"; then
11499 pre_test_object_deps_done=yes
11500 continue
11503 if test "$pre_test_object_deps_done" = no; then
11504 if test -z "$predep_objects_CXX"; then
11505 predep_objects_CXX="$p"
11506 else
11507 predep_objects_CXX="$predep_objects_CXX $p"
11509 else
11510 if test -z "$postdep_objects_CXX"; then
11511 postdep_objects_CXX="$p"
11512 else
11513 postdep_objects_CXX="$postdep_objects_CXX $p"
11518 *) ;; # Ignore the rest.
11520 esac
11521 done
11523 # Clean up.
11524 rm -f a.out a.exe
11525 else
11526 echo "libtool.m4: error: problem compiling CXX test program"
11529 $rm -f confest.$objext
11531 case " $postdeps_CXX " in
11532 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11533 esac
11535 lt_prog_compiler_wl_CXX=
11536 lt_prog_compiler_pic_CXX=
11537 lt_prog_compiler_static_CXX=
11539 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11540 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11542 # C++ specific cases for pic, static, wl, etc.
11543 if test "$GXX" = yes; then
11544 lt_prog_compiler_wl_CXX='-Wl,'
11545 lt_prog_compiler_static_CXX='-static'
11547 case $host_os in
11548 aix*)
11549 # All AIX code is PIC.
11550 if test "$host_cpu" = ia64; then
11551 # AIX 5 now supports IA64 processor
11552 lt_prog_compiler_static_CXX='-Bstatic'
11555 amigaos*)
11556 # FIXME: we need at least 68020 code to build shared libraries, but
11557 # adding the `-m68020' flag to GCC prevents building anything better,
11558 # like `-m68040'.
11559 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11561 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11562 # PIC is the default for these OSes.
11564 mingw* | os2* | pw32*)
11565 # This hack is so that the source file can tell whether it is being
11566 # built for inclusion in a dll (and should export symbols for example).
11567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11569 darwin* | rhapsody*)
11570 # PIC is the default on this platform
11571 # Common symbols not allowed in MH_DYLIB files
11572 lt_prog_compiler_pic_CXX='-fno-common'
11574 *djgpp*)
11575 # DJGPP does not support shared libraries at all
11576 lt_prog_compiler_pic_CXX=
11578 sysv4*MP*)
11579 if test -d /usr/nec; then
11580 lt_prog_compiler_pic_CXX=-Kconform_pic
11583 hpux*)
11584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11585 # not for PA HP-UX.
11586 case "$host_cpu" in
11587 hppa*64*|ia64*)
11590 lt_prog_compiler_pic_CXX='-fPIC'
11592 esac
11595 lt_prog_compiler_pic_CXX='-fPIC'
11597 esac
11598 else
11599 case $host_os in
11600 aix4* | aix5*)
11601 # All AIX code is PIC.
11602 if test "$host_cpu" = ia64; then
11603 # AIX 5 now supports IA64 processor
11604 lt_prog_compiler_static_CXX='-Bstatic'
11605 else
11606 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11609 chorus*)
11610 case $cc_basename in
11611 cxch68*)
11612 # Green Hills C++ Compiler
11613 # _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"
11615 esac
11617 darwin*)
11618 # PIC is the default on this platform
11619 # Common symbols not allowed in MH_DYLIB files
11620 case $cc_basename in
11621 xlc*)
11622 lt_prog_compiler_pic_CXX='-qnocommon'
11623 lt_prog_compiler_wl_CXX='-Wl,'
11625 esac
11627 dgux*)
11628 case $cc_basename in
11629 ec++*)
11630 lt_prog_compiler_pic_CXX='-KPIC'
11632 ghcx*)
11633 # Green Hills C++ Compiler
11634 lt_prog_compiler_pic_CXX='-pic'
11638 esac
11640 freebsd* | kfreebsd*-gnu | dragonfly*)
11641 # FreeBSD uses GNU C++
11643 hpux9* | hpux10* | hpux11*)
11644 case $cc_basename in
11645 CC*)
11646 lt_prog_compiler_wl_CXX='-Wl,'
11647 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11648 if test "$host_cpu" != ia64; then
11649 lt_prog_compiler_pic_CXX='+Z'
11652 aCC*)
11653 lt_prog_compiler_wl_CXX='-Wl,'
11654 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11655 case "$host_cpu" in
11656 hppa*64*|ia64*)
11657 # +Z the default
11660 lt_prog_compiler_pic_CXX='+Z'
11662 esac
11666 esac
11668 irix5* | irix6* | nonstopux*)
11669 case $cc_basename in
11670 CC*)
11671 lt_prog_compiler_wl_CXX='-Wl,'
11672 lt_prog_compiler_static_CXX='-non_shared'
11673 # CC pic flag -KPIC is the default.
11677 esac
11679 linux*)
11680 case $cc_basename in
11681 KCC*)
11682 # KAI C++ Compiler
11683 lt_prog_compiler_wl_CXX='--backend -Wl,'
11684 lt_prog_compiler_pic_CXX='-fPIC'
11686 icpc* | ecpc*)
11687 # Intel C++
11688 lt_prog_compiler_wl_CXX='-Wl,'
11689 lt_prog_compiler_pic_CXX='-KPIC'
11690 lt_prog_compiler_static_CXX='-static'
11692 pgCC*)
11693 # Portland Group C++ compiler.
11694 lt_prog_compiler_wl_CXX='-Wl,'
11695 lt_prog_compiler_pic_CXX='-fpic'
11696 lt_prog_compiler_static_CXX='-static'
11698 cxx*)
11699 # Compaq C++
11700 # Make sure the PIC flag is empty. It appears that all Alpha
11701 # Linux and Compaq Tru64 Unix objects are PIC.
11702 lt_prog_compiler_pic_CXX=
11703 lt_prog_compiler_static_CXX='-non_shared'
11707 esac
11709 lynxos*)
11711 m88k*)
11713 mvs*)
11714 case $cc_basename in
11715 cxx*)
11716 lt_prog_compiler_pic_CXX='-W c,exportall'
11720 esac
11722 netbsd*)
11724 osf3* | osf4* | osf5*)
11725 case $cc_basename in
11726 KCC*)
11727 lt_prog_compiler_wl_CXX='--backend -Wl,'
11729 RCC*)
11730 # Rational C++ 2.4.1
11731 lt_prog_compiler_pic_CXX='-pic'
11733 cxx*)
11734 # Digital/Compaq C++
11735 lt_prog_compiler_wl_CXX='-Wl,'
11736 # Make sure the PIC flag is empty. It appears that all Alpha
11737 # Linux and Compaq Tru64 Unix objects are PIC.
11738 lt_prog_compiler_pic_CXX=
11739 lt_prog_compiler_static_CXX='-non_shared'
11743 esac
11745 psos*)
11747 sco*)
11748 case $cc_basename in
11749 CC*)
11750 lt_prog_compiler_pic_CXX='-fPIC'
11754 esac
11756 solaris*)
11757 case $cc_basename in
11758 CC*)
11759 # Sun C++ 4.2, 5.x and Centerline C++
11760 lt_prog_compiler_pic_CXX='-KPIC'
11761 lt_prog_compiler_static_CXX='-Bstatic'
11762 lt_prog_compiler_wl_CXX='-Qoption ld '
11764 gcx*)
11765 # Green Hills C++ Compiler
11766 lt_prog_compiler_pic_CXX='-PIC'
11770 esac
11772 sunos4*)
11773 case $cc_basename in
11774 CC*)
11775 # Sun C++ 4.x
11776 lt_prog_compiler_pic_CXX='-pic'
11777 lt_prog_compiler_static_CXX='-Bstatic'
11779 lcc*)
11780 # Lucid
11781 lt_prog_compiler_pic_CXX='-pic'
11785 esac
11787 tandem*)
11788 case $cc_basename in
11789 NCC*)
11790 # NonStop-UX NCC 3.20
11791 lt_prog_compiler_pic_CXX='-KPIC'
11795 esac
11797 unixware*)
11799 vxworks*)
11802 lt_prog_compiler_can_build_shared_CXX=no
11804 esac
11807 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11808 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11811 # Check to make sure the PIC flag actually works.
11813 if test -n "$lt_prog_compiler_pic_CXX"; then
11815 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11816 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11817 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 lt_prog_compiler_pic_works_CXX=no
11821 ac_outfile=conftest.$ac_objext
11822 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11823 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11824 # Insert the option either (1) after the last *FLAGS variable, or
11825 # (2) before a word containing "conftest.", or (3) at the end.
11826 # Note that $ac_compile itself does not contain backslashes and begins
11827 # with a dollar sign (not a hyphen), so the echo should work correctly.
11828 # The option is referenced via a variable to avoid confusing sed.
11829 lt_compile=`echo "$ac_compile" | $SED \
11830 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11832 -e 's:$: $lt_compiler_flag:'`
11833 (eval echo "\"\$as_me:11833: $lt_compile\"" >&5)
11834 (eval "$lt_compile" 2>conftest.err)
11835 ac_status=$?
11836 cat conftest.err >&5
11837 echo "$as_me:11837: \$? = $ac_status" >&5
11838 if (exit $ac_status) && test -s "$ac_outfile"; then
11839 # The compiler can only warn and ignore the option if not recognized
11840 # So say no if there are warnings other than the usual output.
11841 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11842 $SED '/^$/d' conftest.err >conftest.er2
11843 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11844 lt_prog_compiler_pic_works_CXX=yes
11847 $rm conftest*
11850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11851 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11853 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11854 case $lt_prog_compiler_pic_CXX in
11855 "" | " "*) ;;
11856 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11857 esac
11858 else
11859 lt_prog_compiler_pic_CXX=
11860 lt_prog_compiler_can_build_shared_CXX=no
11864 case "$host_os" in
11865 # For platforms which do not support PIC, -DPIC is meaningless:
11866 *djgpp*)
11867 lt_prog_compiler_pic_CXX=
11870 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11872 esac
11874 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879 lt_cv_prog_compiler_c_o_CXX=no
11880 $rm -r conftest 2>/dev/null
11881 mkdir conftest
11882 cd conftest
11883 mkdir out
11884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11886 lt_compiler_flag="-o out/conftest2.$ac_objext"
11887 # Insert the option either (1) after the last *FLAGS variable, or
11888 # (2) before a word containing "conftest.", or (3) at the end.
11889 # Note that $ac_compile itself does not contain backslashes and begins
11890 # with a dollar sign (not a hyphen), so the echo should work correctly.
11891 lt_compile=`echo "$ac_compile" | $SED \
11892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11894 -e 's:$: $lt_compiler_flag:'`
11895 (eval echo "\"\$as_me:11895: $lt_compile\"" >&5)
11896 (eval "$lt_compile" 2>out/conftest.err)
11897 ac_status=$?
11898 cat out/conftest.err >&5
11899 echo "$as_me:11899: \$? = $ac_status" >&5
11900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11901 then
11902 # The compiler can only warn and ignore the option if not recognized
11903 # So say no if there are warnings
11904 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11905 $SED '/^$/d' out/conftest.err >out/conftest.er2
11906 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11907 lt_cv_prog_compiler_c_o_CXX=yes
11910 chmod u+w .
11911 $rm conftest*
11912 # SGI C++ compiler will create directory out/ii_files/ for
11913 # template instantiation
11914 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11915 $rm out/* && rmdir out
11916 cd ..
11917 rmdir conftest
11918 $rm conftest*
11921 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11925 hard_links="nottested"
11926 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11927 # do not overwrite the value of need_locks provided by the user
11928 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11929 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11930 hard_links=yes
11931 $rm conftest*
11932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11933 touch conftest.a
11934 ln conftest.a conftest.b 2>&5 || hard_links=no
11935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11936 echo "$as_me:$LINENO: result: $hard_links" >&5
11937 echo "${ECHO_T}$hard_links" >&6
11938 if test "$hard_links" = no; then
11939 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11940 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11941 need_locks=warn
11943 else
11944 need_locks=no
11947 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11948 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11951 case $host_os in
11952 aix4* | aix5*)
11953 # If we're using GNU nm, then we don't want the "-C" option.
11954 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11955 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11956 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'
11957 else
11958 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'
11961 pw32*)
11962 export_symbols_cmds_CXX="$ltdll_cmds"
11964 cygwin* | mingw*)
11965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11970 esac
11972 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11973 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11974 test "$ld_shlibs_CXX" = no && can_build_shared=no
11976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11977 if test "$GCC" = yes; then
11978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11982 # Do we need to explicitly link libc?
11984 case "x$archive_cmds_need_lc_CXX" in
11985 x|xyes)
11986 # Assume -lc should be added
11987 archive_cmds_need_lc_CXX=yes
11989 if test "$enable_shared" = yes && test "$GCC" = yes; then
11990 case $archive_cmds_CXX in
11991 *'~'*)
11992 # FIXME: we may have to deal with multi-command sequences.
11994 '$CC '*)
11995 # Test whether the compiler implicitly links with -lc since on some
11996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11997 # to ld, don't add -lc before -lgcc.
11998 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11999 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12000 $rm conftest*
12001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004 (eval $ac_compile) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } 2>conftest.err; then
12008 soname=conftest
12009 lib=conftest
12010 libobjs=conftest.$ac_objext
12011 deplibs=
12012 wl=$lt_prog_compiler_wl_CXX
12013 compiler_flags=-v
12014 linker_flags=-v
12015 verstring=
12016 output_objdir=.
12017 libname=conftest
12018 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12019 allow_undefined_flag_CXX=
12020 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12021 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }
12025 then
12026 archive_cmds_need_lc_CXX=no
12027 else
12028 archive_cmds_need_lc_CXX=yes
12030 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12031 else
12032 cat conftest.err 1>&5
12034 $rm conftest*
12035 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12036 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12038 esac
12041 esac
12043 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12044 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12045 library_names_spec=
12046 libname_spec='lib$name'
12047 soname_spec=
12048 shrext_cmds=".so"
12049 postinstall_cmds=
12050 postuninstall_cmds=
12051 finish_cmds=
12052 finish_eval=
12053 shlibpath_var=
12054 shlibpath_overrides_runpath=unknown
12055 version_type=none
12056 dynamic_linker="$host_os ld.so"
12057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12058 if test "$GCC" = yes; then
12059 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12060 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12061 # if the path contains ";" then we assume it to be the separator
12062 # otherwise default to the standard path separator (i.e. ":") - it is
12063 # assumed that no part of a normal pathname contains ";" but that should
12064 # okay in the real world where ";" in dirpaths is itself problematic.
12065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12066 else
12067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12069 else
12070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12072 need_lib_prefix=unknown
12073 hardcode_into_libs=no
12075 # when you set need_version to no, make sure it does not cause -set_version
12076 # flags to be left without arguments
12077 need_version=unknown
12079 case $host_os in
12080 aix3*)
12081 version_type=linux
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12083 shlibpath_var=LIBPATH
12085 # AIX 3 has no versioning support, so we append a major version to the name.
12086 soname_spec='${libname}${release}${shared_ext}$major'
12089 aix4* | aix5*)
12090 version_type=linux
12091 need_lib_prefix=no
12092 need_version=no
12093 hardcode_into_libs=yes
12094 if test "$host_cpu" = ia64; then
12095 # AIX 5 supports IA64
12096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 else
12099 # With GCC up to 2.95.x, collect2 would create an import file
12100 # for dependence libraries. The import file would start with
12101 # the line `#! .'. This would cause the generated library to
12102 # depend on `.', always an invalid library. This was fixed in
12103 # development snapshots of GCC prior to 3.0.
12104 case $host_os in
12105 aix4 | aix4.[01] | aix4.[01].*)
12106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12107 echo ' yes '
12108 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12110 else
12111 can_build_shared=no
12114 esac
12115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12116 # soname into executable. Probably we can add versioning support to
12117 # collect2, so additional links can be useful in future.
12118 if test "$aix_use_runtimelinking" = yes; then
12119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12120 # instead of lib<name>.a to let people know that these are not
12121 # typical AIX shared libraries.
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 else
12124 # We preserve .a as extension for shared libraries through AIX4.2
12125 # and later when we are not doing run time linking.
12126 library_names_spec='${libname}${release}.a $libname.a'
12127 soname_spec='${libname}${release}${shared_ext}$major'
12129 shlibpath_var=LIBPATH
12133 amigaos*)
12134 library_names_spec='$libname.ixlibrary $libname.a'
12135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12136 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'
12139 beos*)
12140 library_names_spec='${libname}${shared_ext}'
12141 dynamic_linker="$host_os ld.so"
12142 shlibpath_var=LIBRARY_PATH
12145 bsdi[45]*)
12146 version_type=linux
12147 need_version=no
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12154 # the default ld.so.conf also contains /usr/contrib/lib and
12155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12156 # libtool to hard-code these into programs
12159 cygwin* | mingw* | pw32*)
12160 version_type=windows
12161 shrext_cmds=".dll"
12162 need_version=no
12163 need_lib_prefix=no
12165 case $GCC,$host_os in
12166 yes,cygwin* | yes,mingw* | yes,pw32*)
12167 library_names_spec='$libname.dll.a'
12168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12169 postinstall_cmds='base_file=`basename \${file}`~
12170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12171 dldir=$destdir/`dirname \$dlpath`~
12172 test -d \$dldir || mkdir -p \$dldir~
12173 $install_prog $dir/$dlname \$dldir/$dlname'
12174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12175 dlpath=$dir/\$dldll~
12176 $rm \$dlpath'
12177 shlibpath_overrides_runpath=yes
12179 case $host_os in
12180 cygwin*)
12181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12183 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12185 mingw*)
12186 # MinGW DLLs use traditional 'lib' prefix
12187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12189 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12190 # It is most probably a Windows format PATH printed by
12191 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12192 # path with ; separators, and with drive letters. We can handle the
12193 # drive letters (cygwin fileutils understands them), so leave them,
12194 # especially as we might pass files found there to a mingw objdump,
12195 # which wouldn't understand a cygwinified path. Ahh.
12196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12197 else
12198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12201 pw32*)
12202 # pw32 DLLs use 'pw' prefix rather than 'lib'
12203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12205 esac
12209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12211 esac
12212 dynamic_linker='Win32 ld.exe'
12213 # FIXME: first we should search . and the directory the executable is in
12214 shlibpath_var=PATH
12217 darwin* | rhapsody*)
12218 dynamic_linker="$host_os dyld"
12219 version_type=darwin
12220 need_lib_prefix=no
12221 need_version=no
12222 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12223 soname_spec='${libname}${release}${major}$shared_ext'
12224 shlibpath_overrides_runpath=yes
12225 shlibpath_var=DYLD_LIBRARY_PATH
12226 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12227 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12228 if test "$GCC" = yes; then
12229 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12230 else
12231 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12236 dgux*)
12237 version_type=linux
12238 need_lib_prefix=no
12239 need_version=no
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12245 freebsd1*)
12246 dynamic_linker=no
12249 kfreebsd*-gnu)
12250 version_type=linux
12251 need_lib_prefix=no
12252 need_version=no
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12254 soname_spec='${libname}${release}${shared_ext}$major'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 hardcode_into_libs=yes
12258 dynamic_linker='GNU ld.so'
12261 freebsd* | dragonfly*)
12262 # DragonFly does not have aout. When/if they implement a new
12263 # versioning mechanism, adjust this.
12264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12265 version_type=freebsd-$objformat
12266 case $version_type in
12267 freebsd-elf*)
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12269 need_version=no
12270 need_lib_prefix=no
12272 freebsd-*)
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12274 need_version=yes
12276 esac
12277 shlibpath_var=LD_LIBRARY_PATH
12278 case $host_os in
12279 freebsd2*)
12280 shlibpath_overrides_runpath=yes
12282 freebsd3.[01]* | freebsdelf3.[01]*)
12283 shlibpath_overrides_runpath=yes
12284 hardcode_into_libs=yes
12286 *) # from 3.2 on
12287 shlibpath_overrides_runpath=no
12288 hardcode_into_libs=yes
12290 esac
12293 gnu*)
12294 version_type=linux
12295 need_lib_prefix=no
12296 need_version=no
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12298 soname_spec='${libname}${release}${shared_ext}$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 hardcode_into_libs=yes
12303 hpux9* | hpux10* | hpux11*)
12304 # Give a soname corresponding to the major version so that dld.sl refuses to
12305 # link against other versions.
12306 version_type=sunos
12307 need_lib_prefix=no
12308 need_version=no
12309 case "$host_cpu" in
12310 ia64*)
12311 shrext_cmds='.so'
12312 hardcode_into_libs=yes
12313 dynamic_linker="$host_os dld.so"
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317 soname_spec='${libname}${release}${shared_ext}$major'
12318 if test "X$HPUX_IA64_MODE" = X32; then
12319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12320 else
12321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12325 hppa*64*)
12326 shrext_cmds='.sl'
12327 hardcode_into_libs=yes
12328 dynamic_linker="$host_os dld.sl"
12329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12337 shrext_cmds='.sl'
12338 dynamic_linker="$host_os dld.sl"
12339 shlibpath_var=SHLIB_PATH
12340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342 soname_spec='${libname}${release}${shared_ext}$major'
12344 esac
12345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12346 postinstall_cmds='chmod 555 $lib'
12349 irix5* | irix6* | nonstopux*)
12350 case $host_os in
12351 nonstopux*) version_type=nonstopux ;;
12353 if test "$lt_cv_prog_gnu_ld" = yes; then
12354 version_type=linux
12355 else
12356 version_type=irix
12357 fi ;;
12358 esac
12359 need_lib_prefix=no
12360 need_version=no
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12363 case $host_os in
12364 irix5* | nonstopux*)
12365 libsuff= shlibsuff=
12368 case $LD in # libtool.m4 will add one of these switches to LD
12369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12370 libsuff= shlibsuff= libmagic=32-bit;;
12371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12372 libsuff=32 shlibsuff=N32 libmagic=N32;;
12373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12375 *) libsuff= shlibsuff= libmagic=never-match;;
12376 esac
12378 esac
12379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12380 shlibpath_overrides_runpath=no
12381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12383 hardcode_into_libs=yes
12386 # No shared lib support for Linux oldld, aout, or coff.
12387 linux*oldld* | linux*aout* | linux*coff*)
12388 dynamic_linker=no
12391 # This must be Linux ELF.
12392 linux*)
12393 version_type=linux
12394 need_lib_prefix=no
12395 need_version=no
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397 soname_spec='${libname}${release}${shared_ext}$major'
12398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12399 shlibpath_var=LD_LIBRARY_PATH
12400 shlibpath_overrides_runpath=no
12401 # This implies no fast_install, which is unacceptable.
12402 # Some rework will be needed to allow for fast_install
12403 # before this can be enabled.
12404 hardcode_into_libs=yes
12406 # find out which ABI we are using
12407 libsuff=
12408 case "$host_cpu" in
12409 x86_64*|s390x*|powerpc64*)
12410 echo '#line 12410 "configure"' > conftest.$ac_ext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412 (eval $ac_compile) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; then
12416 case `/usr/bin/file conftest.$ac_objext` in
12417 *64-bit*)
12418 libsuff=64
12419 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12421 esac
12423 rm -rf conftest*
12425 esac
12427 # Append ld.so.conf contents to the search path
12428 if test -f /etc/ld.so.conf; then
12429 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12430 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12433 # We used to test for /lib/ld.so.1 and disable shared libraries on
12434 # powerpc, because MkLinux only supported shared libraries with the
12435 # GNU dynamic linker. Since this was broken with cross compilers,
12436 # most powerpc-linux boxes support dynamic linking these days and
12437 # people can always --disable-shared, the test was removed, and we
12438 # assume the GNU/Linux dynamic linker is in use.
12439 dynamic_linker='GNU/Linux ld.so'
12442 knetbsd*-gnu)
12443 version_type=linux
12444 need_lib_prefix=no
12445 need_version=no
12446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12447 soname_spec='${libname}${release}${shared_ext}$major'
12448 shlibpath_var=LD_LIBRARY_PATH
12449 shlibpath_overrides_runpath=no
12450 hardcode_into_libs=yes
12451 dynamic_linker='GNU ld.so'
12454 netbsd*)
12455 version_type=sunos
12456 need_lib_prefix=no
12457 need_version=no
12458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12461 dynamic_linker='NetBSD (a.out) ld.so'
12462 else
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12464 soname_spec='${libname}${release}${shared_ext}$major'
12465 dynamic_linker='NetBSD ld.elf_so'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=yes
12469 hardcode_into_libs=yes
12472 newsos6)
12473 version_type=linux
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath=yes
12479 nto-qnx*)
12480 version_type=linux
12481 need_lib_prefix=no
12482 need_version=no
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=yes
12489 openbsd*)
12490 version_type=sunos
12491 need_lib_prefix=no
12492 need_version=no
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12497 case $host_os in
12498 openbsd2.[89] | openbsd2.[89].*)
12499 shlibpath_overrides_runpath=no
12502 shlibpath_overrides_runpath=yes
12504 esac
12505 else
12506 shlibpath_overrides_runpath=yes
12510 os2*)
12511 libname_spec='$name'
12512 shrext_cmds=".dll"
12513 need_lib_prefix=no
12514 library_names_spec='$libname${shared_ext} $libname.a'
12515 dynamic_linker='OS/2 ld.exe'
12516 shlibpath_var=LIBPATH
12519 osf3* | osf4* | osf5*)
12520 version_type=osf
12521 need_lib_prefix=no
12522 need_version=no
12523 soname_spec='${libname}${release}${shared_ext}$major'
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12530 sco3.2v5*)
12531 version_type=osf
12532 soname_spec='${libname}${release}${shared_ext}$major'
12533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12534 shlibpath_var=LD_LIBRARY_PATH
12537 solaris*)
12538 version_type=linux
12539 need_lib_prefix=no
12540 need_version=no
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542 soname_spec='${libname}${release}${shared_ext}$major'
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12545 hardcode_into_libs=yes
12546 # ldd complains unless libraries are executable
12547 postinstall_cmds='chmod +x $lib'
12550 sunos4*)
12551 version_type=sunos
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=yes
12556 if test "$with_gnu_ld" = yes; then
12557 need_lib_prefix=no
12559 need_version=yes
12562 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12563 version_type=linux
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 case $host_vendor in
12568 sni)
12569 shlibpath_overrides_runpath=no
12570 need_lib_prefix=no
12571 export_dynamic_flag_spec='${wl}-Blargedynsym'
12572 runpath_var=LD_RUN_PATH
12574 siemens)
12575 need_lib_prefix=no
12577 motorola)
12578 need_lib_prefix=no
12579 need_version=no
12580 shlibpath_overrides_runpath=no
12581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12583 esac
12586 sysv4*MP*)
12587 if test -d /usr/nec ;then
12588 version_type=linux
12589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12590 soname_spec='$libname${shared_ext}.$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12595 uts4*)
12596 version_type=linux
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 soname_spec='${libname}${release}${shared_ext}$major'
12599 shlibpath_var=LD_LIBRARY_PATH
12603 dynamic_linker=no
12605 esac
12606 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12607 echo "${ECHO_T}$dynamic_linker" >&6
12608 test "$dynamic_linker" = no && can_build_shared=no
12610 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12612 hardcode_action_CXX=
12613 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12614 test -n "$runpath_var_CXX" || \
12615 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12617 # We can hardcode non-existant directories.
12618 if test "$hardcode_direct_CXX" != no &&
12619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12620 # have to relink, otherwise we might link with an installed library
12621 # when we should be linking with a yet-to-be-installed one
12622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12623 test "$hardcode_minus_L_CXX" != no; then
12624 # Linking always hardcodes the temporary library directory.
12625 hardcode_action_CXX=relink
12626 else
12627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12628 hardcode_action_CXX=immediate
12630 else
12631 # We cannot hardcode anything, or else we can only hardcode existing
12632 # directories.
12633 hardcode_action_CXX=unsupported
12635 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12636 echo "${ECHO_T}$hardcode_action_CXX" >&6
12638 if test "$hardcode_action_CXX" = relink; then
12639 # Fast installation is not supported
12640 enable_fast_install=no
12641 elif test "$shlibpath_overrides_runpath" = yes ||
12642 test "$enable_shared" = no; then
12643 # Fast installation is not necessary
12644 enable_fast_install=needless
12647 striplib=
12648 old_striplib=
12649 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12650 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12651 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12654 echo "$as_me:$LINENO: result: yes" >&5
12655 echo "${ECHO_T}yes" >&6
12656 else
12657 # FIXME - insert some real tests, host_os isn't really good enough
12658 case $host_os in
12659 darwin*)
12660 if test -n "$STRIP" ; then
12661 striplib="$STRIP -x"
12662 echo "$as_me:$LINENO: result: yes" >&5
12663 echo "${ECHO_T}yes" >&6
12664 else
12665 echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6
12670 echo "$as_me:$LINENO: result: no" >&5
12671 echo "${ECHO_T}no" >&6
12673 esac
12676 if test "x$enable_dlopen" != xyes; then
12677 enable_dlopen=unknown
12678 enable_dlopen_self=unknown
12679 enable_dlopen_self_static=unknown
12680 else
12681 lt_cv_dlopen=no
12682 lt_cv_dlopen_libs=
12684 case $host_os in
12685 beos*)
12686 lt_cv_dlopen="load_add_on"
12687 lt_cv_dlopen_libs=
12688 lt_cv_dlopen_self=yes
12691 mingw* | pw32*)
12692 lt_cv_dlopen="LoadLibrary"
12693 lt_cv_dlopen_libs=
12696 cygwin*)
12697 lt_cv_dlopen="dlopen"
12698 lt_cv_dlopen_libs=
12701 darwin*)
12702 # if libdl is installed we need to link against it
12703 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708 ac_check_lib_save_LIBS=$LIBS
12709 LIBS="-ldl $LIBS"
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12717 /* Override any gcc2 internal prototype to avoid an error. */
12718 #ifdef __cplusplus
12719 extern "C"
12720 #endif
12721 /* We use char because int might match the return type of a gcc2
12722 builtin and then its argument prototype would still apply. */
12723 char dlopen ();
12725 main ()
12727 dlopen ();
12729 return 0;
12731 _ACEOF
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12734 (eval $ac_link) 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_cxx_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try='test -s conftest$ac_exeext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_lib_dl_dlopen=yes
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 ac_cv_lib_dl_dlopen=no
12761 rm -f conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
12763 LIBS=$ac_check_lib_save_LIBS
12765 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12767 if test $ac_cv_lib_dl_dlopen = yes; then
12768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12769 else
12771 lt_cv_dlopen="dyld"
12772 lt_cv_dlopen_libs=
12773 lt_cv_dlopen_self=yes
12780 echo "$as_me:$LINENO: checking for shl_load" >&5
12781 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12782 if test "${ac_cv_func_shl_load+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12793 #define shl_load innocuous_shl_load
12795 /* System header to define __stub macros and hopefully few prototypes,
12796 which can conflict with char shl_load (); below.
12797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12798 <limits.h> exists even on freestanding compilers. */
12800 #ifdef __STDC__
12801 # include <limits.h>
12802 #else
12803 # include <assert.h>
12804 #endif
12806 #undef shl_load
12808 /* Override any gcc2 internal prototype to avoid an error. */
12809 #ifdef __cplusplus
12810 extern "C"
12812 #endif
12813 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12815 char shl_load ();
12816 /* The GNU C library defines this for functions which it implements
12817 to always fail with ENOSYS. Some functions are actually named
12818 something starting with __ and the normal name is an alias. */
12819 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12820 choke me
12821 #else
12822 char (*f) () = shl_load;
12823 #endif
12824 #ifdef __cplusplus
12826 #endif
12829 main ()
12831 return f != shl_load;
12833 return 0;
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_cxx_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_func_shl_load=yes
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_cv_func_shl_load=no
12865 rm -f conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12869 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12870 if test $ac_cv_func_shl_load = yes; then
12871 lt_cv_dlopen="shl_load"
12872 else
12873 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12874 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-ldld $LIBS"
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 /* Override any gcc2 internal prototype to avoid an error. */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char shl_load ();
12895 main ()
12897 shl_load ();
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_cxx_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_dld_shl_load=yes
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 ac_cv_lib_dld_shl_load=no
12931 rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 LIBS=$ac_check_lib_save_LIBS
12935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12936 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12937 if test $ac_cv_lib_dld_shl_load = yes; then
12938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12939 else
12940 echo "$as_me:$LINENO: checking for dlopen" >&5
12941 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12942 if test "${ac_cv_func_dlopen+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12953 #define dlopen innocuous_dlopen
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char dlopen (); below.
12957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12958 <limits.h> exists even on freestanding compilers. */
12960 #ifdef __STDC__
12961 # include <limits.h>
12962 #else
12963 # include <assert.h>
12964 #endif
12966 #undef dlopen
12968 /* Override any gcc2 internal prototype to avoid an error. */
12969 #ifdef __cplusplus
12970 extern "C"
12972 #endif
12973 /* We use char because int might match the return type of a gcc2
12974 builtin and then its argument prototype would still apply. */
12975 char dlopen ();
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12980 choke me
12981 #else
12982 char (*f) () = dlopen;
12983 #endif
12984 #ifdef __cplusplus
12986 #endif
12989 main ()
12991 return f != dlopen;
12993 return 0;
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_cxx_werror_flag"
13006 || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_func_dlopen=yes
13019 else
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_cv_func_dlopen=no
13025 rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13029 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13030 if test $ac_cv_func_dlopen = yes; then
13031 lt_cv_dlopen="dlopen"
13032 else
13033 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038 ac_check_lib_save_LIBS=$LIBS
13039 LIBS="-ldl $LIBS"
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13047 /* Override any gcc2 internal prototype to avoid an error. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 /* We use char because int might match the return type of a gcc2
13052 builtin and then its argument prototype would still apply. */
13053 char dlopen ();
13055 main ()
13057 dlopen ();
13059 return 0;
13061 _ACEOF
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064 (eval $ac_link) 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -z "$ac_cxx_werror_flag"
13072 || test ! -s conftest.err'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084 ac_cv_lib_dl_dlopen=yes
13085 else
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_cv_lib_dl_dlopen=no
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13095 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13096 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13097 if test $ac_cv_lib_dl_dlopen = yes; then
13098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13099 else
13100 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13101 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13102 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-lsvld $LIBS"
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13114 /* Override any gcc2 internal prototype to avoid an error. */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13120 char dlopen ();
13122 main ()
13124 dlopen ();
13126 return 0;
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_cxx_werror_flag"
13139 || test ! -s conftest.err'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_lib_svld_dlopen=yes
13152 else
13153 echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13156 ac_cv_lib_svld_dlopen=no
13158 rm -f conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13163 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13164 if test $ac_cv_lib_svld_dlopen = yes; then
13165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13166 else
13167 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13168 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13169 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ldld $LIBS"
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char dld_link ();
13189 main ()
13191 dld_link ();
13193 return 0;
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_lib_dld_dld_link=yes
13219 else
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_lib_dld_dld_link=no
13225 rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13230 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13231 if test $ac_cv_lib_dld_dld_link = yes; then
13232 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13251 esac
13253 if test "x$lt_cv_dlopen" != xno; then
13254 enable_dlopen=yes
13255 else
13256 enable_dlopen=no
13259 case $lt_cv_dlopen in
13260 dlopen)
13261 save_CPPFLAGS="$CPPFLAGS"
13262 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13264 save_LDFLAGS="$LDFLAGS"
13265 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13267 save_LIBS="$LIBS"
13268 LIBS="$lt_cv_dlopen_libs $LIBS"
13270 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13271 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13272 if test "${lt_cv_dlopen_self+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275 if test "$cross_compiling" = yes; then :
13276 lt_cv_dlopen_self=cross
13277 else
13278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13279 lt_status=$lt_dlunknown
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13281 "configure"
13282 #include "confdefs.h"
13284 #if HAVE_DLFCN_H
13285 #include <dlfcn.h>
13286 #endif
13288 #include <stdio.h>
13290 #ifdef RTLD_GLOBAL
13291 # define LT_DLGLOBAL RTLD_GLOBAL
13292 #else
13293 # ifdef DL_GLOBAL
13294 # define LT_DLGLOBAL DL_GLOBAL
13295 # else
13296 # define LT_DLGLOBAL 0
13297 # endif
13298 #endif
13300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13301 find out it does not work in some platform. */
13302 #ifndef LT_DLLAZY_OR_NOW
13303 # ifdef RTLD_LAZY
13304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13305 # else
13306 # ifdef DL_LAZY
13307 # define LT_DLLAZY_OR_NOW DL_LAZY
13308 # else
13309 # ifdef RTLD_NOW
13310 # define LT_DLLAZY_OR_NOW RTLD_NOW
13311 # else
13312 # ifdef DL_NOW
13313 # define LT_DLLAZY_OR_NOW DL_NOW
13314 # else
13315 # define LT_DLLAZY_OR_NOW 0
13316 # endif
13317 # endif
13318 # endif
13319 # endif
13320 #endif
13322 #ifdef __cplusplus
13323 extern "C" void exit (int);
13324 #endif
13326 void fnord() { int i=42;}
13327 int main ()
13329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13330 int status = $lt_dlunknown;
13332 if (self)
13334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13335 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13336 /* dlclose (self); */
13339 exit (status);
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13347 (./conftest; exit; ) 2>/dev/null
13348 lt_status=$?
13349 case x$lt_status in
13350 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13351 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13352 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13353 esac
13354 else :
13355 # compilation failed
13356 lt_cv_dlopen_self=no
13359 rm -fr conftest*
13363 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13364 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13366 if test "x$lt_cv_dlopen_self" = xyes; then
13367 LDFLAGS="$LDFLAGS $link_static_flag"
13368 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13369 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13370 if test "${lt_cv_dlopen_self_static+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 if test "$cross_compiling" = yes; then :
13374 lt_cv_dlopen_self_static=cross
13375 else
13376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13377 lt_status=$lt_dlunknown
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13379 "configure"
13380 #include "confdefs.h"
13382 #if HAVE_DLFCN_H
13383 #include <dlfcn.h>
13384 #endif
13386 #include <stdio.h>
13388 #ifdef RTLD_GLOBAL
13389 # define LT_DLGLOBAL RTLD_GLOBAL
13390 #else
13391 # ifdef DL_GLOBAL
13392 # define LT_DLGLOBAL DL_GLOBAL
13393 # else
13394 # define LT_DLGLOBAL 0
13395 # endif
13396 #endif
13398 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13399 find out it does not work in some platform. */
13400 #ifndef LT_DLLAZY_OR_NOW
13401 # ifdef RTLD_LAZY
13402 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13403 # else
13404 # ifdef DL_LAZY
13405 # define LT_DLLAZY_OR_NOW DL_LAZY
13406 # else
13407 # ifdef RTLD_NOW
13408 # define LT_DLLAZY_OR_NOW RTLD_NOW
13409 # else
13410 # ifdef DL_NOW
13411 # define LT_DLLAZY_OR_NOW DL_NOW
13412 # else
13413 # define LT_DLLAZY_OR_NOW 0
13414 # endif
13415 # endif
13416 # endif
13417 # endif
13418 #endif
13420 #ifdef __cplusplus
13421 extern "C" void exit (int);
13422 #endif
13424 void fnord() { int i=42;}
13425 int main ()
13427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13428 int status = $lt_dlunknown;
13430 if (self)
13432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13434 /* dlclose (self); */
13437 exit (status);
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13445 (./conftest; exit; ) 2>/dev/null
13446 lt_status=$?
13447 case x$lt_status in
13448 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13449 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13450 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13451 esac
13452 else :
13453 # compilation failed
13454 lt_cv_dlopen_self_static=no
13457 rm -fr conftest*
13461 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13462 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13465 CPPFLAGS="$save_CPPFLAGS"
13466 LDFLAGS="$save_LDFLAGS"
13467 LIBS="$save_LIBS"
13469 esac
13471 case $lt_cv_dlopen_self in
13472 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13473 *) enable_dlopen_self=unknown ;;
13474 esac
13476 case $lt_cv_dlopen_self_static in
13477 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13478 *) enable_dlopen_self_static=unknown ;;
13479 esac
13483 # The else clause should only fire when bootstrapping the
13484 # libtool distribution, otherwise you forgot to ship ltmain.sh
13485 # with your package, and you will get complaints that there are
13486 # no rules to generate ltmain.sh.
13487 if test -f "$ltmain"; then
13488 # See if we are running on zsh, and set the options which allow our commands through
13489 # without removal of \ escapes.
13490 if test -n "${ZSH_VERSION+set}" ; then
13491 setopt NO_GLOB_SUBST
13493 # Now quote all the things that may contain metacharacters while being
13494 # careful not to overquote the AC_SUBSTed values. We take copies of the
13495 # variables and quote the copies for generation of the libtool script.
13496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13497 SED SHELL STRIP \
13498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13500 deplibs_check_method reload_flag reload_cmds need_locks \
13501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13502 lt_cv_sys_global_symbol_to_c_name_address \
13503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13504 old_postinstall_cmds old_postuninstall_cmds \
13505 compiler_CXX \
13506 CC_CXX \
13507 LD_CXX \
13508 lt_prog_compiler_wl_CXX \
13509 lt_prog_compiler_pic_CXX \
13510 lt_prog_compiler_static_CXX \
13511 lt_prog_compiler_no_builtin_flag_CXX \
13512 export_dynamic_flag_spec_CXX \
13513 thread_safe_flag_spec_CXX \
13514 whole_archive_flag_spec_CXX \
13515 enable_shared_with_static_runtimes_CXX \
13516 old_archive_cmds_CXX \
13517 old_archive_from_new_cmds_CXX \
13518 predep_objects_CXX \
13519 postdep_objects_CXX \
13520 predeps_CXX \
13521 postdeps_CXX \
13522 compiler_lib_search_path_CXX \
13523 archive_cmds_CXX \
13524 archive_expsym_cmds_CXX \
13525 postinstall_cmds_CXX \
13526 postuninstall_cmds_CXX \
13527 old_archive_from_expsyms_cmds_CXX \
13528 allow_undefined_flag_CXX \
13529 no_undefined_flag_CXX \
13530 export_symbols_cmds_CXX \
13531 hardcode_libdir_flag_spec_CXX \
13532 hardcode_libdir_flag_spec_ld_CXX \
13533 hardcode_libdir_separator_CXX \
13534 hardcode_automatic_CXX \
13535 module_cmds_CXX \
13536 module_expsym_cmds_CXX \
13537 lt_cv_prog_compiler_c_o_CXX \
13538 exclude_expsyms_CXX \
13539 include_expsyms_CXX; do
13541 case $var in
13542 old_archive_cmds_CXX | \
13543 old_archive_from_new_cmds_CXX | \
13544 archive_cmds_CXX | \
13545 archive_expsym_cmds_CXX | \
13546 module_cmds_CXX | \
13547 module_expsym_cmds_CXX | \
13548 old_archive_from_expsyms_cmds_CXX | \
13549 export_symbols_cmds_CXX | \
13550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13551 postinstall_cmds | postuninstall_cmds | \
13552 old_postinstall_cmds | old_postuninstall_cmds | \
13553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13554 # Double-quote double-evaled strings.
13555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13560 esac
13561 done
13563 case $lt_echo in
13564 *'\$0 --fallback-echo"')
13565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13567 esac
13569 cfgfile="$ofile"
13571 cat <<__EOF__ >> "$cfgfile"
13572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13576 # Shell to use when invoking shell scripts.
13577 SHELL=$lt_SHELL
13579 # Whether or not to build shared libraries.
13580 build_libtool_libs=$enable_shared
13582 # Whether or not to build static libraries.
13583 build_old_libs=$enable_static
13585 # Whether or not to add -lc for building shared libraries.
13586 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13588 # Whether or not to disallow shared libs when runtime libs are static
13589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13591 # Whether or not to optimize for fast installation.
13592 fast_install=$enable_fast_install
13594 # The host system.
13595 host_alias=$host_alias
13596 host=$host
13597 host_os=$host_os
13599 # The build system.
13600 build_alias=$build_alias
13601 build=$build
13602 build_os=$build_os
13604 # An echo program that does not interpret backslashes.
13605 echo=$lt_echo
13607 # The archiver.
13608 AR=$lt_AR
13609 AR_FLAGS=$lt_AR_FLAGS
13611 # A C compiler.
13612 LTCC=$lt_LTCC
13614 # A language-specific compiler.
13615 CC=$lt_compiler_CXX
13617 # Is the compiler the GNU C compiler?
13618 with_gcc=$GCC_CXX
13620 # An ERE matcher.
13621 EGREP=$lt_EGREP
13623 # The linker used to build libraries.
13624 LD=$lt_LD_CXX
13626 # Whether we need hard or soft links.
13627 LN_S=$lt_LN_S
13629 # A BSD-compatible nm program.
13630 NM=$lt_NM
13632 # A symbol stripping program
13633 STRIP=$lt_STRIP
13635 # Used to examine libraries when file_magic_cmd begins "file"
13636 MAGIC_CMD=$MAGIC_CMD
13638 # Used on cygwin: DLL creation program.
13639 DLLTOOL="$DLLTOOL"
13641 # Used on cygwin: object dumper.
13642 OBJDUMP="$OBJDUMP"
13644 # Used on cygwin: assembler.
13645 AS="$AS"
13647 # The name of the directory that contains temporary libtool files.
13648 objdir=$objdir
13650 # How to create reloadable object files.
13651 reload_flag=$lt_reload_flag
13652 reload_cmds=$lt_reload_cmds
13654 # How to pass a linker flag through the compiler.
13655 wl=$lt_lt_prog_compiler_wl_CXX
13657 # Object file suffix (normally "o").
13658 objext="$ac_objext"
13660 # Old archive suffix (normally "a").
13661 libext="$libext"
13663 # Shared library suffix (normally ".so").
13664 shrext_cmds='$shrext_cmds'
13666 # Executable file suffix (normally "").
13667 exeext="$exeext"
13669 # Additional compiler flags for building library objects.
13670 pic_flag=$lt_lt_prog_compiler_pic_CXX
13671 pic_mode=$pic_mode
13673 # What is the maximum length of a command?
13674 max_cmd_len=$lt_cv_sys_max_cmd_len
13676 # Does compiler simultaneously support -c and -o options?
13677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13679 # Must we lock files when doing compilation?
13680 need_locks=$lt_need_locks
13682 # Do we need the lib prefix for modules?
13683 need_lib_prefix=$need_lib_prefix
13685 # Do we need a version for libraries?
13686 need_version=$need_version
13688 # Whether dlopen is supported.
13689 dlopen_support=$enable_dlopen
13691 # Whether dlopen of programs is supported.
13692 dlopen_self=$enable_dlopen_self
13694 # Whether dlopen of statically linked programs is supported.
13695 dlopen_self_static=$enable_dlopen_self_static
13697 # Compiler flag to prevent dynamic linking.
13698 link_static_flag=$lt_lt_prog_compiler_static_CXX
13700 # Compiler flag to turn off builtin functions.
13701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13703 # Compiler flag to allow reflexive dlopens.
13704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13706 # Compiler flag to generate shared objects directly from archives.
13707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13709 # Compiler flag to generate thread-safe objects.
13710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13712 # Library versioning type.
13713 version_type=$version_type
13715 # Format of library name prefix.
13716 libname_spec=$lt_libname_spec
13718 # List of archive names. First name is the real one, the rest are links.
13719 # The last name is the one that the linker finds with -lNAME.
13720 library_names_spec=$lt_library_names_spec
13722 # The coded name of the library, if different from the real name.
13723 soname_spec=$lt_soname_spec
13725 # Commands used to build and install an old-style archive.
13726 RANLIB=$lt_RANLIB
13727 old_archive_cmds=$lt_old_archive_cmds_CXX
13728 old_postinstall_cmds=$lt_old_postinstall_cmds
13729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13731 # Create an old-style archive from a shared archive.
13732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13734 # Create a temporary old-style archive to link instead of a shared archive.
13735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13737 # Commands used to build and install a shared archive.
13738 archive_cmds=$lt_archive_cmds_CXX
13739 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13740 postinstall_cmds=$lt_postinstall_cmds
13741 postuninstall_cmds=$lt_postuninstall_cmds
13743 # Commands used to build a loadable module (assumed same as above if empty)
13744 module_cmds=$lt_module_cmds_CXX
13745 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13747 # Commands to strip libraries.
13748 old_striplib=$lt_old_striplib
13749 striplib=$lt_striplib
13751 # Dependencies to place before the objects being linked to create a
13752 # shared library.
13753 predep_objects=$lt_predep_objects_CXX
13755 # Dependencies to place after the objects being linked to create a
13756 # shared library.
13757 postdep_objects=$lt_postdep_objects_CXX
13759 # Dependencies to place before the objects being linked to create a
13760 # shared library.
13761 predeps=$lt_predeps_CXX
13763 # Dependencies to place after the objects being linked to create a
13764 # shared library.
13765 postdeps=$lt_postdeps_CXX
13767 # The library search path used internally by the compiler when linking
13768 # a shared library.
13769 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13771 # Method to check whether dependent libraries are shared objects.
13772 deplibs_check_method=$lt_deplibs_check_method
13774 # Command to use when deplibs_check_method == file_magic.
13775 file_magic_cmd=$lt_file_magic_cmd
13777 # Flag that allows shared libraries with undefined symbols to be built.
13778 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13780 # Flag that forces no undefined symbols.
13781 no_undefined_flag=$lt_no_undefined_flag_CXX
13783 # Commands used to finish a libtool library installation in a directory.
13784 finish_cmds=$lt_finish_cmds
13786 # Same as above, but a single script fragment to be evaled but not shown.
13787 finish_eval=$lt_finish_eval
13789 # Take the output of nm and produce a listing of raw symbols and C names.
13790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13792 # Transform the output of nm in a proper C declaration
13793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13795 # Transform the output of nm in a C name address pair
13796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13798 # This is the shared library runtime path variable.
13799 runpath_var=$runpath_var
13801 # This is the shared library path variable.
13802 shlibpath_var=$shlibpath_var
13804 # Is shlibpath searched before the hard-coded library search path?
13805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13807 # How to hardcode a shared library path into an executable.
13808 hardcode_action=$hardcode_action_CXX
13810 # Whether we should hardcode library paths into libraries.
13811 hardcode_into_libs=$hardcode_into_libs
13813 # Flag to hardcode \$libdir into a binary during linking.
13814 # This must work even if \$libdir does not exist.
13815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13817 # If ld is used when linking, flag to hardcode \$libdir into
13818 # a binary during linking. This must work even if \$libdir does
13819 # not exist.
13820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13822 # Whether we need a single -rpath flag with a separated argument.
13823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13826 # resulting binary.
13827 hardcode_direct=$hardcode_direct_CXX
13829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13830 # resulting binary.
13831 hardcode_minus_L=$hardcode_minus_L_CXX
13833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13834 # the resulting binary.
13835 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13837 # Set to yes if building a shared library automatically hardcodes DIR into the library
13838 # and all subsequent libraries and executables linked against it.
13839 hardcode_automatic=$hardcode_automatic_CXX
13841 # Variables whose values should be saved in libtool wrapper scripts and
13842 # restored at relink time.
13843 variables_saved_for_relink="$variables_saved_for_relink"
13845 # Whether libtool must link a program against all its dependency libraries.
13846 link_all_deplibs=$link_all_deplibs_CXX
13848 # Compile-time system search path for libraries
13849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13851 # Run-time system search path for libraries
13852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13854 # Fix the shell variable \$srcfile for the compiler.
13855 fix_srcfile_path="$fix_srcfile_path_CXX"
13857 # Set to yes if exported symbols are required.
13858 always_export_symbols=$always_export_symbols_CXX
13860 # The commands to list exported symbols.
13861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13863 # The commands to extract the exported symbol list from a shared archive.
13864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13866 # Symbols that should not be listed in the preloaded symbols.
13867 exclude_expsyms=$lt_exclude_expsyms_CXX
13869 # Symbols that must always be exported.
13870 include_expsyms=$lt_include_expsyms_CXX
13872 # ### END LIBTOOL TAG CONFIG: $tagname
13874 __EOF__
13877 else
13878 # If there is no Makefile yet, we rely on a make rule to execute
13879 # `config.status --recheck' to rerun these tests and create the
13880 # libtool script then.
13881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13882 if test -f "$ltmain_in"; then
13883 test -f Makefile && make "$ltmain"
13888 ac_ext=c
13889 ac_cpp='$CPP $CPPFLAGS'
13890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894 CC=$lt_save_CC
13895 LDCXX=$LD
13896 LD=$lt_save_LD
13897 GCC=$lt_save_GCC
13898 with_gnu_ldcxx=$with_gnu_ld
13899 with_gnu_ld=$lt_save_with_gnu_ld
13900 lt_cv_path_LDCXX=$lt_cv_path_LD
13901 lt_cv_path_LD=$lt_save_path_LD
13902 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13903 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13905 else
13906 tagname=""
13910 F77)
13911 if test -n "$F77" && test "X$F77" != "Xno"; then
13913 ac_ext=f
13914 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13915 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13916 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13919 archive_cmds_need_lc_F77=no
13920 allow_undefined_flag_F77=
13921 always_export_symbols_F77=no
13922 archive_expsym_cmds_F77=
13923 export_dynamic_flag_spec_F77=
13924 hardcode_direct_F77=no
13925 hardcode_libdir_flag_spec_F77=
13926 hardcode_libdir_flag_spec_ld_F77=
13927 hardcode_libdir_separator_F77=
13928 hardcode_minus_L_F77=no
13929 hardcode_automatic_F77=no
13930 module_cmds_F77=
13931 module_expsym_cmds_F77=
13932 link_all_deplibs_F77=unknown
13933 old_archive_cmds_F77=$old_archive_cmds
13934 no_undefined_flag_F77=
13935 whole_archive_flag_spec_F77=
13936 enable_shared_with_static_runtimes_F77=no
13938 # Source file extension for f77 test sources.
13939 ac_ext=f
13941 # Object file extension for compiled f77 test sources.
13942 objext=o
13943 objext_F77=$objext
13945 # Code to be used in simple compile tests
13946 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13948 # Code to be used in simple link tests
13949 lt_simple_link_test_code=" program t\n end\n"
13951 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13953 # If no C compiler was specified, use CC.
13954 LTCC=${LTCC-"$CC"}
13956 # Allow CC to be a program name with arguments.
13957 compiler=$CC
13960 # save warnings/boilerplate of simple test code
13961 ac_outfile=conftest.$ac_objext
13962 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13964 _lt_compiler_boilerplate=`cat conftest.err`
13965 $rm conftest*
13967 ac_outfile=conftest.$ac_objext
13968 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13970 _lt_linker_boilerplate=`cat conftest.err`
13971 $rm conftest*
13974 # Allow CC to be a program name with arguments.
13975 lt_save_CC="$CC"
13976 CC=${F77-"f77"}
13977 compiler=$CC
13978 compiler_F77=$CC
13979 for cc_temp in $compiler""; do
13980 case $cc_temp in
13981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13983 \-*) ;;
13984 *) break;;
13985 esac
13986 done
13987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13990 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13991 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13992 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13993 echo "${ECHO_T}$can_build_shared" >&6
13995 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13996 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13997 test "$can_build_shared" = "no" && enable_shared=no
13999 # On AIX, shared libraries and static libraries use the same namespace, and
14000 # are all built from PIC.
14001 case "$host_os" in
14002 aix3*)
14003 test "$enable_shared" = yes && enable_static=no
14004 if test -n "$RANLIB"; then
14005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14006 postinstall_cmds='$RANLIB $lib'
14009 aix4* | aix5*)
14010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14011 test "$enable_shared" = yes && enable_static=no
14014 esac
14015 echo "$as_me:$LINENO: result: $enable_shared" >&5
14016 echo "${ECHO_T}$enable_shared" >&6
14018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14020 # Make sure either enable_shared or enable_static is yes.
14021 test "$enable_shared" = yes || enable_static=yes
14022 echo "$as_me:$LINENO: result: $enable_static" >&5
14023 echo "${ECHO_T}$enable_static" >&6
14025 test "$ld_shlibs_F77" = no && can_build_shared=no
14027 GCC_F77="$G77"
14028 LD_F77="$LD"
14030 lt_prog_compiler_wl_F77=
14031 lt_prog_compiler_pic_F77=
14032 lt_prog_compiler_static_F77=
14034 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14037 if test "$GCC" = yes; then
14038 lt_prog_compiler_wl_F77='-Wl,'
14039 lt_prog_compiler_static_F77='-static'
14041 case $host_os in
14042 aix*)
14043 # All AIX code is PIC.
14044 if test "$host_cpu" = ia64; then
14045 # AIX 5 now supports IA64 processor
14046 lt_prog_compiler_static_F77='-Bstatic'
14050 amigaos*)
14051 # FIXME: we need at least 68020 code to build shared libraries, but
14052 # adding the `-m68020' flag to GCC prevents building anything better,
14053 # like `-m68040'.
14054 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14057 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14058 # PIC is the default for these OSes.
14061 mingw* | pw32* | os2*)
14062 # This hack is so that the source file can tell whether it is being
14063 # built for inclusion in a dll (and should export symbols for example).
14064 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14067 darwin* | rhapsody*)
14068 # PIC is the default on this platform
14069 # Common symbols not allowed in MH_DYLIB files
14070 lt_prog_compiler_pic_F77='-fno-common'
14073 msdosdjgpp*)
14074 # Just because we use GCC doesn't mean we suddenly get shared libraries
14075 # on systems that don't support them.
14076 lt_prog_compiler_can_build_shared_F77=no
14077 enable_shared=no
14080 sysv4*MP*)
14081 if test -d /usr/nec; then
14082 lt_prog_compiler_pic_F77=-Kconform_pic
14086 hpux*)
14087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14088 # not for PA HP-UX.
14089 case "$host_cpu" in
14090 hppa*64*|ia64*)
14091 # +Z the default
14094 lt_prog_compiler_pic_F77='-fPIC'
14096 esac
14100 lt_prog_compiler_pic_F77='-fPIC'
14102 esac
14103 else
14104 # PORTME Check for flag to pass linker flags through the system compiler.
14105 case $host_os in
14106 aix*)
14107 lt_prog_compiler_wl_F77='-Wl,'
14108 if test "$host_cpu" = ia64; then
14109 # AIX 5 now supports IA64 processor
14110 lt_prog_compiler_static_F77='-Bstatic'
14111 else
14112 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14115 darwin*)
14116 # PIC is the default on this platform
14117 # Common symbols not allowed in MH_DYLIB files
14118 case $cc_basename in
14119 xlc*)
14120 lt_prog_compiler_pic_F77='-qnocommon'
14121 lt_prog_compiler_wl_F77='-Wl,'
14123 esac
14126 mingw* | pw32* | os2*)
14127 # This hack is so that the source file can tell whether it is being
14128 # built for inclusion in a dll (and should export symbols for example).
14129 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14132 hpux9* | hpux10* | hpux11*)
14133 lt_prog_compiler_wl_F77='-Wl,'
14134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14135 # not for PA HP-UX.
14136 case "$host_cpu" in
14137 hppa*64*|ia64*)
14138 # +Z the default
14141 lt_prog_compiler_pic_F77='+Z'
14143 esac
14144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14145 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14148 irix5* | irix6* | nonstopux*)
14149 lt_prog_compiler_wl_F77='-Wl,'
14150 # PIC (with -KPIC) is the default.
14151 lt_prog_compiler_static_F77='-non_shared'
14154 newsos6)
14155 lt_prog_compiler_pic_F77='-KPIC'
14156 lt_prog_compiler_static_F77='-Bstatic'
14159 linux*)
14160 case $cc_basename in
14161 icc* | ecc*)
14162 lt_prog_compiler_wl_F77='-Wl,'
14163 lt_prog_compiler_pic_F77='-KPIC'
14164 lt_prog_compiler_static_F77='-static'
14166 pgcc* | pgf77* | pgf90*)
14167 # Portland Group compilers (*not* the Pentium gcc compiler,
14168 # which looks to be a dead project)
14169 lt_prog_compiler_wl_F77='-Wl,'
14170 lt_prog_compiler_pic_F77='-fpic'
14171 lt_prog_compiler_static_F77='-static'
14173 ccc*)
14174 lt_prog_compiler_wl_F77='-Wl,'
14175 # All Alpha code is PIC.
14176 lt_prog_compiler_static_F77='-non_shared'
14178 esac
14181 osf3* | osf4* | osf5*)
14182 lt_prog_compiler_wl_F77='-Wl,'
14183 # All OSF/1 code is PIC.
14184 lt_prog_compiler_static_F77='-non_shared'
14187 sco3.2v5*)
14188 lt_prog_compiler_pic_F77='-Kpic'
14189 lt_prog_compiler_static_F77='-dn'
14192 solaris*)
14193 lt_prog_compiler_pic_F77='-KPIC'
14194 lt_prog_compiler_static_F77='-Bstatic'
14195 case $cc_basename in
14196 f77* | f90* | f95*)
14197 lt_prog_compiler_wl_F77='-Qoption ld ';;
14199 lt_prog_compiler_wl_F77='-Wl,';;
14200 esac
14203 sunos4*)
14204 lt_prog_compiler_wl_F77='-Qoption ld '
14205 lt_prog_compiler_pic_F77='-PIC'
14206 lt_prog_compiler_static_F77='-Bstatic'
14209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14210 lt_prog_compiler_wl_F77='-Wl,'
14211 lt_prog_compiler_pic_F77='-KPIC'
14212 lt_prog_compiler_static_F77='-Bstatic'
14215 sysv4*MP*)
14216 if test -d /usr/nec ;then
14217 lt_prog_compiler_pic_F77='-Kconform_pic'
14218 lt_prog_compiler_static_F77='-Bstatic'
14222 unicos*)
14223 lt_prog_compiler_wl_F77='-Wl,'
14224 lt_prog_compiler_can_build_shared_F77=no
14227 uts4*)
14228 lt_prog_compiler_pic_F77='-pic'
14229 lt_prog_compiler_static_F77='-Bstatic'
14233 lt_prog_compiler_can_build_shared_F77=no
14235 esac
14238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14239 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14242 # Check to make sure the PIC flag actually works.
14244 if test -n "$lt_prog_compiler_pic_F77"; then
14246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14248 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 lt_prog_compiler_pic_works_F77=no
14252 ac_outfile=conftest.$ac_objext
14253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14254 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14255 # Insert the option either (1) after the last *FLAGS variable, or
14256 # (2) before a word containing "conftest.", or (3) at the end.
14257 # Note that $ac_compile itself does not contain backslashes and begins
14258 # with a dollar sign (not a hyphen), so the echo should work correctly.
14259 # The option is referenced via a variable to avoid confusing sed.
14260 lt_compile=`echo "$ac_compile" | $SED \
14261 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14263 -e 's:$: $lt_compiler_flag:'`
14264 (eval echo "\"\$as_me:14264: $lt_compile\"" >&5)
14265 (eval "$lt_compile" 2>conftest.err)
14266 ac_status=$?
14267 cat conftest.err >&5
14268 echo "$as_me:14268: \$? = $ac_status" >&5
14269 if (exit $ac_status) && test -s "$ac_outfile"; then
14270 # The compiler can only warn and ignore the option if not recognized
14271 # So say no if there are warnings other than the usual output.
14272 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14273 $SED '/^$/d' conftest.err >conftest.er2
14274 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14275 lt_prog_compiler_pic_works_F77=yes
14278 $rm conftest*
14281 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14282 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14284 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14285 case $lt_prog_compiler_pic_F77 in
14286 "" | " "*) ;;
14287 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14288 esac
14289 else
14290 lt_prog_compiler_pic_F77=
14291 lt_prog_compiler_can_build_shared_F77=no
14295 case "$host_os" in
14296 # For platforms which do not support PIC, -DPIC is meaningless:
14297 *djgpp*)
14298 lt_prog_compiler_pic_F77=
14301 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14303 esac
14305 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14306 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14307 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310 lt_cv_prog_compiler_c_o_F77=no
14311 $rm -r conftest 2>/dev/null
14312 mkdir conftest
14313 cd conftest
14314 mkdir out
14315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14317 lt_compiler_flag="-o out/conftest2.$ac_objext"
14318 # Insert the option either (1) after the last *FLAGS variable, or
14319 # (2) before a word containing "conftest.", or (3) at the end.
14320 # Note that $ac_compile itself does not contain backslashes and begins
14321 # with a dollar sign (not a hyphen), so the echo should work correctly.
14322 lt_compile=`echo "$ac_compile" | $SED \
14323 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14325 -e 's:$: $lt_compiler_flag:'`
14326 (eval echo "\"\$as_me:14326: $lt_compile\"" >&5)
14327 (eval "$lt_compile" 2>out/conftest.err)
14328 ac_status=$?
14329 cat out/conftest.err >&5
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14332 then
14333 # The compiler can only warn and ignore the option if not recognized
14334 # So say no if there are warnings
14335 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14336 $SED '/^$/d' out/conftest.err >out/conftest.er2
14337 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14338 lt_cv_prog_compiler_c_o_F77=yes
14341 chmod u+w .
14342 $rm conftest*
14343 # SGI C++ compiler will create directory out/ii_files/ for
14344 # template instantiation
14345 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14346 $rm out/* && rmdir out
14347 cd ..
14348 rmdir conftest
14349 $rm conftest*
14352 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14353 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14356 hard_links="nottested"
14357 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14358 # do not overwrite the value of need_locks provided by the user
14359 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14360 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14361 hard_links=yes
14362 $rm conftest*
14363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14364 touch conftest.a
14365 ln conftest.a conftest.b 2>&5 || hard_links=no
14366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14367 echo "$as_me:$LINENO: result: $hard_links" >&5
14368 echo "${ECHO_T}$hard_links" >&6
14369 if test "$hard_links" = no; then
14370 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14371 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14372 need_locks=warn
14374 else
14375 need_locks=no
14378 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14379 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14381 runpath_var=
14382 allow_undefined_flag_F77=
14383 enable_shared_with_static_runtimes_F77=no
14384 archive_cmds_F77=
14385 archive_expsym_cmds_F77=
14386 old_archive_From_new_cmds_F77=
14387 old_archive_from_expsyms_cmds_F77=
14388 export_dynamic_flag_spec_F77=
14389 whole_archive_flag_spec_F77=
14390 thread_safe_flag_spec_F77=
14391 hardcode_libdir_flag_spec_F77=
14392 hardcode_libdir_flag_spec_ld_F77=
14393 hardcode_libdir_separator_F77=
14394 hardcode_direct_F77=no
14395 hardcode_minus_L_F77=no
14396 hardcode_shlibpath_var_F77=unsupported
14397 link_all_deplibs_F77=unknown
14398 hardcode_automatic_F77=no
14399 module_cmds_F77=
14400 module_expsym_cmds_F77=
14401 always_export_symbols_F77=no
14402 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14403 # include_expsyms should be a list of space-separated symbols to be *always*
14404 # included in the symbol list
14405 include_expsyms_F77=
14406 # exclude_expsyms can be an extended regexp of symbols to exclude
14407 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14408 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14409 # as well as any symbol that contains `d'.
14410 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14412 # platforms (ab)use it in PIC code, but their linkers get confused if
14413 # the symbol is explicitly referenced. Since portable code cannot
14414 # rely on this symbol name, it's probably fine to never include it in
14415 # preloaded symbol tables.
14416 extract_expsyms_cmds=
14417 # Just being paranoid about ensuring that cc_basename is set.
14418 for cc_temp in $compiler""; do
14419 case $cc_temp in
14420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14422 \-*) ;;
14423 *) break;;
14424 esac
14425 done
14426 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14428 case $host_os in
14429 cygwin* | mingw* | pw32*)
14430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14431 # When not using gcc, we currently assume that we are using
14432 # Microsoft Visual C++.
14433 if test "$GCC" != yes; then
14434 with_gnu_ld=no
14437 openbsd*)
14438 with_gnu_ld=no
14440 esac
14442 ld_shlibs_F77=yes
14443 if test "$with_gnu_ld" = yes; then
14444 # If archive_cmds runs LD, not CC, wlarc should be empty
14445 wlarc='${wl}'
14447 # Set some defaults for GNU ld with shared library support. These
14448 # are reset later if shared libraries are not supported. Putting them
14449 # here allows them to be overridden if necessary.
14450 runpath_var=LD_RUN_PATH
14451 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14452 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14453 # ancient GNU ld didn't support --whole-archive et. al.
14454 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14455 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14456 else
14457 whole_archive_flag_spec_F77=
14459 supports_anon_versioning=no
14460 case `$LD -v 2>/dev/null` in
14461 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14462 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14463 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14464 *\ 2.11.*) ;; # other 2.11 versions
14465 *) supports_anon_versioning=yes ;;
14466 esac
14468 # See if GNU ld supports shared libraries.
14469 case $host_os in
14470 aix3* | aix4* | aix5*)
14471 # On AIX/PPC, the GNU linker is very broken
14472 if test "$host_cpu" != ia64; then
14473 ld_shlibs_F77=no
14474 cat <<EOF 1>&2
14476 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14477 *** to be unable to reliably create shared libraries on AIX.
14478 *** Therefore, libtool is disabling shared libraries support. If you
14479 *** really care for shared libraries, you may want to modify your PATH
14480 *** so that a non-GNU linker is found, and then restart.
14486 amigaos*)
14487 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14488 hardcode_libdir_flag_spec_F77='-L$libdir'
14489 hardcode_minus_L_F77=yes
14491 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14492 # that the semantics of dynamic libraries on AmigaOS, at least up
14493 # to version 4, is to share data among multiple programs linked
14494 # with the same dynamic library. Since this doesn't match the
14495 # behavior of shared libraries on other platforms, we can't use
14496 # them.
14497 ld_shlibs_F77=no
14500 beos*)
14501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14502 allow_undefined_flag_F77=unsupported
14503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14504 # support --undefined. This deserves some investigation. FIXME
14505 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14506 else
14507 ld_shlibs_F77=no
14511 cygwin* | mingw* | pw32*)
14512 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14513 # as there is no search path for DLLs.
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 allow_undefined_flag_F77=unsupported
14516 always_export_symbols_F77=no
14517 enable_shared_with_static_runtimes_F77=yes
14518 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14520 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14522 # If the export-symbols file already is a .def file (1st line
14523 # is EXPORTS), use it as is; otherwise, prepend...
14524 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14525 cp $export_symbols $output_objdir/$soname.def;
14526 else
14527 echo EXPORTS > $output_objdir/$soname.def;
14528 cat $export_symbols >> $output_objdir/$soname.def;
14530 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14531 else
14532 ld_shlibs_F77=no
14536 linux*)
14537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14538 tmp_addflag=
14539 case $cc_basename,$host_cpu in
14540 pgcc*) # Portland Group C compiler
14541 whole_archive_flag_spec_F77=
14543 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14544 whole_archive_flag_spec_F77=
14545 tmp_addflag=' -fpic -Mnomain' ;;
14546 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14547 tmp_addflag=' -i_dynamic' ;;
14548 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14549 tmp_addflag=' -i_dynamic -nofor_main' ;;
14550 ifc* | ifort*) # Intel Fortran compiler
14551 tmp_addflag=' -nofor_main' ;;
14552 esac
14553 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555 if test $supports_anon_versioning = yes; then
14556 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14558 $echo "local: *; };" >> $output_objdir/$libname.ver~
14559 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14561 else
14562 ld_shlibs_F77=no
14566 netbsd*)
14567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14568 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14569 wlarc=
14570 else
14571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14576 solaris* | sysv5*)
14577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14578 ld_shlibs_F77=no
14579 cat <<EOF 1>&2
14581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14582 *** create shared libraries on Solaris systems. Therefore, libtool
14583 *** is disabling shared libraries support. We urge you to upgrade GNU
14584 *** binutils to release 2.9.1 or newer. Another option is to modify
14585 *** your PATH or compiler configuration so that the native linker is
14586 *** used, and then restart.
14589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14592 else
14593 ld_shlibs_F77=no
14597 sunos4*)
14598 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14599 wlarc=
14600 hardcode_direct_F77=yes
14601 hardcode_shlibpath_var_F77=no
14605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14606 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14607 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14608 else
14609 ld_shlibs_F77=no
14612 esac
14614 if test "$ld_shlibs_F77" = no; then
14615 runpath_var=
14616 hardcode_libdir_flag_spec_F77=
14617 export_dynamic_flag_spec_F77=
14618 whole_archive_flag_spec_F77=
14620 else
14621 # PORTME fill in a description of your system's linker (not GNU ld)
14622 case $host_os in
14623 aix3*)
14624 allow_undefined_flag_F77=unsupported
14625 always_export_symbols_F77=yes
14626 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14627 # Note: this linker hardcodes the directories in LIBPATH if there
14628 # are no directories specified by -L.
14629 hardcode_minus_L_F77=yes
14630 if test "$GCC" = yes && test -z "$link_static_flag"; then
14631 # Neither direct hardcoding nor static linking is supported with a
14632 # broken collect2.
14633 hardcode_direct_F77=unsupported
14637 aix4* | aix5*)
14638 if test "$host_cpu" = ia64; then
14639 # On IA64, the linker does run time linking by default, so we don't
14640 # have to do anything special.
14641 aix_use_runtimelinking=no
14642 exp_sym_flag='-Bexport'
14643 no_entry_flag=""
14644 else
14645 # If we're using GNU nm, then we don't want the "-C" option.
14646 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14647 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14648 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14649 else
14650 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14652 aix_use_runtimelinking=no
14654 # Test if we are trying to use run time linking or normal
14655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14656 # need to do runtime linking.
14657 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14658 for ld_flag in $LDFLAGS; do
14659 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14660 aix_use_runtimelinking=yes
14661 break
14663 done
14664 esac
14666 exp_sym_flag='-bexport'
14667 no_entry_flag='-bnoentry'
14670 # When large executables or shared objects are built, AIX ld can
14671 # have problems creating the table of contents. If linking a library
14672 # or program results in "error TOC overflow" add -mminimal-toc to
14673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14676 archive_cmds_F77=''
14677 hardcode_direct_F77=yes
14678 hardcode_libdir_separator_F77=':'
14679 link_all_deplibs_F77=yes
14681 if test "$GCC" = yes; then
14682 case $host_os in aix4.[012]|aix4.[012].*)
14683 # We only want to do this on AIX 4.2 and lower, the check
14684 # below for broken collect2 doesn't work under 4.3+
14685 collect2name=`${CC} -print-prog-name=collect2`
14686 if test -f "$collect2name" && \
14687 strings "$collect2name" | grep resolve_lib_name >/dev/null
14688 then
14689 # We have reworked collect2
14690 hardcode_direct_F77=yes
14691 else
14692 # We have old collect2
14693 hardcode_direct_F77=unsupported
14694 # It fails to find uninstalled libraries when the uninstalled
14695 # path is not listed in the libpath. Setting hardcode_minus_L
14696 # to unsupported forces relinking
14697 hardcode_minus_L_F77=yes
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 hardcode_libdir_separator_F77=
14701 esac
14702 shared_flag='-shared'
14703 if test "$aix_use_runtimelinking" = yes; then
14704 shared_flag="$shared_flag "'${wl}-G'
14706 else
14707 # not using gcc
14708 if test "$host_cpu" = ia64; then
14709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14710 # chokes on -Wl,-G. The following line is correct:
14711 shared_flag='-G'
14712 else
14713 if test "$aix_use_runtimelinking" = yes; then
14714 shared_flag='${wl}-G'
14715 else
14716 shared_flag='${wl}-bM:SRE'
14721 # It seems that -bexpall does not export symbols beginning with
14722 # underscore (_), so it is better to generate a list of symbols to export.
14723 always_export_symbols_F77=yes
14724 if test "$aix_use_runtimelinking" = yes; then
14725 # Warning - without using the other runtime loading flags (-brtl),
14726 # -berok will link without error, but may produce a broken library.
14727 allow_undefined_flag_F77='-berok'
14728 # Determine the default libpath from the value encoded in an empty executable.
14729 cat >conftest.$ac_ext <<_ACEOF
14730 program main
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736 (eval $ac_link) 2>conftest.er1
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -z "$ac_f77_werror_flag"
14744 || test ! -s conftest.err'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest$ac_exeext'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14759 # Check for a 64-bit object if we didn't find anything.
14760 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; }
14761 }'`; fi
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14767 rm -f conftest.err conftest.$ac_objext \
14768 conftest$ac_exeext conftest.$ac_ext
14769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14771 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14772 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14773 else
14774 if test "$host_cpu" = ia64; then
14775 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14776 allow_undefined_flag_F77="-z nodefs"
14777 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14778 else
14779 # Determine the default libpath from the value encoded in an empty executable.
14780 cat >conftest.$ac_ext <<_ACEOF
14781 program main
14784 _ACEOF
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_f77_werror_flag"
14795 || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14810 # Check for a 64-bit object if we didn't find anything.
14811 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; }
14812 }'`; fi
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14818 rm -f conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14822 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14823 # Warning - without using the other run time loading flags,
14824 # -berok will link without error, but may produce a broken library.
14825 no_undefined_flag_F77=' ${wl}-bernotok'
14826 allow_undefined_flag_F77=' ${wl}-berok'
14827 # -bexpall does not export symbols beginning with underscore (_)
14828 always_export_symbols_F77=yes
14829 # Exported symbols can be pulled into shared objects from archives
14830 whole_archive_flag_spec_F77=' '
14831 archive_cmds_need_lc_F77=yes
14832 # This is similar to how AIX traditionally builds it's shared libraries.
14833 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14838 amigaos*)
14839 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14840 hardcode_libdir_flag_spec_F77='-L$libdir'
14841 hardcode_minus_L_F77=yes
14842 # see comment about different semantics on the GNU ld section
14843 ld_shlibs_F77=no
14846 bsdi[45]*)
14847 export_dynamic_flag_spec_F77=-rdynamic
14850 cygwin* | mingw* | pw32*)
14851 # When not using gcc, we currently assume that we are using
14852 # Microsoft Visual C++.
14853 # hardcode_libdir_flag_spec is actually meaningless, as there is
14854 # no search path for DLLs.
14855 hardcode_libdir_flag_spec_F77=' '
14856 allow_undefined_flag_F77=unsupported
14857 # Tell ltmain to make .lib files, not .a files.
14858 libext=lib
14859 # Tell ltmain to make .dll files, not .so files.
14860 shrext_cmds=".dll"
14861 # FIXME: Setting linknames here is a bad hack.
14862 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14863 # The linker will automatically build a .lib file if we build a DLL.
14864 old_archive_From_new_cmds_F77='true'
14865 # FIXME: Should let the user specify the lib program.
14866 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14867 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14868 enable_shared_with_static_runtimes_F77=yes
14871 darwin* | rhapsody*)
14872 case "$host_os" in
14873 rhapsody* | darwin1.[012])
14874 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14876 *) # Darwin 1.3 on
14877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14878 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14879 else
14880 case ${MACOSX_DEPLOYMENT_TARGET} in
14881 10.[012])
14882 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14884 10.*)
14885 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14887 esac
14890 esac
14891 archive_cmds_need_lc_F77=no
14892 hardcode_direct_F77=no
14893 hardcode_automatic_F77=yes
14894 hardcode_shlibpath_var_F77=unsupported
14895 whole_archive_flag_spec_F77=''
14896 link_all_deplibs_F77=yes
14897 if test "$GCC" = yes ; then
14898 output_verbose_link_cmd='echo'
14899 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14900 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14902 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14903 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14904 else
14905 case $cc_basename in
14906 xlc*)
14907 output_verbose_link_cmd='echo'
14908 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14909 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14911 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14912 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14915 ld_shlibs_F77=no
14917 esac
14921 dgux*)
14922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_F77='-L$libdir'
14924 hardcode_shlibpath_var_F77=no
14927 freebsd1*)
14928 ld_shlibs_F77=no
14931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14932 # support. Future versions do this automatically, but an explicit c++rt0.o
14933 # does not break anything, and helps significantly (at the cost of a little
14934 # extra space).
14935 freebsd2.2*)
14936 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14937 hardcode_libdir_flag_spec_F77='-R$libdir'
14938 hardcode_direct_F77=yes
14939 hardcode_shlibpath_var_F77=no
14942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14943 freebsd2*)
14944 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_direct_F77=yes
14946 hardcode_minus_L_F77=yes
14947 hardcode_shlibpath_var_F77=no
14950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14951 freebsd* | kfreebsd*-gnu | dragonfly*)
14952 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14953 hardcode_libdir_flag_spec_F77='-R$libdir'
14954 hardcode_direct_F77=yes
14955 hardcode_shlibpath_var_F77=no
14958 hpux9*)
14959 if test "$GCC" = yes; then
14960 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14961 else
14962 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14966 hardcode_direct_F77=yes
14968 # hardcode_minus_L: Not really in the search PATH,
14969 # but as the default location of the library.
14970 hardcode_minus_L_F77=yes
14971 export_dynamic_flag_spec_F77='${wl}-E'
14974 hpux10* | hpux11*)
14975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14976 case "$host_cpu" in
14977 hppa*64*|ia64*)
14978 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14983 esac
14984 else
14985 case "$host_cpu" in
14986 hppa*64*|ia64*)
14987 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14990 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14992 esac
14994 if test "$with_gnu_ld" = no; then
14995 case "$host_cpu" in
14996 hppa*64*)
14997 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14998 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14999 hardcode_libdir_separator_F77=:
15000 hardcode_direct_F77=no
15001 hardcode_shlibpath_var_F77=no
15003 ia64*)
15004 hardcode_libdir_flag_spec_F77='-L$libdir'
15005 hardcode_direct_F77=no
15006 hardcode_shlibpath_var_F77=no
15008 # hardcode_minus_L: Not really in the search PATH,
15009 # but as the default location of the library.
15010 hardcode_minus_L_F77=yes
15013 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15014 hardcode_libdir_separator_F77=:
15015 hardcode_direct_F77=yes
15016 export_dynamic_flag_spec_F77='${wl}-E'
15018 # hardcode_minus_L: Not really in the search PATH,
15019 # but as the default location of the library.
15020 hardcode_minus_L_F77=yes
15022 esac
15026 irix5* | irix6* | nonstopux*)
15027 if test "$GCC" = yes; then
15028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15029 else
15030 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15031 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15033 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15034 hardcode_libdir_separator_F77=:
15035 link_all_deplibs_F77=yes
15038 netbsd*)
15039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15040 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15041 else
15042 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15044 hardcode_libdir_flag_spec_F77='-R$libdir'
15045 hardcode_direct_F77=yes
15046 hardcode_shlibpath_var_F77=no
15049 newsos6)
15050 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15051 hardcode_direct_F77=yes
15052 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053 hardcode_libdir_separator_F77=:
15054 hardcode_shlibpath_var_F77=no
15057 openbsd*)
15058 hardcode_direct_F77=yes
15059 hardcode_shlibpath_var_F77=no
15060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15061 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15063 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15064 export_dynamic_flag_spec_F77='${wl}-E'
15065 else
15066 case $host_os in
15067 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15069 hardcode_libdir_flag_spec_F77='-R$libdir'
15072 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15073 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15075 esac
15079 os2*)
15080 hardcode_libdir_flag_spec_F77='-L$libdir'
15081 hardcode_minus_L_F77=yes
15082 allow_undefined_flag_F77=unsupported
15083 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15084 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15087 osf3*)
15088 if test "$GCC" = yes; then
15089 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15090 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15091 else
15092 allow_undefined_flag_F77=' -expect_unresolved \*'
15093 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15095 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15096 hardcode_libdir_separator_F77=:
15099 osf4* | osf5*) # as osf3* with the addition of -msym flag
15100 if test "$GCC" = yes; then
15101 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15102 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15103 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15104 else
15105 allow_undefined_flag_F77=' -expect_unresolved \*'
15106 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15107 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15108 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15110 # Both c and cxx compiler support -rpath directly
15111 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15113 hardcode_libdir_separator_F77=:
15116 sco3.2v5*)
15117 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15118 hardcode_shlibpath_var_F77=no
15119 export_dynamic_flag_spec_F77='${wl}-Bexport'
15120 runpath_var=LD_RUN_PATH
15121 hardcode_runpath_var=yes
15124 solaris*)
15125 no_undefined_flag_F77=' -z text'
15126 if test "$GCC" = yes; then
15127 wlarc='${wl}'
15128 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15130 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15131 else
15132 wlarc=''
15133 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15137 hardcode_libdir_flag_spec_F77='-R$libdir'
15138 hardcode_shlibpath_var_F77=no
15139 case $host_os in
15140 solaris2.[0-5] | solaris2.[0-5].*) ;;
15142 # The compiler driver will combine linker options so we
15143 # cannot just pass the convience library names through
15144 # without $wl, iff we do not link with $LD.
15145 # Luckily, gcc supports the same syntax we need for Sun Studio.
15146 # Supported since Solaris 2.6 (maybe 2.5.1?)
15147 case $wlarc in
15149 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15151 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15152 esac ;;
15153 esac
15154 link_all_deplibs_F77=yes
15157 sunos4*)
15158 if test "x$host_vendor" = xsequent; then
15159 # Use $CC to link under sequent, because it throws in some extra .o
15160 # files that make .init and .fini sections work.
15161 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15162 else
15163 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15165 hardcode_libdir_flag_spec_F77='-L$libdir'
15166 hardcode_direct_F77=yes
15167 hardcode_minus_L_F77=yes
15168 hardcode_shlibpath_var_F77=no
15171 sysv4)
15172 case $host_vendor in
15173 sni)
15174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_direct_F77=yes # is this really true???
15177 siemens)
15178 ## LD is ld it makes a PLAMLIB
15179 ## CC just makes a GrossModule.
15180 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15181 reload_cmds_F77='$CC -r -o $output$reload_objs'
15182 hardcode_direct_F77=no
15184 motorola)
15185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15186 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15188 esac
15189 runpath_var='LD_RUN_PATH'
15190 hardcode_shlibpath_var_F77=no
15193 sysv4.3*)
15194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15195 hardcode_shlibpath_var_F77=no
15196 export_dynamic_flag_spec_F77='-Bexport'
15199 sysv4*MP*)
15200 if test -d /usr/nec; then
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_shlibpath_var_F77=no
15203 runpath_var=LD_RUN_PATH
15204 hardcode_runpath_var=yes
15205 ld_shlibs_F77=yes
15209 sysv4.2uw2*)
15210 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15211 hardcode_direct_F77=yes
15212 hardcode_minus_L_F77=no
15213 hardcode_shlibpath_var_F77=no
15214 hardcode_runpath_var=yes
15215 runpath_var=LD_RUN_PATH
15218 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15219 no_undefined_flag_F77='${wl}-z ${wl}text'
15220 if test "$GCC" = yes; then
15221 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 else
15223 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 runpath_var='LD_RUN_PATH'
15226 hardcode_shlibpath_var_F77=no
15229 sysv5*)
15230 no_undefined_flag_F77=' -z text'
15231 # $CC -shared without GNU ld will not create a library from C++
15232 # object files and a static libstdc++, better avoid it by now
15233 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15234 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15236 hardcode_libdir_flag_spec_F77=
15237 hardcode_shlibpath_var_F77=no
15238 runpath_var='LD_RUN_PATH'
15241 uts4*)
15242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15243 hardcode_libdir_flag_spec_F77='-L$libdir'
15244 hardcode_shlibpath_var_F77=no
15248 ld_shlibs_F77=no
15250 esac
15253 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15254 echo "${ECHO_T}$ld_shlibs_F77" >&6
15255 test "$ld_shlibs_F77" = no && can_build_shared=no
15257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15258 if test "$GCC" = yes; then
15259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15263 # Do we need to explicitly link libc?
15265 case "x$archive_cmds_need_lc_F77" in
15266 x|xyes)
15267 # Assume -lc should be added
15268 archive_cmds_need_lc_F77=yes
15270 if test "$enable_shared" = yes && test "$GCC" = yes; then
15271 case $archive_cmds_F77 in
15272 *'~'*)
15273 # FIXME: we may have to deal with multi-command sequences.
15275 '$CC '*)
15276 # Test whether the compiler implicitly links with -lc since on some
15277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15278 # to ld, don't add -lc before -lgcc.
15279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15281 $rm conftest*
15282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285 (eval $ac_compile) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } 2>conftest.err; then
15289 soname=conftest
15290 lib=conftest
15291 libobjs=conftest.$ac_objext
15292 deplibs=
15293 wl=$lt_prog_compiler_wl_F77
15294 compiler_flags=-v
15295 linker_flags=-v
15296 verstring=
15297 output_objdir=.
15298 libname=conftest
15299 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15300 allow_undefined_flag_F77=
15301 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15302 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }
15306 then
15307 archive_cmds_need_lc_F77=no
15308 else
15309 archive_cmds_need_lc_F77=yes
15311 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15312 else
15313 cat conftest.err 1>&5
15315 $rm conftest*
15316 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15317 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15319 esac
15322 esac
15324 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15325 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15326 library_names_spec=
15327 libname_spec='lib$name'
15328 soname_spec=
15329 shrext_cmds=".so"
15330 postinstall_cmds=
15331 postuninstall_cmds=
15332 finish_cmds=
15333 finish_eval=
15334 shlibpath_var=
15335 shlibpath_overrides_runpath=unknown
15336 version_type=none
15337 dynamic_linker="$host_os ld.so"
15338 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15339 if test "$GCC" = yes; then
15340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15341 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15342 # if the path contains ";" then we assume it to be the separator
15343 # otherwise default to the standard path separator (i.e. ":") - it is
15344 # assumed that no part of a normal pathname contains ";" but that should
15345 # okay in the real world where ";" in dirpaths is itself problematic.
15346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15347 else
15348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15350 else
15351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15353 need_lib_prefix=unknown
15354 hardcode_into_libs=no
15356 # when you set need_version to no, make sure it does not cause -set_version
15357 # flags to be left without arguments
15358 need_version=unknown
15360 case $host_os in
15361 aix3*)
15362 version_type=linux
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15364 shlibpath_var=LIBPATH
15366 # AIX 3 has no versioning support, so we append a major version to the name.
15367 soname_spec='${libname}${release}${shared_ext}$major'
15370 aix4* | aix5*)
15371 version_type=linux
15372 need_lib_prefix=no
15373 need_version=no
15374 hardcode_into_libs=yes
15375 if test "$host_cpu" = ia64; then
15376 # AIX 5 supports IA64
15377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 else
15380 # With GCC up to 2.95.x, collect2 would create an import file
15381 # for dependence libraries. The import file would start with
15382 # the line `#! .'. This would cause the generated library to
15383 # depend on `.', always an invalid library. This was fixed in
15384 # development snapshots of GCC prior to 3.0.
15385 case $host_os in
15386 aix4 | aix4.[01] | aix4.[01].*)
15387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15388 echo ' yes '
15389 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15391 else
15392 can_build_shared=no
15395 esac
15396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15397 # soname into executable. Probably we can add versioning support to
15398 # collect2, so additional links can be useful in future.
15399 if test "$aix_use_runtimelinking" = yes; then
15400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15401 # instead of lib<name>.a to let people know that these are not
15402 # typical AIX shared libraries.
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 else
15405 # We preserve .a as extension for shared libraries through AIX4.2
15406 # and later when we are not doing run time linking.
15407 library_names_spec='${libname}${release}.a $libname.a'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LIBPATH
15414 amigaos*)
15415 library_names_spec='$libname.ixlibrary $libname.a'
15416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15417 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'
15420 beos*)
15421 library_names_spec='${libname}${shared_ext}'
15422 dynamic_linker="$host_os ld.so"
15423 shlibpath_var=LIBRARY_PATH
15426 bsdi[45]*)
15427 version_type=linux
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15435 # the default ld.so.conf also contains /usr/contrib/lib and
15436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15437 # libtool to hard-code these into programs
15440 cygwin* | mingw* | pw32*)
15441 version_type=windows
15442 shrext_cmds=".dll"
15443 need_version=no
15444 need_lib_prefix=no
15446 case $GCC,$host_os in
15447 yes,cygwin* | yes,mingw* | yes,pw32*)
15448 library_names_spec='$libname.dll.a'
15449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15450 postinstall_cmds='base_file=`basename \${file}`~
15451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15452 dldir=$destdir/`dirname \$dlpath`~
15453 test -d \$dldir || mkdir -p \$dldir~
15454 $install_prog $dir/$dlname \$dldir/$dlname'
15455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15456 dlpath=$dir/\$dldll~
15457 $rm \$dlpath'
15458 shlibpath_overrides_runpath=yes
15460 case $host_os in
15461 cygwin*)
15462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15466 mingw*)
15467 # MinGW DLLs use traditional 'lib' prefix
15468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15471 # It is most probably a Windows format PATH printed by
15472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15473 # path with ; separators, and with drive letters. We can handle the
15474 # drive letters (cygwin fileutils understands them), so leave them,
15475 # especially as we might pass files found there to a mingw objdump,
15476 # which wouldn't understand a cygwinified path. Ahh.
15477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15478 else
15479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15482 pw32*)
15483 # pw32 DLLs use 'pw' prefix rather than 'lib'
15484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486 esac
15490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15492 esac
15493 dynamic_linker='Win32 ld.exe'
15494 # FIXME: first we should search . and the directory the executable is in
15495 shlibpath_var=PATH
15498 darwin* | rhapsody*)
15499 dynamic_linker="$host_os dyld"
15500 version_type=darwin
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15504 soname_spec='${libname}${release}${major}$shared_ext'
15505 shlibpath_overrides_runpath=yes
15506 shlibpath_var=DYLD_LIBRARY_PATH
15507 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15508 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15509 if test "$GCC" = yes; then
15510 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15511 else
15512 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15517 dgux*)
15518 version_type=linux
15519 need_lib_prefix=no
15520 need_version=no
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15526 freebsd1*)
15527 dynamic_linker=no
15530 kfreebsd*-gnu)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=no
15538 hardcode_into_libs=yes
15539 dynamic_linker='GNU ld.so'
15542 freebsd* | dragonfly*)
15543 # DragonFly does not have aout. When/if they implement a new
15544 # versioning mechanism, adjust this.
15545 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15546 version_type=freebsd-$objformat
15547 case $version_type in
15548 freebsd-elf*)
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15550 need_version=no
15551 need_lib_prefix=no
15553 freebsd-*)
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15555 need_version=yes
15557 esac
15558 shlibpath_var=LD_LIBRARY_PATH
15559 case $host_os in
15560 freebsd2*)
15561 shlibpath_overrides_runpath=yes
15563 freebsd3.[01]* | freebsdelf3.[01]*)
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15567 *) # from 3.2 on
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15571 esac
15574 gnu*)
15575 version_type=linux
15576 need_lib_prefix=no
15577 need_version=no
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 hardcode_into_libs=yes
15584 hpux9* | hpux10* | hpux11*)
15585 # Give a soname corresponding to the major version so that dld.sl refuses to
15586 # link against other versions.
15587 version_type=sunos
15588 need_lib_prefix=no
15589 need_version=no
15590 case "$host_cpu" in
15591 ia64*)
15592 shrext_cmds='.so'
15593 hardcode_into_libs=yes
15594 dynamic_linker="$host_os dld.so"
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 if test "X$HPUX_IA64_MODE" = X32; then
15600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15601 else
15602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15606 hppa*64*)
15607 shrext_cmds='.sl'
15608 hardcode_into_libs=yes
15609 dynamic_linker="$host_os dld.sl"
15610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15618 shrext_cmds='.sl'
15619 dynamic_linker="$host_os dld.sl"
15620 shlibpath_var=SHLIB_PATH
15621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15625 esac
15626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15627 postinstall_cmds='chmod 555 $lib'
15630 irix5* | irix6* | nonstopux*)
15631 case $host_os in
15632 nonstopux*) version_type=nonstopux ;;
15634 if test "$lt_cv_prog_gnu_ld" = yes; then
15635 version_type=linux
15636 else
15637 version_type=irix
15638 fi ;;
15639 esac
15640 need_lib_prefix=no
15641 need_version=no
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15644 case $host_os in
15645 irix5* | nonstopux*)
15646 libsuff= shlibsuff=
15649 case $LD in # libtool.m4 will add one of these switches to LD
15650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15651 libsuff= shlibsuff= libmagic=32-bit;;
15652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15653 libsuff=32 shlibsuff=N32 libmagic=N32;;
15654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15656 *) libsuff= shlibsuff= libmagic=never-match;;
15657 esac
15659 esac
15660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15661 shlibpath_overrides_runpath=no
15662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15664 hardcode_into_libs=yes
15667 # No shared lib support for Linux oldld, aout, or coff.
15668 linux*oldld* | linux*aout* | linux*coff*)
15669 dynamic_linker=no
15672 # This must be Linux ELF.
15673 linux*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=no
15682 # This implies no fast_install, which is unacceptable.
15683 # Some rework will be needed to allow for fast_install
15684 # before this can be enabled.
15685 hardcode_into_libs=yes
15687 # find out which ABI we are using
15688 libsuff=
15689 case "$host_cpu" in
15690 x86_64*|s390x*|powerpc64*)
15691 echo '#line 15691 "configure"' > conftest.$ac_ext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15693 (eval $ac_compile) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; then
15697 case `/usr/bin/file conftest.$ac_objext` in
15698 *64-bit*)
15699 libsuff=64
15700 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15702 esac
15704 rm -rf conftest*
15706 esac
15708 # Append ld.so.conf contents to the search path
15709 if test -f /etc/ld.so.conf; then
15710 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15711 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15714 # We used to test for /lib/ld.so.1 and disable shared libraries on
15715 # powerpc, because MkLinux only supported shared libraries with the
15716 # GNU dynamic linker. Since this was broken with cross compilers,
15717 # most powerpc-linux boxes support dynamic linking these days and
15718 # people can always --disable-shared, the test was removed, and we
15719 # assume the GNU/Linux dynamic linker is in use.
15720 dynamic_linker='GNU/Linux ld.so'
15723 knetbsd*-gnu)
15724 version_type=linux
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 shlibpath_overrides_runpath=no
15731 hardcode_into_libs=yes
15732 dynamic_linker='GNU ld.so'
15735 netbsd*)
15736 version_type=sunos
15737 need_lib_prefix=no
15738 need_version=no
15739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15742 dynamic_linker='NetBSD (a.out) ld.so'
15743 else
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 dynamic_linker='NetBSD ld.elf_so'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 shlibpath_overrides_runpath=yes
15750 hardcode_into_libs=yes
15753 newsos6)
15754 version_type=linux
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 shlibpath_overrides_runpath=yes
15760 nto-qnx*)
15761 version_type=linux
15762 need_lib_prefix=no
15763 need_version=no
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 shlibpath_overrides_runpath=yes
15770 openbsd*)
15771 version_type=sunos
15772 need_lib_prefix=no
15773 need_version=no
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778 case $host_os in
15779 openbsd2.[89] | openbsd2.[89].*)
15780 shlibpath_overrides_runpath=no
15783 shlibpath_overrides_runpath=yes
15785 esac
15786 else
15787 shlibpath_overrides_runpath=yes
15791 os2*)
15792 libname_spec='$name'
15793 shrext_cmds=".dll"
15794 need_lib_prefix=no
15795 library_names_spec='$libname${shared_ext} $libname.a'
15796 dynamic_linker='OS/2 ld.exe'
15797 shlibpath_var=LIBPATH
15800 osf3* | osf4* | osf5*)
15801 version_type=osf
15802 need_lib_prefix=no
15803 need_version=no
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15811 sco3.2v5*)
15812 version_type=osf
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815 shlibpath_var=LD_LIBRARY_PATH
15818 solaris*)
15819 version_type=linux
15820 need_lib_prefix=no
15821 need_version=no
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 shlibpath_overrides_runpath=yes
15826 hardcode_into_libs=yes
15827 # ldd complains unless libraries are executable
15828 postinstall_cmds='chmod +x $lib'
15831 sunos4*)
15832 version_type=sunos
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15834 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 if test "$with_gnu_ld" = yes; then
15838 need_lib_prefix=no
15840 need_version=yes
15843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15844 version_type=linux
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 case $host_vendor in
15849 sni)
15850 shlibpath_overrides_runpath=no
15851 need_lib_prefix=no
15852 export_dynamic_flag_spec='${wl}-Blargedynsym'
15853 runpath_var=LD_RUN_PATH
15855 siemens)
15856 need_lib_prefix=no
15858 motorola)
15859 need_lib_prefix=no
15860 need_version=no
15861 shlibpath_overrides_runpath=no
15862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15864 esac
15867 sysv4*MP*)
15868 if test -d /usr/nec ;then
15869 version_type=linux
15870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15871 soname_spec='$libname${shared_ext}.$major'
15872 shlibpath_var=LD_LIBRARY_PATH
15876 uts4*)
15877 version_type=linux
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15884 dynamic_linker=no
15886 esac
15887 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15888 echo "${ECHO_T}$dynamic_linker" >&6
15889 test "$dynamic_linker" = no && can_build_shared=no
15891 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15892 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15893 hardcode_action_F77=
15894 if test -n "$hardcode_libdir_flag_spec_F77" || \
15895 test -n "$runpath_var_F77" || \
15896 test "X$hardcode_automatic_F77" = "Xyes" ; then
15898 # We can hardcode non-existant directories.
15899 if test "$hardcode_direct_F77" != no &&
15900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15901 # have to relink, otherwise we might link with an installed library
15902 # when we should be linking with a yet-to-be-installed one
15903 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15904 test "$hardcode_minus_L_F77" != no; then
15905 # Linking always hardcodes the temporary library directory.
15906 hardcode_action_F77=relink
15907 else
15908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15909 hardcode_action_F77=immediate
15911 else
15912 # We cannot hardcode anything, or else we can only hardcode existing
15913 # directories.
15914 hardcode_action_F77=unsupported
15916 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15917 echo "${ECHO_T}$hardcode_action_F77" >&6
15919 if test "$hardcode_action_F77" = relink; then
15920 # Fast installation is not supported
15921 enable_fast_install=no
15922 elif test "$shlibpath_overrides_runpath" = yes ||
15923 test "$enable_shared" = no; then
15924 # Fast installation is not necessary
15925 enable_fast_install=needless
15928 striplib=
15929 old_striplib=
15930 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15931 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15932 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15933 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15934 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15935 echo "$as_me:$LINENO: result: yes" >&5
15936 echo "${ECHO_T}yes" >&6
15937 else
15938 # FIXME - insert some real tests, host_os isn't really good enough
15939 case $host_os in
15940 darwin*)
15941 if test -n "$STRIP" ; then
15942 striplib="$STRIP -x"
15943 echo "$as_me:$LINENO: result: yes" >&5
15944 echo "${ECHO_T}yes" >&6
15945 else
15946 echo "$as_me:$LINENO: result: no" >&5
15947 echo "${ECHO_T}no" >&6
15951 echo "$as_me:$LINENO: result: no" >&5
15952 echo "${ECHO_T}no" >&6
15954 esac
15959 # The else clause should only fire when bootstrapping the
15960 # libtool distribution, otherwise you forgot to ship ltmain.sh
15961 # with your package, and you will get complaints that there are
15962 # no rules to generate ltmain.sh.
15963 if test -f "$ltmain"; then
15964 # See if we are running on zsh, and set the options which allow our commands through
15965 # without removal of \ escapes.
15966 if test -n "${ZSH_VERSION+set}" ; then
15967 setopt NO_GLOB_SUBST
15969 # Now quote all the things that may contain metacharacters while being
15970 # careful not to overquote the AC_SUBSTed values. We take copies of the
15971 # variables and quote the copies for generation of the libtool script.
15972 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15973 SED SHELL STRIP \
15974 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15975 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15976 deplibs_check_method reload_flag reload_cmds need_locks \
15977 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15978 lt_cv_sys_global_symbol_to_c_name_address \
15979 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15980 old_postinstall_cmds old_postuninstall_cmds \
15981 compiler_F77 \
15982 CC_F77 \
15983 LD_F77 \
15984 lt_prog_compiler_wl_F77 \
15985 lt_prog_compiler_pic_F77 \
15986 lt_prog_compiler_static_F77 \
15987 lt_prog_compiler_no_builtin_flag_F77 \
15988 export_dynamic_flag_spec_F77 \
15989 thread_safe_flag_spec_F77 \
15990 whole_archive_flag_spec_F77 \
15991 enable_shared_with_static_runtimes_F77 \
15992 old_archive_cmds_F77 \
15993 old_archive_from_new_cmds_F77 \
15994 predep_objects_F77 \
15995 postdep_objects_F77 \
15996 predeps_F77 \
15997 postdeps_F77 \
15998 compiler_lib_search_path_F77 \
15999 archive_cmds_F77 \
16000 archive_expsym_cmds_F77 \
16001 postinstall_cmds_F77 \
16002 postuninstall_cmds_F77 \
16003 old_archive_from_expsyms_cmds_F77 \
16004 allow_undefined_flag_F77 \
16005 no_undefined_flag_F77 \
16006 export_symbols_cmds_F77 \
16007 hardcode_libdir_flag_spec_F77 \
16008 hardcode_libdir_flag_spec_ld_F77 \
16009 hardcode_libdir_separator_F77 \
16010 hardcode_automatic_F77 \
16011 module_cmds_F77 \
16012 module_expsym_cmds_F77 \
16013 lt_cv_prog_compiler_c_o_F77 \
16014 exclude_expsyms_F77 \
16015 include_expsyms_F77; do
16017 case $var in
16018 old_archive_cmds_F77 | \
16019 old_archive_from_new_cmds_F77 | \
16020 archive_cmds_F77 | \
16021 archive_expsym_cmds_F77 | \
16022 module_cmds_F77 | \
16023 module_expsym_cmds_F77 | \
16024 old_archive_from_expsyms_cmds_F77 | \
16025 export_symbols_cmds_F77 | \
16026 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16027 postinstall_cmds | postuninstall_cmds | \
16028 old_postinstall_cmds | old_postuninstall_cmds | \
16029 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16030 # Double-quote double-evaled strings.
16031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16036 esac
16037 done
16039 case $lt_echo in
16040 *'\$0 --fallback-echo"')
16041 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16043 esac
16045 cfgfile="$ofile"
16047 cat <<__EOF__ >> "$cfgfile"
16048 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16050 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16052 # Shell to use when invoking shell scripts.
16053 SHELL=$lt_SHELL
16055 # Whether or not to build shared libraries.
16056 build_libtool_libs=$enable_shared
16058 # Whether or not to build static libraries.
16059 build_old_libs=$enable_static
16061 # Whether or not to add -lc for building shared libraries.
16062 build_libtool_need_lc=$archive_cmds_need_lc_F77
16064 # Whether or not to disallow shared libs when runtime libs are static
16065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16067 # Whether or not to optimize for fast installation.
16068 fast_install=$enable_fast_install
16070 # The host system.
16071 host_alias=$host_alias
16072 host=$host
16073 host_os=$host_os
16075 # The build system.
16076 build_alias=$build_alias
16077 build=$build
16078 build_os=$build_os
16080 # An echo program that does not interpret backslashes.
16081 echo=$lt_echo
16083 # The archiver.
16084 AR=$lt_AR
16085 AR_FLAGS=$lt_AR_FLAGS
16087 # A C compiler.
16088 LTCC=$lt_LTCC
16090 # A language-specific compiler.
16091 CC=$lt_compiler_F77
16093 # Is the compiler the GNU C compiler?
16094 with_gcc=$GCC_F77
16096 # An ERE matcher.
16097 EGREP=$lt_EGREP
16099 # The linker used to build libraries.
16100 LD=$lt_LD_F77
16102 # Whether we need hard or soft links.
16103 LN_S=$lt_LN_S
16105 # A BSD-compatible nm program.
16106 NM=$lt_NM
16108 # A symbol stripping program
16109 STRIP=$lt_STRIP
16111 # Used to examine libraries when file_magic_cmd begins "file"
16112 MAGIC_CMD=$MAGIC_CMD
16114 # Used on cygwin: DLL creation program.
16115 DLLTOOL="$DLLTOOL"
16117 # Used on cygwin: object dumper.
16118 OBJDUMP="$OBJDUMP"
16120 # Used on cygwin: assembler.
16121 AS="$AS"
16123 # The name of the directory that contains temporary libtool files.
16124 objdir=$objdir
16126 # How to create reloadable object files.
16127 reload_flag=$lt_reload_flag
16128 reload_cmds=$lt_reload_cmds
16130 # How to pass a linker flag through the compiler.
16131 wl=$lt_lt_prog_compiler_wl_F77
16133 # Object file suffix (normally "o").
16134 objext="$ac_objext"
16136 # Old archive suffix (normally "a").
16137 libext="$libext"
16139 # Shared library suffix (normally ".so").
16140 shrext_cmds='$shrext_cmds'
16142 # Executable file suffix (normally "").
16143 exeext="$exeext"
16145 # Additional compiler flags for building library objects.
16146 pic_flag=$lt_lt_prog_compiler_pic_F77
16147 pic_mode=$pic_mode
16149 # What is the maximum length of a command?
16150 max_cmd_len=$lt_cv_sys_max_cmd_len
16152 # Does compiler simultaneously support -c and -o options?
16153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16155 # Must we lock files when doing compilation?
16156 need_locks=$lt_need_locks
16158 # Do we need the lib prefix for modules?
16159 need_lib_prefix=$need_lib_prefix
16161 # Do we need a version for libraries?
16162 need_version=$need_version
16164 # Whether dlopen is supported.
16165 dlopen_support=$enable_dlopen
16167 # Whether dlopen of programs is supported.
16168 dlopen_self=$enable_dlopen_self
16170 # Whether dlopen of statically linked programs is supported.
16171 dlopen_self_static=$enable_dlopen_self_static
16173 # Compiler flag to prevent dynamic linking.
16174 link_static_flag=$lt_lt_prog_compiler_static_F77
16176 # Compiler flag to turn off builtin functions.
16177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16179 # Compiler flag to allow reflexive dlopens.
16180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16182 # Compiler flag to generate shared objects directly from archives.
16183 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16185 # Compiler flag to generate thread-safe objects.
16186 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16188 # Library versioning type.
16189 version_type=$version_type
16191 # Format of library name prefix.
16192 libname_spec=$lt_libname_spec
16194 # List of archive names. First name is the real one, the rest are links.
16195 # The last name is the one that the linker finds with -lNAME.
16196 library_names_spec=$lt_library_names_spec
16198 # The coded name of the library, if different from the real name.
16199 soname_spec=$lt_soname_spec
16201 # Commands used to build and install an old-style archive.
16202 RANLIB=$lt_RANLIB
16203 old_archive_cmds=$lt_old_archive_cmds_F77
16204 old_postinstall_cmds=$lt_old_postinstall_cmds
16205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16207 # Create an old-style archive from a shared archive.
16208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16210 # Create a temporary old-style archive to link instead of a shared archive.
16211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16213 # Commands used to build and install a shared archive.
16214 archive_cmds=$lt_archive_cmds_F77
16215 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16216 postinstall_cmds=$lt_postinstall_cmds
16217 postuninstall_cmds=$lt_postuninstall_cmds
16219 # Commands used to build a loadable module (assumed same as above if empty)
16220 module_cmds=$lt_module_cmds_F77
16221 module_expsym_cmds=$lt_module_expsym_cmds_F77
16223 # Commands to strip libraries.
16224 old_striplib=$lt_old_striplib
16225 striplib=$lt_striplib
16227 # Dependencies to place before the objects being linked to create a
16228 # shared library.
16229 predep_objects=$lt_predep_objects_F77
16231 # Dependencies to place after the objects being linked to create a
16232 # shared library.
16233 postdep_objects=$lt_postdep_objects_F77
16235 # Dependencies to place before the objects being linked to create a
16236 # shared library.
16237 predeps=$lt_predeps_F77
16239 # Dependencies to place after the objects being linked to create a
16240 # shared library.
16241 postdeps=$lt_postdeps_F77
16243 # The library search path used internally by the compiler when linking
16244 # a shared library.
16245 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16247 # Method to check whether dependent libraries are shared objects.
16248 deplibs_check_method=$lt_deplibs_check_method
16250 # Command to use when deplibs_check_method == file_magic.
16251 file_magic_cmd=$lt_file_magic_cmd
16253 # Flag that allows shared libraries with undefined symbols to be built.
16254 allow_undefined_flag=$lt_allow_undefined_flag_F77
16256 # Flag that forces no undefined symbols.
16257 no_undefined_flag=$lt_no_undefined_flag_F77
16259 # Commands used to finish a libtool library installation in a directory.
16260 finish_cmds=$lt_finish_cmds
16262 # Same as above, but a single script fragment to be evaled but not shown.
16263 finish_eval=$lt_finish_eval
16265 # Take the output of nm and produce a listing of raw symbols and C names.
16266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16268 # Transform the output of nm in a proper C declaration
16269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16271 # Transform the output of nm in a C name address pair
16272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16274 # This is the shared library runtime path variable.
16275 runpath_var=$runpath_var
16277 # This is the shared library path variable.
16278 shlibpath_var=$shlibpath_var
16280 # Is shlibpath searched before the hard-coded library search path?
16281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16283 # How to hardcode a shared library path into an executable.
16284 hardcode_action=$hardcode_action_F77
16286 # Whether we should hardcode library paths into libraries.
16287 hardcode_into_libs=$hardcode_into_libs
16289 # Flag to hardcode \$libdir into a binary during linking.
16290 # This must work even if \$libdir does not exist.
16291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16293 # If ld is used when linking, flag to hardcode \$libdir into
16294 # a binary during linking. This must work even if \$libdir does
16295 # not exist.
16296 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16298 # Whether we need a single -rpath flag with a separated argument.
16299 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16301 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16302 # resulting binary.
16303 hardcode_direct=$hardcode_direct_F77
16305 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16306 # resulting binary.
16307 hardcode_minus_L=$hardcode_minus_L_F77
16309 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16310 # the resulting binary.
16311 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16313 # Set to yes if building a shared library automatically hardcodes DIR into the library
16314 # and all subsequent libraries and executables linked against it.
16315 hardcode_automatic=$hardcode_automatic_F77
16317 # Variables whose values should be saved in libtool wrapper scripts and
16318 # restored at relink time.
16319 variables_saved_for_relink="$variables_saved_for_relink"
16321 # Whether libtool must link a program against all its dependency libraries.
16322 link_all_deplibs=$link_all_deplibs_F77
16324 # Compile-time system search path for libraries
16325 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16327 # Run-time system search path for libraries
16328 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16330 # Fix the shell variable \$srcfile for the compiler.
16331 fix_srcfile_path="$fix_srcfile_path_F77"
16333 # Set to yes if exported symbols are required.
16334 always_export_symbols=$always_export_symbols_F77
16336 # The commands to list exported symbols.
16337 export_symbols_cmds=$lt_export_symbols_cmds_F77
16339 # The commands to extract the exported symbol list from a shared archive.
16340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16342 # Symbols that should not be listed in the preloaded symbols.
16343 exclude_expsyms=$lt_exclude_expsyms_F77
16345 # Symbols that must always be exported.
16346 include_expsyms=$lt_include_expsyms_F77
16348 # ### END LIBTOOL TAG CONFIG: $tagname
16350 __EOF__
16353 else
16354 # If there is no Makefile yet, we rely on a make rule to execute
16355 # `config.status --recheck' to rerun these tests and create the
16356 # libtool script then.
16357 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16358 if test -f "$ltmain_in"; then
16359 test -f Makefile && make "$ltmain"
16364 ac_ext=c
16365 ac_cpp='$CPP $CPPFLAGS'
16366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16370 CC="$lt_save_CC"
16372 else
16373 tagname=""
16377 GCJ)
16378 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16382 # Source file extension for Java test sources.
16383 ac_ext=java
16385 # Object file extension for compiled Java test sources.
16386 objext=o
16387 objext_GCJ=$objext
16389 # Code to be used in simple compile tests
16390 lt_simple_compile_test_code="class foo {}\n"
16392 # Code to be used in simple link tests
16393 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16397 # If no C compiler was specified, use CC.
16398 LTCC=${LTCC-"$CC"}
16400 # Allow CC to be a program name with arguments.
16401 compiler=$CC
16404 # save warnings/boilerplate of simple test code
16405 ac_outfile=conftest.$ac_objext
16406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16408 _lt_compiler_boilerplate=`cat conftest.err`
16409 $rm conftest*
16411 ac_outfile=conftest.$ac_objext
16412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16414 _lt_linker_boilerplate=`cat conftest.err`
16415 $rm conftest*
16418 # Allow CC to be a program name with arguments.
16419 lt_save_CC="$CC"
16420 CC=${GCJ-"gcj"}
16421 compiler=$CC
16422 compiler_GCJ=$CC
16423 for cc_temp in $compiler""; do
16424 case $cc_temp in
16425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16427 \-*) ;;
16428 *) break;;
16429 esac
16430 done
16431 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16434 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16435 archive_cmds_need_lc_GCJ=no
16437 old_archive_cmds_GCJ=$old_archive_cmds
16439 ## CAVEAT EMPTOR:
16440 ## There is no encapsulation within the following macros, do not change
16441 ## the running order or otherwise move them around unless you know exactly
16442 ## what you are doing...
16444 lt_prog_compiler_no_builtin_flag_GCJ=
16446 if test "$GCC" = yes; then
16447 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16450 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16451 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 lt_cv_prog_compiler_rtti_exceptions=no
16456 ac_outfile=conftest.$ac_objext
16457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16458 lt_compiler_flag="-fno-rtti -fno-exceptions"
16459 # Insert the option either (1) after the last *FLAGS variable, or
16460 # (2) before a word containing "conftest.", or (3) at the end.
16461 # Note that $ac_compile itself does not contain backslashes and begins
16462 # with a dollar sign (not a hyphen), so the echo should work correctly.
16463 # The option is referenced via a variable to avoid confusing sed.
16464 lt_compile=`echo "$ac_compile" | $SED \
16465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16467 -e 's:$: $lt_compiler_flag:'`
16468 (eval echo "\"\$as_me:16468: $lt_compile\"" >&5)
16469 (eval "$lt_compile" 2>conftest.err)
16470 ac_status=$?
16471 cat conftest.err >&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 if (exit $ac_status) && test -s "$ac_outfile"; then
16474 # The compiler can only warn and ignore the option if not recognized
16475 # So say no if there are warnings other than the usual output.
16476 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16477 $SED '/^$/d' conftest.err >conftest.er2
16478 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16479 lt_cv_prog_compiler_rtti_exceptions=yes
16482 $rm conftest*
16485 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16486 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16489 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16490 else
16496 lt_prog_compiler_wl_GCJ=
16497 lt_prog_compiler_pic_GCJ=
16498 lt_prog_compiler_static_GCJ=
16500 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16503 if test "$GCC" = yes; then
16504 lt_prog_compiler_wl_GCJ='-Wl,'
16505 lt_prog_compiler_static_GCJ='-static'
16507 case $host_os in
16508 aix*)
16509 # All AIX code is PIC.
16510 if test "$host_cpu" = ia64; then
16511 # AIX 5 now supports IA64 processor
16512 lt_prog_compiler_static_GCJ='-Bstatic'
16516 amigaos*)
16517 # FIXME: we need at least 68020 code to build shared libraries, but
16518 # adding the `-m68020' flag to GCC prevents building anything better,
16519 # like `-m68040'.
16520 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16524 # PIC is the default for these OSes.
16527 mingw* | pw32* | os2*)
16528 # This hack is so that the source file can tell whether it is being
16529 # built for inclusion in a dll (and should export symbols for example).
16530 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16533 darwin* | rhapsody*)
16534 # PIC is the default on this platform
16535 # Common symbols not allowed in MH_DYLIB files
16536 lt_prog_compiler_pic_GCJ='-fno-common'
16539 msdosdjgpp*)
16540 # Just because we use GCC doesn't mean we suddenly get shared libraries
16541 # on systems that don't support them.
16542 lt_prog_compiler_can_build_shared_GCJ=no
16543 enable_shared=no
16546 sysv4*MP*)
16547 if test -d /usr/nec; then
16548 lt_prog_compiler_pic_GCJ=-Kconform_pic
16552 hpux*)
16553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16554 # not for PA HP-UX.
16555 case "$host_cpu" in
16556 hppa*64*|ia64*)
16557 # +Z the default
16560 lt_prog_compiler_pic_GCJ='-fPIC'
16562 esac
16566 lt_prog_compiler_pic_GCJ='-fPIC'
16568 esac
16569 else
16570 # PORTME Check for flag to pass linker flags through the system compiler.
16571 case $host_os in
16572 aix*)
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 if test "$host_cpu" = ia64; then
16575 # AIX 5 now supports IA64 processor
16576 lt_prog_compiler_static_GCJ='-Bstatic'
16577 else
16578 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16581 darwin*)
16582 # PIC is the default on this platform
16583 # Common symbols not allowed in MH_DYLIB files
16584 case $cc_basename in
16585 xlc*)
16586 lt_prog_compiler_pic_GCJ='-qnocommon'
16587 lt_prog_compiler_wl_GCJ='-Wl,'
16589 esac
16592 mingw* | pw32* | os2*)
16593 # This hack is so that the source file can tell whether it is being
16594 # built for inclusion in a dll (and should export symbols for example).
16595 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16598 hpux9* | hpux10* | hpux11*)
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16601 # not for PA HP-UX.
16602 case "$host_cpu" in
16603 hppa*64*|ia64*)
16604 # +Z the default
16607 lt_prog_compiler_pic_GCJ='+Z'
16609 esac
16610 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16611 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16614 irix5* | irix6* | nonstopux*)
16615 lt_prog_compiler_wl_GCJ='-Wl,'
16616 # PIC (with -KPIC) is the default.
16617 lt_prog_compiler_static_GCJ='-non_shared'
16620 newsos6)
16621 lt_prog_compiler_pic_GCJ='-KPIC'
16622 lt_prog_compiler_static_GCJ='-Bstatic'
16625 linux*)
16626 case $cc_basename in
16627 icc* | ecc*)
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_pic_GCJ='-KPIC'
16630 lt_prog_compiler_static_GCJ='-static'
16632 pgcc* | pgf77* | pgf90*)
16633 # Portland Group compilers (*not* the Pentium gcc compiler,
16634 # which looks to be a dead project)
16635 lt_prog_compiler_wl_GCJ='-Wl,'
16636 lt_prog_compiler_pic_GCJ='-fpic'
16637 lt_prog_compiler_static_GCJ='-static'
16639 ccc*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 # All Alpha code is PIC.
16642 lt_prog_compiler_static_GCJ='-non_shared'
16644 esac
16647 osf3* | osf4* | osf5*)
16648 lt_prog_compiler_wl_GCJ='-Wl,'
16649 # All OSF/1 code is PIC.
16650 lt_prog_compiler_static_GCJ='-non_shared'
16653 sco3.2v5*)
16654 lt_prog_compiler_pic_GCJ='-Kpic'
16655 lt_prog_compiler_static_GCJ='-dn'
16658 solaris*)
16659 lt_prog_compiler_pic_GCJ='-KPIC'
16660 lt_prog_compiler_static_GCJ='-Bstatic'
16661 case $cc_basename in
16662 f77* | f90* | f95*)
16663 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16665 lt_prog_compiler_wl_GCJ='-Wl,';;
16666 esac
16669 sunos4*)
16670 lt_prog_compiler_wl_GCJ='-Qoption ld '
16671 lt_prog_compiler_pic_GCJ='-PIC'
16672 lt_prog_compiler_static_GCJ='-Bstatic'
16675 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16676 lt_prog_compiler_wl_GCJ='-Wl,'
16677 lt_prog_compiler_pic_GCJ='-KPIC'
16678 lt_prog_compiler_static_GCJ='-Bstatic'
16681 sysv4*MP*)
16682 if test -d /usr/nec ;then
16683 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16684 lt_prog_compiler_static_GCJ='-Bstatic'
16688 unicos*)
16689 lt_prog_compiler_wl_GCJ='-Wl,'
16690 lt_prog_compiler_can_build_shared_GCJ=no
16693 uts4*)
16694 lt_prog_compiler_pic_GCJ='-pic'
16695 lt_prog_compiler_static_GCJ='-Bstatic'
16699 lt_prog_compiler_can_build_shared_GCJ=no
16701 esac
16704 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16705 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16708 # Check to make sure the PIC flag actually works.
16710 if test -n "$lt_prog_compiler_pic_GCJ"; then
16712 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16714 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717 lt_prog_compiler_pic_works_GCJ=no
16718 ac_outfile=conftest.$ac_objext
16719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16720 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16721 # Insert the option either (1) after the last *FLAGS variable, or
16722 # (2) before a word containing "conftest.", or (3) at the end.
16723 # Note that $ac_compile itself does not contain backslashes and begins
16724 # with a dollar sign (not a hyphen), so the echo should work correctly.
16725 # The option is referenced via a variable to avoid confusing sed.
16726 lt_compile=`echo "$ac_compile" | $SED \
16727 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729 -e 's:$: $lt_compiler_flag:'`
16730 (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731 (eval "$lt_compile" 2>conftest.err)
16732 ac_status=$?
16733 cat conftest.err >&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 if (exit $ac_status) && test -s "$ac_outfile"; then
16736 # The compiler can only warn and ignore the option if not recognized
16737 # So say no if there are warnings other than the usual output.
16738 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16739 $SED '/^$/d' conftest.err >conftest.er2
16740 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16741 lt_prog_compiler_pic_works_GCJ=yes
16744 $rm conftest*
16747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16748 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16750 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16751 case $lt_prog_compiler_pic_GCJ in
16752 "" | " "*) ;;
16753 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16754 esac
16755 else
16756 lt_prog_compiler_pic_GCJ=
16757 lt_prog_compiler_can_build_shared_GCJ=no
16761 case "$host_os" in
16762 # For platforms which do not support PIC, -DPIC is meaningless:
16763 *djgpp*)
16764 lt_prog_compiler_pic_GCJ=
16767 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16769 esac
16771 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16772 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16773 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776 lt_cv_prog_compiler_c_o_GCJ=no
16777 $rm -r conftest 2>/dev/null
16778 mkdir conftest
16779 cd conftest
16780 mkdir out
16781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16783 lt_compiler_flag="-o out/conftest2.$ac_objext"
16784 # Insert the option either (1) after the last *FLAGS variable, or
16785 # (2) before a word containing "conftest.", or (3) at the end.
16786 # Note that $ac_compile itself does not contain backslashes and begins
16787 # with a dollar sign (not a hyphen), so the echo should work correctly.
16788 lt_compile=`echo "$ac_compile" | $SED \
16789 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16791 -e 's:$: $lt_compiler_flag:'`
16792 (eval echo "\"\$as_me:16792: $lt_compile\"" >&5)
16793 (eval "$lt_compile" 2>out/conftest.err)
16794 ac_status=$?
16795 cat out/conftest.err >&5
16796 echo "$as_me:16796: \$? = $ac_status" >&5
16797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16798 then
16799 # The compiler can only warn and ignore the option if not recognized
16800 # So say no if there are warnings
16801 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16802 $SED '/^$/d' out/conftest.err >out/conftest.er2
16803 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16804 lt_cv_prog_compiler_c_o_GCJ=yes
16807 chmod u+w .
16808 $rm conftest*
16809 # SGI C++ compiler will create directory out/ii_files/ for
16810 # template instantiation
16811 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16812 $rm out/* && rmdir out
16813 cd ..
16814 rmdir conftest
16815 $rm conftest*
16818 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16819 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16822 hard_links="nottested"
16823 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16824 # do not overwrite the value of need_locks provided by the user
16825 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16826 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16827 hard_links=yes
16828 $rm conftest*
16829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16830 touch conftest.a
16831 ln conftest.a conftest.b 2>&5 || hard_links=no
16832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16833 echo "$as_me:$LINENO: result: $hard_links" >&5
16834 echo "${ECHO_T}$hard_links" >&6
16835 if test "$hard_links" = no; then
16836 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16837 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16838 need_locks=warn
16840 else
16841 need_locks=no
16844 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16847 runpath_var=
16848 allow_undefined_flag_GCJ=
16849 enable_shared_with_static_runtimes_GCJ=no
16850 archive_cmds_GCJ=
16851 archive_expsym_cmds_GCJ=
16852 old_archive_From_new_cmds_GCJ=
16853 old_archive_from_expsyms_cmds_GCJ=
16854 export_dynamic_flag_spec_GCJ=
16855 whole_archive_flag_spec_GCJ=
16856 thread_safe_flag_spec_GCJ=
16857 hardcode_libdir_flag_spec_GCJ=
16858 hardcode_libdir_flag_spec_ld_GCJ=
16859 hardcode_libdir_separator_GCJ=
16860 hardcode_direct_GCJ=no
16861 hardcode_minus_L_GCJ=no
16862 hardcode_shlibpath_var_GCJ=unsupported
16863 link_all_deplibs_GCJ=unknown
16864 hardcode_automatic_GCJ=no
16865 module_cmds_GCJ=
16866 module_expsym_cmds_GCJ=
16867 always_export_symbols_GCJ=no
16868 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16869 # include_expsyms should be a list of space-separated symbols to be *always*
16870 # included in the symbol list
16871 include_expsyms_GCJ=
16872 # exclude_expsyms can be an extended regexp of symbols to exclude
16873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16875 # as well as any symbol that contains `d'.
16876 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16878 # platforms (ab)use it in PIC code, but their linkers get confused if
16879 # the symbol is explicitly referenced. Since portable code cannot
16880 # rely on this symbol name, it's probably fine to never include it in
16881 # preloaded symbol tables.
16882 extract_expsyms_cmds=
16883 # Just being paranoid about ensuring that cc_basename is set.
16884 for cc_temp in $compiler""; do
16885 case $cc_temp in
16886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16888 \-*) ;;
16889 *) break;;
16890 esac
16891 done
16892 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16894 case $host_os in
16895 cygwin* | mingw* | pw32*)
16896 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16897 # When not using gcc, we currently assume that we are using
16898 # Microsoft Visual C++.
16899 if test "$GCC" != yes; then
16900 with_gnu_ld=no
16903 openbsd*)
16904 with_gnu_ld=no
16906 esac
16908 ld_shlibs_GCJ=yes
16909 if test "$with_gnu_ld" = yes; then
16910 # If archive_cmds runs LD, not CC, wlarc should be empty
16911 wlarc='${wl}'
16913 # Set some defaults for GNU ld with shared library support. These
16914 # are reset later if shared libraries are not supported. Putting them
16915 # here allows them to be overridden if necessary.
16916 runpath_var=LD_RUN_PATH
16917 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16918 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16919 # ancient GNU ld didn't support --whole-archive et. al.
16920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16921 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16922 else
16923 whole_archive_flag_spec_GCJ=
16925 supports_anon_versioning=no
16926 case `$LD -v 2>/dev/null` in
16927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16930 *\ 2.11.*) ;; # other 2.11 versions
16931 *) supports_anon_versioning=yes ;;
16932 esac
16934 # See if GNU ld supports shared libraries.
16935 case $host_os in
16936 aix3* | aix4* | aix5*)
16937 # On AIX/PPC, the GNU linker is very broken
16938 if test "$host_cpu" != ia64; then
16939 ld_shlibs_GCJ=no
16940 cat <<EOF 1>&2
16942 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16943 *** to be unable to reliably create shared libraries on AIX.
16944 *** Therefore, libtool is disabling shared libraries support. If you
16945 *** really care for shared libraries, you may want to modify your PATH
16946 *** so that a non-GNU linker is found, and then restart.
16952 amigaos*)
16953 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)'
16954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16955 hardcode_minus_L_GCJ=yes
16957 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16958 # that the semantics of dynamic libraries on AmigaOS, at least up
16959 # to version 4, is to share data among multiple programs linked
16960 # with the same dynamic library. Since this doesn't match the
16961 # behavior of shared libraries on other platforms, we can't use
16962 # them.
16963 ld_shlibs_GCJ=no
16966 beos*)
16967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16968 allow_undefined_flag_GCJ=unsupported
16969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16970 # support --undefined. This deserves some investigation. FIXME
16971 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16972 else
16973 ld_shlibs_GCJ=no
16977 cygwin* | mingw* | pw32*)
16978 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16979 # as there is no search path for DLLs.
16980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981 allow_undefined_flag_GCJ=unsupported
16982 always_export_symbols_GCJ=no
16983 enable_shared_with_static_runtimes_GCJ=yes
16984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16988 # If the export-symbols file already is a .def file (1st line
16989 # is EXPORTS), use it as is; otherwise, prepend...
16990 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16991 cp $export_symbols $output_objdir/$soname.def;
16992 else
16993 echo EXPORTS > $output_objdir/$soname.def;
16994 cat $export_symbols >> $output_objdir/$soname.def;
16996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16997 else
16998 ld_shlibs_GCJ=no
17002 linux*)
17003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17004 tmp_addflag=
17005 case $cc_basename,$host_cpu in
17006 pgcc*) # Portland Group C compiler
17007 whole_archive_flag_spec_GCJ=
17009 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17010 whole_archive_flag_spec_GCJ=
17011 tmp_addflag=' -fpic -Mnomain' ;;
17012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17013 tmp_addflag=' -i_dynamic' ;;
17014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17015 tmp_addflag=' -i_dynamic -nofor_main' ;;
17016 ifc* | ifort*) # Intel Fortran compiler
17017 tmp_addflag=' -nofor_main' ;;
17018 esac
17019 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17021 if test $supports_anon_versioning = yes; then
17022 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17024 $echo "local: *; };" >> $output_objdir/$libname.ver~
17025 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17027 else
17028 ld_shlibs_GCJ=no
17032 netbsd*)
17033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17034 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17035 wlarc=
17036 else
17037 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17038 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17042 solaris* | sysv5*)
17043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17044 ld_shlibs_GCJ=no
17045 cat <<EOF 1>&2
17047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17048 *** create shared libraries on Solaris systems. Therefore, libtool
17049 *** is disabling shared libraries support. We urge you to upgrade GNU
17050 *** binutils to release 2.9.1 or newer. Another option is to modify
17051 *** your PATH or compiler configuration so that the native linker is
17052 *** used, and then restart.
17055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17056 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17058 else
17059 ld_shlibs_GCJ=no
17063 sunos4*)
17064 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17065 wlarc=
17066 hardcode_direct_GCJ=yes
17067 hardcode_shlibpath_var_GCJ=no
17071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17074 else
17075 ld_shlibs_GCJ=no
17078 esac
17080 if test "$ld_shlibs_GCJ" = no; then
17081 runpath_var=
17082 hardcode_libdir_flag_spec_GCJ=
17083 export_dynamic_flag_spec_GCJ=
17084 whole_archive_flag_spec_GCJ=
17086 else
17087 # PORTME fill in a description of your system's linker (not GNU ld)
17088 case $host_os in
17089 aix3*)
17090 allow_undefined_flag_GCJ=unsupported
17091 always_export_symbols_GCJ=yes
17092 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'
17093 # Note: this linker hardcodes the directories in LIBPATH if there
17094 # are no directories specified by -L.
17095 hardcode_minus_L_GCJ=yes
17096 if test "$GCC" = yes && test -z "$link_static_flag"; then
17097 # Neither direct hardcoding nor static linking is supported with a
17098 # broken collect2.
17099 hardcode_direct_GCJ=unsupported
17103 aix4* | aix5*)
17104 if test "$host_cpu" = ia64; then
17105 # On IA64, the linker does run time linking by default, so we don't
17106 # have to do anything special.
17107 aix_use_runtimelinking=no
17108 exp_sym_flag='-Bexport'
17109 no_entry_flag=""
17110 else
17111 # If we're using GNU nm, then we don't want the "-C" option.
17112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17113 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17114 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'
17115 else
17116 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'
17118 aix_use_runtimelinking=no
17120 # Test if we are trying to use run time linking or normal
17121 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17122 # need to do runtime linking.
17123 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17124 for ld_flag in $LDFLAGS; do
17125 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17126 aix_use_runtimelinking=yes
17127 break
17129 done
17130 esac
17132 exp_sym_flag='-bexport'
17133 no_entry_flag='-bnoentry'
17136 # When large executables or shared objects are built, AIX ld can
17137 # have problems creating the table of contents. If linking a library
17138 # or program results in "error TOC overflow" add -mminimal-toc to
17139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17142 archive_cmds_GCJ=''
17143 hardcode_direct_GCJ=yes
17144 hardcode_libdir_separator_GCJ=':'
17145 link_all_deplibs_GCJ=yes
17147 if test "$GCC" = yes; then
17148 case $host_os in aix4.[012]|aix4.[012].*)
17149 # We only want to do this on AIX 4.2 and lower, the check
17150 # below for broken collect2 doesn't work under 4.3+
17151 collect2name=`${CC} -print-prog-name=collect2`
17152 if test -f "$collect2name" && \
17153 strings "$collect2name" | grep resolve_lib_name >/dev/null
17154 then
17155 # We have reworked collect2
17156 hardcode_direct_GCJ=yes
17157 else
17158 # We have old collect2
17159 hardcode_direct_GCJ=unsupported
17160 # It fails to find uninstalled libraries when the uninstalled
17161 # path is not listed in the libpath. Setting hardcode_minus_L
17162 # to unsupported forces relinking
17163 hardcode_minus_L_GCJ=yes
17164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17165 hardcode_libdir_separator_GCJ=
17167 esac
17168 shared_flag='-shared'
17169 if test "$aix_use_runtimelinking" = yes; then
17170 shared_flag="$shared_flag "'${wl}-G'
17172 else
17173 # not using gcc
17174 if test "$host_cpu" = ia64; then
17175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17176 # chokes on -Wl,-G. The following line is correct:
17177 shared_flag='-G'
17178 else
17179 if test "$aix_use_runtimelinking" = yes; then
17180 shared_flag='${wl}-G'
17181 else
17182 shared_flag='${wl}-bM:SRE'
17187 # It seems that -bexpall does not export symbols beginning with
17188 # underscore (_), so it is better to generate a list of symbols to export.
17189 always_export_symbols_GCJ=yes
17190 if test "$aix_use_runtimelinking" = yes; then
17191 # Warning - without using the other runtime loading flags (-brtl),
17192 # -berok will link without error, but may produce a broken library.
17193 allow_undefined_flag_GCJ='-berok'
17194 # Determine the default libpath from the value encoded in an empty executable.
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17203 main ()
17207 return 0;
17209 _ACEOF
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212 (eval $ac_link) 2>conftest.er1
17213 ac_status=$?
17214 grep -v '^ *+' conftest.er1 >conftest.err
17215 rm -f conftest.er1
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -z "$ac_c_werror_flag"
17220 || test ! -s conftest.err'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17235 # Check for a 64-bit object if we didn't find anything.
17236 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; }
17237 }'`; fi
17238 else
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17243 rm -f conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17247 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17248 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17249 else
17250 if test "$host_cpu" = ia64; then
17251 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17252 allow_undefined_flag_GCJ="-z nodefs"
17253 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"
17254 else
17255 # Determine the default libpath from the value encoded in an empty executable.
17256 cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h. */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17264 main ()
17268 return 0;
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273 (eval $ac_link) 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17296 # Check for a 64-bit object if we didn't find anything.
17297 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; }
17298 }'`; fi
17299 else
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17304 rm -f conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17308 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17309 # Warning - without using the other run time loading flags,
17310 # -berok will link without error, but may produce a broken library.
17311 no_undefined_flag_GCJ=' ${wl}-bernotok'
17312 allow_undefined_flag_GCJ=' ${wl}-berok'
17313 # -bexpall does not export symbols beginning with underscore (_)
17314 always_export_symbols_GCJ=yes
17315 # Exported symbols can be pulled into shared objects from archives
17316 whole_archive_flag_spec_GCJ=' '
17317 archive_cmds_need_lc_GCJ=yes
17318 # This is similar to how AIX traditionally builds it's shared libraries.
17319 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'
17324 amigaos*)
17325 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)'
17326 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17327 hardcode_minus_L_GCJ=yes
17328 # see comment about different semantics on the GNU ld section
17329 ld_shlibs_GCJ=no
17332 bsdi[45]*)
17333 export_dynamic_flag_spec_GCJ=-rdynamic
17336 cygwin* | mingw* | pw32*)
17337 # When not using gcc, we currently assume that we are using
17338 # Microsoft Visual C++.
17339 # hardcode_libdir_flag_spec is actually meaningless, as there is
17340 # no search path for DLLs.
17341 hardcode_libdir_flag_spec_GCJ=' '
17342 allow_undefined_flag_GCJ=unsupported
17343 # Tell ltmain to make .lib files, not .a files.
17344 libext=lib
17345 # Tell ltmain to make .dll files, not .so files.
17346 shrext_cmds=".dll"
17347 # FIXME: Setting linknames here is a bad hack.
17348 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17349 # The linker will automatically build a .lib file if we build a DLL.
17350 old_archive_From_new_cmds_GCJ='true'
17351 # FIXME: Should let the user specify the lib program.
17352 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17353 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17354 enable_shared_with_static_runtimes_GCJ=yes
17357 darwin* | rhapsody*)
17358 case "$host_os" in
17359 rhapsody* | darwin1.[012])
17360 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17362 *) # Darwin 1.3 on
17363 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17364 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17365 else
17366 case ${MACOSX_DEPLOYMENT_TARGET} in
17367 10.[012])
17368 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17370 10.*)
17371 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17373 esac
17376 esac
17377 archive_cmds_need_lc_GCJ=no
17378 hardcode_direct_GCJ=no
17379 hardcode_automatic_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=unsupported
17381 whole_archive_flag_spec_GCJ=''
17382 link_all_deplibs_GCJ=yes
17383 if test "$GCC" = yes ; then
17384 output_verbose_link_cmd='echo'
17385 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17386 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17388 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17389 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17390 else
17391 case $cc_basename in
17392 xlc*)
17393 output_verbose_link_cmd='echo'
17394 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17395 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17397 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17398 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17401 ld_shlibs_GCJ=no
17403 esac
17407 dgux*)
17408 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17410 hardcode_shlibpath_var_GCJ=no
17413 freebsd1*)
17414 ld_shlibs_GCJ=no
17417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17418 # support. Future versions do this automatically, but an explicit c++rt0.o
17419 # does not break anything, and helps significantly (at the cost of a little
17420 # extra space).
17421 freebsd2.2*)
17422 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17423 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17424 hardcode_direct_GCJ=yes
17425 hardcode_shlibpath_var_GCJ=no
17428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17429 freebsd2*)
17430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17431 hardcode_direct_GCJ=yes
17432 hardcode_minus_L_GCJ=yes
17433 hardcode_shlibpath_var_GCJ=no
17436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17437 freebsd* | kfreebsd*-gnu | dragonfly*)
17438 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17439 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17440 hardcode_direct_GCJ=yes
17441 hardcode_shlibpath_var_GCJ=no
17444 hpux9*)
17445 if test "$GCC" = yes; then
17446 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'
17447 else
17448 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'
17450 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17451 hardcode_libdir_separator_GCJ=:
17452 hardcode_direct_GCJ=yes
17454 # hardcode_minus_L: Not really in the search PATH,
17455 # but as the default location of the library.
17456 hardcode_minus_L_GCJ=yes
17457 export_dynamic_flag_spec_GCJ='${wl}-E'
17460 hpux10* | hpux11*)
17461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17462 case "$host_cpu" in
17463 hppa*64*|ia64*)
17464 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17469 esac
17470 else
17471 case "$host_cpu" in
17472 hppa*64*|ia64*)
17473 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17476 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17478 esac
17480 if test "$with_gnu_ld" = no; then
17481 case "$host_cpu" in
17482 hppa*64*)
17483 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17484 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17485 hardcode_libdir_separator_GCJ=:
17486 hardcode_direct_GCJ=no
17487 hardcode_shlibpath_var_GCJ=no
17489 ia64*)
17490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17491 hardcode_direct_GCJ=no
17492 hardcode_shlibpath_var_GCJ=no
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17499 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17501 hardcode_direct_GCJ=yes
17502 export_dynamic_flag_spec_GCJ='${wl}-E'
17504 # hardcode_minus_L: Not really in the search PATH,
17505 # but as the default location of the library.
17506 hardcode_minus_L_GCJ=yes
17508 esac
17512 irix5* | irix6* | nonstopux*)
17513 if test "$GCC" = yes; then
17514 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'
17515 else
17516 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'
17517 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17520 hardcode_libdir_separator_GCJ=:
17521 link_all_deplibs_GCJ=yes
17524 netbsd*)
17525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17526 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17527 else
17528 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17530 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17531 hardcode_direct_GCJ=yes
17532 hardcode_shlibpath_var_GCJ=no
17535 newsos6)
17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537 hardcode_direct_GCJ=yes
17538 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17539 hardcode_libdir_separator_GCJ=:
17540 hardcode_shlibpath_var_GCJ=no
17543 openbsd*)
17544 hardcode_direct_GCJ=yes
17545 hardcode_shlibpath_var_GCJ=no
17546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17547 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17550 export_dynamic_flag_spec_GCJ='${wl}-E'
17551 else
17552 case $host_os in
17553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17558 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17561 esac
17565 os2*)
17566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567 hardcode_minus_L_GCJ=yes
17568 allow_undefined_flag_GCJ=unsupported
17569 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'
17570 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17573 osf3*)
17574 if test "$GCC" = yes; then
17575 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17576 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'
17577 else
17578 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17579 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'
17581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582 hardcode_libdir_separator_GCJ=:
17585 osf4* | osf5*) # as osf3* with the addition of -msym flag
17586 if test "$GCC" = yes; then
17587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588 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'
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17590 else
17591 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17592 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'
17593 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17594 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17596 # Both c and cxx compiler support -rpath directly
17597 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17599 hardcode_libdir_separator_GCJ=:
17602 sco3.2v5*)
17603 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604 hardcode_shlibpath_var_GCJ=no
17605 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17606 runpath_var=LD_RUN_PATH
17607 hardcode_runpath_var=yes
17610 solaris*)
17611 no_undefined_flag_GCJ=' -z text'
17612 if test "$GCC" = yes; then
17613 wlarc='${wl}'
17614 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17616 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17617 else
17618 wlarc=''
17619 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17624 hardcode_shlibpath_var_GCJ=no
17625 case $host_os in
17626 solaris2.[0-5] | solaris2.[0-5].*) ;;
17628 # The compiler driver will combine linker options so we
17629 # cannot just pass the convience library names through
17630 # without $wl, iff we do not link with $LD.
17631 # Luckily, gcc supports the same syntax we need for Sun Studio.
17632 # Supported since Solaris 2.6 (maybe 2.5.1?)
17633 case $wlarc in
17635 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17637 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17638 esac ;;
17639 esac
17640 link_all_deplibs_GCJ=yes
17643 sunos4*)
17644 if test "x$host_vendor" = xsequent; then
17645 # Use $CC to link under sequent, because it throws in some extra .o
17646 # files that make .init and .fini sections work.
17647 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17648 else
17649 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17651 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17652 hardcode_direct_GCJ=yes
17653 hardcode_minus_L_GCJ=yes
17654 hardcode_shlibpath_var_GCJ=no
17657 sysv4)
17658 case $host_vendor in
17659 sni)
17660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17661 hardcode_direct_GCJ=yes # is this really true???
17663 siemens)
17664 ## LD is ld it makes a PLAMLIB
17665 ## CC just makes a GrossModule.
17666 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17667 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17668 hardcode_direct_GCJ=no
17670 motorola)
17671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17672 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17674 esac
17675 runpath_var='LD_RUN_PATH'
17676 hardcode_shlibpath_var_GCJ=no
17679 sysv4.3*)
17680 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17681 hardcode_shlibpath_var_GCJ=no
17682 export_dynamic_flag_spec_GCJ='-Bexport'
17685 sysv4*MP*)
17686 if test -d /usr/nec; then
17687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688 hardcode_shlibpath_var_GCJ=no
17689 runpath_var=LD_RUN_PATH
17690 hardcode_runpath_var=yes
17691 ld_shlibs_GCJ=yes
17695 sysv4.2uw2*)
17696 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17697 hardcode_direct_GCJ=yes
17698 hardcode_minus_L_GCJ=no
17699 hardcode_shlibpath_var_GCJ=no
17700 hardcode_runpath_var=yes
17701 runpath_var=LD_RUN_PATH
17704 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17705 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17706 if test "$GCC" = yes; then
17707 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 else
17709 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 runpath_var='LD_RUN_PATH'
17712 hardcode_shlibpath_var_GCJ=no
17715 sysv5*)
17716 no_undefined_flag_GCJ=' -z text'
17717 # $CC -shared without GNU ld will not create a library from C++
17718 # object files and a static libstdc++, better avoid it by now
17719 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17720 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17722 hardcode_libdir_flag_spec_GCJ=
17723 hardcode_shlibpath_var_GCJ=no
17724 runpath_var='LD_RUN_PATH'
17727 uts4*)
17728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17730 hardcode_shlibpath_var_GCJ=no
17734 ld_shlibs_GCJ=no
17736 esac
17739 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17740 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17741 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17744 if test "$GCC" = yes; then
17745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17749 # Do we need to explicitly link libc?
17751 case "x$archive_cmds_need_lc_GCJ" in
17752 x|xyes)
17753 # Assume -lc should be added
17754 archive_cmds_need_lc_GCJ=yes
17756 if test "$enable_shared" = yes && test "$GCC" = yes; then
17757 case $archive_cmds_GCJ in
17758 *'~'*)
17759 # FIXME: we may have to deal with multi-command sequences.
17761 '$CC '*)
17762 # Test whether the compiler implicitly links with -lc since on some
17763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17764 # to ld, don't add -lc before -lgcc.
17765 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17767 $rm conftest*
17768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771 (eval $ac_compile) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } 2>conftest.err; then
17775 soname=conftest
17776 lib=conftest
17777 libobjs=conftest.$ac_objext
17778 deplibs=
17779 wl=$lt_prog_compiler_wl_GCJ
17780 compiler_flags=-v
17781 linker_flags=-v
17782 verstring=
17783 output_objdir=.
17784 libname=conftest
17785 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17786 allow_undefined_flag_GCJ=
17787 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17788 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }
17792 then
17793 archive_cmds_need_lc_GCJ=no
17794 else
17795 archive_cmds_need_lc_GCJ=yes
17797 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17798 else
17799 cat conftest.err 1>&5
17801 $rm conftest*
17802 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17803 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17805 esac
17808 esac
17810 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17811 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17812 library_names_spec=
17813 libname_spec='lib$name'
17814 soname_spec=
17815 shrext_cmds=".so"
17816 postinstall_cmds=
17817 postuninstall_cmds=
17818 finish_cmds=
17819 finish_eval=
17820 shlibpath_var=
17821 shlibpath_overrides_runpath=unknown
17822 version_type=none
17823 dynamic_linker="$host_os ld.so"
17824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17825 if test "$GCC" = yes; then
17826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17827 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17828 # if the path contains ";" then we assume it to be the separator
17829 # otherwise default to the standard path separator (i.e. ":") - it is
17830 # assumed that no part of a normal pathname contains ";" but that should
17831 # okay in the real world where ";" in dirpaths is itself problematic.
17832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17833 else
17834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17836 else
17837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17839 need_lib_prefix=unknown
17840 hardcode_into_libs=no
17842 # when you set need_version to no, make sure it does not cause -set_version
17843 # flags to be left without arguments
17844 need_version=unknown
17846 case $host_os in
17847 aix3*)
17848 version_type=linux
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17850 shlibpath_var=LIBPATH
17852 # AIX 3 has no versioning support, so we append a major version to the name.
17853 soname_spec='${libname}${release}${shared_ext}$major'
17856 aix4* | aix5*)
17857 version_type=linux
17858 need_lib_prefix=no
17859 need_version=no
17860 hardcode_into_libs=yes
17861 if test "$host_cpu" = ia64; then
17862 # AIX 5 supports IA64
17863 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17864 shlibpath_var=LD_LIBRARY_PATH
17865 else
17866 # With GCC up to 2.95.x, collect2 would create an import file
17867 # for dependence libraries. The import file would start with
17868 # the line `#! .'. This would cause the generated library to
17869 # depend on `.', always an invalid library. This was fixed in
17870 # development snapshots of GCC prior to 3.0.
17871 case $host_os in
17872 aix4 | aix4.[01] | aix4.[01].*)
17873 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17874 echo ' yes '
17875 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17877 else
17878 can_build_shared=no
17881 esac
17882 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17883 # soname into executable. Probably we can add versioning support to
17884 # collect2, so additional links can be useful in future.
17885 if test "$aix_use_runtimelinking" = yes; then
17886 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17887 # instead of lib<name>.a to let people know that these are not
17888 # typical AIX shared libraries.
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17890 else
17891 # We preserve .a as extension for shared libraries through AIX4.2
17892 # and later when we are not doing run time linking.
17893 library_names_spec='${libname}${release}.a $libname.a'
17894 soname_spec='${libname}${release}${shared_ext}$major'
17896 shlibpath_var=LIBPATH
17900 amigaos*)
17901 library_names_spec='$libname.ixlibrary $libname.a'
17902 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17903 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'
17906 beos*)
17907 library_names_spec='${libname}${shared_ext}'
17908 dynamic_linker="$host_os ld.so"
17909 shlibpath_var=LIBRARY_PATH
17912 bsdi[45]*)
17913 version_type=linux
17914 need_version=no
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 soname_spec='${libname}${release}${shared_ext}$major'
17917 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17920 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17921 # the default ld.so.conf also contains /usr/contrib/lib and
17922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17923 # libtool to hard-code these into programs
17926 cygwin* | mingw* | pw32*)
17927 version_type=windows
17928 shrext_cmds=".dll"
17929 need_version=no
17930 need_lib_prefix=no
17932 case $GCC,$host_os in
17933 yes,cygwin* | yes,mingw* | yes,pw32*)
17934 library_names_spec='$libname.dll.a'
17935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17936 postinstall_cmds='base_file=`basename \${file}`~
17937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17938 dldir=$destdir/`dirname \$dlpath`~
17939 test -d \$dldir || mkdir -p \$dldir~
17940 $install_prog $dir/$dlname \$dldir/$dlname'
17941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17942 dlpath=$dir/\$dldll~
17943 $rm \$dlpath'
17944 shlibpath_overrides_runpath=yes
17946 case $host_os in
17947 cygwin*)
17948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17952 mingw*)
17953 # MinGW DLLs use traditional 'lib' prefix
17954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17957 # It is most probably a Windows format PATH printed by
17958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17959 # path with ; separators, and with drive letters. We can handle the
17960 # drive letters (cygwin fileutils understands them), so leave them,
17961 # especially as we might pass files found there to a mingw objdump,
17962 # which wouldn't understand a cygwinified path. Ahh.
17963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17964 else
17965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17968 pw32*)
17969 # pw32 DLLs use 'pw' prefix rather than 'lib'
17970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17972 esac
17976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17978 esac
17979 dynamic_linker='Win32 ld.exe'
17980 # FIXME: first we should search . and the directory the executable is in
17981 shlibpath_var=PATH
17984 darwin* | rhapsody*)
17985 dynamic_linker="$host_os dyld"
17986 version_type=darwin
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17990 soname_spec='${libname}${release}${major}$shared_ext'
17991 shlibpath_overrides_runpath=yes
17992 shlibpath_var=DYLD_LIBRARY_PATH
17993 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17995 if test "$GCC" = yes; then
17996 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17997 else
17998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18003 dgux*)
18004 version_type=linux
18005 need_lib_prefix=no
18006 need_version=no
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 shlibpath_var=LD_LIBRARY_PATH
18012 freebsd1*)
18013 dynamic_linker=no
18016 kfreebsd*-gnu)
18017 version_type=linux
18018 need_lib_prefix=no
18019 need_version=no
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 shlibpath_overrides_runpath=no
18024 hardcode_into_libs=yes
18025 dynamic_linker='GNU ld.so'
18028 freebsd* | dragonfly*)
18029 # DragonFly does not have aout. When/if they implement a new
18030 # versioning mechanism, adjust this.
18031 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18032 version_type=freebsd-$objformat
18033 case $version_type in
18034 freebsd-elf*)
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18036 need_version=no
18037 need_lib_prefix=no
18039 freebsd-*)
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18041 need_version=yes
18043 esac
18044 shlibpath_var=LD_LIBRARY_PATH
18045 case $host_os in
18046 freebsd2*)
18047 shlibpath_overrides_runpath=yes
18049 freebsd3.[01]* | freebsdelf3.[01]*)
18050 shlibpath_overrides_runpath=yes
18051 hardcode_into_libs=yes
18053 *) # from 3.2 on
18054 shlibpath_overrides_runpath=no
18055 hardcode_into_libs=yes
18057 esac
18060 gnu*)
18061 version_type=linux
18062 need_lib_prefix=no
18063 need_version=no
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 shlibpath_var=LD_LIBRARY_PATH
18067 hardcode_into_libs=yes
18070 hpux9* | hpux10* | hpux11*)
18071 # Give a soname corresponding to the major version so that dld.sl refuses to
18072 # link against other versions.
18073 version_type=sunos
18074 need_lib_prefix=no
18075 need_version=no
18076 case "$host_cpu" in
18077 ia64*)
18078 shrext_cmds='.so'
18079 hardcode_into_libs=yes
18080 dynamic_linker="$host_os dld.so"
18081 shlibpath_var=LD_LIBRARY_PATH
18082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 if test "X$HPUX_IA64_MODE" = X32; then
18086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18087 else
18088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092 hppa*64*)
18093 shrext_cmds='.sl'
18094 hardcode_into_libs=yes
18095 dynamic_linker="$host_os dld.sl"
18096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18104 shrext_cmds='.sl'
18105 dynamic_linker="$host_os dld.sl"
18106 shlibpath_var=SHLIB_PATH
18107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18111 esac
18112 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18113 postinstall_cmds='chmod 555 $lib'
18116 irix5* | irix6* | nonstopux*)
18117 case $host_os in
18118 nonstopux*) version_type=nonstopux ;;
18120 if test "$lt_cv_prog_gnu_ld" = yes; then
18121 version_type=linux
18122 else
18123 version_type=irix
18124 fi ;;
18125 esac
18126 need_lib_prefix=no
18127 need_version=no
18128 soname_spec='${libname}${release}${shared_ext}$major'
18129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18130 case $host_os in
18131 irix5* | nonstopux*)
18132 libsuff= shlibsuff=
18135 case $LD in # libtool.m4 will add one of these switches to LD
18136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18137 libsuff= shlibsuff= libmagic=32-bit;;
18138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18139 libsuff=32 shlibsuff=N32 libmagic=N32;;
18140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18142 *) libsuff= shlibsuff= libmagic=never-match;;
18143 esac
18145 esac
18146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18147 shlibpath_overrides_runpath=no
18148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18150 hardcode_into_libs=yes
18153 # No shared lib support for Linux oldld, aout, or coff.
18154 linux*oldld* | linux*aout* | linux*coff*)
18155 dynamic_linker=no
18158 # This must be Linux ELF.
18159 linux*)
18160 version_type=linux
18161 need_lib_prefix=no
18162 need_version=no
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164 soname_spec='${libname}${release}${shared_ext}$major'
18165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 shlibpath_overrides_runpath=no
18168 # This implies no fast_install, which is unacceptable.
18169 # Some rework will be needed to allow for fast_install
18170 # before this can be enabled.
18171 hardcode_into_libs=yes
18173 # find out which ABI we are using
18174 libsuff=
18175 case "$host_cpu" in
18176 x86_64*|s390x*|powerpc64*)
18177 echo '#line 18177 "configure"' > conftest.$ac_ext
18178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18179 (eval $ac_compile) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; then
18183 case `/usr/bin/file conftest.$ac_objext` in
18184 *64-bit*)
18185 libsuff=64
18186 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18188 esac
18190 rm -rf conftest*
18192 esac
18194 # Append ld.so.conf contents to the search path
18195 if test -f /etc/ld.so.conf; then
18196 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18197 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18200 # We used to test for /lib/ld.so.1 and disable shared libraries on
18201 # powerpc, because MkLinux only supported shared libraries with the
18202 # GNU dynamic linker. Since this was broken with cross compilers,
18203 # most powerpc-linux boxes support dynamic linking these days and
18204 # people can always --disable-shared, the test was removed, and we
18205 # assume the GNU/Linux dynamic linker is in use.
18206 dynamic_linker='GNU/Linux ld.so'
18209 knetbsd*-gnu)
18210 version_type=linux
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 shlibpath_overrides_runpath=no
18217 hardcode_into_libs=yes
18218 dynamic_linker='GNU ld.so'
18221 netbsd*)
18222 version_type=sunos
18223 need_lib_prefix=no
18224 need_version=no
18225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18228 dynamic_linker='NetBSD (a.out) ld.so'
18229 else
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 dynamic_linker='NetBSD ld.elf_so'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18236 hardcode_into_libs=yes
18239 newsos6)
18240 version_type=linux
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 shlibpath_overrides_runpath=yes
18246 nto-qnx*)
18247 version_type=linux
18248 need_lib_prefix=no
18249 need_version=no
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 shlibpath_overrides_runpath=yes
18256 openbsd*)
18257 version_type=sunos
18258 need_lib_prefix=no
18259 need_version=no
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18264 case $host_os in
18265 openbsd2.[89] | openbsd2.[89].*)
18266 shlibpath_overrides_runpath=no
18269 shlibpath_overrides_runpath=yes
18271 esac
18272 else
18273 shlibpath_overrides_runpath=yes
18277 os2*)
18278 libname_spec='$name'
18279 shrext_cmds=".dll"
18280 need_lib_prefix=no
18281 library_names_spec='$libname${shared_ext} $libname.a'
18282 dynamic_linker='OS/2 ld.exe'
18283 shlibpath_var=LIBPATH
18286 osf3* | osf4* | osf5*)
18287 version_type=osf
18288 need_lib_prefix=no
18289 need_version=no
18290 soname_spec='${libname}${release}${shared_ext}$major'
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18297 sco3.2v5*)
18298 version_type=osf
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 shlibpath_var=LD_LIBRARY_PATH
18304 solaris*)
18305 version_type=linux
18306 need_lib_prefix=no
18307 need_version=no
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 shlibpath_overrides_runpath=yes
18312 hardcode_into_libs=yes
18313 # ldd complains unless libraries are executable
18314 postinstall_cmds='chmod +x $lib'
18317 sunos4*)
18318 version_type=sunos
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=yes
18323 if test "$with_gnu_ld" = yes; then
18324 need_lib_prefix=no
18326 need_version=yes
18329 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18330 version_type=linux
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 case $host_vendor in
18335 sni)
18336 shlibpath_overrides_runpath=no
18337 need_lib_prefix=no
18338 export_dynamic_flag_spec='${wl}-Blargedynsym'
18339 runpath_var=LD_RUN_PATH
18341 siemens)
18342 need_lib_prefix=no
18344 motorola)
18345 need_lib_prefix=no
18346 need_version=no
18347 shlibpath_overrides_runpath=no
18348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18350 esac
18353 sysv4*MP*)
18354 if test -d /usr/nec ;then
18355 version_type=linux
18356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18357 soname_spec='$libname${shared_ext}.$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18362 uts4*)
18363 version_type=linux
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 shlibpath_var=LD_LIBRARY_PATH
18370 dynamic_linker=no
18372 esac
18373 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18374 echo "${ECHO_T}$dynamic_linker" >&6
18375 test "$dynamic_linker" = no && can_build_shared=no
18377 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18378 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18379 hardcode_action_GCJ=
18380 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18381 test -n "$runpath_var_GCJ" || \
18382 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18384 # We can hardcode non-existant directories.
18385 if test "$hardcode_direct_GCJ" != no &&
18386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18387 # have to relink, otherwise we might link with an installed library
18388 # when we should be linking with a yet-to-be-installed one
18389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18390 test "$hardcode_minus_L_GCJ" != no; then
18391 # Linking always hardcodes the temporary library directory.
18392 hardcode_action_GCJ=relink
18393 else
18394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18395 hardcode_action_GCJ=immediate
18397 else
18398 # We cannot hardcode anything, or else we can only hardcode existing
18399 # directories.
18400 hardcode_action_GCJ=unsupported
18402 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18403 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18405 if test "$hardcode_action_GCJ" = relink; then
18406 # Fast installation is not supported
18407 enable_fast_install=no
18408 elif test "$shlibpath_overrides_runpath" = yes ||
18409 test "$enable_shared" = no; then
18410 # Fast installation is not necessary
18411 enable_fast_install=needless
18414 striplib=
18415 old_striplib=
18416 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18417 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18418 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18421 echo "$as_me:$LINENO: result: yes" >&5
18422 echo "${ECHO_T}yes" >&6
18423 else
18424 # FIXME - insert some real tests, host_os isn't really good enough
18425 case $host_os in
18426 darwin*)
18427 if test -n "$STRIP" ; then
18428 striplib="$STRIP -x"
18429 echo "$as_me:$LINENO: result: yes" >&5
18430 echo "${ECHO_T}yes" >&6
18431 else
18432 echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6
18437 echo "$as_me:$LINENO: result: no" >&5
18438 echo "${ECHO_T}no" >&6
18440 esac
18443 if test "x$enable_dlopen" != xyes; then
18444 enable_dlopen=unknown
18445 enable_dlopen_self=unknown
18446 enable_dlopen_self_static=unknown
18447 else
18448 lt_cv_dlopen=no
18449 lt_cv_dlopen_libs=
18451 case $host_os in
18452 beos*)
18453 lt_cv_dlopen="load_add_on"
18454 lt_cv_dlopen_libs=
18455 lt_cv_dlopen_self=yes
18458 mingw* | pw32*)
18459 lt_cv_dlopen="LoadLibrary"
18460 lt_cv_dlopen_libs=
18463 cygwin*)
18464 lt_cv_dlopen="dlopen"
18465 lt_cv_dlopen_libs=
18468 darwin*)
18469 # if libdl is installed we need to link against it
18470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18471 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18472 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 ac_check_lib_save_LIBS=$LIBS
18476 LIBS="-ldl $LIBS"
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h. */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18484 /* Override any gcc2 internal prototype to avoid an error. */
18485 #ifdef __cplusplus
18486 extern "C"
18487 #endif
18488 /* We use char because int might match the return type of a gcc2
18489 builtin and then its argument prototype would still apply. */
18490 char dlopen ();
18492 main ()
18494 dlopen ();
18496 return 0;
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18501 (eval $ac_link) 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag"
18509 || test ! -s conftest.err'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest$ac_exeext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 ac_cv_lib_dl_dlopen=yes
18522 else
18523 echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 ac_cv_lib_dl_dlopen=no
18528 rm -f conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
18530 LIBS=$ac_check_lib_save_LIBS
18532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18534 if test $ac_cv_lib_dl_dlopen = yes; then
18535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18536 else
18538 lt_cv_dlopen="dyld"
18539 lt_cv_dlopen_libs=
18540 lt_cv_dlopen_self=yes
18547 echo "$as_me:$LINENO: checking for shl_load" >&5
18548 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18549 if test "${ac_cv_func_shl_load+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18560 #define shl_load innocuous_shl_load
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char shl_load (); below.
18564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565 <limits.h> exists even on freestanding compilers. */
18567 #ifdef __STDC__
18568 # include <limits.h>
18569 #else
18570 # include <assert.h>
18571 #endif
18573 #undef shl_load
18575 /* Override any gcc2 internal prototype to avoid an error. */
18576 #ifdef __cplusplus
18577 extern "C"
18579 #endif
18580 /* We use char because int might match the return type of a gcc2
18581 builtin and then its argument prototype would still apply. */
18582 char shl_load ();
18583 /* The GNU C library defines this for functions which it implements
18584 to always fail with ENOSYS. Some functions are actually named
18585 something starting with __ and the normal name is an alias. */
18586 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18587 choke me
18588 #else
18589 char (*f) () = shl_load;
18590 #endif
18591 #ifdef __cplusplus
18593 #endif
18596 main ()
18598 return f != shl_load;
18600 return 0;
18602 _ACEOF
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest$ac_exeext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_func_shl_load=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_func_shl_load=no
18632 rm -f conftest.err conftest.$ac_objext \
18633 conftest$ac_exeext conftest.$ac_ext
18635 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18637 if test $ac_cv_func_shl_load = yes; then
18638 lt_cv_dlopen="shl_load"
18639 else
18640 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-ldld $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h. */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any gcc2 internal prototype to avoid an error. */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char shl_load ();
18662 main ()
18664 shl_load ();
18666 return 0;
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_dld_shl_load=yes
18692 else
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_cv_lib_dld_shl_load=no
18698 rm -f conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18703 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18704 if test $ac_cv_lib_dld_shl_load = yes; then
18705 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18706 else
18707 echo "$as_me:$LINENO: checking for dlopen" >&5
18708 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18709 if test "${ac_cv_func_dlopen+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18720 #define dlopen innocuous_dlopen
18722 /* System header to define __stub macros and hopefully few prototypes,
18723 which can conflict with char dlopen (); below.
18724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18725 <limits.h> exists even on freestanding compilers. */
18727 #ifdef __STDC__
18728 # include <limits.h>
18729 #else
18730 # include <assert.h>
18731 #endif
18733 #undef dlopen
18735 /* Override any gcc2 internal prototype to avoid an error. */
18736 #ifdef __cplusplus
18737 extern "C"
18739 #endif
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18742 char dlopen ();
18743 /* The GNU C library defines this for functions which it implements
18744 to always fail with ENOSYS. Some functions are actually named
18745 something starting with __ and the normal name is an alias. */
18746 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18747 choke me
18748 #else
18749 char (*f) () = dlopen;
18750 #endif
18751 #ifdef __cplusplus
18753 #endif
18756 main ()
18758 return f != dlopen;
18760 return 0;
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765 (eval $ac_link) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_func_dlopen=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_func_dlopen=no
18792 rm -f conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18795 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18796 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18797 if test $ac_cv_func_dlopen = yes; then
18798 lt_cv_dlopen="dlopen"
18799 else
18800 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18801 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18802 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-ldl $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18814 /* Override any gcc2 internal prototype to avoid an error. */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 /* We use char because int might match the return type of a gcc2
18819 builtin and then its argument prototype would still apply. */
18820 char dlopen ();
18822 main ()
18824 dlopen ();
18826 return 0;
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_dl_dlopen=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_lib_dl_dlopen=no
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18863 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18864 if test $ac_cv_lib_dl_dlopen = yes; then
18865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18866 else
18867 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18868 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18869 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872 ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lsvld $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 /* Override any gcc2 internal prototype to avoid an error. */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 /* We use char because int might match the return type of a gcc2
18886 builtin and then its argument prototype would still apply. */
18887 char dlopen ();
18889 main ()
18891 dlopen ();
18893 return 0;
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18898 (eval $ac_link) 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest$ac_exeext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 ac_cv_lib_svld_dlopen=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_cv_lib_svld_dlopen=no
18925 rm -f conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18929 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18930 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18931 if test $ac_cv_lib_svld_dlopen = yes; then
18932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18933 else
18934 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18935 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18936 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 else
18939 ac_check_lib_save_LIBS=$LIBS
18940 LIBS="-ldld $LIBS"
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18948 /* Override any gcc2 internal prototype to avoid an error. */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 /* We use char because int might match the return type of a gcc2
18953 builtin and then its argument prototype would still apply. */
18954 char dld_link ();
18956 main ()
18958 dld_link ();
18960 return 0;
18962 _ACEOF
18963 rm -f conftest.$ac_objext conftest$ac_exeext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18965 (eval $ac_link) 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest$ac_exeext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 ac_cv_lib_dld_dld_link=yes
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18990 ac_cv_lib_dld_dld_link=no
18992 rm -f conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18997 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18998 if test $ac_cv_lib_dld_dld_link = yes; then
18999 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19018 esac
19020 if test "x$lt_cv_dlopen" != xno; then
19021 enable_dlopen=yes
19022 else
19023 enable_dlopen=no
19026 case $lt_cv_dlopen in
19027 dlopen)
19028 save_CPPFLAGS="$CPPFLAGS"
19029 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19031 save_LDFLAGS="$LDFLAGS"
19032 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19034 save_LIBS="$LIBS"
19035 LIBS="$lt_cv_dlopen_libs $LIBS"
19037 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19038 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19039 if test "${lt_cv_dlopen_self+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042 if test "$cross_compiling" = yes; then :
19043 lt_cv_dlopen_self=cross
19044 else
19045 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19046 lt_status=$lt_dlunknown
19047 cat > conftest.$ac_ext <<EOF
19048 #line 19048 "configure"
19049 #include "confdefs.h"
19051 #if HAVE_DLFCN_H
19052 #include <dlfcn.h>
19053 #endif
19055 #include <stdio.h>
19057 #ifdef RTLD_GLOBAL
19058 # define LT_DLGLOBAL RTLD_GLOBAL
19059 #else
19060 # ifdef DL_GLOBAL
19061 # define LT_DLGLOBAL DL_GLOBAL
19062 # else
19063 # define LT_DLGLOBAL 0
19064 # endif
19065 #endif
19067 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19068 find out it does not work in some platform. */
19069 #ifndef LT_DLLAZY_OR_NOW
19070 # ifdef RTLD_LAZY
19071 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19072 # else
19073 # ifdef DL_LAZY
19074 # define LT_DLLAZY_OR_NOW DL_LAZY
19075 # else
19076 # ifdef RTLD_NOW
19077 # define LT_DLLAZY_OR_NOW RTLD_NOW
19078 # else
19079 # ifdef DL_NOW
19080 # define LT_DLLAZY_OR_NOW DL_NOW
19081 # else
19082 # define LT_DLLAZY_OR_NOW 0
19083 # endif
19084 # endif
19085 # endif
19086 # endif
19087 #endif
19089 #ifdef __cplusplus
19090 extern "C" void exit (int);
19091 #endif
19093 void fnord() { int i=42;}
19094 int main ()
19096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19097 int status = $lt_dlunknown;
19099 if (self)
19101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19102 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19103 /* dlclose (self); */
19106 exit (status);
19109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110 (eval $ac_link) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19114 (./conftest; exit; ) 2>/dev/null
19115 lt_status=$?
19116 case x$lt_status in
19117 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19118 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19119 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19120 esac
19121 else :
19122 # compilation failed
19123 lt_cv_dlopen_self=no
19126 rm -fr conftest*
19130 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19131 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19133 if test "x$lt_cv_dlopen_self" = xyes; then
19134 LDFLAGS="$LDFLAGS $link_static_flag"
19135 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19136 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19137 if test "${lt_cv_dlopen_self_static+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140 if test "$cross_compiling" = yes; then :
19141 lt_cv_dlopen_self_static=cross
19142 else
19143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19144 lt_status=$lt_dlunknown
19145 cat > conftest.$ac_ext <<EOF
19146 #line 19146 "configure"
19147 #include "confdefs.h"
19149 #if HAVE_DLFCN_H
19150 #include <dlfcn.h>
19151 #endif
19153 #include <stdio.h>
19155 #ifdef RTLD_GLOBAL
19156 # define LT_DLGLOBAL RTLD_GLOBAL
19157 #else
19158 # ifdef DL_GLOBAL
19159 # define LT_DLGLOBAL DL_GLOBAL
19160 # else
19161 # define LT_DLGLOBAL 0
19162 # endif
19163 #endif
19165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19166 find out it does not work in some platform. */
19167 #ifndef LT_DLLAZY_OR_NOW
19168 # ifdef RTLD_LAZY
19169 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19170 # else
19171 # ifdef DL_LAZY
19172 # define LT_DLLAZY_OR_NOW DL_LAZY
19173 # else
19174 # ifdef RTLD_NOW
19175 # define LT_DLLAZY_OR_NOW RTLD_NOW
19176 # else
19177 # ifdef DL_NOW
19178 # define LT_DLLAZY_OR_NOW DL_NOW
19179 # else
19180 # define LT_DLLAZY_OR_NOW 0
19181 # endif
19182 # endif
19183 # endif
19184 # endif
19185 #endif
19187 #ifdef __cplusplus
19188 extern "C" void exit (int);
19189 #endif
19191 void fnord() { int i=42;}
19192 int main ()
19194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19195 int status = $lt_dlunknown;
19197 if (self)
19199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19200 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19201 /* dlclose (self); */
19204 exit (status);
19207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208 (eval $ac_link) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19212 (./conftest; exit; ) 2>/dev/null
19213 lt_status=$?
19214 case x$lt_status in
19215 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19216 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19217 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19218 esac
19219 else :
19220 # compilation failed
19221 lt_cv_dlopen_self_static=no
19224 rm -fr conftest*
19228 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19229 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19232 CPPFLAGS="$save_CPPFLAGS"
19233 LDFLAGS="$save_LDFLAGS"
19234 LIBS="$save_LIBS"
19236 esac
19238 case $lt_cv_dlopen_self in
19239 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19240 *) enable_dlopen_self=unknown ;;
19241 esac
19243 case $lt_cv_dlopen_self_static in
19244 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19245 *) enable_dlopen_self_static=unknown ;;
19246 esac
19250 # The else clause should only fire when bootstrapping the
19251 # libtool distribution, otherwise you forgot to ship ltmain.sh
19252 # with your package, and you will get complaints that there are
19253 # no rules to generate ltmain.sh.
19254 if test -f "$ltmain"; then
19255 # See if we are running on zsh, and set the options which allow our commands through
19256 # without removal of \ escapes.
19257 if test -n "${ZSH_VERSION+set}" ; then
19258 setopt NO_GLOB_SUBST
19260 # Now quote all the things that may contain metacharacters while being
19261 # careful not to overquote the AC_SUBSTed values. We take copies of the
19262 # variables and quote the copies for generation of the libtool script.
19263 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19264 SED SHELL STRIP \
19265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19267 deplibs_check_method reload_flag reload_cmds need_locks \
19268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19269 lt_cv_sys_global_symbol_to_c_name_address \
19270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19271 old_postinstall_cmds old_postuninstall_cmds \
19272 compiler_GCJ \
19273 CC_GCJ \
19274 LD_GCJ \
19275 lt_prog_compiler_wl_GCJ \
19276 lt_prog_compiler_pic_GCJ \
19277 lt_prog_compiler_static_GCJ \
19278 lt_prog_compiler_no_builtin_flag_GCJ \
19279 export_dynamic_flag_spec_GCJ \
19280 thread_safe_flag_spec_GCJ \
19281 whole_archive_flag_spec_GCJ \
19282 enable_shared_with_static_runtimes_GCJ \
19283 old_archive_cmds_GCJ \
19284 old_archive_from_new_cmds_GCJ \
19285 predep_objects_GCJ \
19286 postdep_objects_GCJ \
19287 predeps_GCJ \
19288 postdeps_GCJ \
19289 compiler_lib_search_path_GCJ \
19290 archive_cmds_GCJ \
19291 archive_expsym_cmds_GCJ \
19292 postinstall_cmds_GCJ \
19293 postuninstall_cmds_GCJ \
19294 old_archive_from_expsyms_cmds_GCJ \
19295 allow_undefined_flag_GCJ \
19296 no_undefined_flag_GCJ \
19297 export_symbols_cmds_GCJ \
19298 hardcode_libdir_flag_spec_GCJ \
19299 hardcode_libdir_flag_spec_ld_GCJ \
19300 hardcode_libdir_separator_GCJ \
19301 hardcode_automatic_GCJ \
19302 module_cmds_GCJ \
19303 module_expsym_cmds_GCJ \
19304 lt_cv_prog_compiler_c_o_GCJ \
19305 exclude_expsyms_GCJ \
19306 include_expsyms_GCJ; do
19308 case $var in
19309 old_archive_cmds_GCJ | \
19310 old_archive_from_new_cmds_GCJ | \
19311 archive_cmds_GCJ | \
19312 archive_expsym_cmds_GCJ | \
19313 module_cmds_GCJ | \
19314 module_expsym_cmds_GCJ | \
19315 old_archive_from_expsyms_cmds_GCJ | \
19316 export_symbols_cmds_GCJ | \
19317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19318 postinstall_cmds | postuninstall_cmds | \
19319 old_postinstall_cmds | old_postuninstall_cmds | \
19320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19321 # Double-quote double-evaled strings.
19322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19327 esac
19328 done
19330 case $lt_echo in
19331 *'\$0 --fallback-echo"')
19332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19334 esac
19336 cfgfile="$ofile"
19338 cat <<__EOF__ >> "$cfgfile"
19339 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19343 # Shell to use when invoking shell scripts.
19344 SHELL=$lt_SHELL
19346 # Whether or not to build shared libraries.
19347 build_libtool_libs=$enable_shared
19349 # Whether or not to build static libraries.
19350 build_old_libs=$enable_static
19352 # Whether or not to add -lc for building shared libraries.
19353 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19355 # Whether or not to disallow shared libs when runtime libs are static
19356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19358 # Whether or not to optimize for fast installation.
19359 fast_install=$enable_fast_install
19361 # The host system.
19362 host_alias=$host_alias
19363 host=$host
19364 host_os=$host_os
19366 # The build system.
19367 build_alias=$build_alias
19368 build=$build
19369 build_os=$build_os
19371 # An echo program that does not interpret backslashes.
19372 echo=$lt_echo
19374 # The archiver.
19375 AR=$lt_AR
19376 AR_FLAGS=$lt_AR_FLAGS
19378 # A C compiler.
19379 LTCC=$lt_LTCC
19381 # A language-specific compiler.
19382 CC=$lt_compiler_GCJ
19384 # Is the compiler the GNU C compiler?
19385 with_gcc=$GCC_GCJ
19387 # An ERE matcher.
19388 EGREP=$lt_EGREP
19390 # The linker used to build libraries.
19391 LD=$lt_LD_GCJ
19393 # Whether we need hard or soft links.
19394 LN_S=$lt_LN_S
19396 # A BSD-compatible nm program.
19397 NM=$lt_NM
19399 # A symbol stripping program
19400 STRIP=$lt_STRIP
19402 # Used to examine libraries when file_magic_cmd begins "file"
19403 MAGIC_CMD=$MAGIC_CMD
19405 # Used on cygwin: DLL creation program.
19406 DLLTOOL="$DLLTOOL"
19408 # Used on cygwin: object dumper.
19409 OBJDUMP="$OBJDUMP"
19411 # Used on cygwin: assembler.
19412 AS="$AS"
19414 # The name of the directory that contains temporary libtool files.
19415 objdir=$objdir
19417 # How to create reloadable object files.
19418 reload_flag=$lt_reload_flag
19419 reload_cmds=$lt_reload_cmds
19421 # How to pass a linker flag through the compiler.
19422 wl=$lt_lt_prog_compiler_wl_GCJ
19424 # Object file suffix (normally "o").
19425 objext="$ac_objext"
19427 # Old archive suffix (normally "a").
19428 libext="$libext"
19430 # Shared library suffix (normally ".so").
19431 shrext_cmds='$shrext_cmds'
19433 # Executable file suffix (normally "").
19434 exeext="$exeext"
19436 # Additional compiler flags for building library objects.
19437 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19438 pic_mode=$pic_mode
19440 # What is the maximum length of a command?
19441 max_cmd_len=$lt_cv_sys_max_cmd_len
19443 # Does compiler simultaneously support -c and -o options?
19444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19446 # Must we lock files when doing compilation?
19447 need_locks=$lt_need_locks
19449 # Do we need the lib prefix for modules?
19450 need_lib_prefix=$need_lib_prefix
19452 # Do we need a version for libraries?
19453 need_version=$need_version
19455 # Whether dlopen is supported.
19456 dlopen_support=$enable_dlopen
19458 # Whether dlopen of programs is supported.
19459 dlopen_self=$enable_dlopen_self
19461 # Whether dlopen of statically linked programs is supported.
19462 dlopen_self_static=$enable_dlopen_self_static
19464 # Compiler flag to prevent dynamic linking.
19465 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19467 # Compiler flag to turn off builtin functions.
19468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19470 # Compiler flag to allow reflexive dlopens.
19471 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19473 # Compiler flag to generate shared objects directly from archives.
19474 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19476 # Compiler flag to generate thread-safe objects.
19477 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19479 # Library versioning type.
19480 version_type=$version_type
19482 # Format of library name prefix.
19483 libname_spec=$lt_libname_spec
19485 # List of archive names. First name is the real one, the rest are links.
19486 # The last name is the one that the linker finds with -lNAME.
19487 library_names_spec=$lt_library_names_spec
19489 # The coded name of the library, if different from the real name.
19490 soname_spec=$lt_soname_spec
19492 # Commands used to build and install an old-style archive.
19493 RANLIB=$lt_RANLIB
19494 old_archive_cmds=$lt_old_archive_cmds_GCJ
19495 old_postinstall_cmds=$lt_old_postinstall_cmds
19496 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19498 # Create an old-style archive from a shared archive.
19499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19501 # Create a temporary old-style archive to link instead of a shared archive.
19502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19504 # Commands used to build and install a shared archive.
19505 archive_cmds=$lt_archive_cmds_GCJ
19506 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19507 postinstall_cmds=$lt_postinstall_cmds
19508 postuninstall_cmds=$lt_postuninstall_cmds
19510 # Commands used to build a loadable module (assumed same as above if empty)
19511 module_cmds=$lt_module_cmds_GCJ
19512 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19514 # Commands to strip libraries.
19515 old_striplib=$lt_old_striplib
19516 striplib=$lt_striplib
19518 # Dependencies to place before the objects being linked to create a
19519 # shared library.
19520 predep_objects=$lt_predep_objects_GCJ
19522 # Dependencies to place after the objects being linked to create a
19523 # shared library.
19524 postdep_objects=$lt_postdep_objects_GCJ
19526 # Dependencies to place before the objects being linked to create a
19527 # shared library.
19528 predeps=$lt_predeps_GCJ
19530 # Dependencies to place after the objects being linked to create a
19531 # shared library.
19532 postdeps=$lt_postdeps_GCJ
19534 # The library search path used internally by the compiler when linking
19535 # a shared library.
19536 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19538 # Method to check whether dependent libraries are shared objects.
19539 deplibs_check_method=$lt_deplibs_check_method
19541 # Command to use when deplibs_check_method == file_magic.
19542 file_magic_cmd=$lt_file_magic_cmd
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19547 # Flag that forces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag_GCJ
19550 # Commands used to finish a libtool library installation in a directory.
19551 finish_cmds=$lt_finish_cmds
19553 # Same as above, but a single script fragment to be evaled but not shown.
19554 finish_eval=$lt_finish_eval
19556 # Take the output of nm and produce a listing of raw symbols and C names.
19557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19559 # Transform the output of nm in a proper C declaration
19560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19562 # Transform the output of nm in a C name address pair
19563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19565 # This is the shared library runtime path variable.
19566 runpath_var=$runpath_var
19568 # This is the shared library path variable.
19569 shlibpath_var=$shlibpath_var
19571 # Is shlibpath searched before the hard-coded library search path?
19572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19574 # How to hardcode a shared library path into an executable.
19575 hardcode_action=$hardcode_action_GCJ
19577 # Whether we should hardcode library paths into libraries.
19578 hardcode_into_libs=$hardcode_into_libs
19580 # Flag to hardcode \$libdir into a binary during linking.
19581 # This must work even if \$libdir does not exist.
19582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19584 # If ld is used when linking, flag to hardcode \$libdir into
19585 # a binary during linking. This must work even if \$libdir does
19586 # not exist.
19587 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19589 # Whether we need a single -rpath flag with a separated argument.
19590 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19592 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19593 # resulting binary.
19594 hardcode_direct=$hardcode_direct_GCJ
19596 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19597 # resulting binary.
19598 hardcode_minus_L=$hardcode_minus_L_GCJ
19600 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19601 # the resulting binary.
19602 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19604 # Set to yes if building a shared library automatically hardcodes DIR into the library
19605 # and all subsequent libraries and executables linked against it.
19606 hardcode_automatic=$hardcode_automatic_GCJ
19608 # Variables whose values should be saved in libtool wrapper scripts and
19609 # restored at relink time.
19610 variables_saved_for_relink="$variables_saved_for_relink"
19612 # Whether libtool must link a program against all its dependency libraries.
19613 link_all_deplibs=$link_all_deplibs_GCJ
19615 # Compile-time system search path for libraries
19616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19618 # Run-time system search path for libraries
19619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19621 # Fix the shell variable \$srcfile for the compiler.
19622 fix_srcfile_path="$fix_srcfile_path_GCJ"
19624 # Set to yes if exported symbols are required.
19625 always_export_symbols=$always_export_symbols_GCJ
19627 # The commands to list exported symbols.
19628 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19630 # The commands to extract the exported symbol list from a shared archive.
19631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19633 # Symbols that should not be listed in the preloaded symbols.
19634 exclude_expsyms=$lt_exclude_expsyms_GCJ
19636 # Symbols that must always be exported.
19637 include_expsyms=$lt_include_expsyms_GCJ
19639 # ### END LIBTOOL TAG CONFIG: $tagname
19641 __EOF__
19644 else
19645 # If there is no Makefile yet, we rely on a make rule to execute
19646 # `config.status --recheck' to rerun these tests and create the
19647 # libtool script then.
19648 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19649 if test -f "$ltmain_in"; then
19650 test -f Makefile && make "$ltmain"
19655 ac_ext=c
19656 ac_cpp='$CPP $CPPFLAGS'
19657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661 CC="$lt_save_CC"
19663 else
19664 tagname=""
19672 # Source file extension for RC test sources.
19673 ac_ext=rc
19675 # Object file extension for compiled RC test sources.
19676 objext=o
19677 objext_RC=$objext
19679 # Code to be used in simple compile tests
19680 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19682 # Code to be used in simple link tests
19683 lt_simple_link_test_code="$lt_simple_compile_test_code"
19685 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19687 # If no C compiler was specified, use CC.
19688 LTCC=${LTCC-"$CC"}
19690 # Allow CC to be a program name with arguments.
19691 compiler=$CC
19694 # save warnings/boilerplate of simple test code
19695 ac_outfile=conftest.$ac_objext
19696 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19698 _lt_compiler_boilerplate=`cat conftest.err`
19699 $rm conftest*
19701 ac_outfile=conftest.$ac_objext
19702 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19704 _lt_linker_boilerplate=`cat conftest.err`
19705 $rm conftest*
19708 # Allow CC to be a program name with arguments.
19709 lt_save_CC="$CC"
19710 CC=${RC-"windres"}
19711 compiler=$CC
19712 compiler_RC=$CC
19713 for cc_temp in $compiler""; do
19714 case $cc_temp in
19715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19717 \-*) ;;
19718 *) break;;
19719 esac
19720 done
19721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19723 lt_cv_prog_compiler_c_o_RC=yes
19725 # The else clause should only fire when bootstrapping the
19726 # libtool distribution, otherwise you forgot to ship ltmain.sh
19727 # with your package, and you will get complaints that there are
19728 # no rules to generate ltmain.sh.
19729 if test -f "$ltmain"; then
19730 # See if we are running on zsh, and set the options which allow our commands through
19731 # without removal of \ escapes.
19732 if test -n "${ZSH_VERSION+set}" ; then
19733 setopt NO_GLOB_SUBST
19735 # Now quote all the things that may contain metacharacters while being
19736 # careful not to overquote the AC_SUBSTed values. We take copies of the
19737 # variables and quote the copies for generation of the libtool script.
19738 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19739 SED SHELL STRIP \
19740 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19741 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19742 deplibs_check_method reload_flag reload_cmds need_locks \
19743 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19744 lt_cv_sys_global_symbol_to_c_name_address \
19745 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19746 old_postinstall_cmds old_postuninstall_cmds \
19747 compiler_RC \
19748 CC_RC \
19749 LD_RC \
19750 lt_prog_compiler_wl_RC \
19751 lt_prog_compiler_pic_RC \
19752 lt_prog_compiler_static_RC \
19753 lt_prog_compiler_no_builtin_flag_RC \
19754 export_dynamic_flag_spec_RC \
19755 thread_safe_flag_spec_RC \
19756 whole_archive_flag_spec_RC \
19757 enable_shared_with_static_runtimes_RC \
19758 old_archive_cmds_RC \
19759 old_archive_from_new_cmds_RC \
19760 predep_objects_RC \
19761 postdep_objects_RC \
19762 predeps_RC \
19763 postdeps_RC \
19764 compiler_lib_search_path_RC \
19765 archive_cmds_RC \
19766 archive_expsym_cmds_RC \
19767 postinstall_cmds_RC \
19768 postuninstall_cmds_RC \
19769 old_archive_from_expsyms_cmds_RC \
19770 allow_undefined_flag_RC \
19771 no_undefined_flag_RC \
19772 export_symbols_cmds_RC \
19773 hardcode_libdir_flag_spec_RC \
19774 hardcode_libdir_flag_spec_ld_RC \
19775 hardcode_libdir_separator_RC \
19776 hardcode_automatic_RC \
19777 module_cmds_RC \
19778 module_expsym_cmds_RC \
19779 lt_cv_prog_compiler_c_o_RC \
19780 exclude_expsyms_RC \
19781 include_expsyms_RC; do
19783 case $var in
19784 old_archive_cmds_RC | \
19785 old_archive_from_new_cmds_RC | \
19786 archive_cmds_RC | \
19787 archive_expsym_cmds_RC | \
19788 module_cmds_RC | \
19789 module_expsym_cmds_RC | \
19790 old_archive_from_expsyms_cmds_RC | \
19791 export_symbols_cmds_RC | \
19792 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19793 postinstall_cmds | postuninstall_cmds | \
19794 old_postinstall_cmds | old_postuninstall_cmds | \
19795 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19796 # Double-quote double-evaled strings.
19797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19802 esac
19803 done
19805 case $lt_echo in
19806 *'\$0 --fallback-echo"')
19807 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19809 esac
19811 cfgfile="$ofile"
19813 cat <<__EOF__ >> "$cfgfile"
19814 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19818 # Shell to use when invoking shell scripts.
19819 SHELL=$lt_SHELL
19821 # Whether or not to build shared libraries.
19822 build_libtool_libs=$enable_shared
19824 # Whether or not to build static libraries.
19825 build_old_libs=$enable_static
19827 # Whether or not to add -lc for building shared libraries.
19828 build_libtool_need_lc=$archive_cmds_need_lc_RC
19830 # Whether or not to disallow shared libs when runtime libs are static
19831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19833 # Whether or not to optimize for fast installation.
19834 fast_install=$enable_fast_install
19836 # The host system.
19837 host_alias=$host_alias
19838 host=$host
19839 host_os=$host_os
19841 # The build system.
19842 build_alias=$build_alias
19843 build=$build
19844 build_os=$build_os
19846 # An echo program that does not interpret backslashes.
19847 echo=$lt_echo
19849 # The archiver.
19850 AR=$lt_AR
19851 AR_FLAGS=$lt_AR_FLAGS
19853 # A C compiler.
19854 LTCC=$lt_LTCC
19856 # A language-specific compiler.
19857 CC=$lt_compiler_RC
19859 # Is the compiler the GNU C compiler?
19860 with_gcc=$GCC_RC
19862 # An ERE matcher.
19863 EGREP=$lt_EGREP
19865 # The linker used to build libraries.
19866 LD=$lt_LD_RC
19868 # Whether we need hard or soft links.
19869 LN_S=$lt_LN_S
19871 # A BSD-compatible nm program.
19872 NM=$lt_NM
19874 # A symbol stripping program
19875 STRIP=$lt_STRIP
19877 # Used to examine libraries when file_magic_cmd begins "file"
19878 MAGIC_CMD=$MAGIC_CMD
19880 # Used on cygwin: DLL creation program.
19881 DLLTOOL="$DLLTOOL"
19883 # Used on cygwin: object dumper.
19884 OBJDUMP="$OBJDUMP"
19886 # Used on cygwin: assembler.
19887 AS="$AS"
19889 # The name of the directory that contains temporary libtool files.
19890 objdir=$objdir
19892 # How to create reloadable object files.
19893 reload_flag=$lt_reload_flag
19894 reload_cmds=$lt_reload_cmds
19896 # How to pass a linker flag through the compiler.
19897 wl=$lt_lt_prog_compiler_wl_RC
19899 # Object file suffix (normally "o").
19900 objext="$ac_objext"
19902 # Old archive suffix (normally "a").
19903 libext="$libext"
19905 # Shared library suffix (normally ".so").
19906 shrext_cmds='$shrext_cmds'
19908 # Executable file suffix (normally "").
19909 exeext="$exeext"
19911 # Additional compiler flags for building library objects.
19912 pic_flag=$lt_lt_prog_compiler_pic_RC
19913 pic_mode=$pic_mode
19915 # What is the maximum length of a command?
19916 max_cmd_len=$lt_cv_sys_max_cmd_len
19918 # Does compiler simultaneously support -c and -o options?
19919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19921 # Must we lock files when doing compilation?
19922 need_locks=$lt_need_locks
19924 # Do we need the lib prefix for modules?
19925 need_lib_prefix=$need_lib_prefix
19927 # Do we need a version for libraries?
19928 need_version=$need_version
19930 # Whether dlopen is supported.
19931 dlopen_support=$enable_dlopen
19933 # Whether dlopen of programs is supported.
19934 dlopen_self=$enable_dlopen_self
19936 # Whether dlopen of statically linked programs is supported.
19937 dlopen_self_static=$enable_dlopen_self_static
19939 # Compiler flag to prevent dynamic linking.
19940 link_static_flag=$lt_lt_prog_compiler_static_RC
19942 # Compiler flag to turn off builtin functions.
19943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19945 # Compiler flag to allow reflexive dlopens.
19946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19948 # Compiler flag to generate shared objects directly from archives.
19949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19951 # Compiler flag to generate thread-safe objects.
19952 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19954 # Library versioning type.
19955 version_type=$version_type
19957 # Format of library name prefix.
19958 libname_spec=$lt_libname_spec
19960 # List of archive names. First name is the real one, the rest are links.
19961 # The last name is the one that the linker finds with -lNAME.
19962 library_names_spec=$lt_library_names_spec
19964 # The coded name of the library, if different from the real name.
19965 soname_spec=$lt_soname_spec
19967 # Commands used to build and install an old-style archive.
19968 RANLIB=$lt_RANLIB
19969 old_archive_cmds=$lt_old_archive_cmds_RC
19970 old_postinstall_cmds=$lt_old_postinstall_cmds
19971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19973 # Create an old-style archive from a shared archive.
19974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19976 # Create a temporary old-style archive to link instead of a shared archive.
19977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19979 # Commands used to build and install a shared archive.
19980 archive_cmds=$lt_archive_cmds_RC
19981 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19982 postinstall_cmds=$lt_postinstall_cmds
19983 postuninstall_cmds=$lt_postuninstall_cmds
19985 # Commands used to build a loadable module (assumed same as above if empty)
19986 module_cmds=$lt_module_cmds_RC
19987 module_expsym_cmds=$lt_module_expsym_cmds_RC
19989 # Commands to strip libraries.
19990 old_striplib=$lt_old_striplib
19991 striplib=$lt_striplib
19993 # Dependencies to place before the objects being linked to create a
19994 # shared library.
19995 predep_objects=$lt_predep_objects_RC
19997 # Dependencies to place after the objects being linked to create a
19998 # shared library.
19999 postdep_objects=$lt_postdep_objects_RC
20001 # Dependencies to place before the objects being linked to create a
20002 # shared library.
20003 predeps=$lt_predeps_RC
20005 # Dependencies to place after the objects being linked to create a
20006 # shared library.
20007 postdeps=$lt_postdeps_RC
20009 # The library search path used internally by the compiler when linking
20010 # a shared library.
20011 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20013 # Method to check whether dependent libraries are shared objects.
20014 deplibs_check_method=$lt_deplibs_check_method
20016 # Command to use when deplibs_check_method == file_magic.
20017 file_magic_cmd=$lt_file_magic_cmd
20019 # Flag that allows shared libraries with undefined symbols to be built.
20020 allow_undefined_flag=$lt_allow_undefined_flag_RC
20022 # Flag that forces no undefined symbols.
20023 no_undefined_flag=$lt_no_undefined_flag_RC
20025 # Commands used to finish a libtool library installation in a directory.
20026 finish_cmds=$lt_finish_cmds
20028 # Same as above, but a single script fragment to be evaled but not shown.
20029 finish_eval=$lt_finish_eval
20031 # Take the output of nm and produce a listing of raw symbols and C names.
20032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20034 # Transform the output of nm in a proper C declaration
20035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20037 # Transform the output of nm in a C name address pair
20038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20040 # This is the shared library runtime path variable.
20041 runpath_var=$runpath_var
20043 # This is the shared library path variable.
20044 shlibpath_var=$shlibpath_var
20046 # Is shlibpath searched before the hard-coded library search path?
20047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20049 # How to hardcode a shared library path into an executable.
20050 hardcode_action=$hardcode_action_RC
20052 # Whether we should hardcode library paths into libraries.
20053 hardcode_into_libs=$hardcode_into_libs
20055 # Flag to hardcode \$libdir into a binary during linking.
20056 # This must work even if \$libdir does not exist.
20057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20059 # If ld is used when linking, flag to hardcode \$libdir into
20060 # a binary during linking. This must work even if \$libdir does
20061 # not exist.
20062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20064 # Whether we need a single -rpath flag with a separated argument.
20065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20067 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20068 # resulting binary.
20069 hardcode_direct=$hardcode_direct_RC
20071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20072 # resulting binary.
20073 hardcode_minus_L=$hardcode_minus_L_RC
20075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20076 # the resulting binary.
20077 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20079 # Set to yes if building a shared library automatically hardcodes DIR into the library
20080 # and all subsequent libraries and executables linked against it.
20081 hardcode_automatic=$hardcode_automatic_RC
20083 # Variables whose values should be saved in libtool wrapper scripts and
20084 # restored at relink time.
20085 variables_saved_for_relink="$variables_saved_for_relink"
20087 # Whether libtool must link a program against all its dependency libraries.
20088 link_all_deplibs=$link_all_deplibs_RC
20090 # Compile-time system search path for libraries
20091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20093 # Run-time system search path for libraries
20094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20096 # Fix the shell variable \$srcfile for the compiler.
20097 fix_srcfile_path="$fix_srcfile_path_RC"
20099 # Set to yes if exported symbols are required.
20100 always_export_symbols=$always_export_symbols_RC
20102 # The commands to list exported symbols.
20103 export_symbols_cmds=$lt_export_symbols_cmds_RC
20105 # The commands to extract the exported symbol list from a shared archive.
20106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20108 # Symbols that should not be listed in the preloaded symbols.
20109 exclude_expsyms=$lt_exclude_expsyms_RC
20111 # Symbols that must always be exported.
20112 include_expsyms=$lt_include_expsyms_RC
20114 # ### END LIBTOOL TAG CONFIG: $tagname
20116 __EOF__
20119 else
20120 # If there is no Makefile yet, we rely on a make rule to execute
20121 # `config.status --recheck' to rerun these tests and create the
20122 # libtool script then.
20123 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20124 if test -f "$ltmain_in"; then
20125 test -f Makefile && make "$ltmain"
20130 ac_ext=c
20131 ac_cpp='$CPP $CPPFLAGS'
20132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136 CC="$lt_save_CC"
20141 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20142 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20143 { (exit 1); exit 1; }; }
20145 esac
20147 # Append the new tag name to the list of available tags.
20148 if test -n "$tagname" ; then
20149 available_tags="$available_tags $tagname"
20152 done
20153 IFS="$lt_save_ifs"
20155 # Now substitute the updated list of available tags.
20156 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20157 mv "${ofile}T" "$ofile"
20158 chmod +x "$ofile"
20159 else
20160 rm -f "${ofile}T"
20161 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20162 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20163 { (exit 1); exit 1; }; }
20169 # This can be used to rebuild libtool when needed
20170 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20172 # Always use our own libtool.
20173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20175 # Prevent multiple expansion
20203 ac_header_dirent=no
20204 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20205 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20206 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20207 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 #include <sys/types.h>
20218 #include <$ac_hdr>
20221 main ()
20223 if ((DIR *) 0)
20224 return 0;
20226 return 0;
20228 _ACEOF
20229 rm -f conftest.$ac_objext
20230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231 (eval $ac_compile) 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
20238 { ac_try='test -z "$ac_c_werror_flag"
20239 || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 eval "$as_ac_Header=yes"
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 eval "$as_ac_Header=no"
20258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20263 cat >>confdefs.h <<_ACEOF
20264 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20265 _ACEOF
20267 ac_header_dirent=$ac_hdr; break
20270 done
20271 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20272 if test $ac_header_dirent = dirent.h; then
20273 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20274 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20275 if test "${ac_cv_search_opendir+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 else
20278 ac_func_search_save_LIBS=$LIBS
20279 ac_cv_search_opendir=no
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20287 /* Override any gcc2 internal prototype to avoid an error. */
20288 #ifdef __cplusplus
20289 extern "C"
20290 #endif
20291 /* We use char because int might match the return type of a gcc2
20292 builtin and then its argument prototype would still apply. */
20293 char opendir ();
20295 main ()
20297 opendir ();
20299 return 0;
20301 _ACEOF
20302 rm -f conftest.$ac_objext conftest$ac_exeext
20303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20304 (eval $ac_link) 2>conftest.er1
20305 ac_status=$?
20306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
20311 { ac_try='test -z "$ac_c_werror_flag"
20312 || test ! -s conftest.err'
20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314 (eval $ac_try) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; } &&
20318 { ac_try='test -s conftest$ac_exeext'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 ac_cv_search_opendir="none required"
20325 else
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20330 rm -f conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
20332 if test "$ac_cv_search_opendir" = no; then
20333 for ac_lib in dir; do
20334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any gcc2 internal prototype to avoid an error. */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20348 char opendir ();
20350 main ()
20352 opendir ();
20354 return 0;
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_search_opendir="-l$ac_lib"
20380 break
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20386 rm -f conftest.err conftest.$ac_objext \
20387 conftest$ac_exeext conftest.$ac_ext
20388 done
20390 LIBS=$ac_func_search_save_LIBS
20392 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20393 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20394 if test "$ac_cv_search_opendir" != no; then
20395 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20399 else
20400 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20401 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20402 if test "${ac_cv_search_opendir+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405 ac_func_search_save_LIBS=$LIBS
20406 ac_cv_search_opendir=no
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20414 /* Override any gcc2 internal prototype to avoid an error. */
20415 #ifdef __cplusplus
20416 extern "C"
20417 #endif
20418 /* We use char because int might match the return type of a gcc2
20419 builtin and then its argument prototype would still apply. */
20420 char opendir ();
20422 main ()
20424 opendir ();
20426 return 0;
20428 _ACEOF
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20431 (eval $ac_link) 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest$ac_exeext'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_cv_search_opendir="none required"
20452 else
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20457 rm -f conftest.err conftest.$ac_objext \
20458 conftest$ac_exeext conftest.$ac_ext
20459 if test "$ac_cv_search_opendir" = no; then
20460 for ac_lib in x; do
20461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h. */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20469 /* Override any gcc2 internal prototype to avoid an error. */
20470 #ifdef __cplusplus
20471 extern "C"
20472 #endif
20473 /* We use char because int might match the return type of a gcc2
20474 builtin and then its argument prototype would still apply. */
20475 char opendir ();
20477 main ()
20479 opendir ();
20481 return 0;
20483 _ACEOF
20484 rm -f conftest.$ac_objext conftest$ac_exeext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20486 (eval $ac_link) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest$ac_exeext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_cv_search_opendir="-l$ac_lib"
20507 break
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20513 rm -f conftest.err conftest.$ac_objext \
20514 conftest$ac_exeext conftest.$ac_ext
20515 done
20517 LIBS=$ac_func_search_save_LIBS
20519 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20520 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20521 if test "$ac_cv_search_opendir" != no; then
20522 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20528 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20529 if test "${enable_ltdl_install+set}" = set; then
20530 enableval="$enable_ltdl_install"
20536 if test x"${enable_ltdl_install-no}" != xno; then
20537 INSTALL_LTDL_TRUE=
20538 INSTALL_LTDL_FALSE='#'
20539 else
20540 INSTALL_LTDL_TRUE='#'
20541 INSTALL_LTDL_FALSE=
20546 if test x"${enable_ltdl_convenience-no}" != xno; then
20547 CONVENIENCE_LTDL_TRUE=
20548 CONVENIENCE_LTDL_FALSE='#'
20549 else
20550 CONVENIENCE_LTDL_TRUE='#'
20551 CONVENIENCE_LTDL_FALSE=
20556 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20557 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20558 if test "${libltdl_cv_shlibext+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20562 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20563 # Here in libltdl for libgcj we don't build modules for darwin.
20564 # So we say no. Then the extension gets .dylib which is the right
20565 # thing for shared libraries on darwin. Please keep me next time you
20566 # import libltdl.
20567 case "$host_os" in
20568 darwin*)
20569 module=no
20572 module=yes
20574 esac
20575 eval libltdl_cv_shlibext=$shrext_cmds
20578 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20579 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20580 if test -n "$libltdl_cv_shlibext"; then
20582 cat >>confdefs.h <<_ACEOF
20583 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20584 _ACEOF
20589 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20590 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20591 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594 libltdl_cv_shlibpath_var="$shlibpath_var"
20596 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20597 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20598 if test -n "$libltdl_cv_shlibpath_var"; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20602 _ACEOF
20607 echo "$as_me:$LINENO: checking for the default library search path" >&5
20608 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20609 if test "${libltdl_cv_sys_search_path+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20614 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20615 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20616 if test -n "$libltdl_cv_sys_search_path"; then
20617 sys_search_path=
20618 for dir in $libltdl_cv_sys_search_path; do
20619 if test -z "$sys_search_path"; then
20620 sys_search_path="$dir"
20621 else
20622 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20624 done
20626 cat >>confdefs.h <<_ACEOF
20627 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20628 _ACEOF
20632 echo "$as_me:$LINENO: checking for objdir" >&5
20633 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20634 if test "${libltdl_cv_objdir+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 libltdl_cv_objdir="$objdir"
20638 if test -n "$objdir"; then
20640 else
20641 rm -f .libs 2>/dev/null
20642 mkdir .libs 2>/dev/null
20643 if test -d .libs; then
20644 libltdl_cv_objdir=.libs
20645 else
20646 # MS-DOS does not allow filenames that begin with a dot.
20647 libltdl_cv_objdir=_libs
20649 rmdir .libs 2>/dev/null
20653 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20654 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20656 cat >>confdefs.h <<_ACEOF
20657 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20658 _ACEOF
20662 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20663 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20664 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20668 libltdl_cv_preloaded_symbols=yes
20669 else
20670 libltdl_cv_preloaded_symbols=no
20674 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20675 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20676 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_PRELOADED_SYMBOLS 1
20680 _ACEOF
20684 LIBADD_DL=
20686 ac_ext=c
20687 ac_cpp='$CPP $CPPFLAGS'
20688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693 echo "$as_me:$LINENO: checking for shl_load" >&5
20694 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20695 if test "${ac_cv_func_shl_load+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define shl_load innocuous_shl_load
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char shl_load (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20713 #ifdef __STDC__
20714 # include <limits.h>
20715 #else
20716 # include <assert.h>
20717 #endif
20719 #undef shl_load
20721 /* Override any gcc2 internal prototype to avoid an error. */
20722 #ifdef __cplusplus
20723 extern "C"
20725 #endif
20726 /* We use char because int might match the return type of a gcc2
20727 builtin and then its argument prototype would still apply. */
20728 char shl_load ();
20729 /* The GNU C library defines this for functions which it implements
20730 to always fail with ENOSYS. Some functions are actually named
20731 something starting with __ and the normal name is an alias. */
20732 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20733 choke me
20734 #else
20735 char (*f) () = shl_load;
20736 #endif
20737 #ifdef __cplusplus
20739 #endif
20742 main ()
20744 return f != shl_load;
20746 return 0;
20748 _ACEOF
20749 rm -f conftest.$ac_objext conftest$ac_exeext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20751 (eval $ac_link) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest$ac_exeext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 ac_cv_func_shl_load=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_func_shl_load=no
20778 rm -f conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20782 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20783 if test $ac_cv_func_shl_load = yes; then
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_SHL_LOAD 1
20787 _ACEOF
20789 else
20790 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20791 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795 ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-ldld $LIBS"
20797 cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h. */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20804 /* Override any gcc2 internal prototype to avoid an error. */
20805 #ifdef __cplusplus
20806 extern "C"
20807 #endif
20808 /* We use char because int might match the return type of a gcc2
20809 builtin and then its argument prototype would still apply. */
20810 char shl_load ();
20812 main ()
20814 shl_load ();
20816 return 0;
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest$ac_exeext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_cv_lib_dld_shl_load=yes
20842 else
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_lib_dld_shl_load=no
20848 rm -f conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20850 LIBS=$ac_check_lib_save_LIBS
20852 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20853 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20854 if test $ac_cv_lib_dld_shl_load = yes; then
20856 cat >>confdefs.h <<\_ACEOF
20857 #define HAVE_SHL_LOAD 1
20858 _ACEOF
20860 LIBADD_DL="$LIBADD_DL -ldld"
20861 else
20862 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 ac_check_lib_save_LIBS=$LIBS
20868 LIBS="-ldl $LIBS"
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 /* Override any gcc2 internal prototype to avoid an error. */
20877 #ifdef __cplusplus
20878 extern "C"
20879 #endif
20880 /* We use char because int might match the return type of a gcc2
20881 builtin and then its argument prototype would still apply. */
20882 char dlopen ();
20884 main ()
20886 dlopen ();
20888 return 0;
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893 (eval $ac_link) 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag"
20901 || test ! -s conftest.err'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest$ac_exeext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_lib_dl_dlopen=yes
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_lib_dl_dlopen=no
20920 rm -f conftest.err conftest.$ac_objext \
20921 conftest$ac_exeext conftest.$ac_ext
20922 LIBS=$ac_check_lib_save_LIBS
20924 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20925 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20926 if test $ac_cv_lib_dl_dlopen = yes; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_LIBDL 1
20930 _ACEOF
20932 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20933 else
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h. */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 #if HAVE_DLFCN_H
20941 # include <dlfcn.h>
20942 #endif
20945 main ()
20947 dlopen(0, 0);
20949 return 0;
20951 _ACEOF
20952 rm -f conftest.$ac_objext conftest$ac_exeext
20953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20954 (eval $ac_link) 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -z "$ac_c_werror_flag"
20962 || test ! -s conftest.err'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest$ac_exeext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_LIBDL 1
20977 _ACEOF
20978 libltdl_cv_func_dlopen="yes"
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20984 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20985 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988 ac_check_lib_save_LIBS=$LIBS
20989 LIBS="-lsvld $LIBS"
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20997 /* Override any gcc2 internal prototype to avoid an error. */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 /* We use char because int might match the return type of a gcc2
21002 builtin and then its argument prototype would still apply. */
21003 char dlopen ();
21005 main ()
21007 dlopen ();
21009 return 0;
21011 _ACEOF
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_c_werror_flag"
21022 || test ! -s conftest.err'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try='test -s conftest$ac_exeext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 ac_cv_lib_svld_dlopen=yes
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 ac_cv_lib_svld_dlopen=no
21041 rm -f conftest.err conftest.$ac_objext \
21042 conftest$ac_exeext conftest.$ac_ext
21043 LIBS=$ac_check_lib_save_LIBS
21045 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21047 if test $ac_cv_lib_svld_dlopen = yes; then
21049 cat >>confdefs.h <<\_ACEOF
21050 #define HAVE_LIBDL 1
21051 _ACEOF
21053 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
21054 else
21055 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21056 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060 ac_check_lib_save_LIBS=$LIBS
21061 LIBS="-ldld $LIBS"
21062 cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h. */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21069 /* Override any gcc2 internal prototype to avoid an error. */
21070 #ifdef __cplusplus
21071 extern "C"
21072 #endif
21073 /* We use char because int might match the return type of a gcc2
21074 builtin and then its argument prototype would still apply. */
21075 char dld_link ();
21077 main ()
21079 dld_link ();
21081 return 0;
21083 _ACEOF
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21086 (eval $ac_link) 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -z "$ac_c_werror_flag"
21094 || test ! -s conftest.err'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_lib_dld_dld_link=yes
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_cv_lib_dld_dld_link=no
21113 rm -f conftest.err conftest.$ac_objext \
21114 conftest$ac_exeext conftest.$ac_ext
21115 LIBS=$ac_check_lib_save_LIBS
21117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21118 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21119 if test $ac_cv_lib_dld_dld_link = yes; then
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_DLD 1
21123 _ACEOF
21125 LIBADD_DL="$LIBADD_DL -ldld"
21126 else
21127 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21128 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21129 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h. */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21140 #define _dyld_func_lookup innocuous__dyld_func_lookup
21142 /* System header to define __stub macros and hopefully few prototypes,
21143 which can conflict with char _dyld_func_lookup (); below.
21144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21145 <limits.h> exists even on freestanding compilers. */
21147 #ifdef __STDC__
21148 # include <limits.h>
21149 #else
21150 # include <assert.h>
21151 #endif
21153 #undef _dyld_func_lookup
21155 /* Override any gcc2 internal prototype to avoid an error. */
21156 #ifdef __cplusplus
21157 extern "C"
21159 #endif
21160 /* We use char because int might match the return type of a gcc2
21161 builtin and then its argument prototype would still apply. */
21162 char _dyld_func_lookup ();
21163 /* The GNU C library defines this for functions which it implements
21164 to always fail with ENOSYS. Some functions are actually named
21165 something starting with __ and the normal name is an alias. */
21166 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21167 choke me
21168 #else
21169 char (*f) () = _dyld_func_lookup;
21170 #endif
21171 #ifdef __cplusplus
21173 #endif
21176 main ()
21178 return f != _dyld_func_lookup;
21180 return 0;
21182 _ACEOF
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21185 (eval $ac_link) 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_c_werror_flag"
21193 || test ! -s conftest.err'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; } &&
21199 { ac_try='test -s conftest$ac_exeext'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 ac_cv_func__dyld_func_lookup=yes
21206 else
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_cv_func__dyld_func_lookup=no
21212 rm -f conftest.err conftest.$ac_objext \
21213 conftest$ac_exeext conftest.$ac_ext
21215 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21216 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21217 if test $ac_cv_func__dyld_func_lookup = yes; then
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_DYLD 1
21221 _ACEOF
21233 rm -f conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21245 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21246 then
21247 lt_save_LIBS="$LIBS"
21248 LIBS="$LIBS $LIBADD_DL"
21250 for ac_func in dlerror
21252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21253 echo "$as_me:$LINENO: checking for $ac_func" >&5
21254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21255 if eval "test \"\${$as_ac_var+set}\" = set"; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21266 #define $ac_func innocuous_$ac_func
21268 /* System header to define __stub macros and hopefully few prototypes,
21269 which can conflict with char $ac_func (); below.
21270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21271 <limits.h> exists even on freestanding compilers. */
21273 #ifdef __STDC__
21274 # include <limits.h>
21275 #else
21276 # include <assert.h>
21277 #endif
21279 #undef $ac_func
21281 /* Override any gcc2 internal prototype to avoid an error. */
21282 #ifdef __cplusplus
21283 extern "C"
21285 #endif
21286 /* We use char because int might match the return type of a gcc2
21287 builtin and then its argument prototype would still apply. */
21288 char $ac_func ();
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21293 choke me
21294 #else
21295 char (*f) () = $ac_func;
21296 #endif
21297 #ifdef __cplusplus
21299 #endif
21302 main ()
21304 return f != $ac_func;
21306 return 0;
21308 _ACEOF
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21311 (eval $ac_link) 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } &&
21318 { ac_try='test -z "$ac_c_werror_flag"
21319 || test ! -s conftest.err'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
21325 { ac_try='test -s conftest$ac_exeext'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; }; then
21331 eval "$as_ac_var=yes"
21332 else
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 eval "$as_ac_var=no"
21338 rm -f conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
21341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21343 if test `eval echo '${'$as_ac_var'}'` = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21346 _ACEOF
21349 done
21351 LIBS="$lt_save_LIBS"
21353 ac_ext=c
21354 ac_cpp='$CPP $CPPFLAGS'
21355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21361 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21362 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21363 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366 ac_cv_sys_symbol_underscore=no
21367 cat > conftest.$ac_ext <<EOF
21368 void nm_test_func(){}
21369 int main(){nm_test_func;return 0;}
21371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; then
21376 # Now try to grab the symbols.
21377 ac_nlist=conftest.nm
21378 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21379 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && test -s "$ac_nlist"; then
21383 # See whether the symbols have a leading underscore.
21384 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21385 ac_cv_sys_symbol_underscore=yes
21386 else
21387 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21389 else
21390 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21393 else
21394 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21396 else
21397 echo "configure: failed program was:" >&5
21398 cat conftest.c >&5
21400 rm -rf conftest*
21403 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21404 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21407 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21408 if test x"$libltdl_cv_func_dlopen" = xyes ||
21409 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21410 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21411 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21412 if test "${libltdl_cv_need_uscore+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 else
21415 libltdl_cv_need_uscore=unknown
21416 save_LIBS="$LIBS"
21417 LIBS="$LIBS $LIBADD_DL"
21418 if test "$cross_compiling" = yes; then :
21419 libltdl_cv_need_uscore=cross
21420 else
21421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21422 lt_status=$lt_dlunknown
21423 cat > conftest.$ac_ext <<EOF
21424 #line 21424 "configure"
21425 #include "confdefs.h"
21427 #if HAVE_DLFCN_H
21428 #include <dlfcn.h>
21429 #endif
21431 #include <stdio.h>
21433 #ifdef RTLD_GLOBAL
21434 # define LT_DLGLOBAL RTLD_GLOBAL
21435 #else
21436 # ifdef DL_GLOBAL
21437 # define LT_DLGLOBAL DL_GLOBAL
21438 # else
21439 # define LT_DLGLOBAL 0
21440 # endif
21441 #endif
21443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21444 find out it does not work in some platform. */
21445 #ifndef LT_DLLAZY_OR_NOW
21446 # ifdef RTLD_LAZY
21447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21448 # else
21449 # ifdef DL_LAZY
21450 # define LT_DLLAZY_OR_NOW DL_LAZY
21451 # else
21452 # ifdef RTLD_NOW
21453 # define LT_DLLAZY_OR_NOW RTLD_NOW
21454 # else
21455 # ifdef DL_NOW
21456 # define LT_DLLAZY_OR_NOW DL_NOW
21457 # else
21458 # define LT_DLLAZY_OR_NOW 0
21459 # endif
21460 # endif
21461 # endif
21462 # endif
21463 #endif
21465 #ifdef __cplusplus
21466 extern "C" void exit (int);
21467 #endif
21469 void fnord() { int i=42;}
21470 int main ()
21472 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21473 int status = $lt_dlunknown;
21475 if (self)
21477 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21478 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21479 /* dlclose (self); */
21482 exit (status);
21485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21490 (./conftest; exit; ) 2>/dev/null
21491 lt_status=$?
21492 case x$lt_status in
21493 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21494 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21495 x$lt_unknown|x*) ;;
21496 esac
21497 else :
21498 # compilation failed
21502 rm -fr conftest*
21504 LIBS="$save_LIBS"
21507 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21508 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21512 if test x"$libltdl_cv_need_uscore" = xyes; then
21514 cat >>confdefs.h <<\_ACEOF
21515 #define NEED_USCORE 1
21516 _ACEOF
21521 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21522 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21523 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 # PORTME does your system automatically load deplibs for dlopen?
21527 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21528 # For now, we just catch OSes we know something about -- in the
21529 # future, we'll try test this programmatically.
21530 libltdl_cv_sys_dlopen_deplibs=unknown
21531 case "$host_os" in
21532 aix3*|aix4.1.*|aix4.2.*)
21533 # Unknown whether this is true for these versions of AIX, but
21534 # we want this `case' here to explicitly catch those versions.
21535 libltdl_cv_sys_dlopen_deplibs=unknown
21537 aix[45]*)
21538 libltdl_cv_sys_dlopen_deplibs=yes
21540 darwin*)
21541 # Assuming the user has installed a libdl from somewhere, this is true
21542 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21543 libltdl_cv_sys_dlopen_deplibs=yes
21545 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21546 # GNU and its variants, using gnu ld.so (Glibc)
21547 libltdl_cv_sys_dlopen_deplibs=yes
21549 hpux10*|hpux11*)
21550 libltdl_cv_sys_dlopen_deplibs=yes
21552 irix[12345]*|irix6.[01]*)
21553 # Catch all versions of IRIX before 6.2, and indicate that we don't
21554 # know how it worked for any of those versions.
21555 libltdl_cv_sys_dlopen_deplibs=unknown
21557 irix*)
21558 # The case above catches anything before 6.2, and it's known that
21559 # at 6.2 and later dlopen does load deplibs.
21560 libltdl_cv_sys_dlopen_deplibs=yes
21562 netbsd*)
21563 libltdl_cv_sys_dlopen_deplibs=yes
21565 openbsd*)
21566 libltdl_cv_sys_dlopen_deplibs=yes
21568 osf[1234]*)
21569 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21570 # it did *not* use an RPATH in a shared library to find objects the
21571 # library depends on, so we explictly say `no'.
21572 libltdl_cv_sys_dlopen_deplibs=no
21574 osf5.0|osf5.0a|osf5.1)
21575 # dlopen *does* load deplibs and with the right loader patch applied
21576 # it even uses RPATH in a shared library to search for shared objects
21577 # that the library depends on, but there's no easy way to know if that
21578 # patch is installed. Since this is the case, all we can really
21579 # say is unknown -- it depends on the patch being installed. If
21580 # it is, this changes to `yes'. Without it, it would be `no'.
21581 libltdl_cv_sys_dlopen_deplibs=unknown
21583 osf*)
21584 # the two cases above should catch all versions of osf <= 5.1. Read
21585 # the comments above for what we know about them.
21586 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21587 # is used to find them so we can finally say `yes'.
21588 libltdl_cv_sys_dlopen_deplibs=yes
21590 solaris*)
21591 libltdl_cv_sys_dlopen_deplibs=yes
21593 esac
21596 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21597 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21598 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21600 cat >>confdefs.h <<\_ACEOF
21601 #define LTDL_DLOPEN_DEPLIBS 1
21602 _ACEOF
21607 for ac_header in argz.h
21609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21611 echo "$as_me:$LINENO: checking for $ac_header" >&5
21612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21618 else
21619 # Is the header compilable?
21620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 $ac_includes_default
21629 #include <$ac_header>
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633 (eval $ac_compile) 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag"
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest.$ac_objext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_header_compiler=yes
21654 else
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 ac_header_compiler=no
21660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21662 echo "${ECHO_T}$ac_header_compiler" >&6
21664 # Is the header present?
21665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <$ac_header>
21674 _ACEOF
21675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21677 ac_status=$?
21678 grep -v '^ *+' conftest.er1 >conftest.err
21679 rm -f conftest.er1
21680 cat conftest.err >&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } >/dev/null; then
21683 if test -s conftest.err; then
21684 ac_cpp_err=$ac_c_preproc_warn_flag
21685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21686 else
21687 ac_cpp_err=
21689 else
21690 ac_cpp_err=yes
21692 if test -z "$ac_cpp_err"; then
21693 ac_header_preproc=yes
21694 else
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ac_header_preproc=no
21700 rm -f conftest.err conftest.$ac_ext
21701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6
21704 # So? What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21706 yes:no: )
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21711 ac_header_preproc=yes
21713 no:yes:* )
21714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21727 cat <<\_ASBOX
21728 ## ---------------------------------- ##
21729 ## Report this to bug-libtool@gnu.org ##
21730 ## ---------------------------------- ##
21731 _ASBOX
21733 sed "s/^/$as_me: WARNING: /" >&2
21735 esac
21736 echo "$as_me:$LINENO: checking for $ac_header" >&5
21737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741 eval "$as_ac_Header=\$ac_header_preproc"
21743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21748 cat >>confdefs.h <<_ACEOF
21749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21750 _ACEOF
21754 done
21757 echo "$as_me:$LINENO: checking for error_t" >&5
21758 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21759 if test "${ac_cv_type_error_t+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 else
21762 cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h. */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 #if HAVE_ARGZ_H
21769 # include <argz.h>
21770 #endif
21773 main ()
21775 if ((error_t *) 0)
21776 return 0;
21777 if (sizeof (error_t))
21778 return 0;
21780 return 0;
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag"
21793 || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest.$ac_objext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_type_error_t=yes
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_cv_type_error_t=no
21812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21814 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21815 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21816 if test $ac_cv_type_error_t = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define HAVE_ERROR_T 1
21820 _ACEOF
21823 else
21825 cat >>confdefs.h <<\_ACEOF
21826 #define error_t int
21827 _ACEOF
21837 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21840 echo "$as_me:$LINENO: checking for $ac_func" >&5
21841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21842 if eval "test \"\${$as_ac_var+set}\" = set"; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21853 #define $ac_func innocuous_$ac_func
21855 /* System header to define __stub macros and hopefully few prototypes,
21856 which can conflict with char $ac_func (); below.
21857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21858 <limits.h> exists even on freestanding compilers. */
21860 #ifdef __STDC__
21861 # include <limits.h>
21862 #else
21863 # include <assert.h>
21864 #endif
21866 #undef $ac_func
21868 /* Override any gcc2 internal prototype to avoid an error. */
21869 #ifdef __cplusplus
21870 extern "C"
21872 #endif
21873 /* We use char because int might match the return type of a gcc2
21874 builtin and then its argument prototype would still apply. */
21875 char $ac_func ();
21876 /* The GNU C library defines this for functions which it implements
21877 to always fail with ENOSYS. Some functions are actually named
21878 something starting with __ and the normal name is an alias. */
21879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21880 choke me
21881 #else
21882 char (*f) () = $ac_func;
21883 #endif
21884 #ifdef __cplusplus
21886 #endif
21889 main ()
21891 return f != $ac_func;
21893 return 0;
21895 _ACEOF
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } &&
21905 { ac_try='test -z "$ac_c_werror_flag"
21906 || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest$ac_exeext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 eval "$as_ac_var=yes"
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 eval "$as_ac_var=no"
21925 rm -f conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21930 if test `eval echo '${'$as_ac_var'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21933 _ACEOF
21936 done
21965 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21966 stdio.h unistd.h
21968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21970 echo "$as_me:$LINENO: checking for $ac_header" >&5
21971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21977 else
21978 # Is the header compilable?
21979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21981 cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h. */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 $ac_includes_default
21988 #include <$ac_header>
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992 (eval $ac_compile) 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest.$ac_objext'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_header_compiler=yes
22013 else
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_header_compiler=no
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6
22023 # Is the header present?
22024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22033 _ACEOF
22034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null; then
22042 if test -s conftest.err; then
22043 ac_cpp_err=$ac_c_preproc_warn_flag
22044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22045 else
22046 ac_cpp_err=
22048 else
22049 ac_cpp_err=yes
22051 if test -z "$ac_cpp_err"; then
22052 ac_header_preproc=yes
22053 else
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_header_preproc=no
22059 rm -f conftest.err conftest.$ac_ext
22060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22061 echo "${ECHO_T}$ac_header_preproc" >&6
22063 # So? What about this header?
22064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 yes:no: )
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22070 ac_header_preproc=yes
22072 no:yes:* )
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22086 cat <<\_ASBOX
22087 ## ---------------------------------- ##
22088 ## Report this to bug-libtool@gnu.org ##
22089 ## ---------------------------------- ##
22090 _ASBOX
22092 sed "s/^/$as_me: WARNING: /" >&2
22094 esac
22095 echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22109 _ACEOF
22113 done
22119 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22123 echo "$as_me:$LINENO: checking for $ac_header" >&5
22124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22130 else
22131 # Is the header compilable?
22132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22141 #include <$ac_header>
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22145 (eval $ac_compile) 2>conftest.er1
22146 ac_status=$?
22147 grep -v '^ *+' conftest.er1 >conftest.err
22148 rm -f conftest.er1
22149 cat conftest.err >&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } &&
22152 { ac_try='test -z "$ac_c_werror_flag"
22153 || test ! -s conftest.err'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try='test -s conftest.$ac_objext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 ac_header_compiler=yes
22166 else
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 ac_header_compiler=no
22172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 echo "${ECHO_T}$ac_header_compiler" >&6
22176 # Is the header present?
22177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <$ac_header>
22186 _ACEOF
22187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } >/dev/null; then
22195 if test -s conftest.err; then
22196 ac_cpp_err=$ac_c_preproc_warn_flag
22197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22198 else
22199 ac_cpp_err=
22201 else
22202 ac_cpp_err=yes
22204 if test -z "$ac_cpp_err"; then
22205 ac_header_preproc=yes
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_header_preproc=no
22212 rm -f conftest.err conftest.$ac_ext
22213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22214 echo "${ECHO_T}$ac_header_preproc" >&6
22216 # So? What about this header?
22217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22218 yes:no: )
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22223 ac_header_preproc=yes
22225 no:yes:* )
22226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22239 cat <<\_ASBOX
22240 ## ---------------------------------- ##
22241 ## Report this to bug-libtool@gnu.org ##
22242 ## ---------------------------------- ##
22243 _ASBOX
22245 sed "s/^/$as_me: WARNING: /" >&2
22247 esac
22248 echo "$as_me:$LINENO: checking for $ac_header" >&5
22249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 eval "$as_ac_Header=\$ac_header_preproc"
22255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22260 cat >>confdefs.h <<_ACEOF
22261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22262 _ACEOF
22266 done
22270 for ac_header in string.h strings.h
22272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22274 echo "$as_me:$LINENO: checking for $ac_header" >&5
22275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22281 else
22282 # Is the header compilable?
22283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22285 cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h. */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 $ac_includes_default
22292 #include <$ac_header>
22293 _ACEOF
22294 rm -f conftest.$ac_objext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22296 (eval $ac_compile) 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -z "$ac_c_werror_flag"
22304 || test ! -s conftest.err'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest.$ac_objext'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 ac_header_compiler=yes
22317 else
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_header_compiler=no
22323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22325 echo "${ECHO_T}$ac_header_compiler" >&6
22327 # Is the header present?
22328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 #include <$ac_header>
22337 _ACEOF
22338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22340 ac_status=$?
22341 grep -v '^ *+' conftest.er1 >conftest.err
22342 rm -f conftest.er1
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } >/dev/null; then
22346 if test -s conftest.err; then
22347 ac_cpp_err=$ac_c_preproc_warn_flag
22348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22349 else
22350 ac_cpp_err=
22352 else
22353 ac_cpp_err=yes
22355 if test -z "$ac_cpp_err"; then
22356 ac_header_preproc=yes
22357 else
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 ac_header_preproc=no
22363 rm -f conftest.err conftest.$ac_ext
22364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22365 echo "${ECHO_T}$ac_header_preproc" >&6
22367 # So? What about this header?
22368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22369 yes:no: )
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22374 ac_header_preproc=yes
22376 no:yes:* )
22377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22390 cat <<\_ASBOX
22391 ## ---------------------------------- ##
22392 ## Report this to bug-libtool@gnu.org ##
22393 ## ---------------------------------- ##
22394 _ASBOX
22396 sed "s/^/$as_me: WARNING: /" >&2
22398 esac
22399 echo "$as_me:$LINENO: checking for $ac_header" >&5
22400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404 eval "$as_ac_Header=\$ac_header_preproc"
22406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22411 cat >>confdefs.h <<_ACEOF
22412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22413 _ACEOF
22414 break
22417 done
22422 for ac_func in strchr index
22424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22425 echo "$as_me:$LINENO: checking for $ac_func" >&5
22426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22427 if eval "test \"\${$as_ac_var+set}\" = set"; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430 cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h. */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22438 #define $ac_func innocuous_$ac_func
22440 /* System header to define __stub macros and hopefully few prototypes,
22441 which can conflict with char $ac_func (); below.
22442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22443 <limits.h> exists even on freestanding compilers. */
22445 #ifdef __STDC__
22446 # include <limits.h>
22447 #else
22448 # include <assert.h>
22449 #endif
22451 #undef $ac_func
22453 /* Override any gcc2 internal prototype to avoid an error. */
22454 #ifdef __cplusplus
22455 extern "C"
22457 #endif
22458 /* We use char because int might match the return type of a gcc2
22459 builtin and then its argument prototype would still apply. */
22460 char $ac_func ();
22461 /* The GNU C library defines this for functions which it implements
22462 to always fail with ENOSYS. Some functions are actually named
22463 something starting with __ and the normal name is an alias. */
22464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22465 choke me
22466 #else
22467 char (*f) () = $ac_func;
22468 #endif
22469 #ifdef __cplusplus
22471 #endif
22474 main ()
22476 return f != $ac_func;
22478 return 0;
22480 _ACEOF
22481 rm -f conftest.$ac_objext conftest$ac_exeext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483 (eval $ac_link) 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_c_werror_flag"
22491 || test ! -s conftest.err'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest$ac_exeext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22500 ac_status=$?
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 eval "$as_ac_var=yes"
22504 else
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 eval "$as_ac_var=no"
22510 rm -f conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22515 if test `eval echo '${'$as_ac_var'}'` = yes; then
22516 cat >>confdefs.h <<_ACEOF
22517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22518 _ACEOF
22519 break
22521 done
22525 for ac_func in strrchr rindex
22527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22528 echo "$as_me:$LINENO: checking for $ac_func" >&5
22529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22530 if eval "test \"\${$as_ac_var+set}\" = set"; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22541 #define $ac_func innocuous_$ac_func
22543 /* System header to define __stub macros and hopefully few prototypes,
22544 which can conflict with char $ac_func (); below.
22545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22546 <limits.h> exists even on freestanding compilers. */
22548 #ifdef __STDC__
22549 # include <limits.h>
22550 #else
22551 # include <assert.h>
22552 #endif
22554 #undef $ac_func
22556 /* Override any gcc2 internal prototype to avoid an error. */
22557 #ifdef __cplusplus
22558 extern "C"
22560 #endif
22561 /* We use char because int might match the return type of a gcc2
22562 builtin and then its argument prototype would still apply. */
22563 char $ac_func ();
22564 /* The GNU C library defines this for functions which it implements
22565 to always fail with ENOSYS. Some functions are actually named
22566 something starting with __ and the normal name is an alias. */
22567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22568 choke me
22569 #else
22570 char (*f) () = $ac_func;
22571 #endif
22572 #ifdef __cplusplus
22574 #endif
22577 main ()
22579 return f != $ac_func;
22581 return 0;
22583 _ACEOF
22584 rm -f conftest.$ac_objext conftest$ac_exeext
22585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22586 (eval $ac_link) 2>conftest.er1
22587 ac_status=$?
22588 grep -v '^ *+' conftest.er1 >conftest.err
22589 rm -f conftest.er1
22590 cat conftest.err >&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } &&
22593 { ac_try='test -z "$ac_c_werror_flag"
22594 || test ! -s conftest.err'
22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; } &&
22600 { ac_try='test -s conftest$ac_exeext'
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; }; then
22606 eval "$as_ac_var=yes"
22607 else
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22611 eval "$as_ac_var=no"
22613 rm -f conftest.err conftest.$ac_objext \
22614 conftest$ac_exeext conftest.$ac_ext
22616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22618 if test `eval echo '${'$as_ac_var'}'` = yes; then
22619 cat >>confdefs.h <<_ACEOF
22620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22621 _ACEOF
22622 break
22624 done
22628 for ac_func in memcpy bcopy
22630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22631 echo "$as_me:$LINENO: checking for $ac_func" >&5
22632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22633 if eval "test \"\${$as_ac_var+set}\" = set"; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22644 #define $ac_func innocuous_$ac_func
22646 /* System header to define __stub macros and hopefully few prototypes,
22647 which can conflict with char $ac_func (); below.
22648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22649 <limits.h> exists even on freestanding compilers. */
22651 #ifdef __STDC__
22652 # include <limits.h>
22653 #else
22654 # include <assert.h>
22655 #endif
22657 #undef $ac_func
22659 /* Override any gcc2 internal prototype to avoid an error. */
22660 #ifdef __cplusplus
22661 extern "C"
22663 #endif
22664 /* We use char because int might match the return type of a gcc2
22665 builtin and then its argument prototype would still apply. */
22666 char $ac_func ();
22667 /* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22671 choke me
22672 #else
22673 char (*f) () = $ac_func;
22674 #endif
22675 #ifdef __cplusplus
22677 #endif
22680 main ()
22682 return f != $ac_func;
22684 return 0;
22686 _ACEOF
22687 rm -f conftest.$ac_objext conftest$ac_exeext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689 (eval $ac_link) 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } &&
22696 { ac_try='test -z "$ac_c_werror_flag"
22697 || test ! -s conftest.err'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; } &&
22703 { ac_try='test -s conftest$ac_exeext'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22706 ac_status=$?
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; }; then
22709 eval "$as_ac_var=yes"
22710 else
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 eval "$as_ac_var=no"
22716 rm -f conftest.err conftest.$ac_objext \
22717 conftest$ac_exeext conftest.$ac_ext
22719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22721 if test `eval echo '${'$as_ac_var'}'` = yes; then
22722 cat >>confdefs.h <<_ACEOF
22723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22724 _ACEOF
22725 break
22727 done
22731 for ac_func in memmove strcmp
22733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22734 echo "$as_me:$LINENO: checking for $ac_func" >&5
22735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22736 if eval "test \"\${$as_ac_var+set}\" = set"; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22747 #define $ac_func innocuous_$ac_func
22749 /* System header to define __stub macros and hopefully few prototypes,
22750 which can conflict with char $ac_func (); below.
22751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22752 <limits.h> exists even on freestanding compilers. */
22754 #ifdef __STDC__
22755 # include <limits.h>
22756 #else
22757 # include <assert.h>
22758 #endif
22760 #undef $ac_func
22762 /* Override any gcc2 internal prototype to avoid an error. */
22763 #ifdef __cplusplus
22764 extern "C"
22766 #endif
22767 /* We use char because int might match the return type of a gcc2
22768 builtin and then its argument prototype would still apply. */
22769 char $ac_func ();
22770 /* The GNU C library defines this for functions which it implements
22771 to always fail with ENOSYS. Some functions are actually named
22772 something starting with __ and the normal name is an alias. */
22773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22774 choke me
22775 #else
22776 char (*f) () = $ac_func;
22777 #endif
22778 #ifdef __cplusplus
22780 #endif
22783 main ()
22785 return f != $ac_func;
22787 return 0;
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792 (eval $ac_link) 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
22799 { ac_try='test -z "$ac_c_werror_flag"
22800 || test ! -s conftest.err'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } &&
22806 { ac_try='test -s conftest$ac_exeext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 eval "$as_ac_var=yes"
22813 else
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 eval "$as_ac_var=no"
22819 rm -f conftest.err conftest.$ac_objext \
22820 conftest$ac_exeext conftest.$ac_ext
22822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22824 if test `eval echo '${'$as_ac_var'}'` = yes; then
22825 cat >>confdefs.h <<_ACEOF
22826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22827 _ACEOF
22830 done
22835 for ac_func in closedir opendir readdir
22837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22838 echo "$as_me:$LINENO: checking for $ac_func" >&5
22839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22840 if eval "test \"\${$as_ac_var+set}\" = set"; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22851 #define $ac_func innocuous_$ac_func
22853 /* System header to define __stub macros and hopefully few prototypes,
22854 which can conflict with char $ac_func (); below.
22855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22856 <limits.h> exists even on freestanding compilers. */
22858 #ifdef __STDC__
22859 # include <limits.h>
22860 #else
22861 # include <assert.h>
22862 #endif
22864 #undef $ac_func
22866 /* Override any gcc2 internal prototype to avoid an error. */
22867 #ifdef __cplusplus
22868 extern "C"
22870 #endif
22871 /* We use char because int might match the return type of a gcc2
22872 builtin and then its argument prototype would still apply. */
22873 char $ac_func ();
22874 /* The GNU C library defines this for functions which it implements
22875 to always fail with ENOSYS. Some functions are actually named
22876 something starting with __ and the normal name is an alias. */
22877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22878 choke me
22879 #else
22880 char (*f) () = $ac_func;
22881 #endif
22882 #ifdef __cplusplus
22884 #endif
22887 main ()
22889 return f != $ac_func;
22891 return 0;
22893 _ACEOF
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22896 (eval $ac_link) 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } &&
22903 { ac_try='test -z "$ac_c_werror_flag"
22904 || test ! -s conftest.err'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; } &&
22910 { ac_try='test -s conftest$ac_exeext'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 eval "$as_ac_var=yes"
22917 else
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 eval "$as_ac_var=no"
22923 rm -f conftest.err conftest.$ac_objext \
22924 conftest$ac_exeext conftest.$ac_ext
22926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22928 if test `eval echo '${'$as_ac_var'}'` = yes; then
22929 cat >>confdefs.h <<_ACEOF
22930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22931 _ACEOF
22934 done
22939 ## -------- ##
22940 ## Outputs. ##
22941 ## -------- ##
22942 ac_config_files="$ac_config_files Makefile"
22944 cat >confcache <<\_ACEOF
22945 # This file is a shell script that caches the results of configure
22946 # tests run on this system so they can be shared between configure
22947 # scripts and configure runs, see configure's option --config-cache.
22948 # It is not useful on other systems. If it contains results you don't
22949 # want to keep, you may remove or edit it.
22951 # config.status only pays attention to the cache file if you give it
22952 # the --recheck option to rerun configure.
22954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22956 # following values.
22958 _ACEOF
22960 # The following way of writing the cache mishandles newlines in values,
22961 # but we know of no workaround that is simple, portable, and efficient.
22962 # So, don't put newlines in cache variables' values.
22963 # Ultrix sh set writes to stderr and can't be redirected directly,
22964 # and sets the high bit in the cache file unless we assign to the vars.
22966 (set) 2>&1 |
22967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22968 *ac_space=\ *)
22969 # `set' does not quote correctly, so add quotes (double-quote
22970 # substitution turns \\\\ into \\, and sed turns \\ into \).
22971 sed -n \
22972 "s/'/'\\\\''/g;
22973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22976 # `set' quotes correctly as required by POSIX, so do not add quotes.
22977 sed -n \
22978 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22980 esac;
22982 sed '
22983 t clear
22984 : clear
22985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22986 t end
22987 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22988 : end' >>confcache
22989 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22990 if test -w $cache_file; then
22991 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22992 cat confcache >$cache_file
22993 else
22994 echo "not updating unwritable cache $cache_file"
22997 rm -f confcache
22999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23000 # Let make expand exec_prefix.
23001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23003 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23004 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23005 # trailing colons and then remove the whole line if VPATH becomes empty
23006 # (actually we leave an empty line to preserve line numbers).
23007 if test "x$srcdir" = x.; then
23008 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23009 s/:*\$(srcdir):*/:/;
23010 s/:*\${srcdir}:*/:/;
23011 s/:*@srcdir@:*/:/;
23012 s/^\([^=]*=[ ]*\):*/\1/;
23013 s/:*$//;
23014 s/^[^=]*=[ ]*$//;
23018 DEFS=-DHAVE_CONFIG_H
23020 ac_libobjs=
23021 ac_ltlibobjs=
23022 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23023 # 1. Remove the extension, and $U if already installed.
23024 ac_i=`echo "$ac_i" |
23025 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23026 # 2. Add them.
23027 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23028 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23029 done
23030 LIBOBJS=$ac_libobjs
23032 LTLIBOBJS=$ac_ltlibobjs
23035 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23036 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23037 Usually this means the macro was only invoked conditionally." >&5
23038 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23039 Usually this means the macro was only invoked conditionally." >&2;}
23040 { (exit 1); exit 1; }; }
23042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23043 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23044 Usually this means the macro was only invoked conditionally." >&5
23045 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23046 Usually this means the macro was only invoked conditionally." >&2;}
23047 { (exit 1); exit 1; }; }
23049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23050 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23051 Usually this means the macro was only invoked conditionally." >&5
23052 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23053 Usually this means the macro was only invoked conditionally." >&2;}
23054 { (exit 1); exit 1; }; }
23056 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23057 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23058 Usually this means the macro was only invoked conditionally." >&5
23059 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23060 Usually this means the macro was only invoked conditionally." >&2;}
23061 { (exit 1); exit 1; }; }
23063 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
23064 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
23065 Usually this means the macro was only invoked conditionally." >&5
23066 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
23067 Usually this means the macro was only invoked conditionally." >&2;}
23068 { (exit 1); exit 1; }; }
23070 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
23071 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23072 Usually this means the macro was only invoked conditionally." >&5
23073 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
23074 Usually this means the macro was only invoked conditionally." >&2;}
23075 { (exit 1); exit 1; }; }
23078 : ${CONFIG_STATUS=./config.status}
23079 ac_clean_files_save=$ac_clean_files
23080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23083 cat >$CONFIG_STATUS <<_ACEOF
23084 #! $SHELL
23085 # Generated by $as_me.
23086 # Run this file to recreate the current configuration.
23087 # Compiler output produced by configure, useful for debugging
23088 # configure, is in config.log if it exists.
23090 debug=false
23091 ac_cs_recheck=false
23092 ac_cs_silent=false
23093 SHELL=\${CONFIG_SHELL-$SHELL}
23094 _ACEOF
23096 cat >>$CONFIG_STATUS <<\_ACEOF
23097 ## --------------------- ##
23098 ## M4sh Initialization. ##
23099 ## --------------------- ##
23101 # Be Bourne compatible
23102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23103 emulate sh
23104 NULLCMD=:
23105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23106 # is contrary to our usage. Disable this feature.
23107 alias -g '${1+"$@"}'='"$@"'
23108 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23109 set -o posix
23111 DUALCASE=1; export DUALCASE # for MKS sh
23113 # Support unset when possible.
23114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23115 as_unset=unset
23116 else
23117 as_unset=false
23121 # Work around bugs in pre-3.0 UWIN ksh.
23122 $as_unset ENV MAIL MAILPATH
23123 PS1='$ '
23124 PS2='> '
23125 PS4='+ '
23127 # NLS nuisances.
23128 for as_var in \
23129 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23130 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23131 LC_TELEPHONE LC_TIME
23133 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23134 eval $as_var=C; export $as_var
23135 else
23136 $as_unset $as_var
23138 done
23140 # Required to use basename.
23141 if expr a : '\(a\)' >/dev/null 2>&1; then
23142 as_expr=expr
23143 else
23144 as_expr=false
23147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23148 as_basename=basename
23149 else
23150 as_basename=false
23154 # Name of the executable.
23155 as_me=`$as_basename "$0" ||
23156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23157 X"$0" : 'X\(//\)$' \| \
23158 X"$0" : 'X\(/\)$' \| \
23159 . : '\(.\)' 2>/dev/null ||
23160 echo X/"$0" |
23161 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23162 /^X\/\(\/\/\)$/{ s//\1/; q; }
23163 /^X\/\(\/\).*/{ s//\1/; q; }
23164 s/.*/./; q'`
23167 # PATH needs CR, and LINENO needs CR and PATH.
23168 # Avoid depending upon Character Ranges.
23169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23172 as_cr_digits='0123456789'
23173 as_cr_alnum=$as_cr_Letters$as_cr_digits
23175 # The user is always right.
23176 if test "${PATH_SEPARATOR+set}" != set; then
23177 echo "#! /bin/sh" >conf$$.sh
23178 echo "exit 0" >>conf$$.sh
23179 chmod +x conf$$.sh
23180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23181 PATH_SEPARATOR=';'
23182 else
23183 PATH_SEPARATOR=:
23185 rm -f conf$$.sh
23189 as_lineno_1=$LINENO
23190 as_lineno_2=$LINENO
23191 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23192 test "x$as_lineno_1" != "x$as_lineno_2" &&
23193 test "x$as_lineno_3" = "x$as_lineno_2" || {
23194 # Find who we are. Look in the path if we contain no path at all
23195 # relative or not.
23196 case $0 in
23197 *[\\/]* ) as_myself=$0 ;;
23198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23199 for as_dir in $PATH
23201 IFS=$as_save_IFS
23202 test -z "$as_dir" && as_dir=.
23203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23204 done
23207 esac
23208 # We did not find ourselves, most probably we were run as `sh COMMAND'
23209 # in which case we are not to be found in the path.
23210 if test "x$as_myself" = x; then
23211 as_myself=$0
23213 if test ! -f "$as_myself"; then
23214 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23216 { (exit 1); exit 1; }; }
23218 case $CONFIG_SHELL in
23220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23223 IFS=$as_save_IFS
23224 test -z "$as_dir" && as_dir=.
23225 for as_base in sh bash ksh sh5; do
23226 case $as_dir in
23228 if ("$as_dir/$as_base" -c '
23229 as_lineno_1=$LINENO
23230 as_lineno_2=$LINENO
23231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23232 test "x$as_lineno_1" != "x$as_lineno_2" &&
23233 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23234 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23235 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23236 CONFIG_SHELL=$as_dir/$as_base
23237 export CONFIG_SHELL
23238 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23239 fi;;
23240 esac
23241 done
23242 done
23244 esac
23246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23247 # uniformly replaced by the line number. The first 'sed' inserts a
23248 # line-number line before each line; the second 'sed' does the real
23249 # work. The second script uses 'N' to pair each line-number line
23250 # with the numbered line, and appends trailing '-' during
23251 # substitution so that $LINENO is not a special case at line end.
23252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23253 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23254 sed '=' <$as_myself |
23255 sed '
23257 s,$,-,
23258 : loop
23259 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23260 t loop
23261 s,-$,,
23262 s,^['$as_cr_digits']*\n,,
23263 ' >$as_me.lineno &&
23264 chmod +x $as_me.lineno ||
23265 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23267 { (exit 1); exit 1; }; }
23269 # Don't try to exec as it changes $[0], causing all sort of problems
23270 # (the dirname of $[0] is not the place where we might find the
23271 # original and so on. Autoconf is especially sensible to this).
23272 . ./$as_me.lineno
23273 # Exit status is that of the last command.
23274 exit
23278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23279 *c*,-n*) ECHO_N= ECHO_C='
23280 ' ECHO_T=' ' ;;
23281 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23282 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23283 esac
23285 if expr a : '\(a\)' >/dev/null 2>&1; then
23286 as_expr=expr
23287 else
23288 as_expr=false
23291 rm -f conf$$ conf$$.exe conf$$.file
23292 echo >conf$$.file
23293 if ln -s conf$$.file conf$$ 2>/dev/null; then
23294 # We could just check for DJGPP; but this test a) works b) is more generic
23295 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23296 if test -f conf$$.exe; then
23297 # Don't use ln at all; we don't have any links
23298 as_ln_s='cp -p'
23299 else
23300 as_ln_s='ln -s'
23302 elif ln conf$$.file conf$$ 2>/dev/null; then
23303 as_ln_s=ln
23304 else
23305 as_ln_s='cp -p'
23307 rm -f conf$$ conf$$.exe conf$$.file
23309 if mkdir -p . 2>/dev/null; then
23310 as_mkdir_p=:
23311 else
23312 test -d ./-p && rmdir ./-p
23313 as_mkdir_p=false
23316 as_executable_p="test -f"
23318 # Sed expression to map a string onto a valid CPP name.
23319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23321 # Sed expression to map a string onto a valid variable name.
23322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23325 # IFS
23326 # We need space, tab and new line, in precisely that order.
23327 as_nl='
23329 IFS=" $as_nl"
23331 # CDPATH.
23332 $as_unset CDPATH
23334 exec 6>&1
23336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23337 # report actual input values of CONFIG_FILES etc. instead of their
23338 # values after options handling. Logging --version etc. is OK.
23339 exec 5>>config.log
23341 echo
23342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23343 ## Running $as_me. ##
23344 _ASBOX
23345 } >&5
23346 cat >&5 <<_CSEOF
23348 This file was extended by libltdl $as_me 1.2, which was
23349 generated by GNU Autoconf 2.59. Invocation command line was
23351 CONFIG_FILES = $CONFIG_FILES
23352 CONFIG_HEADERS = $CONFIG_HEADERS
23353 CONFIG_LINKS = $CONFIG_LINKS
23354 CONFIG_COMMANDS = $CONFIG_COMMANDS
23355 $ $0 $@
23357 _CSEOF
23358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23359 echo >&5
23360 _ACEOF
23362 # Files that config.status was made for.
23363 if test -n "$ac_config_files"; then
23364 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23367 if test -n "$ac_config_headers"; then
23368 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23371 if test -n "$ac_config_links"; then
23372 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23375 if test -n "$ac_config_commands"; then
23376 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23379 cat >>$CONFIG_STATUS <<\_ACEOF
23381 ac_cs_usage="\
23382 \`$as_me' instantiates files from templates according to the
23383 current configuration.
23385 Usage: $0 [OPTIONS] [FILE]...
23387 -h, --help print this help, then exit
23388 -V, --version print version number, then exit
23389 -q, --quiet do not print progress messages
23390 -d, --debug don't remove temporary files
23391 --recheck update $as_me by reconfiguring in the same conditions
23392 --file=FILE[:TEMPLATE]
23393 instantiate the configuration file FILE
23394 --header=FILE[:TEMPLATE]
23395 instantiate the configuration header FILE
23397 Configuration files:
23398 $config_files
23400 Configuration headers:
23401 $config_headers
23403 Configuration commands:
23404 $config_commands
23406 Report bugs to <bug-autoconf@gnu.org>."
23407 _ACEOF
23409 cat >>$CONFIG_STATUS <<_ACEOF
23410 ac_cs_version="\\
23411 libltdl config.status 1.2
23412 configured by $0, generated by GNU Autoconf 2.59,
23413 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23415 Copyright (C) 2003 Free Software Foundation, Inc.
23416 This config.status script is free software; the Free Software Foundation
23417 gives unlimited permission to copy, distribute and modify it."
23418 srcdir=$srcdir
23419 INSTALL="$INSTALL"
23420 _ACEOF
23422 cat >>$CONFIG_STATUS <<\_ACEOF
23423 # If no file are specified by the user, then we need to provide default
23424 # value. By we need to know if files were specified by the user.
23425 ac_need_defaults=:
23426 while test $# != 0
23428 case $1 in
23429 --*=*)
23430 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23431 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23432 ac_shift=:
23435 ac_option=$1
23436 ac_optarg=$2
23437 ac_shift=shift
23439 *) # This is not an option, so the user has probably given explicit
23440 # arguments.
23441 ac_option=$1
23442 ac_need_defaults=false;;
23443 esac
23445 case $ac_option in
23446 # Handling of the options.
23447 _ACEOF
23448 cat >>$CONFIG_STATUS <<\_ACEOF
23449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23450 ac_cs_recheck=: ;;
23451 --version | --vers* | -V )
23452 echo "$ac_cs_version"; exit 0 ;;
23453 --he | --h)
23454 # Conflict between --help and --header
23455 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23456 Try \`$0 --help' for more information." >&5
23457 echo "$as_me: error: ambiguous option: $1
23458 Try \`$0 --help' for more information." >&2;}
23459 { (exit 1); exit 1; }; };;
23460 --help | --hel | -h )
23461 echo "$ac_cs_usage"; exit 0 ;;
23462 --debug | --d* | -d )
23463 debug=: ;;
23464 --file | --fil | --fi | --f )
23465 $ac_shift
23466 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23467 ac_need_defaults=false;;
23468 --header | --heade | --head | --hea )
23469 $ac_shift
23470 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23471 ac_need_defaults=false;;
23472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23474 ac_cs_silent=: ;;
23476 # This is an error.
23477 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23478 Try \`$0 --help' for more information." >&5
23479 echo "$as_me: error: unrecognized option: $1
23480 Try \`$0 --help' for more information." >&2;}
23481 { (exit 1); exit 1; }; } ;;
23483 *) ac_config_targets="$ac_config_targets $1" ;;
23485 esac
23486 shift
23487 done
23489 ac_configure_extra_args=
23491 if $ac_cs_silent; then
23492 exec 6>/dev/null
23493 ac_configure_extra_args="$ac_configure_extra_args --silent"
23496 _ACEOF
23497 cat >>$CONFIG_STATUS <<_ACEOF
23498 if \$ac_cs_recheck; then
23499 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23500 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23503 _ACEOF
23505 cat >>$CONFIG_STATUS <<_ACEOF
23507 # INIT-COMMANDS section.
23511 srcdir="$srcdir"
23512 host="$host"
23513 target="$target"
23514 with_multisubdir="$with_multisubdir"
23515 with_multisrctop="$with_multisrctop"
23516 with_target_subdir="$with_target_subdir"
23517 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23518 multi_basedir="$multi_basedir"
23519 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23520 CC="$CC"
23521 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23523 _ACEOF
23527 cat >>$CONFIG_STATUS <<\_ACEOF
23528 for ac_config_target in $ac_config_targets
23530 case "$ac_config_target" in
23531 # Handling of arguments.
23532 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23533 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23534 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23535 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23536 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23537 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23538 { (exit 1); exit 1; }; };;
23539 esac
23540 done
23542 # If the user did not use the arguments to specify the items to instantiate,
23543 # then the envvar interface is used. Set only those that are not.
23544 # We use the long form for the default assignment because of an extremely
23545 # bizarre bug on SunOS 4.1.3.
23546 if $ac_need_defaults; then
23547 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23548 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23552 # Have a temporary directory for convenience. Make it in the build tree
23553 # simply because there is no reason to put it here, and in addition,
23554 # creating and moving files from /tmp can sometimes cause problems.
23555 # Create a temporary directory, and hook for its removal unless debugging.
23556 $debug ||
23558 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23559 trap '{ (exit 1); exit 1; }' 1 2 13 15
23562 # Create a (secure) tmp directory for tmp files.
23565 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23566 test -n "$tmp" && test -d "$tmp"
23567 } ||
23569 tmp=./confstat$$-$RANDOM
23570 (umask 077 && mkdir $tmp)
23571 } ||
23573 echo "$me: cannot create a temporary directory in ." >&2
23574 { (exit 1); exit 1; }
23577 _ACEOF
23579 cat >>$CONFIG_STATUS <<_ACEOF
23582 # CONFIG_FILES section.
23585 # No need to generate the scripts if there are no CONFIG_FILES.
23586 # This happens for instance when ./config.status config.h
23587 if test -n "\$CONFIG_FILES"; then
23588 # Protect against being on the right side of a sed subst in config.status.
23589 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23590 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23591 s,@SHELL@,$SHELL,;t t
23592 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23593 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23594 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23595 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23596 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23597 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23598 s,@exec_prefix@,$exec_prefix,;t t
23599 s,@prefix@,$prefix,;t t
23600 s,@program_transform_name@,$program_transform_name,;t t
23601 s,@bindir@,$bindir,;t t
23602 s,@sbindir@,$sbindir,;t t
23603 s,@libexecdir@,$libexecdir,;t t
23604 s,@datadir@,$datadir,;t t
23605 s,@sysconfdir@,$sysconfdir,;t t
23606 s,@sharedstatedir@,$sharedstatedir,;t t
23607 s,@localstatedir@,$localstatedir,;t t
23608 s,@libdir@,$libdir,;t t
23609 s,@includedir@,$includedir,;t t
23610 s,@oldincludedir@,$oldincludedir,;t t
23611 s,@infodir@,$infodir,;t t
23612 s,@mandir@,$mandir,;t t
23613 s,@build_alias@,$build_alias,;t t
23614 s,@host_alias@,$host_alias,;t t
23615 s,@target_alias@,$target_alias,;t t
23616 s,@DEFS@,$DEFS,;t t
23617 s,@ECHO_C@,$ECHO_C,;t t
23618 s,@ECHO_N@,$ECHO_N,;t t
23619 s,@ECHO_T@,$ECHO_T,;t t
23620 s,@LIBS@,$LIBS,;t t
23621 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23622 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23623 s,@MAINT@,$MAINT,;t t
23624 s,@multi_basedir@,$multi_basedir,;t t
23625 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23626 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23627 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23628 s,@CYGPATH_W@,$CYGPATH_W,;t t
23629 s,@PACKAGE@,$PACKAGE,;t t
23630 s,@VERSION@,$VERSION,;t t
23631 s,@ACLOCAL@,$ACLOCAL,;t t
23632 s,@AUTOCONF@,$AUTOCONF,;t t
23633 s,@AUTOMAKE@,$AUTOMAKE,;t t
23634 s,@AUTOHEADER@,$AUTOHEADER,;t t
23635 s,@MAKEINFO@,$MAKEINFO,;t t
23636 s,@install_sh@,$install_sh,;t t
23637 s,@STRIP@,$STRIP,;t t
23638 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23639 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23640 s,@mkdir_p@,$mkdir_p,;t t
23641 s,@AWK@,$AWK,;t t
23642 s,@SET_MAKE@,$SET_MAKE,;t t
23643 s,@am__leading_dot@,$am__leading_dot,;t t
23644 s,@AMTAR@,$AMTAR,;t t
23645 s,@am__tar@,$am__tar,;t t
23646 s,@am__untar@,$am__untar,;t t
23647 s,@CC@,$CC,;t t
23648 s,@CFLAGS@,$CFLAGS,;t t
23649 s,@LDFLAGS@,$LDFLAGS,;t t
23650 s,@CPPFLAGS@,$CPPFLAGS,;t t
23651 s,@ac_ct_CC@,$ac_ct_CC,;t t
23652 s,@EXEEXT@,$EXEEXT,;t t
23653 s,@OBJEXT@,$OBJEXT,;t t
23654 s,@DEPDIR@,$DEPDIR,;t t
23655 s,@am__include@,$am__include,;t t
23656 s,@am__quote@,$am__quote,;t t
23657 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23658 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23659 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23660 s,@CCDEPMODE@,$CCDEPMODE,;t t
23661 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23662 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23663 s,@build@,$build,;t t
23664 s,@build_cpu@,$build_cpu,;t t
23665 s,@build_vendor@,$build_vendor,;t t
23666 s,@build_os@,$build_os,;t t
23667 s,@host@,$host,;t t
23668 s,@host_cpu@,$host_cpu,;t t
23669 s,@host_vendor@,$host_vendor,;t t
23670 s,@host_os@,$host_os,;t t
23671 s,@EGREP@,$EGREP,;t t
23672 s,@LN_S@,$LN_S,;t t
23673 s,@ECHO@,$ECHO,;t t
23674 s,@AR@,$AR,;t t
23675 s,@ac_ct_AR@,$ac_ct_AR,;t t
23676 s,@RANLIB@,$RANLIB,;t t
23677 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23678 s,@DLLTOOL@,$DLLTOOL,;t t
23679 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23680 s,@AS@,$AS,;t t
23681 s,@ac_ct_AS@,$ac_ct_AS,;t t
23682 s,@OBJDUMP@,$OBJDUMP,;t t
23683 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23684 s,@CPP@,$CPP,;t t
23685 s,@CXX@,$CXX,;t t
23686 s,@CXXFLAGS@,$CXXFLAGS,;t t
23687 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23688 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23689 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23690 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23691 s,@CXXCPP@,$CXXCPP,;t t
23692 s,@F77@,$F77,;t t
23693 s,@FFLAGS@,$FFLAGS,;t t
23694 s,@ac_ct_F77@,$ac_ct_F77,;t t
23695 s,@LIBTOOL@,$LIBTOOL,;t t
23696 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23697 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23698 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23699 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23700 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23701 s,@LIBADD_DL@,$LIBADD_DL,;t t
23702 s,@LIBOBJS@,$LIBOBJS,;t t
23703 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23704 CEOF
23706 _ACEOF
23708 cat >>$CONFIG_STATUS <<\_ACEOF
23709 # Split the substitutions into bite-sized pieces for seds with
23710 # small command number limits, like on Digital OSF/1 and HP-UX.
23711 ac_max_sed_lines=48
23712 ac_sed_frag=1 # Number of current file.
23713 ac_beg=1 # First line for current file.
23714 ac_end=$ac_max_sed_lines # Line after last line for current file.
23715 ac_more_lines=:
23716 ac_sed_cmds=
23717 while $ac_more_lines; do
23718 if test $ac_beg -gt 1; then
23719 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23720 else
23721 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23723 if test ! -s $tmp/subs.frag; then
23724 ac_more_lines=false
23725 else
23726 # The purpose of the label and of the branching condition is to
23727 # speed up the sed processing (if there are no `@' at all, there
23728 # is no need to browse any of the substitutions).
23729 # These are the two extra sed commands mentioned above.
23730 (echo ':t
23731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23732 if test -z "$ac_sed_cmds"; then
23733 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23734 else
23735 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23737 ac_sed_frag=`expr $ac_sed_frag + 1`
23738 ac_beg=$ac_end
23739 ac_end=`expr $ac_end + $ac_max_sed_lines`
23741 done
23742 if test -z "$ac_sed_cmds"; then
23743 ac_sed_cmds=cat
23745 fi # test -n "$CONFIG_FILES"
23747 _ACEOF
23748 cat >>$CONFIG_STATUS <<\_ACEOF
23749 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23750 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23751 case $ac_file in
23752 - | *:- | *:-:* ) # input from stdin
23753 cat >$tmp/stdin
23754 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23756 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23758 * ) ac_file_in=$ac_file.in ;;
23759 esac
23761 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23762 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$ac_file" : 'X\(//\)[^/]' \| \
23765 X"$ac_file" : 'X\(//\)$' \| \
23766 X"$ac_file" : 'X\(/\)' \| \
23767 . : '\(.\)' 2>/dev/null ||
23768 echo X"$ac_file" |
23769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23771 /^X\(\/\/\)$/{ s//\1/; q; }
23772 /^X\(\/\).*/{ s//\1/; q; }
23773 s/.*/./; q'`
23774 { if $as_mkdir_p; then
23775 mkdir -p "$ac_dir"
23776 else
23777 as_dir="$ac_dir"
23778 as_dirs=
23779 while test ! -d "$as_dir"; do
23780 as_dirs="$as_dir $as_dirs"
23781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23783 X"$as_dir" : 'X\(//\)[^/]' \| \
23784 X"$as_dir" : 'X\(//\)$' \| \
23785 X"$as_dir" : 'X\(/\)' \| \
23786 . : '\(.\)' 2>/dev/null ||
23787 echo X"$as_dir" |
23788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23790 /^X\(\/\/\)$/{ s//\1/; q; }
23791 /^X\(\/\).*/{ s//\1/; q; }
23792 s/.*/./; q'`
23793 done
23794 test ! -n "$as_dirs" || mkdir $as_dirs
23795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23797 { (exit 1); exit 1; }; }; }
23799 ac_builddir=.
23801 if test "$ac_dir" != .; then
23802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23803 # A "../" for each directory in $ac_dir_suffix.
23804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23805 else
23806 ac_dir_suffix= ac_top_builddir=
23809 case $srcdir in
23810 .) # No --srcdir option. We are building in place.
23811 ac_srcdir=.
23812 if test -z "$ac_top_builddir"; then
23813 ac_top_srcdir=.
23814 else
23815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23816 fi ;;
23817 [\\/]* | ?:[\\/]* ) # Absolute path.
23818 ac_srcdir=$srcdir$ac_dir_suffix;
23819 ac_top_srcdir=$srcdir ;;
23820 *) # Relative path.
23821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23823 esac
23825 # Do not use `cd foo && pwd` to compute absolute paths, because
23826 # the directories may not exist.
23827 case `pwd` in
23828 .) ac_abs_builddir="$ac_dir";;
23830 case "$ac_dir" in
23831 .) ac_abs_builddir=`pwd`;;
23832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23834 esac;;
23835 esac
23836 case $ac_abs_builddir in
23837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23839 case ${ac_top_builddir}. in
23840 .) ac_abs_top_builddir=$ac_abs_builddir;;
23841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23843 esac;;
23844 esac
23845 case $ac_abs_builddir in
23846 .) ac_abs_srcdir=$ac_srcdir;;
23848 case $ac_srcdir in
23849 .) ac_abs_srcdir=$ac_abs_builddir;;
23850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23852 esac;;
23853 esac
23854 case $ac_abs_builddir in
23855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23857 case $ac_top_srcdir in
23858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23861 esac;;
23862 esac
23865 case $INSTALL in
23866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23867 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23868 esac
23870 if test x"$ac_file" != x-; then
23871 { echo "$as_me:$LINENO: creating $ac_file" >&5
23872 echo "$as_me: creating $ac_file" >&6;}
23873 rm -f "$ac_file"
23875 # Let's still pretend it is `configure' which instantiates (i.e., don't
23876 # use $as_me), people would be surprised to read:
23877 # /* config.h. Generated by config.status. */
23878 if test x"$ac_file" = x-; then
23879 configure_input=
23880 else
23881 configure_input="$ac_file. "
23883 configure_input=$configure_input"Generated from `echo $ac_file_in |
23884 sed 's,.*/,,'` by configure."
23886 # First look for the input files in the build tree, otherwise in the
23887 # src tree.
23888 ac_file_inputs=`IFS=:
23889 for f in $ac_file_in; do
23890 case $f in
23891 -) echo $tmp/stdin ;;
23892 [\\/$]*)
23893 # Absolute (can't be DOS-style, as IFS=:)
23894 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23895 echo "$as_me: error: cannot find input file: $f" >&2;}
23896 { (exit 1); exit 1; }; }
23897 echo "$f";;
23898 *) # Relative
23899 if test -f "$f"; then
23900 # Build tree
23901 echo "$f"
23902 elif test -f "$srcdir/$f"; then
23903 # Source tree
23904 echo "$srcdir/$f"
23905 else
23906 # /dev/null tree
23907 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23908 echo "$as_me: error: cannot find input file: $f" >&2;}
23909 { (exit 1); exit 1; }; }
23910 fi;;
23911 esac
23912 done` || { (exit 1); exit 1; }
23913 _ACEOF
23914 cat >>$CONFIG_STATUS <<_ACEOF
23915 sed "$ac_vpsub
23916 $extrasub
23917 _ACEOF
23918 cat >>$CONFIG_STATUS <<\_ACEOF
23920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23921 s,@configure_input@,$configure_input,;t t
23922 s,@srcdir@,$ac_srcdir,;t t
23923 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23924 s,@top_srcdir@,$ac_top_srcdir,;t t
23925 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23926 s,@builddir@,$ac_builddir,;t t
23927 s,@abs_builddir@,$ac_abs_builddir,;t t
23928 s,@top_builddir@,$ac_top_builddir,;t t
23929 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23930 s,@INSTALL@,$ac_INSTALL,;t t
23931 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23932 rm -f $tmp/stdin
23933 if test x"$ac_file" != x-; then
23934 mv $tmp/out $ac_file
23935 else
23936 cat $tmp/out
23937 rm -f $tmp/out
23940 done
23941 _ACEOF
23942 cat >>$CONFIG_STATUS <<\_ACEOF
23945 # CONFIG_HEADER section.
23948 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23949 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23951 # ac_d sets the value in "#define NAME VALUE" lines.
23952 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23953 ac_dB='[ ].*$,\1#\2'
23954 ac_dC=' '
23955 ac_dD=',;t'
23956 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23957 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23958 ac_uB='$,\1#\2define\3'
23959 ac_uC=' '
23960 ac_uD=',;t'
23962 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23963 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23964 case $ac_file in
23965 - | *:- | *:-:* ) # input from stdin
23966 cat >$tmp/stdin
23967 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23969 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23971 * ) ac_file_in=$ac_file.in ;;
23972 esac
23974 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23975 echo "$as_me: creating $ac_file" >&6;}
23977 # First look for the input files in the build tree, otherwise in the
23978 # src tree.
23979 ac_file_inputs=`IFS=:
23980 for f in $ac_file_in; do
23981 case $f in
23982 -) echo $tmp/stdin ;;
23983 [\\/$]*)
23984 # Absolute (can't be DOS-style, as IFS=:)
23985 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23986 echo "$as_me: error: cannot find input file: $f" >&2;}
23987 { (exit 1); exit 1; }; }
23988 # Do quote $f, to prevent DOS paths from being IFS'd.
23989 echo "$f";;
23990 *) # Relative
23991 if test -f "$f"; then
23992 # Build tree
23993 echo "$f"
23994 elif test -f "$srcdir/$f"; then
23995 # Source tree
23996 echo "$srcdir/$f"
23997 else
23998 # /dev/null tree
23999 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24000 echo "$as_me: error: cannot find input file: $f" >&2;}
24001 { (exit 1); exit 1; }; }
24002 fi;;
24003 esac
24004 done` || { (exit 1); exit 1; }
24005 # Remove the trailing spaces.
24006 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24008 _ACEOF
24010 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24011 # `conftest.undefs', that substitutes the proper values into
24012 # config.h.in to produce config.h. The first handles `#define'
24013 # templates, and the second `#undef' templates.
24014 # And first: Protect against being on the right side of a sed subst in
24015 # config.status. Protect against being in an unquoted here document
24016 # in config.status.
24017 rm -f conftest.defines conftest.undefs
24018 # Using a here document instead of a string reduces the quoting nightmare.
24019 # Putting comments in sed scripts is not portable.
24021 # `end' is used to avoid that the second main sed command (meant for
24022 # 0-ary CPP macros) applies to n-ary macro definitions.
24023 # See the Autoconf documentation for `clear'.
24024 cat >confdef2sed.sed <<\_ACEOF
24025 s/[\\&,]/\\&/g
24026 s,[\\$`],\\&,g
24027 t clear
24028 : clear
24029 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24030 t end
24031 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24032 : end
24033 _ACEOF
24034 # If some macros were called several times there might be several times
24035 # the same #defines, which is useless. Nevertheless, we may not want to
24036 # sort them, since we want the *last* AC-DEFINE to be honored.
24037 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24038 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24039 rm -f confdef2sed.sed
24041 # This sed command replaces #undef with comments. This is necessary, for
24042 # example, in the case of _POSIX_SOURCE, which is predefined and required
24043 # on some systems where configure will not decide to define it.
24044 cat >>conftest.undefs <<\_ACEOF
24045 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24046 _ACEOF
24048 # Break up conftest.defines because some shells have a limit on the size
24049 # of here documents, and old seds have small limits too (100 cmds).
24050 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24051 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24052 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24053 echo ' :' >>$CONFIG_STATUS
24054 rm -f conftest.tail
24055 while grep . conftest.defines >/dev/null
24057 # Write a limited-size here document to $tmp/defines.sed.
24058 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24059 # Speed up: don't consider the non `#define' lines.
24060 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24061 # Work around the forget-to-reset-the-flag bug.
24062 echo 't clr' >>$CONFIG_STATUS
24063 echo ': clr' >>$CONFIG_STATUS
24064 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24065 echo 'CEOF
24066 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24067 rm -f $tmp/in
24068 mv $tmp/out $tmp/in
24069 ' >>$CONFIG_STATUS
24070 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24071 rm -f conftest.defines
24072 mv conftest.tail conftest.defines
24073 done
24074 rm -f conftest.defines
24075 echo ' fi # grep' >>$CONFIG_STATUS
24076 echo >>$CONFIG_STATUS
24078 # Break up conftest.undefs because some shells have a limit on the size
24079 # of here documents, and old seds have small limits too (100 cmds).
24080 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24081 rm -f conftest.tail
24082 while grep . conftest.undefs >/dev/null
24084 # Write a limited-size here document to $tmp/undefs.sed.
24085 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24086 # Speed up: don't consider the non `#undef'
24087 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24088 # Work around the forget-to-reset-the-flag bug.
24089 echo 't clr' >>$CONFIG_STATUS
24090 echo ': clr' >>$CONFIG_STATUS
24091 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24092 echo 'CEOF
24093 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24094 rm -f $tmp/in
24095 mv $tmp/out $tmp/in
24096 ' >>$CONFIG_STATUS
24097 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24098 rm -f conftest.undefs
24099 mv conftest.tail conftest.undefs
24100 done
24101 rm -f conftest.undefs
24103 cat >>$CONFIG_STATUS <<\_ACEOF
24104 # Let's still pretend it is `configure' which instantiates (i.e., don't
24105 # use $as_me), people would be surprised to read:
24106 # /* config.h. Generated by config.status. */
24107 if test x"$ac_file" = x-; then
24108 echo "/* Generated by configure. */" >$tmp/config.h
24109 else
24110 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24112 cat $tmp/in >>$tmp/config.h
24113 rm -f $tmp/in
24114 if test x"$ac_file" != x-; then
24115 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24116 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24117 echo "$as_me: $ac_file is unchanged" >&6;}
24118 else
24119 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24121 X"$ac_file" : 'X\(//\)[^/]' \| \
24122 X"$ac_file" : 'X\(//\)$' \| \
24123 X"$ac_file" : 'X\(/\)' \| \
24124 . : '\(.\)' 2>/dev/null ||
24125 echo X"$ac_file" |
24126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24128 /^X\(\/\/\)$/{ s//\1/; q; }
24129 /^X\(\/\).*/{ s//\1/; q; }
24130 s/.*/./; q'`
24131 { if $as_mkdir_p; then
24132 mkdir -p "$ac_dir"
24133 else
24134 as_dir="$ac_dir"
24135 as_dirs=
24136 while test ! -d "$as_dir"; do
24137 as_dirs="$as_dir $as_dirs"
24138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24140 X"$as_dir" : 'X\(//\)[^/]' \| \
24141 X"$as_dir" : 'X\(//\)$' \| \
24142 X"$as_dir" : 'X\(/\)' \| \
24143 . : '\(.\)' 2>/dev/null ||
24144 echo X"$as_dir" |
24145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24147 /^X\(\/\/\)$/{ s//\1/; q; }
24148 /^X\(\/\).*/{ s//\1/; q; }
24149 s/.*/./; q'`
24150 done
24151 test ! -n "$as_dirs" || mkdir $as_dirs
24152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24153 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24154 { (exit 1); exit 1; }; }; }
24156 rm -f $ac_file
24157 mv $tmp/config.h $ac_file
24159 else
24160 cat $tmp/config.h
24161 rm -f $tmp/config.h
24163 # Compute $ac_file's index in $config_headers.
24164 _am_stamp_count=1
24165 for _am_header in $config_headers :; do
24166 case $_am_header in
24167 $ac_file | $ac_file:* )
24168 break ;;
24170 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24171 esac
24172 done
24173 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24174 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24175 X$ac_file : 'X\(//\)[^/]' \| \
24176 X$ac_file : 'X\(//\)$' \| \
24177 X$ac_file : 'X\(/\)' \| \
24178 . : '\(.\)' 2>/dev/null ||
24179 echo X$ac_file |
24180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24182 /^X\(\/\/\)$/{ s//\1/; q; }
24183 /^X\(\/\).*/{ s//\1/; q; }
24184 s/.*/./; q'`/stamp-h$_am_stamp_count
24185 done
24186 _ACEOF
24187 cat >>$CONFIG_STATUS <<\_ACEOF
24190 # CONFIG_COMMANDS section.
24192 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24193 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24194 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24195 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24196 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197 X"$ac_dest" : 'X\(//\)[^/]' \| \
24198 X"$ac_dest" : 'X\(//\)$' \| \
24199 X"$ac_dest" : 'X\(/\)' \| \
24200 . : '\(.\)' 2>/dev/null ||
24201 echo X"$ac_dest" |
24202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24204 /^X\(\/\/\)$/{ s//\1/; q; }
24205 /^X\(\/\).*/{ s//\1/; q; }
24206 s/.*/./; q'`
24207 { if $as_mkdir_p; then
24208 mkdir -p "$ac_dir"
24209 else
24210 as_dir="$ac_dir"
24211 as_dirs=
24212 while test ! -d "$as_dir"; do
24213 as_dirs="$as_dir $as_dirs"
24214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24216 X"$as_dir" : 'X\(//\)[^/]' \| \
24217 X"$as_dir" : 'X\(//\)$' \| \
24218 X"$as_dir" : 'X\(/\)' \| \
24219 . : '\(.\)' 2>/dev/null ||
24220 echo X"$as_dir" |
24221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24223 /^X\(\/\/\)$/{ s//\1/; q; }
24224 /^X\(\/\).*/{ s//\1/; q; }
24225 s/.*/./; q'`
24226 done
24227 test ! -n "$as_dirs" || mkdir $as_dirs
24228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24230 { (exit 1); exit 1; }; }; }
24232 ac_builddir=.
24234 if test "$ac_dir" != .; then
24235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24236 # A "../" for each directory in $ac_dir_suffix.
24237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24238 else
24239 ac_dir_suffix= ac_top_builddir=
24242 case $srcdir in
24243 .) # No --srcdir option. We are building in place.
24244 ac_srcdir=.
24245 if test -z "$ac_top_builddir"; then
24246 ac_top_srcdir=.
24247 else
24248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24249 fi ;;
24250 [\\/]* | ?:[\\/]* ) # Absolute path.
24251 ac_srcdir=$srcdir$ac_dir_suffix;
24252 ac_top_srcdir=$srcdir ;;
24253 *) # Relative path.
24254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24256 esac
24258 # Do not use `cd foo && pwd` to compute absolute paths, because
24259 # the directories may not exist.
24260 case `pwd` in
24261 .) ac_abs_builddir="$ac_dir";;
24263 case "$ac_dir" in
24264 .) ac_abs_builddir=`pwd`;;
24265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24267 esac;;
24268 esac
24269 case $ac_abs_builddir in
24270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24272 case ${ac_top_builddir}. in
24273 .) ac_abs_top_builddir=$ac_abs_builddir;;
24274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24276 esac;;
24277 esac
24278 case $ac_abs_builddir in
24279 .) ac_abs_srcdir=$ac_srcdir;;
24281 case $ac_srcdir in
24282 .) ac_abs_srcdir=$ac_abs_builddir;;
24283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24285 esac;;
24286 esac
24287 case $ac_abs_builddir in
24288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24290 case $ac_top_srcdir in
24291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24294 esac;;
24295 esac
24298 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24299 echo "$as_me: executing $ac_dest commands" >&6;}
24300 case $ac_dest in
24301 default-1 )
24302 # Only add multilib support code if we just rebuilt the top-level
24303 # Makefile.
24304 case " $CONFIG_FILES " in
24305 *" Makefile "*)
24306 ac_file=Makefile . ${multi_basedir}/config-ml.in
24308 esac ;;
24309 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24310 # Strip MF so we end up with the name of the file.
24311 mf=`echo "$mf" | sed -e 's/:.*$//'`
24312 # Check whether this is an Automake generated Makefile or not.
24313 # We used to match only the files named `Makefile.in', but
24314 # some people rename them; so instead we look at the file content.
24315 # Grep'ing the first line is not enough: some people post-process
24316 # each Makefile.in and add a new line on top of each file to say so.
24317 # So let's grep whole file.
24318 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24319 dirpart=`(dirname "$mf") 2>/dev/null ||
24320 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24321 X"$mf" : 'X\(//\)[^/]' \| \
24322 X"$mf" : 'X\(//\)$' \| \
24323 X"$mf" : 'X\(/\)' \| \
24324 . : '\(.\)' 2>/dev/null ||
24325 echo X"$mf" |
24326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24328 /^X\(\/\/\)$/{ s//\1/; q; }
24329 /^X\(\/\).*/{ s//\1/; q; }
24330 s/.*/./; q'`
24331 else
24332 continue
24334 # Extract the definition of DEPDIR, am__include, and am__quote
24335 # from the Makefile without running `make'.
24336 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24337 test -z "$DEPDIR" && continue
24338 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24339 test -z "am__include" && continue
24340 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24341 # When using ansi2knr, U may be empty or an underscore; expand it
24342 U=`sed -n 's/^U = //p' < "$mf"`
24343 # Find all dependency output files, they are included files with
24344 # $(DEPDIR) in their names. We invoke sed twice because it is the
24345 # simplest approach to changing $(DEPDIR) to its actual value in the
24346 # expansion.
24347 for file in `sed -n "
24348 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24349 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24350 # Make sure the directory exists.
24351 test -f "$dirpart/$file" && continue
24352 fdir=`(dirname "$file") 2>/dev/null ||
24353 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24354 X"$file" : 'X\(//\)[^/]' \| \
24355 X"$file" : 'X\(//\)$' \| \
24356 X"$file" : 'X\(/\)' \| \
24357 . : '\(.\)' 2>/dev/null ||
24358 echo X"$file" |
24359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24361 /^X\(\/\/\)$/{ s//\1/; q; }
24362 /^X\(\/\).*/{ s//\1/; q; }
24363 s/.*/./; q'`
24364 { if $as_mkdir_p; then
24365 mkdir -p $dirpart/$fdir
24366 else
24367 as_dir=$dirpart/$fdir
24368 as_dirs=
24369 while test ! -d "$as_dir"; do
24370 as_dirs="$as_dir $as_dirs"
24371 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24373 X"$as_dir" : 'X\(//\)[^/]' \| \
24374 X"$as_dir" : 'X\(//\)$' \| \
24375 X"$as_dir" : 'X\(/\)' \| \
24376 . : '\(.\)' 2>/dev/null ||
24377 echo X"$as_dir" |
24378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24380 /^X\(\/\/\)$/{ s//\1/; q; }
24381 /^X\(\/\).*/{ s//\1/; q; }
24382 s/.*/./; q'`
24383 done
24384 test ! -n "$as_dirs" || mkdir $as_dirs
24385 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24386 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24387 { (exit 1); exit 1; }; }; }
24389 # echo "creating $dirpart/$file"
24390 echo '# dummy' > "$dirpart/$file"
24391 done
24392 done
24394 esac
24395 done
24396 _ACEOF
24398 cat >>$CONFIG_STATUS <<\_ACEOF
24400 { (exit 0); exit 0; }
24401 _ACEOF
24402 chmod +x $CONFIG_STATUS
24403 ac_clean_files=$ac_clean_files_save
24406 # configure is writing to config.log, and then calls config.status.
24407 # config.status does its own redirection, appending to config.log.
24408 # Unfortunately, on DOS this fails, as config.log is still kept open
24409 # by configure, so config.status won't be able to write to it; its
24410 # output is simply discarded. So we exec the FD to /dev/null,
24411 # effectively closing config.log, so it can be properly (re)opened and
24412 # appended to by config.status. When coming back to configure, we
24413 # need to make the FD available again.
24414 if test "$no_create" != yes; then
24415 ac_cs_success=:
24416 ac_config_status_args=
24417 test "$silent" = yes &&
24418 ac_config_status_args="$ac_config_status_args --quiet"
24419 exec 5>/dev/null
24420 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24421 exec 5>>config.log
24422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24423 # would make configure fail if this is the last instruction.
24424 $ac_cs_success || { (exit 1); exit 1; }