fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / libjava / libltdl / configure
blob5f5e9e4615a38a41de137c8dbb2ac36af9807f91
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 case X$ECHO in
250 X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 esac
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
266 else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
277 exit 0
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
295 done
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
319 done
320 IFS="$lt_save_ifs"
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
368 prev="$cmd"
369 done
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404 exec 6>&1
407 # Initializations.
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='libltdl'
424 PACKAGE_TARNAME='libltdl'
425 PACKAGE_VERSION='1.2'
426 PACKAGE_STRING='libltdl 1.2'
427 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429 ac_unique_file="ltdl.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
467 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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'
468 ac_subst_files=''
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
508 ac_prev=
509 for ac_option
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
522 case $ac_option in
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
541 --config-cache | -C)
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 esac
805 done
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
880 else
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976 _ACEOF
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1007 cat <<\_ACEOF
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of libltdl 1.2:";;
1023 esac
1024 cat <<\_ACEOF
1026 Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-maintainer-mode enable make rules and dependencies not useful
1030 (and sometimes confusing) to the casual installer
1031 --disable-dependency-tracking Speeds up one-time builds
1032 --enable-dependency-tracking Do not reject slow dependency extractors
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-libtool-lock avoid locking (might break parallel builds)
1040 --enable-ltdl-install install libltdl
1042 Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <bug-libtool@gnu.org>.
1069 _ACEOF
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084 ac_dir_suffix= ac_top_builddir=
1087 case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1103 # absolute.
1104 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1105 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1106 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1107 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 cd "$ac_popdir"
1125 done
1128 test -n "$ac_init_help" && exit 0
1129 if $ac_init_version; then
1130 cat <<\_ACEOF
1131 libltdl configure 1.2
1132 generated by GNU Autoconf 2.57
1134 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1135 Free Software Foundation, Inc.
1136 This configure script is free software; the Free Software Foundation
1137 gives unlimited permission to copy, distribute and modify it.
1138 _ACEOF
1139 exit 0
1141 exec 5>config.log
1142 cat >&5 <<_ACEOF
1143 This file contains any messages produced by compilers while
1144 running configure, to aid debugging if configure makes a mistake.
1146 It was created by libltdl $as_me 1.2, which was
1147 generated by GNU Autoconf 2.57. Invocation command line was
1149 $ $0 $@
1151 _ACEOF
1153 cat <<_ASUNAME
1154 ## --------- ##
1155 ## Platform. ##
1156 ## --------- ##
1158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175 _ASUNAME
1177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178 for as_dir in $PATH
1180 IFS=$as_save_IFS
1181 test -z "$as_dir" && as_dir=.
1182 echo "PATH: $as_dir"
1183 done
1185 } >&5
1187 cat >&5 <<_ACEOF
1190 ## ----------- ##
1191 ## Core tests. ##
1192 ## ----------- ##
1194 _ACEOF
1197 # Keep a trace of the command line.
1198 # Strip out --no-create and --no-recursion so they do not pile up.
1199 # Strip out --silent because we don't want to record it for future runs.
1200 # Also quote any args containing shell meta-characters.
1201 # Make two passes to allow for proper duplicate-argument suppression.
1202 ac_configure_args=
1203 ac_configure_args0=
1204 ac_configure_args1=
1205 ac_sep=
1206 ac_must_keep_next=false
1207 for ac_pass in 1 2
1209 for ac_arg
1211 case $ac_arg in
1212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 continue ;;
1216 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 esac
1219 case $ac_pass in
1220 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223 if test $ac_must_keep_next = true; then
1224 ac_must_keep_next=false # Got value, back to normal.
1225 else
1226 case $ac_arg in
1227 *=* | --config-cache | -C | -disable-* | --disable-* \
1228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230 | -with-* | --with-* | -without-* | --without-* | --x)
1231 case "$ac_configure_args0 " in
1232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 esac
1235 -* ) ac_must_keep_next=true ;;
1236 esac
1238 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239 # Get rid of the leading space.
1240 ac_sep=" "
1242 esac
1243 done
1244 done
1245 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248 # When interrupted or exit'd, cleanup temporary files, and complete
1249 # config.log. We remove comments because anyway the quotes in there
1250 # would cause problems or look ugly.
1251 # WARNING: Be sure not to use single quotes in there, as some shells,
1252 # such as our DU 5.0 friend, will then `close' the trap.
1253 trap 'exit_status=$?
1254 # Save into config.log some information that might help in debugging.
1256 echo
1258 cat <<\_ASBOX
1259 ## ---------------- ##
1260 ## Cache variables. ##
1261 ## ---------------- ##
1262 _ASBOX
1263 echo
1264 # The following way of writing the cache mishandles newlines in values,
1266 (set) 2>&1 |
1267 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 *ac_space=\ *)
1269 sed -n \
1270 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 sed -n \
1275 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 esac;
1279 echo
1281 cat <<\_ASBOX
1282 ## ----------------- ##
1283 ## Output variables. ##
1284 ## ----------------- ##
1285 _ASBOX
1286 echo
1287 for ac_var in $ac_subst_vars
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1291 done | sort
1292 echo
1294 if test -n "$ac_subst_files"; then
1295 cat <<\_ASBOX
1296 ## ------------- ##
1297 ## Output files. ##
1298 ## ------------- ##
1299 _ASBOX
1300 echo
1301 for ac_var in $ac_subst_files
1303 eval ac_val=$`echo $ac_var`
1304 echo "$ac_var='"'"'$ac_val'"'"'"
1305 done | sort
1306 echo
1309 if test -s confdefs.h; then
1310 cat <<\_ASBOX
1311 ## ----------- ##
1312 ## confdefs.h. ##
1313 ## ----------- ##
1314 _ASBOX
1315 echo
1316 sed "/^$/d" confdefs.h | sort
1317 echo
1319 test "$ac_signal" != 0 &&
1320 echo "$as_me: caught signal $ac_signal"
1321 echo "$as_me: exit $exit_status"
1322 } >&5
1323 rm -f core *.core &&
1324 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 exit $exit_status
1327 for ac_signal in 1 2 13 15; do
1328 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329 done
1330 ac_signal=0
1332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1333 rm -rf conftest* confdefs.h
1334 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335 echo >confdefs.h
1337 # Predefined preprocessor variables.
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_NAME "$PACKAGE_NAME"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1351 _ACEOF
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_STRING "$PACKAGE_STRING"
1356 _ACEOF
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361 _ACEOF
1364 # Let the site file select an alternate cache file if it wants to.
1365 # Prefer explicitly selected file to automatically selected ones.
1366 if test -z "$CONFIG_SITE"; then
1367 if test "x$prefix" != xNONE; then
1368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369 else
1370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 for ac_site_file in $CONFIG_SITE; do
1374 if test -r "$ac_site_file"; then
1375 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376 echo "$as_me: loading site script $ac_site_file" >&6;}
1377 sed 's/^/| /' "$ac_site_file" >&5
1378 . "$ac_site_file"
1380 done
1382 if test -r "$cache_file"; then
1383 # Some versions of bash will fail to source /dev/null (special
1384 # files actually), so we avoid doing that.
1385 if test -f "$cache_file"; then
1386 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387 echo "$as_me: loading cache $cache_file" >&6;}
1388 case $cache_file in
1389 [\\/]* | ?:[\\/]* ) . $cache_file;;
1390 *) . ./$cache_file;;
1391 esac
1393 else
1394 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395 echo "$as_me: creating cache $cache_file" >&6;}
1396 >$cache_file
1399 # Check that the precious variables saved in the cache have kept the same
1400 # value.
1401 ac_cache_corrupted=false
1402 for ac_var in `(set) 2>&1 |
1403 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405 eval ac_new_set=\$ac_env_${ac_var}_set
1406 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407 eval ac_new_val="\$ac_env_${ac_var}_value"
1408 case $ac_old_set,$ac_new_set in
1409 set,)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,set)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,);;
1419 if test "x$ac_old_val" != "x$ac_new_val"; then
1420 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1421 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1422 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1423 echo "$as_me: former value: $ac_old_val" >&2;}
1424 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1425 echo "$as_me: current value: $ac_new_val" >&2;}
1426 ac_cache_corrupted=:
1427 fi;;
1428 esac
1429 # Pass precious variables to config.status.
1430 if test "$ac_new_set" = set; then
1431 case $ac_new_val in
1432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 *) ac_arg=$ac_var=$ac_new_val ;;
1435 esac
1436 case " $ac_configure_args " in
1437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1438 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 esac
1441 done
1442 if $ac_cache_corrupted; then
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1450 ac_ext=c
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 ## ------------------------------- ##
1486 ## Libltdl specific configuration. ##
1487 ## ------------------------------- ##
1489 ac_aux_dir=
1490 for ac_dir in . $srcdir/.; do
1491 if test -f $ac_dir/install-sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 break
1495 elif test -f $ac_dir/install.sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 break
1499 elif test -f $ac_dir/shtool; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 break
1504 done
1505 if test -z "$ac_aux_dir"; then
1506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1507 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1508 { (exit 1); exit 1; }; }
1510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1516 if test -f ${srcdir}/ltmain.sh; then
1517 # if libltdl is libtoolized, it is assumed to be stand-alone and
1518 # installed unless the command line overrides it (tested above)
1519 enable_ltdl_install=yes
1520 else
1521 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1522 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1523 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1524 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1525 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1526 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1527 { (exit 1); exit 1; }; }
1532 ## ------------------------ ##
1533 ## Automake Initialisation. ##
1534 ## ------------------------ ##
1535 am__api_version="1.7"
1536 # Find a good install program. We prefer a C program (faster),
1537 # so one script is as good as another. But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1542 # AIX /bin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1549 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1550 if test -z "$INSTALL"; then
1551 if test "${ac_cv_path_install+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 # Account for people who put trailing slashes in PATH elements.
1560 case $as_dir/ in
1561 ./ | .// | /cC/* | \
1562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1563 /usr/ucb/* ) ;;
1565 # OSF1 and SCO ODT 3.0 have their own names for install.
1566 # Don't use installbsd from OSF since it installs stuff as root
1567 # by default.
1568 for ac_prog in ginstall scoinst install; do
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1571 if test $ac_prog = install &&
1572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573 # AIX install. It has an incompatible calling convention.
1575 elif test $ac_prog = install &&
1576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577 # program-specific install script used by HP pwplus--don't use.
1579 else
1580 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581 break 3
1584 done
1585 done
1587 esac
1588 done
1592 if test "${ac_cv_path_install+set}" = set; then
1593 INSTALL=$ac_cv_path_install
1594 else
1595 # As a last resort, use the slow shell script. We don't cache a
1596 # path for INSTALL within a source directory, because that will
1597 # break other packages using the cache if that directory is
1598 # removed, or if the path is relative.
1599 INSTALL=$ac_install_sh
1602 echo "$as_me:$LINENO: result: $INSTALL" >&5
1603 echo "${ECHO_T}$INSTALL" >&6
1605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606 # It thinks the first close brace ends the variable substitution.
1607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1614 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1615 # Just in case
1616 sleep 1
1617 echo timestamp > conftest.file
1618 # Do `set' in a subshell so we don't clobber the current shell's
1619 # arguments. Must try -L first in case configure is actually a
1620 # symlink; some systems play weird games with the mod time of symlinks
1621 # (eg FreeBSD returns the mod time of the symlink's containing
1622 # directory).
1623 if (
1624 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1625 if test "$*" = "X"; then
1626 # -L didn't work.
1627 set X `ls -t $srcdir/configure conftest.file`
1629 rm -f conftest.file
1630 if test "$*" != "X $srcdir/configure conftest.file" \
1631 && test "$*" != "X conftest.file $srcdir/configure"; then
1633 # If neither matched, then we have a broken ls. This can happen
1634 # if, for instance, CONFIG_SHELL is bash and it inherits a
1635 # broken ls alias from the environment. This has actually
1636 # happened. Such a system could not be considered "sane".
1637 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1638 alias in your environment" >&5
1639 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1640 alias in your environment" >&2;}
1641 { (exit 1); exit 1; }; }
1644 test "$2" = conftest.file
1646 then
1647 # Ok.
1649 else
1650 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1651 Check your system clock" >&5
1652 echo "$as_me: error: newly created file is older than distributed files!
1653 Check your system clock" >&2;}
1654 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: yes" >&5
1657 echo "${ECHO_T}yes" >&6
1658 test "$program_prefix" != NONE &&
1659 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1660 # Use a double $ so make ignores it.
1661 test "$program_suffix" != NONE &&
1662 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1663 # Double any \ or $. echo might interpret backslashes.
1664 # By default was `s,x,x', remove it if useless.
1665 cat <<\_ACEOF >conftest.sed
1666 s/[\\$]/&&/g;s/;s,x,x,$//
1667 _ACEOF
1668 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1669 rm conftest.sed
1672 # expand $ac_aux_dir to an absolute path
1673 am_aux_dir=`cd $ac_aux_dir && pwd`
1675 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1676 # Use eval to expand $SHELL
1677 if eval "$MISSING --run true"; then
1678 am_missing_run="$MISSING --run "
1679 else
1680 am_missing_run=
1681 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1682 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1685 for ac_prog in gawk mawk nawk awk
1687 # Extract the first word of "$ac_prog", so it can be a program name with args.
1688 set dummy $ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_AWK+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$AWK"; then
1695 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_AWK="$ac_prog"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1708 done
1709 done
1713 AWK=$ac_cv_prog_AWK
1714 if test -n "$AWK"; then
1715 echo "$as_me:$LINENO: result: $AWK" >&5
1716 echo "${ECHO_T}$AWK" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1722 test -n "$AWK" && break
1723 done
1725 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1726 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1727 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1728 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 cat >conftest.make <<\_ACEOF
1732 all:
1733 @echo 'ac_maketemp="$(MAKE)"'
1734 _ACEOF
1735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1736 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1737 if test -n "$ac_maketemp"; then
1738 eval ac_cv_prog_make_${ac_make}_set=yes
1739 else
1740 eval ac_cv_prog_make_${ac_make}_set=no
1742 rm -f conftest.make
1744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1747 SET_MAKE=
1748 else
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 SET_MAKE="MAKE=${MAKE-make}"
1754 rm -rf .tst 2>/dev/null
1755 mkdir .tst 2>/dev/null
1756 if test -d .tst; then
1757 am__leading_dot=.
1758 else
1759 am__leading_dot=_
1761 rmdir .tst 2>/dev/null
1763 # test to see if srcdir already configured
1764 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1765 test -f $srcdir/config.status; then
1766 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1767 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1768 { (exit 1); exit 1; }; }
1771 # test whether we have cygpath
1772 if test -z "$CYGPATH_W"; then
1773 if (cygpath --version) >/dev/null 2>/dev/null; then
1774 CYGPATH_W='cygpath -w'
1775 else
1776 CYGPATH_W=echo
1781 # Define the identity of the package.
1782 PACKAGE=libltdl
1783 VERSION=1.2
1786 # Some tools Automake needs.
1788 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1791 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1794 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1797 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1800 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1803 AMTAR=${AMTAR-"${am_missing_run}tar"}
1805 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1807 # Installed binaries are usually stripped using `strip' when the user
1808 # run `make install-strip'. However `strip' might not be the right
1809 # tool to use in cross-compilation environments, therefore Automake
1810 # will honor the `STRIP' environment variable to overrule this program.
1811 if test "$cross_compiling" != no; then
1812 if test -n "$ac_tool_prefix"; then
1813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1814 set dummy ${ac_tool_prefix}strip; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_STRIP+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 if test -n "$STRIP"; then
1821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1834 done
1835 done
1839 STRIP=$ac_cv_prog_STRIP
1840 if test -n "$STRIP"; then
1841 echo "$as_me:$LINENO: result: $STRIP" >&5
1842 echo "${ECHO_T}$STRIP" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$ac_cv_prog_STRIP"; then
1850 ac_ct_STRIP=$STRIP
1851 # Extract the first word of "strip", so it can be a program name with args.
1852 set dummy strip; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 if test -n "$ac_ct_STRIP"; then
1859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_ac_ct_STRIP="strip"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
1872 done
1873 done
1875 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1879 if test -n "$ac_ct_STRIP"; then
1880 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1881 echo "${ECHO_T}$ac_ct_STRIP" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 STRIP=$ac_ct_STRIP
1888 else
1889 STRIP="$ac_cv_prog_STRIP"
1893 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1895 # We need awk for the "check" target. The system "awk" is bad on
1896 # some platforms.
1900 ac_config_headers="$ac_config_headers config.h:config-h.in"
1902 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1903 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1904 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1905 if test "${enable_maintainer_mode+set}" = set; then
1906 enableval="$enable_maintainer_mode"
1907 USE_MAINTAINER_MODE=$enableval
1908 else
1909 USE_MAINTAINER_MODE=no
1911 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1912 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1915 if test $USE_MAINTAINER_MODE = yes; then
1916 MAINTAINER_MODE_TRUE=
1917 MAINTAINER_MODE_FALSE='#'
1918 else
1919 MAINTAINER_MODE_TRUE='#'
1920 MAINTAINER_MODE_FALSE=
1923 MAINT=$MAINTAINER_MODE_TRUE
1927 ## ------------------ ##
1928 ## C compiler checks. ##
1929 ## ------------------ ##
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1949 IFS=$as_save_IFS
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 break 2
1957 done
1958 done
1962 CC=$ac_cv_prog_CC
1963 if test -n "$CC"; then
1964 echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6
1966 else
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1972 if test -z "$ac_cv_prog_CC"; then
1973 ac_ct_CC=$CC
1974 # Extract the first word of "gcc", so it can be a program name with args.
1975 set dummy gcc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 if test -n "$ac_ct_CC"; then
1982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_CC="gcc"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1995 done
1996 done
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6
2004 else
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 CC=$ac_ct_CC
2010 else
2011 CC="$ac_cv_prog_CC"
2014 if test -z "$CC"; then
2015 if test -n "$ac_tool_prefix"; then
2016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2017 set dummy ${ac_tool_prefix}cc; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_CC="${ac_tool_prefix}cc"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2037 done
2038 done
2042 CC=$ac_cv_prog_CC
2043 if test -n "$CC"; then
2044 echo "$as_me:$LINENO: result: $CC" >&5
2045 echo "${ECHO_T}$CC" >&6
2046 else
2047 echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2052 if test -z "$ac_cv_prog_CC"; then
2053 ac_ct_CC=$CC
2054 # Extract the first word of "cc", so it can be a program name with args.
2055 set dummy cc; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_ac_ct_CC="cc"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 break 2
2075 done
2076 done
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2084 else
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2089 CC=$ac_ct_CC
2090 else
2091 CC="$ac_cv_prog_CC"
2095 if test -z "$CC"; then
2096 # Extract the first word of "cc", so it can be a program name with args.
2097 set dummy cc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 ac_prog_rejected=no
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2115 ac_prog_rejected=yes
2116 continue
2118 ac_cv_prog_CC="cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2125 if test $ac_prog_rejected = yes; then
2126 # We found a bogon in the path, so make sure we never use it.
2127 set dummy $ac_cv_prog_CC
2128 shift
2129 if test $# != 0; then
2130 # We chose a different compiler from the bogus one.
2131 # However, it has the same basename, so the bogon will be chosen
2132 # first if we set CC to just the basename; use the full file name.
2133 shift
2134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6
2143 else
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2149 if test -z "$CC"; then
2150 if test -n "$ac_tool_prefix"; then
2151 for ac_prog in cl
2153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181 echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2183 else
2184 echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2188 test -n "$CC" && break
2189 done
2191 if test -z "$CC"; then
2192 ac_ct_CC=$CC
2193 for ac_prog in cl
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; 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="$ac_prog"
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 test -n "$ac_ct_CC" && break
2231 done
2233 CC=$ac_ct_CC
2239 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: no acceptable C compiler found in \$PATH
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2245 # Provide some information about the compiler.
2246 echo "$as_me:$LINENO:" \
2247 "checking for C compiler version" >&5
2248 ac_compiler=`set X $ac_compile; echo $2`
2249 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2250 (eval $ac_compiler --version </dev/null >&5) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }
2254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2255 (eval $ac_compiler -v </dev/null >&5) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }
2259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2260 (eval $ac_compiler -V </dev/null >&5) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 ac_clean_files_save=$ac_clean_files
2282 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2283 # Try to create an executable without -o first, disregard a.out.
2284 # It will help us diagnose broken compilers, and finding out an intuition
2285 # of exeext.
2286 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2287 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2288 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2289 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2290 (eval $ac_link_default) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; then
2294 # Find the output, starting from the most likely. This scheme is
2295 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2296 # resort.
2298 # Be careful to initialize this variable, since it used to be cached.
2299 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2300 ac_cv_exeext=
2301 # b.out is created by i960 compilers.
2302 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2304 test -f "$ac_file" || continue
2305 case $ac_file in
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2308 conftest.$ac_ext )
2309 # This is the source file.
2311 [ab].out )
2312 # We found the default executable, but exeext='' is most
2313 # certainly right.
2314 break;;
2315 *.* )
2316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 # FIXME: I believe we export ac_cv_exeext for Libtool,
2318 # but it would be cool to find out if it's true. Does anybody
2319 # maintain Libtool? --akim.
2320 export ac_cv_exeext
2321 break;;
2323 break;;
2324 esac
2325 done
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: C compiler cannot create executables
2333 See \`config.log' for more details." >&2;}
2334 { (exit 77); exit 77; }; }
2337 ac_exeext=$ac_cv_exeext
2338 echo "$as_me:$LINENO: result: $ac_file" >&5
2339 echo "${ECHO_T}$ac_file" >&6
2341 # Check the compiler produces executables we can run. If not, either
2342 # the compiler is broken, or we cross compile.
2343 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2344 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2345 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2346 # If not cross compiling, check that we can run a simple program.
2347 if test "$cross_compiling" != yes; then
2348 if { ac_try='./$ac_file'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 (eval $ac_try) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2354 cross_compiling=no
2355 else
2356 if test "$cross_compiling" = maybe; then
2357 cross_compiling=yes
2358 else
2359 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2360 If you meant to cross compile, use \`--host'.
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2369 echo "$as_me:$LINENO: result: yes" >&5
2370 echo "${ECHO_T}yes" >&6
2372 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2373 ac_clean_files=$ac_clean_files_save
2374 # Check the compiler produces executables we can run. If not, either
2375 # the compiler is broken, or we cross compile.
2376 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2377 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2378 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2379 echo "${ECHO_T}$cross_compiling" >&6
2381 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2382 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2384 (eval $ac_link) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2389 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2390 # work properly (i.e., refer to `conftest.exe'), while it won't with
2391 # `rm'.
2392 for ac_file in conftest.exe conftest conftest.*; do
2393 test -f "$ac_file" || continue
2394 case $ac_file in
2395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397 export ac_cv_exeext
2398 break;;
2399 * ) break;;
2400 esac
2401 done
2402 else
2403 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2406 See \`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2410 rm -f conftest$ac_cv_exeext
2411 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2412 echo "${ECHO_T}$ac_cv_exeext" >&6
2414 rm -f conftest.$ac_ext
2415 EXEEXT=$ac_cv_exeext
2416 ac_exeext=$EXEEXT
2417 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2418 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2419 if test "${ac_cv_objext+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 rm -f conftest.o conftest.obj
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; then
2444 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2448 break;;
2449 esac
2450 done
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459 { (exit 1); exit 1; }; }
2462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2464 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 echo "${ECHO_T}$ac_cv_objext" >&6
2466 OBJEXT=$ac_cv_objext
2467 ac_objext=$OBJEXT
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2482 main ()
2484 #ifndef __GNUC__
2485 choke me
2486 #endif
2489 return 0;
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 ac_compiler_gnu=yes
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2509 ac_compiler_gnu=no
2511 rm -f conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 CFLAGS="-g"
2521 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2522 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2523 if test "${ac_cv_prog_cc_g+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 cat >conftest.$ac_ext <<_ACEOF
2527 #line $LINENO "configure"
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2535 main ()
2539 return 0;
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 ac_cv_prog_cc_g=yes
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 ac_cv_prog_cc_g=no
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2563 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2565 if test "$ac_test_CFLAGS" = set; then
2566 CFLAGS=$ac_save_CFLAGS
2567 elif test $ac_cv_prog_cc_g = yes; then
2568 if test "$GCC" = yes; then
2569 CFLAGS="-g -O2"
2570 else
2571 CFLAGS="-g"
2573 else
2574 if test "$GCC" = yes; then
2575 CFLAGS="-O2"
2576 else
2577 CFLAGS=
2580 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2581 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2582 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 ac_cv_prog_cc_stdc=no
2586 ac_save_CC=$CC
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #line $LINENO "configure"
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2594 #include <stdarg.h>
2595 #include <stdio.h>
2596 #include <sys/types.h>
2597 #include <sys/stat.h>
2598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2602 char **p;
2603 int i;
2605 return p[i];
2607 static char *f (char * (*g) (char **, int), char **p, ...)
2609 char *s;
2610 va_list v;
2611 va_start (v,p);
2612 s = g (p, va_arg (v,int));
2613 va_end (v);
2614 return s;
2616 int test (int i, double x);
2617 struct s1 {int (*f) (int a);};
2618 struct s2 {int (*f) (double a);};
2619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2620 int argc;
2621 char **argv;
2623 main ()
2625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2627 return 0;
2629 _ACEOF
2630 # Don't try gcc -ansi; that turns off useful extensions and
2631 # breaks some systems' header files.
2632 # AIX -qlanglvl=ansi
2633 # Ultrix and OSF/1 -std1
2634 # HP-UX 10.20 and later -Ae
2635 # HP-UX older versions -Aa -D_HPUX_SOURCE
2636 # SVR4 -Xc -D__EXTENSIONS__
2637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2639 CC="$ac_save_CC $ac_arg"
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 ac_cv_prog_cc_stdc=$ac_arg
2653 break
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2659 rm -f conftest.$ac_objext
2660 done
2661 rm -f conftest.$ac_ext conftest.$ac_objext
2662 CC=$ac_save_CC
2666 case "x$ac_cv_prog_cc_stdc" in
2667 x|xno)
2668 echo "$as_me:$LINENO: result: none needed" >&5
2669 echo "${ECHO_T}none needed" >&6 ;;
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2673 CC="$CC $ac_cv_prog_cc_stdc" ;;
2674 esac
2676 # Some people use a C++ compiler to compile C. Since we use `exit',
2677 # in C++ we need to declare it. In case someone uses the same compiler
2678 # for both compiling C and C++ we need to have the C++ compiler decide
2679 # the declaration of exit, since it's the most demanding environment.
2680 cat >conftest.$ac_ext <<_ACEOF
2681 #ifndef __cplusplus
2682 choke me
2683 #endif
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 for ac_declaration in \
2698 '' \
2699 'extern "C" void std::exit (int) throw (); using std::exit;' \
2700 'extern "C" void std::exit (int); using std::exit;' \
2701 'extern "C" void exit (int) throw ();' \
2702 'extern "C" void exit (int);' \
2703 'void exit (int);'
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 $ac_declaration
2713 #include <stdlib.h>
2715 main ()
2717 exit (42);
2719 return 0;
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 continue
2741 rm -f conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 $ac_declaration
2751 main ()
2753 exit (42);
2755 return 0;
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f conftest.$ac_objext conftest.$ac_ext
2777 done
2778 rm -f conftest*
2779 if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.$ac_objext conftest.$ac_ext
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 DEPDIR="${am__leading_dot}deps"
2798 ac_config_commands="$ac_config_commands depfiles"
2801 am_make=${MAKE-make}
2802 cat > confinc << 'END'
2803 am__doit:
2804 @echo done
2805 .PHONY: am__doit
2807 # If we don't find an include directive, just comment out the code.
2808 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2809 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2810 am__include="#"
2811 am__quote=
2812 _am_result=none
2813 # First try GNU make style include.
2814 echo "include confinc" > confmf
2815 # We grep out `Entering directory' and `Leaving directory'
2816 # messages which can occur if `w' ends up in MAKEFLAGS.
2817 # In particular we don't look at `^make:' because GNU make might
2818 # be invoked under some other name (usually "gmake"), in which
2819 # case it prints its new name instead of `make'.
2820 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2821 am__include=include
2822 am__quote=
2823 _am_result=GNU
2825 # Now try BSD make style include.
2826 if test "$am__include" = "#"; then
2827 echo '.include "confinc"' > confmf
2828 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2829 am__include=.include
2830 am__quote="\""
2831 _am_result=BSD
2836 echo "$as_me:$LINENO: result: $_am_result" >&5
2837 echo "${ECHO_T}$_am_result" >&6
2838 rm -f confinc confmf
2840 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2841 if test "${enable_dependency_tracking+set}" = set; then
2842 enableval="$enable_dependency_tracking"
2845 if test "x$enable_dependency_tracking" != xno; then
2846 am_depcomp="$ac_aux_dir/depcomp"
2847 AMDEPBACKSLASH='\'
2851 if test "x$enable_dependency_tracking" != xno; then
2852 AMDEP_TRUE=
2853 AMDEP_FALSE='#'
2854 else
2855 AMDEP_TRUE='#'
2856 AMDEP_FALSE=
2862 depcc="$CC" am_compiler_list=
2864 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2865 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2866 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2870 # We make a subdir and do the tests there. Otherwise we can end up
2871 # making bogus files that we don't know about and never remove. For
2872 # instance it was reported that on HP-UX the gcc test will end up
2873 # making a dummy file named `D' -- because `-MD' means `put the output
2874 # in D'.
2875 mkdir conftest.dir
2876 # Copy depcomp to subdir because otherwise we won't find it if we're
2877 # using a relative directory.
2878 cp "$am_depcomp" conftest.dir
2879 cd conftest.dir
2880 # We will build objects and dependencies in a subdirectory because
2881 # it helps to detect inapplicable dependency modes. For instance
2882 # both Tru64's cc and ICC support -MD to output dependencies as a
2883 # side effect of compilation, but ICC will put the dependencies in
2884 # the current directory while Tru64 will put them in the object
2885 # directory.
2886 mkdir sub
2888 am_cv_CC_dependencies_compiler_type=none
2889 if test "$am_compiler_list" = ""; then
2890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2892 for depmode in $am_compiler_list; do
2893 # Setup a source with many dependencies, because some compilers
2894 # like to wrap large dependency lists on column 80 (with \), and
2895 # we should not choose a depcomp mode which is confused by this.
2897 # We need to recreate these files for each test, as the compiler may
2898 # overwrite some of them when testing with obscure command lines.
2899 # This happens at least with the AIX C compiler.
2900 : > sub/conftest.c
2901 for i in 1 2 3 4 5 6; do
2902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2903 : > sub/conftst$i.h
2904 done
2905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2907 case $depmode in
2908 nosideeffect)
2909 # after this tag, mechanisms are not by side-effect, so they'll
2910 # only be used when explicitly requested
2911 if test "x$enable_dependency_tracking" = xyes; then
2912 continue
2913 else
2914 break
2917 none) break ;;
2918 esac
2919 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2920 # mode. It turns out that the SunPro C++ compiler does not properly
2921 # handle `-M -o', and we need to detect this.
2922 if depmode=$depmode \
2923 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2925 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2926 >/dev/null 2>conftest.err &&
2927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2928 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2930 # icc doesn't choke on unknown options, it will just issue warnings
2931 # (even with -Werror). So we grep stderr for any message
2932 # that says an option was ignored.
2933 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2934 am_cv_CC_dependencies_compiler_type=$depmode
2935 break
2938 done
2940 cd ..
2941 rm -rf conftest.dir
2942 else
2943 am_cv_CC_dependencies_compiler_type=none
2947 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2948 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2954 test "x$enable_dependency_tracking" != xno \
2955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2956 am__fastdepCC_TRUE=
2957 am__fastdepCC_FALSE='#'
2958 else
2959 am__fastdepCC_TRUE='#'
2960 am__fastdepCC_FALSE=
2965 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2967 if test "${ac_cv_c_const+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2981 /* FIXME: Include the comments suggested by Paul. */
2982 #ifndef __cplusplus
2983 /* Ultrix mips cc rejects this. */
2984 typedef int charset[2];
2985 const charset x;
2986 /* SunOS 4.1.1 cc rejects this. */
2987 char const *const *ccp;
2988 char **p;
2989 /* NEC SVR4.0.2 mips cc rejects this. */
2990 struct point {int x, y;};
2991 static struct point const zero = {0,0};
2992 /* AIX XL C 1.02.0.0 rejects this.
2993 It does not let you subtract one const X* pointer from another in
2994 an arm of an if-expression whose if-part is not a constant
2995 expression */
2996 const char *g = "string";
2997 ccp = &g + (g ? g-g : 0);
2998 /* HPUX 7.0 cc rejects these. */
2999 ++ccp;
3000 p = (char**) ccp;
3001 ccp = (char const *const *) p;
3002 { /* SCO 3.2v4 cc rejects this. */
3003 char *t;
3004 char const *s = 0 ? (char *) 0 : (char const *) 0;
3006 *t++ = 0;
3008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3009 int x[] = {25, 17};
3010 const int *foo = &x[0];
3011 ++foo;
3013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3014 typedef const int *iptr;
3015 iptr p = 0;
3016 ++p;
3018 { /* AIX XL C 1.02.0.0 rejects this saying
3019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3020 struct s { int j; const int *ap[3]; };
3021 struct s *b; b->j = 5;
3023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3024 const int foo = 10;
3026 #endif
3029 return 0;
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3034 (eval $ac_compile) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_c_const=yes
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 ac_cv_c_const=no
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3053 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3054 echo "${ECHO_T}$ac_cv_c_const" >&6
3055 if test $ac_cv_c_const = no; then
3057 cat >>confdefs.h <<\_ACEOF
3058 #define const
3059 _ACEOF
3063 echo "$as_me:$LINENO: checking for inline" >&5
3064 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3065 if test "${ac_cv_c_inline+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 ac_cv_c_inline=no
3069 for ac_kw in inline __inline__ __inline; do
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #ifndef __cplusplus
3078 typedef int foo_t;
3079 static $ac_kw foo_t static_foo () {return 0; }
3080 $ac_kw foo_t foo () {return 0; }
3081 #endif
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_cv_c_inline=$ac_kw; break
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3102 rm -f conftest.$ac_objext conftest.$ac_ext
3103 done
3106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3107 echo "${ECHO_T}$ac_cv_c_inline" >&6
3108 case $ac_cv_c_inline in
3109 inline | yes) ;;
3111 cat >>confdefs.h <<\_ACEOF
3112 #define inline
3113 _ACEOF
3115 *) cat >>confdefs.h <<_ACEOF
3116 #define inline $ac_cv_c_inline
3117 _ACEOF
3119 esac
3123 ## ----------------------- ##
3124 ## Libtool initialisation. ##
3125 ## ----------------------- ##
3128 # Check whether --enable-shared or --disable-shared was given.
3129 if test "${enable_shared+set}" = set; then
3130 enableval="$enable_shared"
3131 p=${PACKAGE-default}
3132 case $enableval in
3133 yes) enable_shared=yes ;;
3134 no) enable_shared=no ;;
3136 enable_shared=no
3137 # Look at the argument we got. We use all the common list separators.
3138 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3139 for pkg in $enableval; do
3140 IFS="$lt_save_ifs"
3141 if test "X$pkg" = "X$p"; then
3142 enable_shared=yes
3144 done
3145 IFS="$lt_save_ifs"
3147 esac
3148 else
3149 enable_shared=yes
3152 # Check whether --enable-static or --disable-static was given.
3153 if test "${enable_static+set}" = set; then
3154 enableval="$enable_static"
3155 p=${PACKAGE-default}
3156 case $enableval in
3157 yes) enable_static=yes ;;
3158 no) enable_static=no ;;
3160 enable_static=no
3161 # Look at the argument we got. We use all the common list separators.
3162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3163 for pkg in $enableval; do
3164 IFS="$lt_save_ifs"
3165 if test "X$pkg" = "X$p"; then
3166 enable_static=yes
3168 done
3169 IFS="$lt_save_ifs"
3171 esac
3172 else
3173 enable_static=yes
3176 # Check whether --enable-fast-install or --disable-fast-install was given.
3177 if test "${enable_fast_install+set}" = set; then
3178 enableval="$enable_fast_install"
3179 p=${PACKAGE-default}
3180 case $enableval in
3181 yes) enable_fast_install=yes ;;
3182 no) enable_fast_install=no ;;
3184 enable_fast_install=no
3185 # Look at the argument we got. We use all the common list separators.
3186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3187 for pkg in $enableval; do
3188 IFS="$lt_save_ifs"
3189 if test "X$pkg" = "X$p"; then
3190 enable_fast_install=yes
3192 done
3193 IFS="$lt_save_ifs"
3195 esac
3196 else
3197 enable_fast_install=yes
3200 # Make sure we can run config.sub.
3201 $ac_config_sub sun4 >/dev/null 2>&1 ||
3202 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3203 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3204 { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: checking build system type" >&5
3207 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3208 if test "${ac_cv_build+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 ac_cv_build_alias=$build_alias
3212 test -z "$ac_cv_build_alias" &&
3213 ac_cv_build_alias=`$ac_config_guess`
3214 test -z "$ac_cv_build_alias" &&
3215 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3216 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3217 { (exit 1); exit 1; }; }
3218 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3219 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3220 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3221 { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3225 echo "${ECHO_T}$ac_cv_build" >&6
3226 build=$ac_cv_build
3227 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3228 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3229 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3232 echo "$as_me:$LINENO: checking host system type" >&5
3233 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3234 if test "${ac_cv_host+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 ac_cv_host_alias=$host_alias
3238 test -z "$ac_cv_host_alias" &&
3239 ac_cv_host_alias=$ac_cv_build_alias
3240 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3241 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3242 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3243 { (exit 1); exit 1; }; }
3246 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3247 echo "${ECHO_T}$ac_cv_host" >&6
3248 host=$ac_cv_host
3249 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3250 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3251 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3254 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3255 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3256 if test "${lt_cv_path_SED+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 # Loop through the user's path and test for sed and gsed.
3260 # Then use that list of sed's as ones to test for truncation.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for lt_ac_prog in sed gsed; do
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3269 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3271 done
3272 done
3273 done
3274 lt_ac_max=0
3275 lt_ac_count=0
3276 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3277 # along with /bin/sed that truncates output.
3278 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3279 test ! -f $lt_ac_sed && break
3280 cat /dev/null > conftest.in
3281 lt_ac_count=0
3282 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3283 # Check for GNU sed and select it if it is found.
3284 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3285 lt_cv_path_SED=$lt_ac_sed
3286 break
3288 while true; do
3289 cat conftest.in conftest.in >conftest.tmp
3290 mv conftest.tmp conftest.in
3291 cp conftest.in conftest.nl
3292 echo >>conftest.nl
3293 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3294 cmp -s conftest.out conftest.nl || break
3295 # 10000 chars as input seems more than enough
3296 test $lt_ac_count -gt 10 && break
3297 lt_ac_count=`expr $lt_ac_count + 1`
3298 if test $lt_ac_count -gt $lt_ac_max; then
3299 lt_ac_max=$lt_ac_count
3300 lt_cv_path_SED=$lt_ac_sed
3302 done
3303 done
3304 SED=$lt_cv_path_SED
3308 echo "$as_me:$LINENO: result: $SED" >&5
3309 echo "${ECHO_T}$SED" >&6
3311 echo "$as_me:$LINENO: checking for egrep" >&5
3312 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3313 if test "${ac_cv_prog_egrep+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3317 then ac_cv_prog_egrep='grep -E'
3318 else ac_cv_prog_egrep='egrep'
3321 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3322 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3323 EGREP=$ac_cv_prog_egrep
3327 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3328 if test "${with_gnu_ld+set}" = set; then
3329 withval="$with_gnu_ld"
3330 test "$withval" = no || with_gnu_ld=yes
3331 else
3332 with_gnu_ld=no
3334 ac_prog=ld
3335 if test "$GCC" = yes; then
3336 # Check if gcc -print-prog-name=ld gives a path.
3337 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3338 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3339 case $host in
3340 *-*-mingw*)
3341 # gcc leaves a trailing carriage return which upsets mingw
3342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3345 esac
3346 case $ac_prog in
3347 # Accept absolute paths.
3348 [\\/]* | ?:[\\/]*)
3349 re_direlt='/[^/][^/]*/\.\./'
3350 # Canonicalize the path of ld
3351 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3352 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3353 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3354 done
3355 test -z "$LD" && LD="$ac_prog"
3358 # If it fails, then pretend we aren't using GCC.
3359 ac_prog=ld
3362 # If it is relative, then search for the first ld in PATH.
3363 with_gnu_ld=unknown
3365 esac
3366 elif test "$with_gnu_ld" = yes; then
3367 echo "$as_me:$LINENO: checking for GNU ld" >&5
3368 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3369 else
3370 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3371 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3373 if test "${lt_cv_path_LD+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -z "$LD"; then
3377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3378 for ac_dir in $PATH; do
3379 IFS="$lt_save_ifs"
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3382 lt_cv_path_LD="$ac_dir/$ac_prog"
3383 # Check to see if the program is GNU ld. I'd rather use --version,
3384 # but apparently some GNU ld's only accept -v.
3385 # Break only if it was the GNU/non-GNU ld that we prefer.
3386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3387 *GNU* | *'with BFD'*)
3388 test "$with_gnu_ld" != no && break
3391 test "$with_gnu_ld" != yes && break
3393 esac
3395 done
3396 IFS="$lt_save_ifs"
3397 else
3398 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3402 LD="$lt_cv_path_LD"
3403 if test -n "$LD"; then
3404 echo "$as_me:$LINENO: result: $LD" >&5
3405 echo "${ECHO_T}$LD" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3410 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3411 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3412 { (exit 1); exit 1; }; }
3413 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3414 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3415 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3419 case `"$LD" -v 2>&1 </dev/null` in
3420 *GNU* | *'with BFD'*)
3421 lt_cv_prog_gnu_ld=yes
3424 lt_cv_prog_gnu_ld=no
3426 esac
3428 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3429 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3430 with_gnu_ld=$lt_cv_prog_gnu_ld
3433 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3434 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3435 if test "${lt_cv_ld_reload_flag+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 lt_cv_ld_reload_flag='-r'
3440 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3441 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3442 reload_flag=$lt_cv_ld_reload_flag
3443 case $reload_flag in
3444 "" | " "*) ;;
3445 *) reload_flag=" $reload_flag" ;;
3446 esac
3447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3449 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3450 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3451 if test "${lt_cv_path_NM+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$NM"; then
3455 # Let the user override the test.
3456 lt_cv_path_NM="$NM"
3457 else
3458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3459 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3460 IFS="$lt_save_ifs"
3461 test -z "$ac_dir" && ac_dir=.
3462 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3464 # Check to see if the nm accepts a BSD-compat flag.
3465 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3466 # nm: unknown option "B" ignored
3467 # Tru64's nm complains that /dev/null is an invalid object file
3468 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3469 */dev/null* | *'Invalid file or object type'*)
3470 lt_cv_path_NM="$tmp_nm -B"
3471 break
3474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3475 */dev/null*)
3476 lt_cv_path_NM="$tmp_nm -p"
3477 break
3480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3481 continue # so that we can try to find one that supports BSD flags
3483 esac
3484 esac
3486 done
3487 IFS="$lt_save_ifs"
3488 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3491 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3492 echo "${ECHO_T}$lt_cv_path_NM" >&6
3493 NM="$lt_cv_path_NM"
3495 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3496 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3497 LN_S=$as_ln_s
3498 if test "$LN_S" = "ln -s"; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500 echo "${ECHO_T}yes" >&6
3501 else
3502 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3503 echo "${ECHO_T}no, using $LN_S" >&6
3506 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3507 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3508 if test "${lt_cv_deplibs_check_method+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 lt_cv_file_magic_cmd='$MAGIC_CMD'
3512 lt_cv_file_magic_test_file=
3513 lt_cv_deplibs_check_method='unknown'
3514 # Need to set the preceding variable on all platforms that support
3515 # interlibrary dependencies.
3516 # 'none' -- dependencies not supported.
3517 # `unknown' -- same as none, but documents that we really don't know.
3518 # 'pass_all' -- all dependencies passed with no checks.
3519 # 'test_compile' -- check by making test program.
3520 # 'file_magic [[regex]]' -- check by looking for files in library path
3521 # which responds to the $file_magic_cmd with a given extended regex.
3522 # If you have `file' or equivalent on your system and you're not sure
3523 # whether `pass_all' will *always* work, you probably want this one.
3525 case $host_os in
3526 aix4* | aix5*)
3527 lt_cv_deplibs_check_method=pass_all
3530 beos*)
3531 lt_cv_deplibs_check_method=pass_all
3534 bsdi4*)
3535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3536 lt_cv_file_magic_cmd='/usr/bin/file -L'
3537 lt_cv_file_magic_test_file=/shlib/libc.so
3540 cygwin* | mingw* | pw32*)
3541 # win32_libid is a shell function defined in ltmain.sh
3542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3543 lt_cv_file_magic_cmd='win32_libid'
3546 darwin* | rhapsody*)
3547 # this will be overwritten by pass_all, but leave it in just in case
3548 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3549 lt_cv_file_magic_cmd='/usr/bin/file -L'
3550 case "$host_os" in
3551 rhapsody* | darwin1.[012])
3552 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3554 *) # Darwin 1.3 on
3555 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3557 esac
3558 lt_cv_deplibs_check_method=pass_all
3561 freebsd*)
3562 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3563 case $host_cpu in
3564 i*86 )
3565 # Not sure whether the presence of OpenBSD here was a mistake.
3566 # Let's accept both of them until this is cleared up.
3567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3568 lt_cv_file_magic_cmd=/usr/bin/file
3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3571 esac
3572 else
3573 lt_cv_deplibs_check_method=pass_all
3577 gnu*)
3578 lt_cv_deplibs_check_method=pass_all
3581 hpux10.20* | hpux11*)
3582 lt_cv_file_magic_cmd=/usr/bin/file
3583 case "$host_cpu" in
3584 ia64*)
3585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3588 hppa*64*)
3589 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]'
3590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3596 esac
3599 irix5* | irix6* | nonstopux*)
3600 case $host_os in
3601 irix5* | nonstopux*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3606 case $LD in
3607 *-32|*"-32 ") libmagic=32-bit;;
3608 *-n32|*"-n32 ") libmagic=N32;;
3609 *-64|*"-64 ") libmagic=64-bit;;
3610 *) libmagic=never-match;;
3611 esac
3612 # this will be overridden with pass_all, but let us keep it just in case
3613 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3615 esac
3616 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3617 lt_cv_deplibs_check_method=pass_all
3620 # This must be Linux ELF.
3621 linux*)
3622 case $host_cpu in
3623 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3624 lt_cv_deplibs_check_method=pass_all ;;
3626 # glibc up to 2.1.1 does not perform some relocations on ARM
3627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3628 esac
3629 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3632 netbsd*)
3633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3635 else
3636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3640 newos6*)
3641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3642 lt_cv_file_magic_cmd=/usr/bin/file
3643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3646 nto-qnx)
3647 lt_cv_deplibs_check_method=unknown
3650 openbsd*)
3651 lt_cv_file_magic_cmd=/usr/bin/file
3652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3655 else
3656 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3660 osf3* | osf4* | osf5*)
3661 # this will be overridden with pass_all, but let us keep it just in case
3662 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3663 lt_cv_file_magic_test_file=/shlib/libc.so
3664 lt_cv_deplibs_check_method=pass_all
3667 sco3.2v5*)
3668 lt_cv_deplibs_check_method=pass_all
3671 solaris*)
3672 lt_cv_deplibs_check_method=pass_all
3673 lt_cv_file_magic_test_file=/lib/libc.so
3676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3677 case $host_vendor in
3678 motorola)
3679 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]'
3680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3682 ncr)
3683 lt_cv_deplibs_check_method=pass_all
3685 sequent)
3686 lt_cv_file_magic_cmd='/bin/file'
3687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3689 sni)
3690 lt_cv_file_magic_cmd='/bin/file'
3691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3692 lt_cv_file_magic_test_file=/lib/libc.so
3694 siemens)
3695 lt_cv_deplibs_check_method=pass_all
3697 esac
3700 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3701 lt_cv_deplibs_check_method=pass_all
3703 esac
3706 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3707 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3708 file_magic_cmd=$lt_cv_file_magic_cmd
3709 deplibs_check_method=$lt_cv_deplibs_check_method
3710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3715 # If no C compiler was specified, use CC.
3716 LTCC=${LTCC-"$CC"}
3718 # Allow CC to be a program name with arguments.
3719 compiler=$CC
3721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3722 if test "${enable_libtool_lock+set}" = set; then
3723 enableval="$enable_libtool_lock"
3726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3728 # Some flags need to be propagated to the compiler or linker for good
3729 # libtool support.
3730 case $host in
3731 ia64-*-hpux*)
3732 # Find out which ABI we are using.
3733 echo 'int i;' > conftest.$ac_ext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; then
3739 case `/usr/bin/file conftest.$ac_objext` in
3740 *ELF-32*)
3741 HPUX_IA64_MODE="32"
3743 *ELF-64*)
3744 HPUX_IA64_MODE="64"
3746 esac
3748 rm -rf conftest*
3750 *-*-irix6*)
3751 # Find out which ABI we are using.
3752 echo '#line 3752 "configure"' > conftest.$ac_ext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; then
3758 if test "$lt_cv_prog_gnu_ld" = yes; then
3759 case `/usr/bin/file conftest.$ac_objext` in
3760 *32-bit*)
3761 LD="${LD-ld} -melf32bsmip"
3763 *N32*)
3764 LD="${LD-ld} -melf32bmipn32"
3766 *64-bit*)
3767 LD="${LD-ld} -melf64bmip"
3769 esac
3770 else
3771 case `/usr/bin/file conftest.$ac_objext` in
3772 *32-bit*)
3773 LD="${LD-ld} -32"
3775 *N32*)
3776 LD="${LD-ld} -n32"
3778 *64-bit*)
3779 LD="${LD-ld} -64"
3781 esac
3784 rm -rf conftest*
3787 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3788 # Find out which ABI we are using.
3789 echo 'int i;' > conftest.$ac_ext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; then
3795 case "`/usr/bin/file conftest.o`" in
3796 *32-bit*)
3797 case $host in
3798 x86_64-*linux*)
3799 LD="${LD-ld} -m elf_i386"
3801 ppc64-*linux*)
3802 LD="${LD-ld} -m elf32ppclinux"
3804 s390x-*linux*)
3805 LD="${LD-ld} -m elf_s390"
3807 sparc64-*linux*)
3808 LD="${LD-ld} -m elf32_sparc"
3810 esac
3812 *64-bit*)
3813 case $host in
3814 x86_64-*linux*)
3815 LD="${LD-ld} -m elf_x86_64"
3817 ppc*-*linux*|powerpc*-*linux*)
3818 LD="${LD-ld} -m elf64ppc"
3820 s390*-*linux*)
3821 LD="${LD-ld} -m elf64_s390"
3823 sparc*-*linux*)
3824 LD="${LD-ld} -m elf64_sparc"
3826 esac
3828 esac
3830 rm -rf conftest*
3833 *-*-sco3.2v5*)
3834 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3835 SAVE_CFLAGS="$CFLAGS"
3836 CFLAGS="$CFLAGS -belf"
3837 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3838 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3839 if test "${lt_cv_cc_needs_belf+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 main ()
3861 return 0;
3863 _ACEOF
3864 rm -f conftest.$ac_objext conftest$ac_exeext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866 (eval $ac_link) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -s conftest$ac_exeext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 lt_cv_cc_needs_belf=yes
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 lt_cv_cc_needs_belf=no
3883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3884 ac_ext=c
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3892 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3895 CFLAGS="$SAVE_CFLAGS"
3898 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 if test -n "$DLLTOOL"; then
3908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3926 DLLTOOL=$ac_cv_prog_DLLTOOL
3927 if test -n "$DLLTOOL"; then
3928 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3929 echo "${ECHO_T}$DLLTOOL" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3936 if test -z "$ac_cv_prog_DLLTOOL"; then
3937 ac_ct_DLLTOOL=$DLLTOOL
3938 # Extract the first word of "dlltool", so it can be a program name with args.
3939 set dummy dlltool; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 if test -n "$ac_ct_DLLTOOL"; then
3946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3962 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3966 if test -n "$ac_ct_DLLTOOL"; then
3967 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3968 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3969 else
3970 echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3974 DLLTOOL=$ac_ct_DLLTOOL
3975 else
3976 DLLTOOL="$ac_cv_prog_DLLTOOL"
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}as; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_AS+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -n "$AS"; then
3988 ac_cv_prog_AS="$AS" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_AS="${ac_tool_prefix}as"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4006 AS=$ac_cv_prog_AS
4007 if test -n "$AS"; then
4008 echo "$as_me:$LINENO: result: $AS" >&5
4009 echo "${ECHO_T}$AS" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4016 if test -z "$ac_cv_prog_AS"; then
4017 ac_ct_AS=$AS
4018 # Extract the first word of "as", so it can be a program name with args.
4019 set dummy as; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test -n "$ac_ct_AS"; then
4026 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_AS="as"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4042 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4046 if test -n "$ac_ct_AS"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4048 echo "${ECHO_T}$ac_ct_AS" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 AS=$ac_ct_AS
4055 else
4056 AS="$ac_cv_prog_AS"
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 if test -n "$OBJDUMP"; then
4068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4086 OBJDUMP=$ac_cv_prog_OBJDUMP
4087 if test -n "$OBJDUMP"; then
4088 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4089 echo "${ECHO_T}$OBJDUMP" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4096 if test -z "$ac_cv_prog_OBJDUMP"; then
4097 ac_ct_OBJDUMP=$OBJDUMP
4098 # Extract the first word of "objdump", so it can be a program name with args.
4099 set dummy objdump; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$ac_ct_OBJDUMP"; then
4106 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4122 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4125 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4126 if test -n "$ac_ct_OBJDUMP"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4128 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 OBJDUMP=$ac_ct_OBJDUMP
4135 else
4136 OBJDUMP="$ac_cv_prog_OBJDUMP"
4141 esac
4143 need_locks="$enable_libtool_lock"
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4152 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4153 # On Suns, sometimes $CPP names a directory.
4154 if test -n "$CPP" && test -d "$CPP"; then
4155 CPP=
4157 if test -z "$CPP"; then
4158 if test "${ac_cv_prog_CPP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 # Double quotes because CPP needs to be expanded
4162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4164 ac_preproc_ok=false
4165 for ac_c_preproc_warn_flag in '' yes
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 else
4198 ac_cpp_err=
4200 else
4201 ac_cpp_err=yes
4203 if test -z "$ac_cpp_err"; then
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Broken: fails on valid input.
4210 continue
4212 rm -f conftest.err conftest.$ac_ext
4214 # OK, works on sane cases. Now check whether non-existent headers
4215 # can be detected and how.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null; then
4233 if test -s conftest.err; then
4234 ac_cpp_err=$ac_c_preproc_warn_flag
4235 else
4236 ac_cpp_err=
4238 else
4239 ac_cpp_err=yes
4241 if test -z "$ac_cpp_err"; then
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4252 rm -f conftest.err conftest.$ac_ext
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then
4258 break
4261 done
4262 ac_cv_prog_CPP=$CPP
4265 CPP=$ac_cv_prog_CPP
4266 else
4267 ac_cv_prog_CPP=$CPP
4269 echo "$as_me:$LINENO: result: $CPP" >&5
4270 echo "${ECHO_T}$CPP" >&6
4271 ac_preproc_ok=false
4272 for ac_c_preproc_warn_flag in '' yes
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #ifdef __STDC__
4288 # include <limits.h>
4289 #else
4290 # include <assert.h>
4291 #endif
4292 Syntax error
4293 _ACEOF
4294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } >/dev/null; then
4302 if test -s conftest.err; then
4303 ac_cpp_err=$ac_c_preproc_warn_flag
4304 else
4305 ac_cpp_err=
4307 else
4308 ac_cpp_err=yes
4310 if test -z "$ac_cpp_err"; then
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 # Broken: fails on valid input.
4317 continue
4319 rm -f conftest.err conftest.$ac_ext
4321 # OK, works on sane cases. Now check whether non-existent headers
4322 # can be detected and how.
4323 cat >conftest.$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4331 _ACEOF
4332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4334 ac_status=$?
4335 grep -v '^ *+' conftest.er1 >conftest.err
4336 rm -f conftest.er1
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } >/dev/null; then
4340 if test -s conftest.err; then
4341 ac_cpp_err=$ac_c_preproc_warn_flag
4342 else
4343 ac_cpp_err=
4345 else
4346 ac_cpp_err=yes
4348 if test -z "$ac_cpp_err"; then
4349 # Broken: success on invalid input.
4350 continue
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Passes both tests.
4356 ac_preproc_ok=:
4357 break
4359 rm -f conftest.err conftest.$ac_ext
4361 done
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.err conftest.$ac_ext
4364 if $ac_preproc_ok; then
4366 else
4367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details." >&5
4369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4370 See \`config.log' for more details." >&2;}
4371 { (exit 1); exit 1; }; }
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4383 if test "${ac_cv_header_stdc+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 #include <stdlib.h>
4394 #include <stdarg.h>
4395 #include <string.h>
4396 #include <float.h>
4399 main ()
4403 return 0;
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_header_stdc=yes
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 ac_cv_header_stdc=no
4425 rm -f conftest.$ac_objext conftest.$ac_ext
4427 if test $ac_cv_header_stdc = yes; then
4428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 #line $LINENO "configure"
4431 /* confdefs.h. */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <string.h>
4438 _ACEOF
4439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4440 $EGREP "memchr" >/dev/null 2>&1; then
4442 else
4443 ac_cv_header_stdc=no
4445 rm -f conftest*
4449 if test $ac_cv_header_stdc = yes; then
4450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <stdlib.h>
4460 _ACEOF
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "free" >/dev/null 2>&1; then
4464 else
4465 ac_cv_header_stdc=no
4467 rm -f conftest*
4471 if test $ac_cv_header_stdc = yes; then
4472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4473 if test "$cross_compiling" = yes; then
4475 else
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <ctype.h>
4484 #if ((' ' & 0x0FF) == 0x020)
4485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4487 #else
4488 # define ISLOWER(c) \
4489 (('a' <= (c) && (c) <= 'i') \
4490 || ('j' <= (c) && (c) <= 'r') \
4491 || ('s' <= (c) && (c) <= 'z'))
4492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4493 #endif
4495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4497 main ()
4499 int i;
4500 for (i = 0; i < 256; i++)
4501 if (XOR (islower (i), ISLOWER (i))
4502 || toupper (i) != TOUPPER (i))
4503 exit(2);
4504 exit (0);
4506 _ACEOF
4507 rm -f conftest$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4519 else
4520 echo "$as_me: program exited with status $ac_status" >&5
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 ( exit $ac_status )
4525 ac_cv_header_stdc=no
4527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4537 _ACEOF
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 $ac_includes_default
4569 #include <$ac_header>
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 eval "$as_ac_Header=yes"
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 eval "$as_ac_Header=no"
4590 rm -f conftest.$ac_objext conftest.$ac_ext
4592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4601 done
4605 for ac_header in dlfcn.h
4607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4609 echo "$as_me:$LINENO: checking for $ac_header" >&5
4610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616 else
4617 # Is the header compilable?
4618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4628 #include <$ac_header>
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_header_compiler=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_header_compiler=no
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4651 echo "${ECHO_T}$ac_header_compiler" >&6
4653 # Is the header present?
4654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 #include <$ac_header>
4664 _ACEOF
4665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null; then
4673 if test -s conftest.err; then
4674 ac_cpp_err=$ac_c_preproc_warn_flag
4675 else
4676 ac_cpp_err=
4678 else
4679 ac_cpp_err=yes
4681 if test -z "$ac_cpp_err"; then
4682 ac_header_preproc=yes
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_header_preproc=no
4689 rm -f conftest.err conftest.$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4691 echo "${ECHO_T}$ac_header_preproc" >&6
4693 # So? What about this header?
4694 case $ac_header_compiler:$ac_header_preproc in
4695 yes:no )
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4701 cat <<\_ASBOX
4702 ## ------------------------------------ ##
4703 ## Report this to bug-autoconf@gnu.org. ##
4704 ## ------------------------------------ ##
4705 _ASBOX
4707 sed "s/^/$as_me: WARNING: /" >&2
4709 no:yes )
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4717 cat <<\_ASBOX
4718 ## ------------------------------------ ##
4719 ## Report this to bug-autoconf@gnu.org. ##
4720 ## ------------------------------------ ##
4721 _ASBOX
4723 sed "s/^/$as_me: WARNING: /" >&2
4725 esac
4726 echo "$as_me:$LINENO: checking for $ac_header" >&5
4727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 eval "$as_ac_Header=$ac_header_preproc"
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4740 _ACEOF
4744 done
4746 ac_ext=cc
4747 ac_cpp='$CXXCPP $CPPFLAGS'
4748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4751 if test -n "$ac_tool_prefix"; then
4752 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_CXX+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$CXX"; then
4762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4780 CXX=$ac_cv_prog_CXX
4781 if test -n "$CXX"; then
4782 echo "$as_me:$LINENO: result: $CXX" >&5
4783 echo "${ECHO_T}$CXX" >&6
4784 else
4785 echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4789 test -n "$CXX" && break
4790 done
4792 if test -z "$CXX"; then
4793 ac_ct_CXX=$CXX
4794 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 if test -n "$ac_ct_CXX"; then
4804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_ac_ct_CXX="$ac_prog"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4817 done
4818 done
4822 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4823 if test -n "$ac_ct_CXX"; then
4824 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4825 echo "${ECHO_T}$ac_ct_CXX" >&6
4826 else
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4831 test -n "$ac_ct_CXX" && break
4832 done
4833 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4835 CXX=$ac_ct_CXX
4839 # Provide some information about the compiler.
4840 echo "$as_me:$LINENO:" \
4841 "checking for C++ compiler version" >&5
4842 ac_compiler=`set X $ac_compile; echo $2`
4843 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4844 (eval $ac_compiler --version </dev/null >&5) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }
4848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4849 (eval $ac_compiler -v </dev/null >&5) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }
4853 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4854 (eval $ac_compiler -V </dev/null >&5) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }
4859 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4860 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4861 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4873 main ()
4875 #ifndef __GNUC__
4876 choke me
4877 #endif
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_compiler_gnu=yes
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 ac_compiler_gnu=no
4902 rm -f conftest.$ac_objext conftest.$ac_ext
4903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4906 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4907 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4908 GXX=`test $ac_compiler_gnu = yes && echo yes`
4909 ac_test_CXXFLAGS=${CXXFLAGS+set}
4910 ac_save_CXXFLAGS=$CXXFLAGS
4911 CXXFLAGS="-g"
4912 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4913 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4914 if test "${ac_cv_prog_cxx_g+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4926 main ()
4930 return 0;
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_cv_prog_cxx_g=yes
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 ac_cv_prog_cxx_g=no
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4956 if test "$ac_test_CXXFLAGS" = set; then
4957 CXXFLAGS=$ac_save_CXXFLAGS
4958 elif test $ac_cv_prog_cxx_g = yes; then
4959 if test "$GXX" = yes; then
4960 CXXFLAGS="-g -O2"
4961 else
4962 CXXFLAGS="-g"
4964 else
4965 if test "$GXX" = yes; then
4966 CXXFLAGS="-O2"
4967 else
4968 CXXFLAGS=
4971 for ac_declaration in \
4972 '' \
4973 'extern "C" void std::exit (int) throw (); using std::exit;' \
4974 'extern "C" void std::exit (int); using std::exit;' \
4975 'extern "C" void exit (int) throw ();' \
4976 'extern "C" void exit (int);' \
4977 'void exit (int);'
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_declaration
4987 #include <stdlib.h>
4989 main ()
4991 exit (42);
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 continue
5015 rm -f conftest.$ac_objext conftest.$ac_ext
5016 cat >conftest.$ac_ext <<_ACEOF
5017 #line $LINENO "configure"
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 $ac_declaration
5025 main ()
5027 exit (42);
5029 return 0;
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 break
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5050 rm -f conftest.$ac_objext conftest.$ac_ext
5051 done
5052 rm -f conftest*
5053 if test -n "$ac_declaration"; then
5054 echo '#ifdef __cplusplus' >>confdefs.h
5055 echo $ac_declaration >>confdefs.h
5056 echo '#endif' >>confdefs.h
5059 ac_ext=cc
5060 ac_cpp='$CXXCPP $CPPFLAGS'
5061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5065 depcc="$CXX" am_compiler_list=
5067 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5069 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5073 # We make a subdir and do the tests there. Otherwise we can end up
5074 # making bogus files that we don't know about and never remove. For
5075 # instance it was reported that on HP-UX the gcc test will end up
5076 # making a dummy file named `D' -- because `-MD' means `put the output
5077 # in D'.
5078 mkdir conftest.dir
5079 # Copy depcomp to subdir because otherwise we won't find it if we're
5080 # using a relative directory.
5081 cp "$am_depcomp" conftest.dir
5082 cd conftest.dir
5083 # We will build objects and dependencies in a subdirectory because
5084 # it helps to detect inapplicable dependency modes. For instance
5085 # both Tru64's cc and ICC support -MD to output dependencies as a
5086 # side effect of compilation, but ICC will put the dependencies in
5087 # the current directory while Tru64 will put them in the object
5088 # directory.
5089 mkdir sub
5091 am_cv_CXX_dependencies_compiler_type=none
5092 if test "$am_compiler_list" = ""; then
5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5095 for depmode in $am_compiler_list; do
5096 # Setup a source with many dependencies, because some compilers
5097 # like to wrap large dependency lists on column 80 (with \), and
5098 # we should not choose a depcomp mode which is confused by this.
5100 # We need to recreate these files for each test, as the compiler may
5101 # overwrite some of them when testing with obscure command lines.
5102 # This happens at least with the AIX C compiler.
5103 : > sub/conftest.c
5104 for i in 1 2 3 4 5 6; do
5105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5106 : > sub/conftst$i.h
5107 done
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5110 case $depmode in
5111 nosideeffect)
5112 # after this tag, mechanisms are not by side-effect, so they'll
5113 # only be used when explicitly requested
5114 if test "x$enable_dependency_tracking" = xyes; then
5115 continue
5116 else
5117 break
5120 none) break ;;
5121 esac
5122 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5123 # mode. It turns out that the SunPro C++ compiler does not properly
5124 # handle `-M -o', and we need to detect this.
5125 if depmode=$depmode \
5126 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5129 >/dev/null 2>conftest.err &&
5130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133 # icc doesn't choke on unknown options, it will just issue warnings
5134 # (even with -Werror). So we grep stderr for any message
5135 # that says an option was ignored.
5136 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5137 am_cv_CXX_dependencies_compiler_type=$depmode
5138 break
5141 done
5143 cd ..
5144 rm -rf conftest.dir
5145 else
5146 am_cv_CXX_dependencies_compiler_type=none
5150 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5151 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5152 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5157 test "x$enable_dependency_tracking" != xno \
5158 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5159 am__fastdepCXX_TRUE=
5160 am__fastdepCXX_FALSE='#'
5161 else
5162 am__fastdepCXX_TRUE='#'
5163 am__fastdepCXX_FALSE=
5167 ac_ext=cc
5168 ac_cpp='$CXXCPP $CPPFLAGS'
5169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5173 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5174 if test -z "$CXXCPP"; then
5175 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 # Double quotes because CXXCPP needs to be expanded
5179 for CXXCPP in "$CXX -E" "/lib/cpp"
5181 ac_preproc_ok=false
5182 for ac_cxx_preproc_warn_flag in '' yes
5184 # Use a header file that comes with gcc, so configuring glibc
5185 # with a fresh cross-compiler works.
5186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5187 # <limits.h> exists even on freestanding compilers.
5188 # On the NeXT, cc -E runs the code through the compiler's parser,
5189 # not just through cpp. "Syntax error" is here to catch this case.
5190 cat >conftest.$ac_ext <<_ACEOF
5191 #line $LINENO "configure"
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202 Syntax error
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_cxx_preproc_warn_flag
5214 else
5215 ac_cpp_err=
5217 else
5218 ac_cpp_err=yes
5220 if test -z "$ac_cpp_err"; then
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 # Broken: fails on valid input.
5227 continue
5229 rm -f conftest.err conftest.$ac_ext
5231 # OK, works on sane cases. Now check whether non-existent headers
5232 # can be detected and how.
5233 cat >conftest.$ac_ext <<_ACEOF
5234 #line $LINENO "configure"
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 ac_status=$?
5245 grep -v '^ *+' conftest.er1 >conftest.err
5246 rm -f conftest.er1
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null; then
5250 if test -s conftest.err; then
5251 ac_cpp_err=$ac_cxx_preproc_warn_flag
5252 else
5253 ac_cpp_err=
5255 else
5256 ac_cpp_err=yes
5258 if test -z "$ac_cpp_err"; then
5259 # Broken: success on invalid input.
5260 continue
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 # Passes both tests.
5266 ac_preproc_ok=:
5267 break
5269 rm -f conftest.err conftest.$ac_ext
5271 done
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5275 break
5278 done
5279 ac_cv_prog_CXXCPP=$CXXCPP
5282 CXXCPP=$ac_cv_prog_CXXCPP
5283 else
5284 ac_cv_prog_CXXCPP=$CXXCPP
5286 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5287 echo "${ECHO_T}$CXXCPP" >&6
5288 ac_preproc_ok=false
5289 for ac_cxx_preproc_warn_flag in '' yes
5291 # Use a header file that comes with gcc, so configuring glibc
5292 # with a fresh cross-compiler works.
5293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5294 # <limits.h> exists even on freestanding compilers.
5295 # On the NeXT, cc -E runs the code through the compiler's parser,
5296 # not just through cpp. "Syntax error" is here to catch this case.
5297 cat >conftest.$ac_ext <<_ACEOF
5298 #line $LINENO "configure"
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #ifdef __STDC__
5305 # include <limits.h>
5306 #else
5307 # include <assert.h>
5308 #endif
5309 Syntax error
5310 _ACEOF
5311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null; then
5319 if test -s conftest.err; then
5320 ac_cpp_err=$ac_cxx_preproc_warn_flag
5321 else
5322 ac_cpp_err=
5324 else
5325 ac_cpp_err=yes
5327 if test -z "$ac_cpp_err"; then
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 # Broken: fails on valid input.
5334 continue
5336 rm -f conftest.err conftest.$ac_ext
5338 # OK, works on sane cases. Now check whether non-existent headers
5339 # can be detected and how.
5340 cat >conftest.$ac_ext <<_ACEOF
5341 #line $LINENO "configure"
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5348 _ACEOF
5349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_cxx_preproc_warn_flag
5359 else
5360 ac_cpp_err=
5362 else
5363 ac_cpp_err=yes
5365 if test -z "$ac_cpp_err"; then
5366 # Broken: success on invalid input.
5367 continue
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 # Passes both tests.
5373 ac_preproc_ok=:
5374 break
5376 rm -f conftest.err conftest.$ac_ext
5378 done
5379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5380 rm -f conftest.err conftest.$ac_ext
5381 if $ac_preproc_ok; then
5383 else
5384 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5385 See \`config.log' for more details." >&5
5386 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5387 See \`config.log' for more details." >&2;}
5388 { (exit 1); exit 1; }; }
5391 ac_ext=cc
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5398 ac_ext=f
5399 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5400 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5402 if test -n "$ac_tool_prefix"; then
5403 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5407 echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409 if test "${ac_cv_prog_F77+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 if test -n "$F77"; then
5413 ac_cv_prog_F77="$F77" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5431 F77=$ac_cv_prog_F77
5432 if test -n "$F77"; then
5433 echo "$as_me:$LINENO: result: $F77" >&5
5434 echo "${ECHO_T}$F77" >&6
5435 else
5436 echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5440 test -n "$F77" && break
5441 done
5443 if test -z "$F77"; then
5444 ac_ct_F77=$F77
5445 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 if test -n "$ac_ct_F77"; then
5455 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_F77="$ac_prog"
5465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5473 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5474 if test -n "$ac_ct_F77"; then
5475 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5476 echo "${ECHO_T}$ac_ct_F77" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5482 test -n "$ac_ct_F77" && break
5483 done
5485 F77=$ac_ct_F77
5489 # Provide some information about the compiler.
5490 echo "$as_me:5490:" \
5491 "checking for Fortran 77 compiler version" >&5
5492 ac_compiler=`set X $ac_compile; echo $2`
5493 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5494 (eval $ac_compiler --version </dev/null >&5) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }
5498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5499 (eval $ac_compiler -v </dev/null >&5) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }
5503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5504 (eval $ac_compiler -V </dev/null >&5) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }
5509 # If we don't use `.F' as extension, the preprocessor is not run on the
5510 # input file.
5511 ac_save_ext=$ac_ext
5512 ac_ext=F
5513 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5514 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5515 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 program main
5520 #ifndef __GNUC__
5521 choke me
5522 #endif
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_compiler_gnu=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_compiler_gnu=no
5545 rm -f conftest.$ac_objext conftest.$ac_ext
5546 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5549 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5550 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5551 ac_ext=$ac_save_ext
5552 G77=`test $ac_compiler_gnu = yes && echo yes`
5553 ac_test_FFLAGS=${FFLAGS+set}
5554 ac_save_FFLAGS=$FFLAGS
5555 FFLAGS=
5556 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5557 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5558 if test "${ac_cv_prog_f77_g+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 FFLAGS=-g
5562 cat >conftest.$ac_ext <<_ACEOF
5563 program main
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_prog_f77_g=yes
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 ac_cv_prog_f77_g=no
5586 rm -f conftest.$ac_objext conftest.$ac_ext
5589 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5590 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5591 if test "$ac_test_FFLAGS" = set; then
5592 FFLAGS=$ac_save_FFLAGS
5593 elif test $ac_cv_prog_f77_g = yes; then
5594 if test "$G77" = yes; then
5595 FFLAGS="-g -O2"
5596 else
5597 FFLAGS="-g"
5599 else
5600 if test "$G77" = yes; then
5601 FFLAGS="-O2"
5602 else
5603 FFLAGS=
5606 ac_ext=c
5607 ac_cpp='$CPP $CPPFLAGS'
5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5614 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5616 # find the maximum length of command line arguments
5617 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5618 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5619 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5623 testring="ABCD"
5625 case $build_os in
5626 msdosdjgpp*)
5627 # On DJGPP, this test can blow up pretty badly due to problems in libc
5628 # (any single argument exceeding 2000 bytes causes a buffer overrun
5629 # during glob expansion). Even if it were fixed, the result of this
5630 # check would be larger than it should be.
5631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5634 gnu*)
5635 # Under GNU Hurd, this test is not required because there is
5636 # no limit to the length of command line arguments.
5637 # Libtool will interpret -1 as no limit whatsoever
5638 lt_cv_sys_max_cmd_len=-1;
5641 cygwin* | mingw*)
5642 # On Win9x/ME, this test blows up -- it succeeds, but takes
5643 # about 5 minutes as the teststring grows exponentially.
5644 # Worse, since 9x/ME are not pre-emptively multitasking,
5645 # you end up with a "frozen" computer, even though with patience
5646 # the test eventually succeeds (with a max line length of 256k).
5647 # Instead, let's just punt: use the minimum linelength reported by
5648 # all of the supported platforms: 8192 (on NT/2K/XP).
5649 lt_cv_sys_max_cmd_len=8192;
5653 # If test is not a shell built-in, we'll probably end up computing a
5654 # maximum length that is only half of the actual maximum length, but
5655 # we can't tell.
5656 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5657 = "XX$testring") >/dev/null 2>&1 &&
5658 new_result=`expr "X$testring" : ".*" 2>&1` &&
5659 lt_cv_sys_max_cmd_len=$new_result &&
5660 test $i != 17 # 1/2 MB should be enough
5662 i=`expr $i + 1`
5663 testring=$testring$testring
5664 done
5665 testring=
5666 # Add a significant safety factor because C++ compilers can tack on massive
5667 # amounts of additional arguments before passing them to the linker.
5668 # It appears as though 1/2 is a usable value.
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5671 esac
5675 if test -n $lt_cv_sys_max_cmd_len ; then
5676 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5677 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5678 else
5679 echo "$as_me:$LINENO: result: none" >&5
5680 echo "${ECHO_T}none" >&6
5686 # Check for command to grab the raw symbol name followed by C symbol from nm.
5687 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5688 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5689 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5693 # These are sane defaults that work on at least a few old systems.
5694 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5696 # Character class describing NM global symbol codes.
5697 symcode='[BCDEGRST]'
5699 # Regexp to match symbols that can be accessed directly from C.
5700 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5702 # Transform the above into a raw symbol and a C symbol.
5703 symxfrm='\1 \2\3 \3'
5705 # Transform an extracted symbol line into a proper C declaration
5706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5708 # Transform an extracted symbol line into symbol name and symbol address
5709 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'"
5711 # Define system-specific variables.
5712 case $host_os in
5713 aix*)
5714 symcode='[BCDT]'
5716 cygwin* | mingw* | pw32*)
5717 symcode='[ABCDGISTW]'
5719 hpux*) # Its linker distinguishes data from code symbols
5720 if test "$host_cpu" = ia64; then
5721 symcode='[ABCDEGRST]'
5723 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5724 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'"
5726 irix* | nonstopux*)
5727 symcode='[BCDEGRST]'
5729 osf*)
5730 symcode='[BCDEGQRST]'
5732 solaris* | sysv5*)
5733 symcode='[BDT]'
5735 sysv4)
5736 symcode='[DFNSTU]'
5738 esac
5740 # Handle CRLF in mingw tool chain
5741 opt_cr=
5742 case $build_os in
5743 mingw*)
5744 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5746 esac
5748 # If we're using GNU nm, then use its standard symbol codes.
5749 case `$NM -V 2>&1` in
5750 *GNU* | *'with BFD'*)
5751 symcode='[ABCDGISTW]' ;;
5752 esac
5754 # Try without a prefix undercore, then with it.
5755 for ac_symprfx in "" "_"; do
5757 # Write the raw and C identifiers.
5758 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5760 # Check to see that the pipe works correctly.
5761 pipe_works=no
5763 rm -f conftest*
5764 cat > conftest.$ac_ext <<EOF
5765 #ifdef __cplusplus
5766 extern "C" {
5767 #endif
5768 char nm_test_var;
5769 void nm_test_func(){}
5770 #ifdef __cplusplus
5772 #endif
5773 int main(){nm_test_var='a';nm_test_func();return(0);}
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; then
5781 # Now try to grab the symbols.
5782 nlist=conftest.nm
5783 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5784 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && test -s "$nlist"; then
5788 # Try sorting and uniquifying the output.
5789 if sort "$nlist" | uniq > "$nlist"T; then
5790 mv -f "$nlist"T "$nlist"
5791 else
5792 rm -f "$nlist"T
5795 # Make sure that we snagged all the symbols we need.
5796 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5797 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5798 cat <<EOF > conftest.$ac_ext
5799 #ifdef __cplusplus
5800 extern "C" {
5801 #endif
5804 # Now generate the symbol file.
5805 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5807 cat <<EOF >> conftest.$ac_ext
5808 #if defined (__STDC__) && __STDC__
5809 # define lt_ptr_t void *
5810 #else
5811 # define lt_ptr_t char *
5812 # define const
5813 #endif
5815 /* The mapping between symbol names and symbols. */
5816 const struct {
5817 const char *name;
5818 lt_ptr_t address;
5820 lt_preloaded_symbols[] =
5823 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5824 cat <<\EOF >> conftest.$ac_ext
5825 {0, (lt_ptr_t) 0}
5828 #ifdef __cplusplus
5830 #endif
5832 # Now try linking the two files.
5833 mv conftest.$ac_objext conftstm.$ac_objext
5834 lt_save_LIBS="$LIBS"
5835 lt_save_CFLAGS="$CFLAGS"
5836 LIBS="conftstm.$ac_objext"
5837 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5843 pipe_works=yes
5845 LIBS="$lt_save_LIBS"
5846 CFLAGS="$lt_save_CFLAGS"
5847 else
5848 echo "cannot find nm_test_func in $nlist" >&5
5850 else
5851 echo "cannot find nm_test_var in $nlist" >&5
5853 else
5854 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5856 else
5857 echo "$progname: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 rm -f conftest* conftst*
5862 # Do not use the global_symbol_pipe unless it works.
5863 if test "$pipe_works" = yes; then
5864 break
5865 else
5866 lt_cv_sys_global_symbol_pipe=
5868 done
5872 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5873 lt_cv_sys_global_symbol_to_cdecl=
5875 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5876 echo "$as_me:$LINENO: result: failed" >&5
5877 echo "${ECHO_T}failed" >&6
5878 else
5879 echo "$as_me:$LINENO: result: ok" >&5
5880 echo "${ECHO_T}ok" >&6
5883 echo "$as_me:$LINENO: checking for objdir" >&5
5884 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5885 if test "${lt_cv_objdir+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 rm -f .libs 2>/dev/null
5889 mkdir .libs 2>/dev/null
5890 if test -d .libs; then
5891 lt_cv_objdir=.libs
5892 else
5893 # MS-DOS does not allow filenames that begin with a dot.
5894 lt_cv_objdir=_libs
5896 rmdir .libs 2>/dev/null
5898 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5899 echo "${ECHO_T}$lt_cv_objdir" >&6
5900 objdir=$lt_cv_objdir
5906 case $host_os in
5907 aix3*)
5908 # AIX sometimes has problems with the GCC collect2 program. For some
5909 # reason, if we set the COLLECT_NAMES environment variable, the problems
5910 # vanish in a puff of smoke.
5911 if test "X${COLLECT_NAMES+set}" != Xset; then
5912 COLLECT_NAMES=
5913 export COLLECT_NAMES
5916 esac
5918 # Sed substitution that helps us do robust quoting. It backslashifies
5919 # metacharacters that are still active within double-quoted strings.
5920 Xsed='sed -e s/^X//'
5921 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5923 # Same as above, but do not quote variable references.
5924 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5926 # Sed substitution to delay expansion of an escaped shell variable in a
5927 # double_quote_subst'ed string.
5928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5930 # Sed substitution to avoid accidental globbing in evaled expressions
5931 no_glob_subst='s/\*/\\\*/g'
5933 # Constants:
5934 rm="rm -f"
5936 # Global variables:
5937 default_ofile=libtool
5938 can_build_shared=yes
5940 # All known linkers require a `.a' archive for static linking (except M$VC,
5941 # which needs '.lib').
5942 libext=a
5943 ltmain="$ac_aux_dir/ltmain.sh"
5944 ofile="$default_ofile"
5945 with_gnu_ld="$lt_cv_prog_gnu_ld"
5947 if test -n "$ac_tool_prefix"; then
5948 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5949 set dummy ${ac_tool_prefix}ar; ac_word=$2
5950 echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5952 if test "${ac_cv_prog_AR+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 if test -n "$AR"; then
5956 ac_cv_prog_AR="$AR" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_AR="${ac_tool_prefix}ar"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5969 done
5970 done
5974 AR=$ac_cv_prog_AR
5975 if test -n "$AR"; then
5976 echo "$as_me:$LINENO: result: $AR" >&5
5977 echo "${ECHO_T}$AR" >&6
5978 else
5979 echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5984 if test -z "$ac_cv_prog_AR"; then
5985 ac_ct_AR=$AR
5986 # Extract the first word of "ar", so it can be a program name with args.
5987 set dummy ar; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 if test -n "$ac_ct_AR"; then
5994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_ac_ct_AR="ar"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6007 done
6008 done
6010 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6014 if test -n "$ac_ct_AR"; then
6015 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6016 echo "${ECHO_T}$ac_ct_AR" >&6
6017 else
6018 echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6
6022 AR=$ac_ct_AR
6023 else
6024 AR="$ac_cv_prog_AR"
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6030 echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032 if test "${ac_cv_prog_RANLIB+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 if test -n "$RANLIB"; then
6036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6049 done
6050 done
6054 RANLIB=$ac_cv_prog_RANLIB
6055 if test -n "$RANLIB"; then
6056 echo "$as_me:$LINENO: result: $RANLIB" >&5
6057 echo "${ECHO_T}$RANLIB" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6064 if test -z "$ac_cv_prog_RANLIB"; then
6065 ac_ct_RANLIB=$RANLIB
6066 # Extract the first word of "ranlib", so it can be a program name with args.
6067 set dummy ranlib; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 if test -n "$ac_ct_RANLIB"; then
6074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_ac_ct_RANLIB="ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6087 done
6088 done
6090 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6094 if test -n "$ac_ct_RANLIB"; then
6095 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6096 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6097 else
6098 echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6
6102 RANLIB=$ac_ct_RANLIB
6103 else
6104 RANLIB="$ac_cv_prog_RANLIB"
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}strip; ac_word=$2
6110 echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6112 if test "${ac_cv_prog_STRIP+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 if test -n "$STRIP"; then
6116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6129 done
6130 done
6134 STRIP=$ac_cv_prog_STRIP
6135 if test -n "$STRIP"; then
6136 echo "$as_me:$LINENO: result: $STRIP" >&5
6137 echo "${ECHO_T}$STRIP" >&6
6138 else
6139 echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6
6144 if test -z "$ac_cv_prog_STRIP"; then
6145 ac_ct_STRIP=$STRIP
6146 # Extract the first word of "strip", so it can be a program name with args.
6147 set dummy strip; ac_word=$2
6148 echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6150 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 if test -n "$ac_ct_STRIP"; then
6154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163 ac_cv_prog_ac_ct_STRIP="strip"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 break 2
6167 done
6168 done
6170 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6174 if test -n "$ac_ct_STRIP"; then
6175 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6176 echo "${ECHO_T}$ac_ct_STRIP" >&6
6177 else
6178 echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6
6182 STRIP=$ac_ct_STRIP
6183 else
6184 STRIP="$ac_cv_prog_STRIP"
6188 old_CC="$CC"
6189 old_CFLAGS="$CFLAGS"
6191 # Set sane defaults for various variables
6192 test -z "$AR" && AR=ar
6193 test -z "$AR_FLAGS" && AR_FLAGS=cru
6194 test -z "$AS" && AS=as
6195 test -z "$CC" && CC=cc
6196 test -z "$LTCC" && LTCC=$CC
6197 test -z "$DLLTOOL" && DLLTOOL=dlltool
6198 test -z "$LD" && LD=ld
6199 test -z "$LN_S" && LN_S="ln -s"
6200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6201 test -z "$NM" && NM=nm
6202 test -z "$SED" && SED=sed
6203 test -z "$OBJDUMP" && OBJDUMP=objdump
6204 test -z "$RANLIB" && RANLIB=:
6205 test -z "$STRIP" && STRIP=:
6206 test -z "$ac_objext" && ac_objext=o
6208 # Determine commands to create old-style static archives.
6209 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6210 old_postinstall_cmds='chmod 644 $oldlib'
6211 old_postuninstall_cmds=
6213 if test -n "$RANLIB"; then
6214 case $host_os in
6215 openbsd*)
6216 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6219 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6221 esac
6222 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6225 # Only perform the check for file, if the check method requires it
6226 case $deplibs_check_method in
6227 file_magic*)
6228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6229 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6230 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 case $MAGIC_CMD in
6235 [\\/*] | ?:[\\/]*)
6236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6239 lt_save_MAGIC_CMD="$MAGIC_CMD"
6240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6242 for ac_dir in $ac_dummy; do
6243 IFS="$lt_save_ifs"
6244 test -z "$ac_dir" && ac_dir=.
6245 if test -f $ac_dir/${ac_tool_prefix}file; then
6246 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6247 if test -n "$file_magic_test_file"; then
6248 case $deplibs_check_method in
6249 "file_magic "*)
6250 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6253 $EGREP "$file_magic_regex" > /dev/null; then
6255 else
6256 cat <<EOF 1>&2
6258 *** Warning: the command libtool uses to detect shared libraries,
6259 *** $file_magic_cmd, produces output that libtool cannot recognize.
6260 *** The result is that libtool may fail to recognize shared libraries
6261 *** as such. This will affect the creation of libtool libraries that
6262 *** depend on shared libraries, but programs linked with such libtool
6263 *** libraries will work regardless of this problem. Nevertheless, you
6264 *** may want to report the problem to your system manager and/or to
6265 *** bug-libtool@gnu.org
6268 fi ;;
6269 esac
6271 break
6273 done
6274 IFS="$lt_save_ifs"
6275 MAGIC_CMD="$lt_save_MAGIC_CMD"
6277 esac
6280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6281 if test -n "$MAGIC_CMD"; then
6282 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6283 echo "${ECHO_T}$MAGIC_CMD" >&6
6284 else
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6289 if test -z "$lt_cv_path_MAGIC_CMD"; then
6290 if test -n "$ac_tool_prefix"; then
6291 echo "$as_me:$LINENO: checking for file" >&5
6292 echo $ECHO_N "checking for file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 case $MAGIC_CMD in
6297 [\\/*] | ?:[\\/]*)
6298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6301 lt_save_MAGIC_CMD="$MAGIC_CMD"
6302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6304 for ac_dir in $ac_dummy; do
6305 IFS="$lt_save_ifs"
6306 test -z "$ac_dir" && ac_dir=.
6307 if test -f $ac_dir/file; then
6308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6309 if test -n "$file_magic_test_file"; then
6310 case $deplibs_check_method in
6311 "file_magic "*)
6312 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6315 $EGREP "$file_magic_regex" > /dev/null; then
6317 else
6318 cat <<EOF 1>&2
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such. This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem. Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6330 fi ;;
6331 esac
6333 break
6335 done
6336 IFS="$lt_save_ifs"
6337 MAGIC_CMD="$lt_save_MAGIC_CMD"
6339 esac
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6346 else
6347 echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6351 else
6352 MAGIC_CMD=:
6358 esac
6360 enable_dlopen=no
6361 enable_win32_dll=yes
6363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6364 if test "${enable_libtool_lock+set}" = set; then
6365 enableval="$enable_libtool_lock"
6368 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6371 # Check whether --with-pic or --without-pic was given.
6372 if test "${with_pic+set}" = set; then
6373 withval="$with_pic"
6374 pic_mode="$withval"
6375 else
6376 pic_mode=default
6378 test -z "$pic_mode" && pic_mode=default
6380 # Use C for the default configuration in the libtool script
6381 tagname=
6382 lt_save_CC="$CC"
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390 # Source file extension for C test sources.
6391 ac_ext=c
6393 # Object file extension for compiled C test sources.
6394 objext=o
6395 objext=$objext
6397 # Code to be used in simple compile tests
6398 lt_simple_compile_test_code="int some_variable = 0;\n"
6400 # Code to be used in simple link tests
6401 lt_simple_link_test_code='int main(){return(0);}\n'
6404 # If no C compiler was specified, use CC.
6405 LTCC=${LTCC-"$CC"}
6407 # Allow CC to be a program name with arguments.
6408 compiler=$CC
6412 # Check for any special shared library compilation flags.
6414 lt_prog_cc_shlib=
6415 if test "$GCC" = no; then
6416 case $host_os in
6417 sco3.2v5*)
6418 lt_prog_cc_shlib='-belf'
6420 esac
6422 if test -n "$lt_prog_cc_shlib"; then
6423 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6424 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6425 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6426 else
6427 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6428 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6429 lt_cv_prog_cc_can_build_shared=no
6435 # Check to make sure the static flag actually works.
6437 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6438 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6439 if test "${lt_prog_compiler_static_works+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 lt_prog_compiler_static_works=no
6443 save_LDFLAGS="$LDFLAGS"
6444 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6445 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6447 # The compiler can only warn and ignore the option if not recognized
6448 # So say no if there are warnings
6449 if test -s conftest.err; then
6450 # Append any errors to the config.log.
6451 cat conftest.err 1>&5
6452 else
6453 lt_prog_compiler_static_works=yes
6456 $rm conftest*
6457 LDFLAGS="$save_LDFLAGS"
6460 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6461 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6463 if test x"$lt_prog_compiler_static_works" = xyes; then
6465 else
6466 lt_prog_compiler_static=
6472 lt_prog_compiler_no_builtin_flag=
6474 if test "$GCC" = yes; then
6475 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6477 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6478 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6479 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 lt_cv_prog_compiler_rtti_exceptions=no
6483 ac_outfile=conftest.$ac_objext
6484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6485 lt_compiler_flag="-fno-rtti -fno-exceptions"
6486 # Insert the option either (1) after the last *FLAGS variable, or
6487 # (2) before a word containing "conftest.", or (3) at the end.
6488 # Note that $ac_compile itself does not contain backslashes and begins
6489 # with a dollar sign (not a hyphen), so the echo should work correctly.
6490 # The option is referenced via a variable to avoid confusing sed.
6491 lt_compile=`echo "$ac_compile" | $SED \
6492 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6494 -e 's:$: $lt_compiler_flag:'`
6495 (eval echo "\"\$as_me:6495: $lt_compile\"" >&5)
6496 (eval "$lt_compile" 2>conftest.err)
6497 ac_status=$?
6498 cat conftest.err >&5
6499 echo "$as_me:6499: \$? = $ac_status" >&5
6500 if (exit $ac_status) && test -s "$ac_outfile"; then
6501 # The compiler can only warn and ignore the option if not recognized
6502 # So say no if there are warnings
6503 if test ! -s conftest.err; then
6504 lt_cv_prog_compiler_rtti_exceptions=yes
6507 $rm conftest*
6510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6514 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6515 else
6521 lt_prog_compiler_wl=
6522 lt_prog_compiler_pic=
6523 lt_prog_compiler_static=
6525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6528 if test "$GCC" = yes; then
6529 lt_prog_compiler_wl='-Wl,'
6530 lt_prog_compiler_static='-static'
6532 case $host_os in
6533 aix*)
6534 # All AIX code is PIC.
6535 if test "$host_cpu" = ia64; then
6536 # AIX 5 now supports IA64 processor
6537 lt_prog_compiler_static='-Bstatic'
6541 amigaos*)
6542 # FIXME: we need at least 68020 code to build shared libraries, but
6543 # adding the `-m68020' flag to GCC prevents building anything better,
6544 # like `-m68040'.
6545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6549 # PIC is the default for these OSes.
6552 mingw* | pw32* | os2*)
6553 # This hack is so that the source file can tell whether it is being
6554 # built for inclusion in a dll (and should export symbols for example).
6555 lt_prog_compiler_pic='-DDLL_EXPORT'
6558 darwin* | rhapsody*)
6559 # PIC is the default on this platform
6560 # Common symbols not allowed in MH_DYLIB files
6561 lt_prog_compiler_pic='-fno-common'
6564 msdosdjgpp*)
6565 # Just because we use GCC doesn't mean we suddenly get shared libraries
6566 # on systems that don't support them.
6567 lt_prog_compiler_can_build_shared=no
6568 enable_shared=no
6571 sysv4*MP*)
6572 if test -d /usr/nec; then
6573 lt_prog_compiler_pic=-Kconform_pic
6577 hpux*)
6578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6579 # not for PA HP-UX.
6580 case "$host_cpu" in
6581 hppa*64*|ia64*)
6582 # +Z the default
6585 lt_prog_compiler_pic='-fPIC'
6587 esac
6591 lt_prog_compiler_pic='-fPIC'
6593 esac
6594 else
6595 # PORTME Check for flag to pass linker flags through the system compiler.
6596 case $host_os in
6597 aix*)
6598 lt_prog_compiler_wl='-Wl,'
6599 if test "$host_cpu" = ia64; then
6600 # AIX 5 now supports IA64 processor
6601 lt_prog_compiler_static='-Bstatic'
6602 else
6603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6607 mingw* | pw32* | os2*)
6608 # This hack is so that the source file can tell whether it is being
6609 # built for inclusion in a dll (and should export symbols for example).
6610 lt_prog_compiler_pic='-DDLL_EXPORT'
6613 hpux9* | hpux10* | hpux11*)
6614 lt_prog_compiler_wl='-Wl,'
6615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6616 # not for PA HP-UX.
6617 case "$host_cpu" in
6618 hppa*64*|ia64*)
6619 # +Z the default
6622 lt_prog_compiler_pic='+Z'
6624 esac
6625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6626 lt_prog_compiler_static='${wl}-a ${wl}archive'
6629 irix5* | irix6* | nonstopux*)
6630 lt_prog_compiler_wl='-Wl,'
6631 # PIC (with -KPIC) is the default.
6632 lt_prog_compiler_static='-non_shared'
6635 newsos6)
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6640 linux*)
6641 case $CC in
6642 icc|ecc)
6643 lt_prog_compiler_wl='-Wl,'
6644 lt_prog_compiler_pic='-KPIC'
6645 lt_prog_compiler_static='-static'
6647 ccc)
6648 lt_prog_compiler_wl='-Wl,'
6649 # All Alpha code is PIC.
6650 lt_prog_compiler_static='-non_shared'
6652 esac
6655 osf3* | osf4* | osf5*)
6656 lt_prog_compiler_wl='-Wl,'
6657 # All OSF/1 code is PIC.
6658 lt_prog_compiler_static='-non_shared'
6661 sco3.2v5*)
6662 lt_prog_compiler_pic='-Kpic'
6663 lt_prog_compiler_static='-dn'
6666 solaris*)
6667 lt_prog_compiler_wl='-Wl,'
6668 lt_prog_compiler_pic='-KPIC'
6669 lt_prog_compiler_static='-Bstatic'
6672 sunos4*)
6673 lt_prog_compiler_wl='-Qoption ld '
6674 lt_prog_compiler_pic='-PIC'
6675 lt_prog_compiler_static='-Bstatic'
6678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6679 lt_prog_compiler_wl='-Wl,'
6680 lt_prog_compiler_pic='-KPIC'
6681 lt_prog_compiler_static='-Bstatic'
6684 sysv4*MP*)
6685 if test -d /usr/nec ;then
6686 lt_prog_compiler_pic='-Kconform_pic'
6687 lt_prog_compiler_static='-Bstatic'
6691 uts4*)
6692 lt_prog_compiler_pic='-pic'
6693 lt_prog_compiler_static='-Bstatic'
6697 lt_prog_compiler_can_build_shared=no
6699 esac
6702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6703 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6706 # Check to make sure the PIC flag actually works.
6708 if test -n "$lt_prog_compiler_pic"; then
6709 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6711 if test "${lt_prog_compiler_pic_works+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 lt_prog_compiler_pic_works=no
6715 ac_outfile=conftest.$ac_objext
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6718 # Insert the option either (1) after the last *FLAGS variable, or
6719 # (2) before a word containing "conftest.", or (3) at the end.
6720 # Note that $ac_compile itself does not contain backslashes and begins
6721 # with a dollar sign (not a hyphen), so the echo should work correctly.
6722 # The option is referenced via a variable to avoid confusing sed.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>conftest.err)
6729 ac_status=$?
6730 cat conftest.err >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s "$ac_outfile"; then
6733 # The compiler can only warn and ignore the option if not recognized
6734 # So say no if there are warnings
6735 if test ! -s conftest.err; then
6736 lt_prog_compiler_pic_works=yes
6739 $rm conftest*
6742 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6743 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6745 if test x"$lt_prog_compiler_pic_works" = xyes; then
6746 case $lt_prog_compiler_pic in
6747 "" | " "*) ;;
6748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6749 esac
6750 else
6751 lt_prog_compiler_pic=
6752 lt_prog_compiler_can_build_shared=no
6756 case "$host_os" in
6757 # For platforms which do not support PIC, -DPIC is meaningless:
6758 *djgpp*)
6759 lt_prog_compiler_pic=
6762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6764 esac
6766 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6767 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6768 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 lt_cv_prog_compiler_c_o=no
6772 $rm -r conftest 2>/dev/null
6773 mkdir conftest
6774 cd conftest
6775 mkdir out
6776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6778 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6779 # that will create temporary files in the current directory regardless of
6780 # the output directory. Thus, making CWD read-only will cause this test
6781 # to fail, enabling locking or at least warning the user not to do parallel
6782 # builds.
6783 chmod -w .
6785 lt_compiler_flag="-o out/conftest2.$ac_objext"
6786 # Insert the option either (1) after the last *FLAGS variable, or
6787 # (2) before a word containing "conftest.", or (3) at the end.
6788 # Note that $ac_compile itself does not contain backslashes and begins
6789 # with a dollar sign (not a hyphen), so the echo should work correctly.
6790 lt_compile=`echo "$ac_compile" | $SED \
6791 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6793 -e 's:$: $lt_compiler_flag:'`
6794 (eval echo "\"\$as_me:6794: $lt_compile\"" >&5)
6795 (eval "$lt_compile" 2>out/conftest.err)
6796 ac_status=$?
6797 cat out/conftest.err >&5
6798 echo "$as_me:6798: \$? = $ac_status" >&5
6799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6800 then
6801 # The compiler can only warn and ignore the option if not recognized
6802 # So say no if there are warnings
6803 if test ! -s out/conftest.err; then
6804 lt_cv_prog_compiler_c_o=yes
6807 chmod u+w .
6808 $rm conftest* out/*
6809 rmdir out
6810 cd ..
6811 rmdir conftest
6812 $rm conftest*
6815 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6819 hard_links="nottested"
6820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821 # do not overwrite the value of need_locks provided by the user
6822 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6824 hard_links=yes
6825 $rm conftest*
6826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827 touch conftest.a
6828 ln conftest.a conftest.b 2>&5 || hard_links=no
6829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830 echo "$as_me:$LINENO: result: $hard_links" >&5
6831 echo "${ECHO_T}$hard_links" >&6
6832 if test "$hard_links" = no; then
6833 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835 need_locks=warn
6837 else
6838 need_locks=no
6841 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6844 runpath_var=
6845 allow_undefined_flag=
6846 enable_shared_with_static_runtimes=no
6847 archive_cmds=
6848 archive_expsym_cmds=
6849 old_archive_From_new_cmds=
6850 old_archive_from_expsyms_cmds=
6851 export_dynamic_flag_spec=
6852 whole_archive_flag_spec=
6853 thread_safe_flag_spec=
6854 hardcode_libdir_flag_spec=
6855 hardcode_libdir_flag_spec_ld=
6856 hardcode_libdir_separator=
6857 hardcode_direct=no
6858 hardcode_minus_L=no
6859 hardcode_shlibpath_var=unsupported
6860 link_all_deplibs=unknown
6861 hardcode_automatic=no
6862 module_cmds=
6863 module_expsym_cmds=
6864 always_export_symbols=no
6865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866 # include_expsyms should be a list of space-separated symbols to be *always*
6867 # included in the symbol list
6868 include_expsyms=
6869 # exclude_expsyms can be an extended regexp of symbols to exclude
6870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872 # as well as any symbol that contains `d'.
6873 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875 # platforms (ab)use it in PIC code, but their linkers get confused if
6876 # the symbol is explicitly referenced. Since portable code cannot
6877 # rely on this symbol name, it's probably fine to never include it in
6878 # preloaded symbol tables.
6879 extract_expsyms_cmds=
6881 case $host_os in
6882 cygwin* | mingw* | pw32*)
6883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6884 # When not using gcc, we currently assume that we are using
6885 # Microsoft Visual C++.
6886 if test "$GCC" != yes; then
6887 with_gnu_ld=no
6890 openbsd*)
6891 with_gnu_ld=no
6893 esac
6895 ld_shlibs=yes
6896 if test "$with_gnu_ld" = yes; then
6897 # If archive_cmds runs LD, not CC, wlarc should be empty
6898 wlarc='${wl}'
6900 # See if GNU ld supports shared libraries.
6901 case $host_os in
6902 aix3* | aix4* | aix5*)
6903 # On AIX/PPC, the GNU linker is very broken
6904 if test "$host_cpu" != ia64; then
6905 ld_shlibs=no
6906 cat <<EOF 1>&2
6908 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6909 *** to be unable to reliably create shared libraries on AIX.
6910 *** Therefore, libtool is disabling shared libraries support. If you
6911 *** really care for shared libraries, you may want to modify your PATH
6912 *** so that a non-GNU linker is found, and then restart.
6918 amigaos*)
6919 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)'
6920 hardcode_libdir_flag_spec='-L$libdir'
6921 hardcode_minus_L=yes
6923 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6924 # that the semantics of dynamic libraries on AmigaOS, at least up
6925 # to version 4, is to share data among multiple programs linked
6926 # with the same dynamic library. Since this doesn't match the
6927 # behavior of shared libraries on other platforms, we can't use
6928 # them.
6929 ld_shlibs=no
6932 beos*)
6933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6934 allow_undefined_flag=unsupported
6935 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6936 # support --undefined. This deserves some investigation. FIXME
6937 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6938 else
6939 ld_shlibs=no
6943 cygwin* | mingw* | pw32*)
6944 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6945 # as there is no search path for DLLs.
6946 hardcode_libdir_flag_spec='-L$libdir'
6947 allow_undefined_flag=unsupported
6948 always_export_symbols=no
6949 enable_shared_with_static_runtimes=yes
6950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6952 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6954 # If the export-symbols file already is a .def file (1st line
6955 # is EXPORTS), use it as is; otherwise, prepend...
6956 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6957 cp $export_symbols $output_objdir/$soname.def;
6958 else
6959 echo EXPORTS > $output_objdir/$soname.def;
6960 cat $export_symbols >> $output_objdir/$soname.def;
6962 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6963 else
6964 ld_shlibs=no
6968 netbsd*)
6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6971 wlarc=
6972 else
6973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6978 solaris* | sysv5*)
6979 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6980 ld_shlibs=no
6981 cat <<EOF 1>&2
6983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6984 *** create shared libraries on Solaris systems. Therefore, libtool
6985 *** is disabling shared libraries support. We urge you to upgrade GNU
6986 *** binutils to release 2.9.1 or newer. Another option is to modify
6987 *** your PATH or compiler configuration so that the native linker is
6988 *** used, and then restart.
6991 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994 else
6995 ld_shlibs=no
6999 sunos4*)
7000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7001 wlarc=
7002 hardcode_direct=yes
7003 hardcode_shlibpath_var=no
7007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7010 else
7011 ld_shlibs=no
7014 esac
7016 if test "$ld_shlibs" = yes; then
7017 runpath_var=LD_RUN_PATH
7018 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7019 export_dynamic_flag_spec='${wl}--export-dynamic'
7020 # ancient GNU ld didn't support --whole-archive et. al.
7021 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7022 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7023 else
7024 whole_archive_flag_spec=
7027 else
7028 # PORTME fill in a description of your system's linker (not GNU ld)
7029 case $host_os in
7030 aix3*)
7031 allow_undefined_flag=unsupported
7032 always_export_symbols=yes
7033 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'
7034 # Note: this linker hardcodes the directories in LIBPATH if there
7035 # are no directories specified by -L.
7036 hardcode_minus_L=yes
7037 if test "$GCC" = yes && test -z "$link_static_flag"; then
7038 # Neither direct hardcoding nor static linking is supported with a
7039 # broken collect2.
7040 hardcode_direct=unsupported
7044 aix4* | aix5*)
7045 if test "$host_cpu" = ia64; then
7046 # On IA64, the linker does run time linking by default, so we don't
7047 # have to do anything special.
7048 aix_use_runtimelinking=no
7049 exp_sym_flag='-Bexport'
7050 no_entry_flag=""
7051 else
7052 # If we're using GNU nm, then we don't want the "-C" option.
7053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7054 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7055 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'
7056 else
7057 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'
7059 aix_use_runtimelinking=no
7061 # Test if we are trying to use run time linking or normal
7062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7063 # need to do runtime linking.
7064 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7065 for ld_flag in $LDFLAGS; do
7066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7067 aix_use_runtimelinking=yes
7068 break
7070 done
7071 esac
7073 exp_sym_flag='-bexport'
7074 no_entry_flag='-bnoentry'
7077 # When large executables or shared objects are built, AIX ld can
7078 # have problems creating the table of contents. If linking a library
7079 # or program results in "error TOC overflow" add -mminimal-toc to
7080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7083 archive_cmds=''
7084 hardcode_direct=yes
7085 hardcode_libdir_separator=':'
7086 link_all_deplibs=yes
7088 if test "$GCC" = yes; then
7089 case $host_os in aix4.012|aix4.012.*)
7090 # We only want to do this on AIX 4.2 and lower, the check
7091 # below for broken collect2 doesn't work under 4.3+
7092 collect2name=`${CC} -print-prog-name=collect2`
7093 if test -f "$collect2name" && \
7094 strings "$collect2name" | grep resolve_lib_name >/dev/null
7095 then
7096 # We have reworked collect2
7097 hardcode_direct=yes
7098 else
7099 # We have old collect2
7100 hardcode_direct=unsupported
7101 # It fails to find uninstalled libraries when the uninstalled
7102 # path is not listed in the libpath. Setting hardcode_minus_L
7103 # to unsupported forces relinking
7104 hardcode_minus_L=yes
7105 hardcode_libdir_flag_spec='-L$libdir'
7106 hardcode_libdir_separator=
7108 esac
7109 shared_flag='-shared'
7110 else
7111 # not using gcc
7112 if test "$host_cpu" = ia64; then
7113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7114 # chokes on -Wl,-G. The following line is correct:
7115 shared_flag='-G'
7116 else
7117 if test "$aix_use_runtimelinking" = yes; then
7118 shared_flag='${wl}-G'
7119 else
7120 shared_flag='${wl}-bM:SRE'
7125 # It seems that -bexpall does not export symbols beginning with
7126 # underscore (_), so it is better to generate a list of symbols to export.
7127 always_export_symbols=yes
7128 if test "$aix_use_runtimelinking" = yes; then
7129 # Warning - without using the other runtime loading flags (-brtl),
7130 # -berok will link without error, but may produce a broken library.
7131 allow_undefined_flag='-berok'
7132 # Determine the default libpath from the value encoded in an empty executable.
7133 cat >conftest.$ac_ext <<_ACEOF
7134 #line $LINENO "configure"
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7142 main ()
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7164 # Check for a 64-bit object if we didn't find anything.
7165 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; }
7166 }'`; fi
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7176 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"
7177 else
7178 if test "$host_cpu" = ia64; then
7179 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7180 allow_undefined_flag="-z nodefs"
7181 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"
7182 else
7183 # Determine the default libpath from the value encoded in an empty executable.
7184 cat >conftest.$ac_ext <<_ACEOF
7185 #line $LINENO "configure"
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7193 main ()
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7202 (eval $ac_link) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7215 # Check for a 64-bit object if we didn't find anything.
7216 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; }
7217 }'`; fi
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7227 # Warning - without using the other run time loading flags,
7228 # -berok will link without error, but may produce a broken library.
7229 no_undefined_flag=' ${wl}-bernotok'
7230 allow_undefined_flag=' ${wl}-berok'
7231 # -bexpall does not export symbols beginning with underscore (_)
7232 always_export_symbols=yes
7233 # Exported symbols can be pulled into shared objects from archives
7234 whole_archive_flag_spec=' '
7235 archive_cmds_need_lc=yes
7236 # This is similar to how AIX traditionally builds it's shared libraries.
7237 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'
7242 amigaos*)
7243 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)'
7244 hardcode_libdir_flag_spec='-L$libdir'
7245 hardcode_minus_L=yes
7246 # see comment about different semantics on the GNU ld section
7247 ld_shlibs=no
7250 bsdi4*)
7251 export_dynamic_flag_spec=-rdynamic
7254 cygwin* | mingw* | pw32*)
7255 # When not using gcc, we currently assume that we are using
7256 # Microsoft Visual C++.
7257 # hardcode_libdir_flag_spec is actually meaningless, as there is
7258 # no search path for DLLs.
7259 hardcode_libdir_flag_spec=' '
7260 allow_undefined_flag=unsupported
7261 # Tell ltmain to make .lib files, not .a files.
7262 libext=lib
7263 # Tell ltmain to make .dll files, not .so files.
7264 shrext=".dll"
7265 # FIXME: Setting linknames here is a bad hack.
7266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7267 # The linker will automatically build a .lib file if we build a DLL.
7268 old_archive_From_new_cmds='true'
7269 # FIXME: Should let the user specify the lib program.
7270 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7271 fix_srcfile_path='`cygpath -w "$srcfile"`'
7272 enable_shared_with_static_runtimes=yes
7275 darwin* | rhapsody*)
7276 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7277 archive_cmds_need_lc=no
7278 case "$host_os" in
7279 rhapsody* | darwin1.[012])
7280 allow_undefined_flag='-undefined suppress'
7282 *) # Darwin 1.3 on
7283 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7285 esac
7286 # FIXME: Relying on posixy $() will cause problems for
7287 # cross-compilation, but unfortunately the echo tests do not
7288 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7289 # `"' quotes if we put them in here... so don't!
7290 lt_int_apple_cc_single_mod=no
7291 output_verbose_link_cmd='echo'
7292 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7293 lt_int_apple_cc_single_mod=yes
7295 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7296 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7297 else
7298 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7300 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7301 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7302 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7303 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7304 else
7305 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7307 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7308 hardcode_direct=no
7309 hardcode_automatic=yes
7310 hardcode_shlibpath_var=unsupported
7311 whole_archive_flag_spec='-all_load $convenience'
7312 link_all_deplibs=yes
7316 dgux*)
7317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318 hardcode_libdir_flag_spec='-L$libdir'
7319 hardcode_shlibpath_var=no
7322 freebsd1*)
7323 ld_shlibs=no
7326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7327 # support. Future versions do this automatically, but an explicit c++rt0.o
7328 # does not break anything, and helps significantly (at the cost of a little
7329 # extra space).
7330 freebsd2.2*)
7331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7332 hardcode_libdir_flag_spec='-R$libdir'
7333 hardcode_direct=yes
7334 hardcode_shlibpath_var=no
7337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7338 freebsd2*)
7339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7340 hardcode_direct=yes
7341 hardcode_minus_L=yes
7342 hardcode_shlibpath_var=no
7345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7346 freebsd*)
7347 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7348 hardcode_libdir_flag_spec='-R$libdir'
7349 hardcode_direct=yes
7350 hardcode_shlibpath_var=no
7353 hpux9*)
7354 if test "$GCC" = yes; then
7355 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'
7356 else
7357 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'
7359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7360 hardcode_libdir_separator=:
7361 hardcode_direct=yes
7363 # hardcode_minus_L: Not really in the search PATH,
7364 # but as the default location of the library.
7365 hardcode_minus_L=yes
7366 export_dynamic_flag_spec='${wl}-E'
7369 hpux10* | hpux11*)
7370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7371 case "$host_cpu" in
7372 hppa*64*|ia64*)
7373 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7378 esac
7379 else
7380 case "$host_cpu" in
7381 hppa*64*|ia64*)
7382 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7387 esac
7389 if test "$with_gnu_ld" = no; then
7390 case "$host_cpu" in
7391 hppa*64*)
7392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7393 hardcode_libdir_flag_spec_ld='+b $libdir'
7394 hardcode_libdir_separator=:
7395 hardcode_direct=no
7396 hardcode_shlibpath_var=no
7398 ia64*)
7399 hardcode_libdir_flag_spec='-L$libdir'
7400 hardcode_direct=no
7401 hardcode_shlibpath_var=no
7403 # hardcode_minus_L: Not really in the search PATH,
7404 # but as the default location of the library.
7405 hardcode_minus_L=yes
7408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7409 hardcode_libdir_separator=:
7410 hardcode_direct=yes
7411 export_dynamic_flag_spec='${wl}-E'
7413 # hardcode_minus_L: Not really in the search PATH,
7414 # but as the default location of the library.
7415 hardcode_minus_L=yes
7417 esac
7421 irix5* | irix6* | nonstopux*)
7422 if test "$GCC" = yes; then
7423 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'
7424 else
7425 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'
7426 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7429 hardcode_libdir_separator=:
7430 link_all_deplibs=yes
7433 netbsd*)
7434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7436 else
7437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7439 hardcode_libdir_flag_spec='-R$libdir'
7440 hardcode_direct=yes
7441 hardcode_shlibpath_var=no
7444 newsos6)
7445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7446 hardcode_direct=yes
7447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7448 hardcode_libdir_separator=:
7449 hardcode_shlibpath_var=no
7452 openbsd*)
7453 hardcode_direct=yes
7454 hardcode_shlibpath_var=no
7455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7458 export_dynamic_flag_spec='${wl}-E'
7459 else
7460 case $host_os in
7461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7463 hardcode_libdir_flag_spec='-R$libdir'
7466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7469 esac
7473 os2*)
7474 hardcode_libdir_flag_spec='-L$libdir'
7475 hardcode_minus_L=yes
7476 allow_undefined_flag=unsupported
7477 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'
7478 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7481 osf3*)
7482 if test "$GCC" = yes; then
7483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7484 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'
7485 else
7486 allow_undefined_flag=' -expect_unresolved \*'
7487 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'
7489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7490 hardcode_libdir_separator=:
7493 osf4* | osf5*) # as osf3* with the addition of -msym flag
7494 if test "$GCC" = yes; then
7495 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7496 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'
7497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7498 else
7499 allow_undefined_flag=' -expect_unresolved \*'
7500 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'
7501 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7502 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7504 # Both c and cxx compiler support -rpath directly
7505 hardcode_libdir_flag_spec='-rpath $libdir'
7507 hardcode_libdir_separator=:
7510 sco3.2v5*)
7511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512 hardcode_shlibpath_var=no
7513 export_dynamic_flag_spec='${wl}-Bexport'
7514 runpath_var=LD_RUN_PATH
7515 hardcode_runpath_var=yes
7518 solaris*)
7519 no_undefined_flag=' -z text'
7520 if test "$GCC" = yes; then
7521 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7522 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7523 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7524 else
7525 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7529 hardcode_libdir_flag_spec='-R$libdir'
7530 hardcode_shlibpath_var=no
7531 case $host_os in
7532 solaris2.[0-5] | solaris2.[0-5].*) ;;
7533 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7535 esac
7536 link_all_deplibs=yes
7539 sunos4*)
7540 if test "x$host_vendor" = xsequent; then
7541 # Use $CC to link under sequent, because it throws in some extra .o
7542 # files that make .init and .fini sections work.
7543 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7544 else
7545 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 hardcode_direct=yes
7549 hardcode_minus_L=yes
7550 hardcode_shlibpath_var=no
7553 sysv4)
7554 case $host_vendor in
7555 sni)
7556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7557 hardcode_direct=yes # is this really true???
7559 siemens)
7560 ## LD is ld it makes a PLAMLIB
7561 ## CC just makes a GrossModule.
7562 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7563 reload_cmds='$CC -r -o $output$reload_objs'
7564 hardcode_direct=no
7566 motorola)
7567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7568 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7570 esac
7571 runpath_var='LD_RUN_PATH'
7572 hardcode_shlibpath_var=no
7575 sysv4.3*)
7576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7577 hardcode_shlibpath_var=no
7578 export_dynamic_flag_spec='-Bexport'
7581 sysv4*MP*)
7582 if test -d /usr/nec; then
7583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_shlibpath_var=no
7585 runpath_var=LD_RUN_PATH
7586 hardcode_runpath_var=yes
7587 ld_shlibs=yes
7591 sysv4.2uw2*)
7592 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7593 hardcode_direct=yes
7594 hardcode_minus_L=no
7595 hardcode_shlibpath_var=no
7596 hardcode_runpath_var=yes
7597 runpath_var=LD_RUN_PATH
7600 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7601 no_undefined_flag='${wl}-z ${wl}text'
7602 if test "$GCC" = yes; then
7603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7604 else
7605 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7607 runpath_var='LD_RUN_PATH'
7608 hardcode_shlibpath_var=no
7611 sysv5*)
7612 no_undefined_flag=' -z text'
7613 # $CC -shared without GNU ld will not create a library from C++
7614 # object files and a static libstdc++, better avoid it by now
7615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7616 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7618 hardcode_libdir_flag_spec=
7619 hardcode_shlibpath_var=no
7620 runpath_var='LD_RUN_PATH'
7623 uts4*)
7624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625 hardcode_libdir_flag_spec='-L$libdir'
7626 hardcode_shlibpath_var=no
7630 ld_shlibs=no
7632 esac
7635 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7636 echo "${ECHO_T}$ld_shlibs" >&6
7637 test "$ld_shlibs" = no && can_build_shared=no
7639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7640 if test "$GCC" = yes; then
7641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7645 # Do we need to explicitly link libc?
7647 case "x$archive_cmds_need_lc" in
7648 x|xyes)
7649 # Assume -lc should be added
7650 archive_cmds_need_lc=yes
7652 if test "$enable_shared" = yes && test "$GCC" = yes; then
7653 case $archive_cmds in
7654 *'~'*)
7655 # FIXME: we may have to deal with multi-command sequences.
7657 '$CC '*)
7658 # Test whether the compiler implicitly links with -lc since on some
7659 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7660 # to ld, don't add -lc before -lgcc.
7661 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7663 $rm conftest*
7664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } 2>conftest.err; then
7671 soname=conftest
7672 lib=conftest
7673 libobjs=conftest.$ac_objext
7674 deplibs=
7675 wl=$lt_prog_compiler_wl
7676 compiler_flags=-v
7677 linker_flags=-v
7678 verstring=
7679 output_objdir=.
7680 libname=conftest
7681 lt_save_allow_undefined_flag=$allow_undefined_flag
7682 allow_undefined_flag=
7683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7684 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }
7688 then
7689 archive_cmds_need_lc=no
7690 else
7691 archive_cmds_need_lc=yes
7693 allow_undefined_flag=$lt_save_allow_undefined_flag
7694 else
7695 cat conftest.err 1>&5
7697 $rm conftest*
7698 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7699 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7701 esac
7704 esac
7706 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7707 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7708 hardcode_action=
7709 if test -n "$hardcode_libdir_flag_spec" || \
7710 test -n "$runpath_var " || \
7711 test "X$hardcode_automatic"="Xyes" ; then
7713 # We can hardcode non-existant directories.
7714 if test "$hardcode_direct" != no &&
7715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7716 # have to relink, otherwise we might link with an installed library
7717 # when we should be linking with a yet-to-be-installed one
7718 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7719 test "$hardcode_minus_L" != no; then
7720 # Linking always hardcodes the temporary library directory.
7721 hardcode_action=relink
7722 else
7723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7724 hardcode_action=immediate
7726 else
7727 # We cannot hardcode anything, or else we can only hardcode existing
7728 # directories.
7729 hardcode_action=unsupported
7731 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7732 echo "${ECHO_T}$hardcode_action" >&6
7734 if test "$hardcode_action" = relink; then
7735 # Fast installation is not supported
7736 enable_fast_install=no
7737 elif test "$shlibpath_overrides_runpath" = yes ||
7738 test "$enable_shared" = no; then
7739 # Fast installation is not necessary
7740 enable_fast_install=needless
7743 striplib=
7744 old_striplib=
7745 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7746 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7747 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7748 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7749 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7750 echo "$as_me:$LINENO: result: yes" >&5
7751 echo "${ECHO_T}yes" >&6
7752 else
7753 # FIXME - insert some real tests, host_os isn't really good enough
7754 case $host_os in
7755 darwin*)
7756 if test -n "$STRIP" ; then
7757 striplib="$STRIP -x"
7758 echo "$as_me:$LINENO: result: yes" >&5
7759 echo "${ECHO_T}yes" >&6
7760 else
7761 echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7769 esac
7772 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7774 library_names_spec=
7775 libname_spec='lib$name'
7776 soname_spec=
7777 shrext=".so"
7778 postinstall_cmds=
7779 postuninstall_cmds=
7780 finish_cmds=
7781 finish_eval=
7782 shlibpath_var=
7783 shlibpath_overrides_runpath=unknown
7784 version_type=none
7785 dynamic_linker="$host_os ld.so"
7786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7787 if test "$GCC" = yes; then
7788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7790 # if the path contains ";" then we assume it to be the separator
7791 # otherwise default to the standard path separator (i.e. ":") - it is
7792 # assumed that no part of a normal pathname contains ";" but that should
7793 # okay in the real world where ";" in dirpaths is itself problematic.
7794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7795 else
7796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7798 else
7799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7801 need_lib_prefix=unknown
7802 hardcode_into_libs=no
7804 # when you set need_version to no, make sure it does not cause -set_version
7805 # flags to be left without arguments
7806 need_version=unknown
7808 case $host_os in
7809 aix3*)
7810 version_type=linux
7811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7812 shlibpath_var=LIBPATH
7814 # AIX 3 has no versioning support, so we append a major version to the name.
7815 soname_spec='${libname}${release}${shared_ext}$major'
7818 aix4* | aix5*)
7819 version_type=linux
7820 need_lib_prefix=no
7821 need_version=no
7822 hardcode_into_libs=yes
7823 if test "$host_cpu" = ia64; then
7824 # AIX 5 supports IA64
7825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7826 shlibpath_var=LD_LIBRARY_PATH
7827 else
7828 # With GCC up to 2.95.x, collect2 would create an import file
7829 # for dependence libraries. The import file would start with
7830 # the line `#! .'. This would cause the generated library to
7831 # depend on `.', always an invalid library. This was fixed in
7832 # development snapshots of GCC prior to 3.0.
7833 case $host_os in
7834 aix4 | aix4.[01] | aix4.[01].*)
7835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7836 echo ' yes '
7837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7839 else
7840 can_build_shared=no
7843 esac
7844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7845 # soname into executable. Probably we can add versioning support to
7846 # collect2, so additional links can be useful in future.
7847 if test "$aix_use_runtimelinking" = yes; then
7848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7849 # instead of lib<name>.a to let people know that these are not
7850 # typical AIX shared libraries.
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7852 else
7853 # We preserve .a as extension for shared libraries through AIX4.2
7854 # and later when we are not doing run time linking.
7855 library_names_spec='${libname}${release}.a $libname.a'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7858 shlibpath_var=LIBPATH
7862 amigaos*)
7863 library_names_spec='$libname.ixlibrary $libname.a'
7864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7865 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'
7868 beos*)
7869 library_names_spec='${libname}${shared_ext}'
7870 dynamic_linker="$host_os ld.so"
7871 shlibpath_var=LIBRARY_PATH
7874 bsdi4*)
7875 version_type=linux
7876 need_version=no
7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
7879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7883 # the default ld.so.conf also contains /usr/contrib/lib and
7884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7885 # libtool to hard-code these into programs
7888 cygwin* | mingw* | pw32*)
7889 version_type=windows
7890 shrext=".dll"
7891 need_version=no
7892 need_lib_prefix=no
7894 case $GCC,$host_os in
7895 yes,cygwin* | yes,mingw* | yes,pw32*)
7896 library_names_spec='$libname.dll.a'
7897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7898 postinstall_cmds='base_file=`basename \${file}`~
7899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7900 dldir=$destdir/`dirname \$dlpath`~
7901 test -d \$dldir || mkdir -p \$dldir~
7902 $install_prog $dir/$dlname \$dldir/$dlname'
7903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7904 dlpath=$dir/\$dldll~
7905 $rm \$dlpath'
7906 shlibpath_overrides_runpath=yes
7908 case $host_os in
7909 cygwin*)
7910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7912 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7914 mingw*)
7915 # MinGW DLLs use traditional 'lib' prefix
7916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7919 # It is most probably a Windows format PATH printed by
7920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7921 # path with ; separators, and with drive letters. We can handle the
7922 # drive letters (cygwin fileutils understands them), so leave them,
7923 # especially as we might pass files found there to a mingw objdump,
7924 # which wouldn't understand a cygwinified path. Ahh.
7925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7926 else
7927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7930 pw32*)
7931 # pw32 DLLs use 'pw' prefix rather than 'lib'
7932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7934 esac
7938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7940 esac
7941 dynamic_linker='Win32 ld.exe'
7942 # FIXME: first we should search . and the directory the executable is in
7943 shlibpath_var=PATH
7946 darwin* | rhapsody*)
7947 dynamic_linker="$host_os dyld"
7948 version_type=darwin
7949 need_lib_prefix=no
7950 need_version=no
7951 # FIXME: Relying on posixy $() will cause problems for
7952 # cross-compilation, but unfortunately the echo tests do not
7953 # yet detect zsh echo's removal of \ escapes.
7954 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7955 soname_spec='${libname}${release}${major}$shared_ext'
7956 shlibpath_overrides_runpath=yes
7957 shlibpath_var=DYLD_LIBRARY_PATH
7958 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7959 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7960 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7961 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"`
7963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7966 dgux*)
7967 version_type=linux
7968 need_lib_prefix=no
7969 need_version=no
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7971 soname_spec='${libname}${release}${shared_ext}$major'
7972 shlibpath_var=LD_LIBRARY_PATH
7975 freebsd1*)
7976 dynamic_linker=no
7979 freebsd*)
7980 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7981 version_type=freebsd-$objformat
7982 case $version_type in
7983 freebsd-elf*)
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7985 need_version=no
7986 need_lib_prefix=no
7988 freebsd-*)
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7990 need_version=yes
7992 esac
7993 shlibpath_var=LD_LIBRARY_PATH
7994 case $host_os in
7995 freebsd2*)
7996 shlibpath_overrides_runpath=yes
7998 freebsd3.01* | freebsdelf3.01*)
7999 shlibpath_overrides_runpath=yes
8000 hardcode_into_libs=yes
8002 *) # from 3.2 on
8003 shlibpath_overrides_runpath=no
8004 hardcode_into_libs=yes
8006 esac
8009 gnu*)
8010 version_type=linux
8011 need_lib_prefix=no
8012 need_version=no
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 hardcode_into_libs=yes
8019 hpux9* | hpux10* | hpux11*)
8020 # Give a soname corresponding to the major version so that dld.sl refuses to
8021 # link against other versions.
8022 version_type=sunos
8023 need_lib_prefix=no
8024 need_version=no
8025 case "$host_cpu" in
8026 ia64*)
8027 shrext='.so'
8028 hardcode_into_libs=yes
8029 dynamic_linker="$host_os dld.so"
8030 shlibpath_var=LD_LIBRARY_PATH
8031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 if test "X$HPUX_IA64_MODE" = X32; then
8035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8036 else
8037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8041 hppa*64*)
8042 shrext='.sl'
8043 hardcode_into_libs=yes
8044 dynamic_linker="$host_os dld.sl"
8045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8053 shrext='.sl'
8054 dynamic_linker="$host_os dld.sl"
8055 shlibpath_var=SHLIB_PATH
8056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 soname_spec='${libname}${release}${shared_ext}$major'
8060 esac
8061 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8062 postinstall_cmds='chmod 555 $lib'
8065 irix5* | irix6* | nonstopux*)
8066 case $host_os in
8067 nonstopux*) version_type=nonstopux ;;
8069 if test "$lt_cv_prog_gnu_ld" = yes; then
8070 version_type=linux
8071 else
8072 version_type=irix
8073 fi ;;
8074 esac
8075 need_lib_prefix=no
8076 need_version=no
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8079 case $host_os in
8080 irix5* | nonstopux*)
8081 libsuff= shlibsuff=
8084 case $LD in # libtool.m4 will add one of these switches to LD
8085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8086 libsuff= shlibsuff= libmagic=32-bit;;
8087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8088 libsuff=32 shlibsuff=N32 libmagic=N32;;
8089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8091 *) libsuff= shlibsuff= libmagic=never-match;;
8092 esac
8094 esac
8095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8096 shlibpath_overrides_runpath=no
8097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8099 hardcode_into_libs=yes
8102 # No shared lib support for Linux oldld, aout, or coff.
8103 linux*oldld* | linux*aout* | linux*coff*)
8104 dynamic_linker=no
8107 # This must be Linux ELF.
8108 linux*)
8109 version_type=linux
8110 need_lib_prefix=no
8111 need_version=no
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8115 shlibpath_var=LD_LIBRARY_PATH
8116 shlibpath_overrides_runpath=no
8117 # This implies no fast_install, which is unacceptable.
8118 # Some rework will be needed to allow for fast_install
8119 # before this can be enabled.
8120 hardcode_into_libs=yes
8122 # We used to test for /lib/ld.so.1 and disable shared libraries on
8123 # powerpc, because MkLinux only supported shared libraries with the
8124 # GNU dynamic linker. Since this was broken with cross compilers,
8125 # most powerpc-linux boxes support dynamic linking these days and
8126 # people can always --disable-shared, the test was removed, and we
8127 # assume the GNU/Linux dynamic linker is in use.
8128 dynamic_linker='GNU/Linux ld.so'
8131 netbsd*)
8132 version_type=sunos
8133 need_lib_prefix=no
8134 need_version=no
8135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8138 dynamic_linker='NetBSD (a.out) ld.so'
8139 else
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 dynamic_linker='NetBSD ld.elf_so'
8144 shlibpath_var=LD_LIBRARY_PATH
8145 shlibpath_overrides_runpath=yes
8146 hardcode_into_libs=yes
8149 newsos6)
8150 version_type=linux
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 shlibpath_var=LD_LIBRARY_PATH
8153 shlibpath_overrides_runpath=yes
8156 nto-qnx)
8157 version_type=linux
8158 need_lib_prefix=no
8159 need_version=no
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 soname_spec='${libname}${release}${shared_ext}$major'
8162 shlibpath_var=LD_LIBRARY_PATH
8163 shlibpath_overrides_runpath=yes
8166 openbsd*)
8167 version_type=sunos
8168 need_lib_prefix=no
8169 need_version=no
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8174 case $host_os in
8175 openbsd2.[89] | openbsd2.[89].*)
8176 shlibpath_overrides_runpath=no
8179 shlibpath_overrides_runpath=yes
8181 esac
8182 else
8183 shlibpath_overrides_runpath=yes
8187 os2*)
8188 libname_spec='$name'
8189 shrext=".dll"
8190 need_lib_prefix=no
8191 library_names_spec='$libname${shared_ext} $libname.a'
8192 dynamic_linker='OS/2 ld.exe'
8193 shlibpath_var=LIBPATH
8196 osf3* | osf4* | osf5*)
8197 version_type=osf
8198 need_lib_prefix=no
8199 need_version=no
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8202 shlibpath_var=LD_LIBRARY_PATH
8203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8207 sco3.2v5*)
8208 version_type=osf
8209 soname_spec='${libname}${release}${shared_ext}$major'
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211 shlibpath_var=LD_LIBRARY_PATH
8214 solaris*)
8215 version_type=linux
8216 need_lib_prefix=no
8217 need_version=no
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8219 soname_spec='${libname}${release}${shared_ext}$major'
8220 shlibpath_var=LD_LIBRARY_PATH
8221 shlibpath_overrides_runpath=yes
8222 hardcode_into_libs=yes
8223 # ldd complains unless libraries are executable
8224 postinstall_cmds='chmod +x $lib'
8227 sunos4*)
8228 version_type=sunos
8229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=yes
8233 if test "$with_gnu_ld" = yes; then
8234 need_lib_prefix=no
8236 need_version=yes
8239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8240 version_type=linux
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8242 soname_spec='${libname}${release}${shared_ext}$major'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 case $host_vendor in
8245 sni)
8246 shlibpath_overrides_runpath=no
8247 need_lib_prefix=no
8248 export_dynamic_flag_spec='${wl}-Blargedynsym'
8249 runpath_var=LD_RUN_PATH
8251 siemens)
8252 need_lib_prefix=no
8254 motorola)
8255 need_lib_prefix=no
8256 need_version=no
8257 shlibpath_overrides_runpath=no
8258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8260 esac
8263 sysv4*MP*)
8264 if test -d /usr/nec ;then
8265 version_type=linux
8266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8267 soname_spec='$libname${shared_ext}.$major'
8268 shlibpath_var=LD_LIBRARY_PATH
8272 uts4*)
8273 version_type=linux
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 shlibpath_var=LD_LIBRARY_PATH
8280 dynamic_linker=no
8282 esac
8283 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8284 echo "${ECHO_T}$dynamic_linker" >&6
8285 test "$dynamic_linker" = no && can_build_shared=no
8287 if test "x$enable_dlopen" != xyes; then
8288 enable_dlopen=unknown
8289 enable_dlopen_self=unknown
8290 enable_dlopen_self_static=unknown
8291 else
8292 lt_cv_dlopen=no
8293 lt_cv_dlopen_libs=
8295 case $host_os in
8296 beos*)
8297 lt_cv_dlopen="load_add_on"
8298 lt_cv_dlopen_libs=
8299 lt_cv_dlopen_self=yes
8302 mingw* | pw32*)
8303 lt_cv_dlopen="LoadLibrary"
8304 lt_cv_dlopen_libs=
8307 cygwin*)
8308 lt_cv_dlopen="dlopen"
8309 lt_cv_dlopen_libs=
8312 darwin*)
8313 # if libdl is installed we need to link against it
8314 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8315 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 ac_check_lib_save_LIBS=$LIBS
8320 LIBS="-ldl $LIBS"
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8323 /* confdefs.h. */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8329 /* Override any gcc2 internal prototype to avoid an error. */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8335 char dlopen ();
8337 main ()
8339 dlopen ();
8341 return 0;
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_lib_dl_dlopen=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 ac_cv_lib_dl_dlopen=no
8363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8364 LIBS=$ac_check_lib_save_LIBS
8366 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8367 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8368 if test $ac_cv_lib_dl_dlopen = yes; then
8369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8370 else
8372 lt_cv_dlopen="dyld"
8373 lt_cv_dlopen_libs=
8374 lt_cv_dlopen_self=yes
8381 echo "$as_me:$LINENO: checking for shl_load" >&5
8382 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8383 if test "${ac_cv_func_shl_load+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 /* System header to define __stub macros and hopefully few prototypes,
8394 which can conflict with char shl_load (); below.
8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8396 <limits.h> exists even on freestanding compilers. */
8397 #ifdef __STDC__
8398 # include <limits.h>
8399 #else
8400 # include <assert.h>
8401 #endif
8402 /* Override any gcc2 internal prototype to avoid an error. */
8403 #ifdef __cplusplus
8404 extern "C"
8406 #endif
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8409 char shl_load ();
8410 /* The GNU C library defines this for functions which it implements
8411 to always fail with ENOSYS. Some functions are actually named
8412 something starting with __ and the normal name is an alias. */
8413 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8414 choke me
8415 #else
8416 char (*f) () = shl_load;
8417 #endif
8418 #ifdef __cplusplus
8420 #endif
8423 main ()
8425 return f != shl_load;
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_func_shl_load=yes
8443 else
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_func_shl_load=no
8449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8451 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8452 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8453 if test $ac_cv_func_shl_load = yes; then
8454 lt_cv_dlopen="shl_load"
8455 else
8456 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8457 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8458 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461 ac_check_lib_save_LIBS=$LIBS
8462 LIBS="-ldld $LIBS"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8471 /* Override any gcc2 internal prototype to avoid an error. */
8472 #ifdef __cplusplus
8473 extern "C"
8474 #endif
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char shl_load ();
8479 main ()
8481 shl_load ();
8483 return 0;
8485 _ACEOF
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488 (eval $ac_link) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_lib_dld_shl_load=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_lib_dld_shl_load=no
8505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8506 LIBS=$ac_check_lib_save_LIBS
8508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8509 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8510 if test $ac_cv_lib_dld_shl_load = yes; then
8511 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8512 else
8513 echo "$as_me:$LINENO: checking for dlopen" >&5
8514 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8515 if test "${ac_cv_func_dlopen+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 /* System header to define __stub macros and hopefully few prototypes,
8526 which can conflict with char dlopen (); below.
8527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8528 <limits.h> exists even on freestanding compilers. */
8529 #ifdef __STDC__
8530 # include <limits.h>
8531 #else
8532 # include <assert.h>
8533 #endif
8534 /* Override any gcc2 internal prototype to avoid an error. */
8535 #ifdef __cplusplus
8536 extern "C"
8538 #endif
8539 /* We use char because int might match the return type of a gcc2
8540 builtin and then its argument prototype would still apply. */
8541 char dlopen ();
8542 /* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8546 choke me
8547 #else
8548 char (*f) () = dlopen;
8549 #endif
8550 #ifdef __cplusplus
8552 #endif
8555 main ()
8557 return f != dlopen;
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_func_dlopen=yes
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_cv_func_dlopen=no
8581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8584 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8585 if test $ac_cv_func_dlopen = yes; then
8586 lt_cv_dlopen="dlopen"
8587 else
8588 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8589 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 ac_check_lib_save_LIBS=$LIBS
8594 LIBS="-ldl $LIBS"
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any gcc2 internal prototype to avoid an error. */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609 char dlopen ();
8611 main ()
8613 dlopen ();
8615 return 0;
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_lib_dl_dlopen=yes
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_lib_dl_dlopen=no
8637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8642 if test $ac_cv_lib_dl_dlopen = yes; then
8643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8644 else
8645 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-lsvld $LIBS"
8652 cat >conftest.$ac_ext <<_ACEOF
8653 #line $LINENO "configure"
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char dlopen ();
8668 main ()
8670 dlopen ();
8672 return 0;
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_cv_lib_svld_dlopen=yes
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 ac_cv_lib_svld_dlopen=no
8694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8699 if test $ac_cv_lib_svld_dlopen = yes; then
8700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8701 else
8702 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 ac_check_lib_save_LIBS=$LIBS
8708 LIBS="-ldld $LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line $LINENO "configure"
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char dld_link ();
8725 main ()
8727 dld_link ();
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_lib_dld_dld_link=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 ac_cv_lib_dld_dld_link=no
8751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8752 LIBS=$ac_check_lib_save_LIBS
8754 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8756 if test $ac_cv_lib_dld_dld_link = yes; then
8757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8776 esac
8778 if test "x$lt_cv_dlopen" != xno; then
8779 enable_dlopen=yes
8780 else
8781 enable_dlopen=no
8784 case $lt_cv_dlopen in
8785 dlopen)
8786 save_CPPFLAGS="$CPPFLAGS"
8787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8789 save_LDFLAGS="$LDFLAGS"
8790 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8792 save_LIBS="$LIBS"
8793 LIBS="$lt_cv_dlopen_libs $LIBS"
8795 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8797 if test "${lt_cv_dlopen_self+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 if test "$cross_compiling" = yes; then :
8801 lt_cv_dlopen_self=cross
8802 else
8803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8804 lt_status=$lt_dlunknown
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8806 "configure"
8807 #include "confdefs.h"
8809 #if HAVE_DLFCN_H
8810 #include <dlfcn.h>
8811 #endif
8813 #include <stdio.h>
8815 #ifdef RTLD_GLOBAL
8816 # define LT_DLGLOBAL RTLD_GLOBAL
8817 #else
8818 # ifdef DL_GLOBAL
8819 # define LT_DLGLOBAL DL_GLOBAL
8820 # else
8821 # define LT_DLGLOBAL 0
8822 # endif
8823 #endif
8825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8826 find out it does not work in some platform. */
8827 #ifndef LT_DLLAZY_OR_NOW
8828 # ifdef RTLD_LAZY
8829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8830 # else
8831 # ifdef DL_LAZY
8832 # define LT_DLLAZY_OR_NOW DL_LAZY
8833 # else
8834 # ifdef RTLD_NOW
8835 # define LT_DLLAZY_OR_NOW RTLD_NOW
8836 # else
8837 # ifdef DL_NOW
8838 # define LT_DLLAZY_OR_NOW DL_NOW
8839 # else
8840 # define LT_DLLAZY_OR_NOW 0
8841 # endif
8842 # endif
8843 # endif
8844 # endif
8845 #endif
8847 #ifdef __cplusplus
8848 extern "C" void exit (int);
8849 #endif
8851 void fnord() { int i=42;}
8852 int main ()
8854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8855 int status = $lt_dlunknown;
8857 if (self)
8859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8861 /* dlclose (self); */
8864 exit (status);
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8872 (./conftest; exit; ) 2>/dev/null
8873 lt_status=$?
8874 case x$lt_status in
8875 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8876 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8877 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8878 esac
8879 else :
8880 # compilation failed
8881 lt_cv_dlopen_self=no
8884 rm -fr conftest*
8888 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8889 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8891 if test "x$lt_cv_dlopen_self" = xyes; then
8892 LDFLAGS="$LDFLAGS $link_static_flag"
8893 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8894 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8895 if test "${lt_cv_dlopen_self_static+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 if test "$cross_compiling" = yes; then :
8899 lt_cv_dlopen_self_static=cross
8900 else
8901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8902 lt_status=$lt_dlunknown
8903 cat > conftest.$ac_ext <<EOF
8904 #line 8904 "configure"
8905 #include "confdefs.h"
8907 #if HAVE_DLFCN_H
8908 #include <dlfcn.h>
8909 #endif
8911 #include <stdio.h>
8913 #ifdef RTLD_GLOBAL
8914 # define LT_DLGLOBAL RTLD_GLOBAL
8915 #else
8916 # ifdef DL_GLOBAL
8917 # define LT_DLGLOBAL DL_GLOBAL
8918 # else
8919 # define LT_DLGLOBAL 0
8920 # endif
8921 #endif
8923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8924 find out it does not work in some platform. */
8925 #ifndef LT_DLLAZY_OR_NOW
8926 # ifdef RTLD_LAZY
8927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8928 # else
8929 # ifdef DL_LAZY
8930 # define LT_DLLAZY_OR_NOW DL_LAZY
8931 # else
8932 # ifdef RTLD_NOW
8933 # define LT_DLLAZY_OR_NOW RTLD_NOW
8934 # else
8935 # ifdef DL_NOW
8936 # define LT_DLLAZY_OR_NOW DL_NOW
8937 # else
8938 # define LT_DLLAZY_OR_NOW 0
8939 # endif
8940 # endif
8941 # endif
8942 # endif
8943 #endif
8945 #ifdef __cplusplus
8946 extern "C" void exit (int);
8947 #endif
8949 void fnord() { int i=42;}
8950 int main ()
8952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8953 int status = $lt_dlunknown;
8955 if (self)
8957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8958 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8959 /* dlclose (self); */
8962 exit (status);
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8970 (./conftest; exit; ) 2>/dev/null
8971 lt_status=$?
8972 case x$lt_status in
8973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8975 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8976 esac
8977 else :
8978 # compilation failed
8979 lt_cv_dlopen_self_static=no
8982 rm -fr conftest*
8986 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8987 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8990 CPPFLAGS="$save_CPPFLAGS"
8991 LDFLAGS="$save_LDFLAGS"
8992 LIBS="$save_LIBS"
8994 esac
8996 case $lt_cv_dlopen_self in
8997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8998 *) enable_dlopen_self=unknown ;;
8999 esac
9001 case $lt_cv_dlopen_self_static in
9002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9003 *) enable_dlopen_self_static=unknown ;;
9004 esac
9008 # Report which librarie types wil actually be built
9009 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9010 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9011 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9012 echo "${ECHO_T}$can_build_shared" >&6
9014 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9015 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9016 test "$can_build_shared" = "no" && enable_shared=no
9018 # On AIX, shared libraries and static libraries use the same namespace, and
9019 # are all built from PIC.
9020 case "$host_os" in
9021 aix3*)
9022 test "$enable_shared" = yes && enable_static=no
9023 if test -n "$RANLIB"; then
9024 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9025 postinstall_cmds='$RANLIB $lib'
9029 aix4*)
9030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9031 test "$enable_shared" = yes && enable_static=no
9034 darwin* | rhapsody*)
9035 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9036 archive_cmds_need_lc=no
9037 case "$host_os" in
9038 rhapsody* | darwin1.[012])
9039 allow_undefined_flag='-undefined suppress'
9041 *) # Darwin 1.3 on
9042 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9044 esac
9045 # FIXME: Relying on posixy $() will cause problems for
9046 # cross-compilation, but unfortunately the echo tests do not
9047 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9048 # `"' quotes if we put them in here... so don't!
9049 output_verbose_link_cmd='echo'
9050 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9051 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9053 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}'
9054 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9055 hardcode_direct=no
9056 hardcode_automatic=yes
9057 hardcode_shlibpath_var=unsupported
9058 whole_archive_flag_spec='-all_load $convenience'
9059 link_all_deplibs=yes
9062 esac
9063 echo "$as_me:$LINENO: result: $enable_shared" >&5
9064 echo "${ECHO_T}$enable_shared" >&6
9066 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9067 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9068 # Make sure either enable_shared or enable_static is yes.
9069 test "$enable_shared" = yes || enable_static=yes
9070 echo "$as_me:$LINENO: result: $enable_static" >&5
9071 echo "${ECHO_T}$enable_static" >&6
9073 # The else clause should only fire when bootstrapping the
9074 # libtool distribution, otherwise you forgot to ship ltmain.sh
9075 # with your package, and you will get complaints that there are
9076 # no rules to generate ltmain.sh.
9077 if test -f "$ltmain"; then
9078 # See if we are running on zsh, and set the options which allow our commands through
9079 # without removal of \ escapes.
9080 if test -n "${ZSH_VERSION+set}" ; then
9081 setopt NO_GLOB_SUBST
9083 # Now quote all the things that may contain metacharacters while being
9084 # careful not to overquote the AC_SUBSTed values. We take copies of the
9085 # variables and quote the copies for generation of the libtool script.
9086 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9089 deplibs_check_method reload_flag reload_cmds need_locks \
9090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9091 lt_cv_sys_global_symbol_to_c_name_address \
9092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9093 old_postinstall_cmds old_postuninstall_cmds \
9094 compiler \
9095 CC \
9096 LD \
9097 lt_prog_compiler_wl \
9098 lt_prog_compiler_pic \
9099 lt_prog_compiler_static \
9100 lt_prog_compiler_no_builtin_flag \
9101 export_dynamic_flag_spec \
9102 thread_safe_flag_spec \
9103 whole_archive_flag_spec \
9104 enable_shared_with_static_runtimes \
9105 old_archive_cmds \
9106 old_archive_from_new_cmds \
9107 predep_objects \
9108 postdep_objects \
9109 predeps \
9110 postdeps \
9111 compiler_lib_search_path \
9112 archive_cmds \
9113 archive_expsym_cmds \
9114 postinstall_cmds \
9115 postuninstall_cmds \
9116 old_archive_from_expsyms_cmds \
9117 allow_undefined_flag \
9118 no_undefined_flag \
9119 export_symbols_cmds \
9120 hardcode_libdir_flag_spec \
9121 hardcode_libdir_flag_spec_ld \
9122 hardcode_libdir_separator \
9123 hardcode_automatic \
9124 module_cmds \
9125 module_expsym_cmds \
9126 lt_cv_prog_compiler_c_o \
9127 exclude_expsyms \
9128 include_expsyms; do
9130 case $var in
9131 old_archive_cmds | \
9132 old_archive_from_new_cmds | \
9133 archive_cmds | \
9134 archive_expsym_cmds | \
9135 module_cmds | \
9136 module_expsym_cmds | \
9137 old_archive_from_expsyms_cmds | \
9138 export_symbols_cmds | \
9139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9140 postinstall_cmds | postuninstall_cmds | \
9141 old_postinstall_cmds | old_postuninstall_cmds | \
9142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9143 # Double-quote double-evaled strings.
9144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9149 esac
9150 done
9152 case $lt_echo in
9153 *'\$0 --fallback-echo"')
9154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9156 esac
9158 cfgfile="${ofile}T"
9159 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9160 $rm -f "$cfgfile"
9161 { echo "$as_me:$LINENO: creating $ofile" >&5
9162 echo "$as_me: creating $ofile" >&6;}
9164 cat <<__EOF__ >> "$cfgfile"
9165 #! $SHELL
9167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9172 # Free Software Foundation, Inc.
9174 # This file is part of GNU Libtool:
9175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9177 # This program is free software; you can redistribute it and/or modify
9178 # it under the terms of the GNU General Public License as published by
9179 # the Free Software Foundation; either version 2 of the License, or
9180 # (at your option) any later version.
9182 # This program is distributed in the hope that it will be useful, but
9183 # WITHOUT ANY WARRANTY; without even the implied warranty of
9184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9185 # General Public License for more details.
9187 # You should have received a copy of the GNU General Public License
9188 # along with this program; if not, write to the Free Software
9189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9191 # As a special exception to the GNU General Public License, if you
9192 # distribute this file as part of a program that contains a
9193 # configuration script generated by Autoconf, you may include it under
9194 # the same distribution terms that you use for the rest of that program.
9196 # A sed program that does not truncate output.
9197 SED=$lt_SED
9199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9200 Xsed="$SED -e s/^X//"
9202 # The HP-UX ksh and POSIX shell print the target directory to stdout
9203 # if CDPATH is set.
9204 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9206 # The names of the tagged configurations supported by this script.
9207 available_tags=
9209 # ### BEGIN LIBTOOL CONFIG
9211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9213 # Shell to use when invoking shell scripts.
9214 SHELL=$lt_SHELL
9216 # Whether or not to build shared libraries.
9217 build_libtool_libs=$enable_shared
9219 # Whether or not to build static libraries.
9220 build_old_libs=$enable_static
9222 # Whether or not to add -lc for building shared libraries.
9223 build_libtool_need_lc=$archive_cmds_need_lc
9225 # Whether or not to disallow shared libs when runtime libs are static
9226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9228 # Whether or not to optimize for fast installation.
9229 fast_install=$enable_fast_install
9231 # The host system.
9232 host_alias=$host_alias
9233 host=$host
9235 # An echo program that does not interpret backslashes.
9236 echo=$lt_echo
9238 # The archiver.
9239 AR=$lt_AR
9240 AR_FLAGS=$lt_AR_FLAGS
9242 # A C compiler.
9243 LTCC=$lt_LTCC
9245 # A language-specific compiler.
9246 CC=$lt_compiler
9248 # Is the compiler the GNU C compiler?
9249 with_gcc=$GCC
9251 # An ERE matcher.
9252 EGREP=$lt_EGREP
9254 # The linker used to build libraries.
9255 LD=$lt_LD
9257 # Whether we need hard or soft links.
9258 LN_S=$lt_LN_S
9260 # A BSD-compatible nm program.
9261 NM=$lt_NM
9263 # A symbol stripping program
9264 STRIP=$STRIP
9266 # Used to examine libraries when file_magic_cmd begins "file"
9267 MAGIC_CMD=$MAGIC_CMD
9269 # Used on cygwin: DLL creation program.
9270 DLLTOOL="$DLLTOOL"
9272 # Used on cygwin: object dumper.
9273 OBJDUMP="$OBJDUMP"
9275 # Used on cygwin: assembler.
9276 AS="$AS"
9278 # The name of the directory that contains temporary libtool files.
9279 objdir=$objdir
9281 # How to create reloadable object files.
9282 reload_flag=$lt_reload_flag
9283 reload_cmds=$lt_reload_cmds
9285 # How to pass a linker flag through the compiler.
9286 wl=$lt_lt_prog_compiler_wl
9288 # Object file suffix (normally "o").
9289 objext="$ac_objext"
9291 # Old archive suffix (normally "a").
9292 libext="$libext"
9294 # Shared library suffix (normally ".so").
9295 shrext='$shrext'
9297 # Executable file suffix (normally "").
9298 exeext="$exeext"
9300 # Additional compiler flags for building library objects.
9301 pic_flag=$lt_lt_prog_compiler_pic
9302 pic_mode=$pic_mode
9304 # What is the maximum length of a command?
9305 max_cmd_len=$lt_cv_sys_max_cmd_len
9307 # Does compiler simultaneously support -c and -o options?
9308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9310 # Must we lock files when doing compilation ?
9311 need_locks=$lt_need_locks
9313 # Do we need the lib prefix for modules?
9314 need_lib_prefix=$need_lib_prefix
9316 # Do we need a version for libraries?
9317 need_version=$need_version
9319 # Whether dlopen is supported.
9320 dlopen_support=$enable_dlopen
9322 # Whether dlopen of programs is supported.
9323 dlopen_self=$enable_dlopen_self
9325 # Whether dlopen of statically linked programs is supported.
9326 dlopen_self_static=$enable_dlopen_self_static
9328 # Compiler flag to prevent dynamic linking.
9329 link_static_flag=$lt_lt_prog_compiler_static
9331 # Compiler flag to turn off builtin functions.
9332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9334 # Compiler flag to allow reflexive dlopens.
9335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9337 # Compiler flag to generate shared objects directly from archives.
9338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9340 # Compiler flag to generate thread-safe objects.
9341 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9343 # Library versioning type.
9344 version_type=$version_type
9346 # Format of library name prefix.
9347 libname_spec=$lt_libname_spec
9349 # List of archive names. First name is the real one, the rest are links.
9350 # The last name is the one that the linker finds with -lNAME.
9351 library_names_spec=$lt_library_names_spec
9353 # The coded name of the library, if different from the real name.
9354 soname_spec=$lt_soname_spec
9356 # Commands used to build and install an old-style archive.
9357 RANLIB=$lt_RANLIB
9358 old_archive_cmds=$lt_old_archive_cmds
9359 old_postinstall_cmds=$lt_old_postinstall_cmds
9360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9362 # Create an old-style archive from a shared archive.
9363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9365 # Create a temporary old-style archive to link instead of a shared archive.
9366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9368 # Commands used to build and install a shared archive.
9369 archive_cmds=$lt_archive_cmds
9370 archive_expsym_cmds=$lt_archive_expsym_cmds
9371 postinstall_cmds=$lt_postinstall_cmds
9372 postuninstall_cmds=$lt_postuninstall_cmds
9374 # Commands used to build a loadable module (assumed same as above if empty)
9375 module_cmds=$lt_module_cmds
9376 module_expsym_cmds=$lt_module_expsym_cmds
9378 # Commands to strip libraries.
9379 old_striplib=$lt_old_striplib
9380 striplib=$lt_striplib
9382 # Dependencies to place before the objects being linked to create a
9383 # shared library.
9384 predep_objects=$lt_predep_objects
9386 # Dependencies to place after the objects being linked to create a
9387 # shared library.
9388 postdep_objects=$lt_postdep_objects
9390 # Dependencies to place before the objects being linked to create a
9391 # shared library.
9392 predeps=$lt_predeps
9394 # Dependencies to place after the objects being linked to create a
9395 # shared library.
9396 postdeps=$lt_postdeps
9398 # The library search path used internally by the compiler when linking
9399 # a shared library.
9400 compiler_lib_search_path=$lt_compiler_lib_search_path
9402 # Method to check whether dependent libraries are shared objects.
9403 deplibs_check_method=$lt_deplibs_check_method
9405 # Command to use when deplibs_check_method == file_magic.
9406 file_magic_cmd=$lt_file_magic_cmd
9408 # Flag that allows shared libraries with undefined symbols to be built.
9409 allow_undefined_flag=$lt_allow_undefined_flag
9411 # Flag that forces no undefined symbols.
9412 no_undefined_flag=$lt_no_undefined_flag
9414 # Commands used to finish a libtool library installation in a directory.
9415 finish_cmds=$lt_finish_cmds
9417 # Same as above, but a single script fragment to be evaled but not shown.
9418 finish_eval=$lt_finish_eval
9420 # Take the output of nm and produce a listing of raw symbols and C names.
9421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9423 # Transform the output of nm in a proper C declaration
9424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9426 # Transform the output of nm in a C name address pair
9427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9429 # This is the shared library runtime path variable.
9430 runpath_var=$runpath_var
9432 # This is the shared library path variable.
9433 shlibpath_var=$shlibpath_var
9435 # Is shlibpath searched before the hard-coded library search path?
9436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9438 # How to hardcode a shared library path into an executable.
9439 hardcode_action=$hardcode_action
9441 # Whether we should hardcode library paths into libraries.
9442 hardcode_into_libs=$hardcode_into_libs
9444 # Flag to hardcode \$libdir into a binary during linking.
9445 # This must work even if \$libdir does not exist.
9446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9448 # If ld is used when linking, flag to hardcode \$libdir into
9449 # a binary during linking. This must work even if \$libdir does
9450 # not exist.
9451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9453 # Whether we need a single -rpath flag with a separated argument.
9454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9457 # resulting binary.
9458 hardcode_direct=$hardcode_direct
9460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9461 # resulting binary.
9462 hardcode_minus_L=$hardcode_minus_L
9464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9465 # the resulting binary.
9466 hardcode_shlibpath_var=$hardcode_shlibpath_var
9468 # Set to yes if building a shared library automatically hardcodes DIR into the library
9469 # and all subsequent libraries and executables linked against it.
9470 hardcode_automatic=$hardcode_automatic
9472 # Variables whose values should be saved in libtool wrapper scripts and
9473 # restored at relink time.
9474 variables_saved_for_relink="$variables_saved_for_relink"
9476 # Whether libtool must link a program against all its dependency libraries.
9477 link_all_deplibs=$link_all_deplibs
9479 # Compile-time system search path for libraries
9480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9482 # Run-time system search path for libraries
9483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9485 # Fix the shell variable \$srcfile for the compiler.
9486 fix_srcfile_path="$fix_srcfile_path"
9488 # Set to yes if exported symbols are required.
9489 always_export_symbols=$always_export_symbols
9491 # The commands to list exported symbols.
9492 export_symbols_cmds=$lt_export_symbols_cmds
9494 # The commands to extract the exported symbol list from a shared archive.
9495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9497 # Symbols that should not be listed in the preloaded symbols.
9498 exclude_expsyms=$lt_exclude_expsyms
9500 # Symbols that must always be exported.
9501 include_expsyms=$lt_include_expsyms
9503 # ### END LIBTOOL CONFIG
9505 __EOF__
9508 case $host_os in
9509 aix3*)
9510 cat <<\EOF >> "$cfgfile"
9512 # AIX sometimes has problems with the GCC collect2 program. For some
9513 # reason, if we set the COLLECT_NAMES environment variable, the problems
9514 # vanish in a puff of smoke.
9515 if test "X${COLLECT_NAMES+set}" != Xset; then
9516 COLLECT_NAMES=
9517 export COLLECT_NAMES
9521 esac
9523 # We use sed instead of cat because bash on DJGPP gets confused if
9524 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9525 # text mode, it properly converts lines to CR/LF. This bash problem
9526 # is reportedly fixed, but why not run on old versions too?
9527 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9529 mv -f "$cfgfile" "$ofile" || \
9530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9531 chmod +x "$ofile"
9533 else
9534 # If there is no Makefile yet, we rely on a make rule to execute
9535 # `config.status --recheck' to rerun these tests and create the
9536 # libtool script then.
9537 test -f Makefile && make "$ltmain"
9541 ac_ext=c
9542 ac_cpp='$CPP $CPPFLAGS'
9543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9547 CC="$lt_save_CC"
9550 # Check whether --with-tags or --without-tags was given.
9551 if test "${with_tags+set}" = set; then
9552 withval="$with_tags"
9553 tagnames="$withval"
9556 if test -f "$ltmain" && test -n "$tagnames"; then
9557 if test ! -f "${ofile}"; then
9558 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9559 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9562 if test -z "$LTCC"; then
9563 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9564 if test -z "$LTCC"; then
9565 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9566 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9567 else
9568 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9569 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9573 # Extract list of available tagged configurations in $ofile.
9574 # Note that this assumes the entire list is on one line.
9575 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9578 for tagname in $tagnames; do
9579 IFS="$lt_save_ifs"
9580 # Check whether tagname contains only valid characters
9581 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9582 "") ;;
9583 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9584 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9585 { (exit 1); exit 1; }; }
9587 esac
9589 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9590 then
9591 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9592 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9593 { (exit 1); exit 1; }; }
9596 # Update the list of available tags.
9597 if test -n "$tagname"; then
9598 echo appending configuration tag \"$tagname\" to $ofile
9600 case $tagname in
9601 CXX)
9602 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9603 ac_ext=cc
9604 ac_cpp='$CXXCPP $CPPFLAGS'
9605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9612 archive_cmds_need_lc_CXX=no
9613 allow_undefined_flag_CXX=
9614 always_export_symbols_CXX=no
9615 archive_expsym_cmds_CXX=
9616 export_dynamic_flag_spec_CXX=
9617 hardcode_direct_CXX=no
9618 hardcode_libdir_flag_spec_CXX=
9619 hardcode_libdir_flag_spec_ld_CXX=
9620 hardcode_libdir_separator_CXX=
9621 hardcode_minus_L_CXX=no
9622 hardcode_automatic_CXX=no
9623 module_cmds_CXX=
9624 module_expsym_cmds_CXX=
9625 link_all_deplibs_CXX=unknown
9626 old_archive_cmds_CXX=$old_archive_cmds
9627 no_undefined_flag_CXX=
9628 whole_archive_flag_spec_CXX=
9629 enable_shared_with_static_runtimes_CXX=no
9631 # Dependencies to place before and after the object being linked:
9632 predep_objects_CXX=
9633 postdep_objects_CXX=
9634 predeps_CXX=
9635 postdeps_CXX=
9636 compiler_lib_search_path_CXX=
9638 # Source file extension for C++ test sources.
9639 ac_ext=cc
9641 # Object file extension for compiled C++ test sources.
9642 objext=o
9643 objext_CXX=$objext
9645 # Code to be used in simple compile tests
9646 lt_simple_compile_test_code="int some_variable = 0;\n"
9648 # Code to be used in simple link tests
9649 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9653 # If no C compiler was specified, use CC.
9654 LTCC=${LTCC-"$CC"}
9656 # Allow CC to be a program name with arguments.
9657 compiler=$CC
9660 # Allow CC to be a program name with arguments.
9661 lt_save_CC=$CC
9662 lt_save_LD=$LD
9663 lt_save_GCC=$GCC
9664 GCC=$GXX
9665 lt_save_with_gnu_ld=$with_gnu_ld
9666 lt_save_path_LD=$lt_cv_path_LD
9667 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9668 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9669 else
9670 unset lt_cv_prog_gnu_ld
9672 if test -n "${lt_cv_path_LDCXX+set}"; then
9673 lt_cv_path_LD=$lt_cv_path_LDCXX
9674 else
9675 unset lt_cv_path_LD
9677 test -z "${LDCXX+set}" || LD=$LDCXX
9678 CC=${CXX-"c++"}
9679 compiler=$CC
9680 compiler_CXX=$CC
9681 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9683 # We don't want -fno-exception wen compiling C++ code, so set the
9684 # no_builtin_flag separately
9685 if test "$GXX" = yes; then
9686 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9687 else
9688 lt_prog_compiler_no_builtin_flag_CXX=
9691 if test "$GXX" = yes; then
9692 # Set up default GNU C++ configuration
9695 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9696 if test "${with_gnu_ld+set}" = set; then
9697 withval="$with_gnu_ld"
9698 test "$withval" = no || with_gnu_ld=yes
9699 else
9700 with_gnu_ld=no
9702 ac_prog=ld
9703 if test "$GCC" = yes; then
9704 # Check if gcc -print-prog-name=ld gives a path.
9705 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9706 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9707 case $host in
9708 *-*-mingw*)
9709 # gcc leaves a trailing carriage return which upsets mingw
9710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9713 esac
9714 case $ac_prog in
9715 # Accept absolute paths.
9716 [\\/]* | ?:[\\/]*)
9717 re_direlt='/[^/][^/]*/\.\./'
9718 # Canonicalize the path of ld
9719 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9720 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9721 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9722 done
9723 test -z "$LD" && LD="$ac_prog"
9726 # If it fails, then pretend we aren't using GCC.
9727 ac_prog=ld
9730 # If it is relative, then search for the first ld in PATH.
9731 with_gnu_ld=unknown
9733 esac
9734 elif test "$with_gnu_ld" = yes; then
9735 echo "$as_me:$LINENO: checking for GNU ld" >&5
9736 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9737 else
9738 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9739 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9741 if test "${lt_cv_path_LD+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 if test -z "$LD"; then
9745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9746 for ac_dir in $PATH; do
9747 IFS="$lt_save_ifs"
9748 test -z "$ac_dir" && ac_dir=.
9749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9750 lt_cv_path_LD="$ac_dir/$ac_prog"
9751 # Check to see if the program is GNU ld. I'd rather use --version,
9752 # but apparently some GNU ld's only accept -v.
9753 # Break only if it was the GNU/non-GNU ld that we prefer.
9754 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9755 *GNU* | *'with BFD'*)
9756 test "$with_gnu_ld" != no && break
9759 test "$with_gnu_ld" != yes && break
9761 esac
9763 done
9764 IFS="$lt_save_ifs"
9765 else
9766 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9770 LD="$lt_cv_path_LD"
9771 if test -n "$LD"; then
9772 echo "$as_me:$LINENO: result: $LD" >&5
9773 echo "${ECHO_T}$LD" >&6
9774 else
9775 echo "$as_me:$LINENO: result: no" >&5
9776 echo "${ECHO_T}no" >&6
9778 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9779 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9780 { (exit 1); exit 1; }; }
9781 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9782 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9783 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9787 case `"$LD" -v 2>&1 </dev/null` in
9788 *GNU* | *'with BFD'*)
9789 lt_cv_prog_gnu_ld=yes
9792 lt_cv_prog_gnu_ld=no
9794 esac
9796 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9797 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9798 with_gnu_ld=$lt_cv_prog_gnu_ld
9802 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9803 # archiving commands below assume that GNU ld is being used.
9804 if test "$with_gnu_ld" = yes; then
9805 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 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'
9808 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9811 # If archive_cmds runs LD, not CC, wlarc should be empty
9812 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9813 # investigate it a little bit more. (MM)
9814 wlarc='${wl}'
9816 # ancient GNU ld didn't support --whole-archive et. al.
9817 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9818 grep 'no-whole-archive' > /dev/null; then
9819 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9820 else
9821 whole_archive_flag_spec_CXX=
9823 else
9824 with_gnu_ld=no
9825 wlarc=
9827 # A generic and very simple default shared library creation
9828 # command for GNU C++ for the case where it uses the native
9829 # linker, instead of GNU ld. If possible, this setting should
9830 # overridden to take advantage of the native linker features on
9831 # the platform it is being used on.
9832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9835 # Commands to make compiler produce verbose output that lists
9836 # what "hidden" libraries, object files and flags are used when
9837 # linking a shared library.
9838 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9840 else
9841 GXX=no
9842 with_gnu_ld=no
9843 wlarc=
9846 # PORTME: fill in a description of your system's C++ link characteristics
9847 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9848 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9849 ld_shlibs_CXX=yes
9850 case $host_os in
9851 aix3*)
9852 # FIXME: insert proper C++ library support
9853 ld_shlibs_CXX=no
9855 aix4* | aix5*)
9856 if test "$host_cpu" = ia64; then
9857 # On IA64, the linker does run time linking by default, so we don't
9858 # have to do anything special.
9859 aix_use_runtimelinking=no
9860 exp_sym_flag='-Bexport'
9861 no_entry_flag=""
9862 else
9863 aix_use_runtimelinking=no
9865 # Test if we are trying to use run time linking or normal
9866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9867 # need to do runtime linking.
9868 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9869 for ld_flag in $LDFLAGS; do
9870 case $ld_flag in
9871 *-brtl*)
9872 aix_use_runtimelinking=yes
9873 break
9875 esac
9876 done
9877 esac
9879 exp_sym_flag='-bexport'
9880 no_entry_flag='-bnoentry'
9883 # When large executables or shared objects are built, AIX ld can
9884 # have problems creating the table of contents. If linking a library
9885 # or program results in "error TOC overflow" add -mminimal-toc to
9886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9889 archive_cmds_CXX=''
9890 hardcode_direct_CXX=yes
9891 hardcode_libdir_separator_CXX=':'
9892 link_all_deplibs_CXX=yes
9894 if test "$GXX" = yes; then
9895 case $host_os in aix4.012|aix4.012.*)
9896 # We only want to do this on AIX 4.2 and lower, the check
9897 # below for broken collect2 doesn't work under 4.3+
9898 collect2name=`${CC} -print-prog-name=collect2`
9899 if test -f "$collect2name" && \
9900 strings "$collect2name" | grep resolve_lib_name >/dev/null
9901 then
9902 # We have reworked collect2
9903 hardcode_direct_CXX=yes
9904 else
9905 # We have old collect2
9906 hardcode_direct_CXX=unsupported
9907 # It fails to find uninstalled libraries when the uninstalled
9908 # path is not listed in the libpath. Setting hardcode_minus_L
9909 # to unsupported forces relinking
9910 hardcode_minus_L_CXX=yes
9911 hardcode_libdir_flag_spec_CXX='-L$libdir'
9912 hardcode_libdir_separator_CXX=
9914 esac
9915 shared_flag='-shared'
9916 else
9917 # not using gcc
9918 if test "$host_cpu" = ia64; then
9919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9920 # chokes on -Wl,-G. The following line is correct:
9921 shared_flag='-G'
9922 else
9923 if test "$aix_use_runtimelinking" = yes; then
9924 shared_flag='${wl}-G'
9925 else
9926 shared_flag='${wl}-bM:SRE'
9931 # It seems that -bexpall does not export symbols beginning with
9932 # underscore (_), so it is better to generate a list of symbols to export.
9933 always_export_symbols_CXX=yes
9934 if test "$aix_use_runtimelinking" = yes; then
9935 # Warning - without using the other runtime loading flags (-brtl),
9936 # -berok will link without error, but may produce a broken library.
9937 allow_undefined_flag_CXX='-berok'
9938 # Determine the default libpath from the value encoded in an empty executable.
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9948 main ()
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9970 # Check for a 64-bit object if we didn't find anything.
9971 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; }
9972 }'`; fi
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9981 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9983 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"
9984 else
9985 if test "$host_cpu" = ia64; then
9986 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9987 allow_undefined_flag_CXX="-z nodefs"
9988 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"
9989 else
9990 # Determine the default libpath from the value encoded in an empty executable.
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
10000 main ()
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; }; then
10020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10022 # Check for a 64-bit object if we didn't find anything.
10023 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; }
10024 }'`; fi
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10033 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10034 # Warning - without using the other run time loading flags,
10035 # -berok will link without error, but may produce a broken library.
10036 no_undefined_flag_CXX=' ${wl}-bernotok'
10037 allow_undefined_flag_CXX=' ${wl}-berok'
10038 # -bexpall does not export symbols beginning with underscore (_)
10039 always_export_symbols_CXX=yes
10040 # Exported symbols can be pulled into shared objects from archives
10041 whole_archive_flag_spec_CXX=' '
10042 archive_cmds_need_lc_CXX=yes
10043 # This is similar to how AIX traditionally builds it's shared libraries.
10044 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'
10048 chorus*)
10049 case $cc_basename in
10051 # FIXME: insert proper C++ library support
10052 ld_shlibs_CXX=no
10054 esac
10057 cygwin* | mingw* | pw32*)
10058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10059 # as there is no search path for DLLs.
10060 hardcode_libdir_flag_spec_CXX='-L$libdir'
10061 allow_undefined_flag_CXX=unsupported
10062 always_export_symbols_CXX=no
10063 enable_shared_with_static_runtimes_CXX=yes
10065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10066 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'
10067 # If the export-symbols file already is a .def file (1st line
10068 # is EXPORTS), use it as is; otherwise, prepend...
10069 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10070 cp $export_symbols $output_objdir/$soname.def;
10071 else
10072 echo EXPORTS > $output_objdir/$soname.def;
10073 cat $export_symbols >> $output_objdir/$soname.def;
10075 $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'
10076 else
10077 ld_shlibs_CXX=no
10081 darwin* | rhapsody*)
10082 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10083 archive_cmds_need_lc_CXX=no
10084 case "$host_os" in
10085 rhapsody* | darwin1.[012])
10086 allow_undefined_flag_CXX='-undefined suppress'
10088 *) # Darwin 1.3 on
10089 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10091 esac
10092 lt_int_apple_cc_single_mod=no
10093 output_verbose_link_cmd='echo'
10094 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10095 lt_int_apple_cc_single_mod=yes
10097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10099 else
10100 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10102 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10106 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}'
10107 else
10108 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10110 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10111 hardcode_direct_CXX=no
10112 hardcode_automatic_CXX=yes
10113 hardcode_shlibpath_var_CXX=unsupported
10114 whole_archive_flag_spec_CXX='-all_load $convenience'
10115 link_all_deplibs_CXX=yes
10119 dgux*)
10120 case $cc_basename in
10121 ec++)
10122 # FIXME: insert proper C++ library support
10123 ld_shlibs_CXX=no
10125 ghcx)
10126 # Green Hills C++ Compiler
10127 # FIXME: insert proper C++ library support
10128 ld_shlibs_CXX=no
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10134 esac
10136 freebsd12*)
10137 # C++ shared libraries reported to be fairly broken before switch to ELF
10138 ld_shlibs_CXX=no
10140 freebsd-elf*)
10141 archive_cmds_need_lc_CXX=no
10143 freebsd*)
10144 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10145 # conventions
10146 ld_shlibs_CXX=yes
10148 gnu*)
10150 hpux9*)
10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator_CXX=:
10153 export_dynamic_flag_spec_CXX='${wl}-E'
10154 hardcode_direct_CXX=yes
10155 hardcode_minus_L_CXX=yes # Not in the search PATH,
10156 # but as the default
10157 # location of the library.
10159 case $cc_basename in
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10164 aCC)
10165 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'
10166 # Commands to make compiler produce verbose output that lists
10167 # what "hidden" libraries, object files and flags are used when
10168 # linking a shared library.
10170 # There doesn't appear to be a way to prevent this compiler from
10171 # explicitly linking system object files so we need to strip them
10172 # from the output so that they don't get included in the library
10173 # dependencies.
10174 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10177 if test "$GXX" = yes; then
10178 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'
10179 else
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10184 esac
10186 hpux10*|hpux11*)
10187 if test $with_gnu_ld = no; then
10188 case "$host_cpu" in
10189 hppa*64*)
10190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10191 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10192 hardcode_libdir_separator_CXX=:
10194 ia64*)
10195 hardcode_libdir_flag_spec_CXX='-L$libdir'
10198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10199 hardcode_libdir_separator_CXX=:
10200 export_dynamic_flag_spec_CXX='${wl}-E'
10202 esac
10204 case "$host_cpu" in
10205 hppa*64*)
10206 hardcode_direct_CXX=no
10207 hardcode_shlibpath_var_CXX=no
10209 ia64*)
10210 hardcode_direct_CXX=no
10211 hardcode_shlibpath_var_CXX=no
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10217 hardcode_direct_CXX=yes
10218 hardcode_minus_L_CXX=yes # Not in the search PATH,
10219 # but as the default
10220 # location of the library.
10222 esac
10224 case $cc_basename in
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10229 aCC)
10230 case "$host_cpu" in
10231 hppa*64*|ia64*)
10232 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10237 esac
10238 # Commands to make compiler produce verbose output that lists
10239 # what "hidden" libraries, object files and flags are used when
10240 # linking a shared library.
10242 # There doesn't appear to be a way to prevent this compiler from
10243 # explicitly linking system object files so we need to strip them
10244 # from the output so that they don't get included in the library
10245 # dependencies.
10246 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'
10249 if test "$GXX" = yes; then
10250 if test $with_gnu_ld = no; then
10251 case "$host_cpu" in
10252 ia64*|hppa*64*)
10253 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10256 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10258 esac
10260 else
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10265 esac
10267 irix5* | irix6*)
10268 case $cc_basename in
10270 # SGI C++
10271 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10273 # Archives containing C++ object files must be created using
10274 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10275 # necessary to make sure instantiated templates are included
10276 # in the archive.
10277 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10280 if test "$GXX" = yes; then
10281 if test "$with_gnu_ld" = no; then
10282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10283 else
10284 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'
10287 link_all_deplibs_CXX=yes
10289 esac
10290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10291 hardcode_libdir_separator_CXX=:
10293 linux*)
10294 case $cc_basename in
10295 KCC)
10296 # Kuck and Associates, Inc. (KAI) C++ Compiler
10298 # KCC will only create a shared library if the output file
10299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10300 # to its proper name (with version) after linking.
10301 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'
10302 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'
10303 # Commands to make compiler produce verbose output that lists
10304 # what "hidden" libraries, object files and flags are used when
10305 # linking a shared library.
10307 # There doesn't appear to be a way to prevent this compiler from
10308 # explicitly linking system object files so we need to strip them
10309 # from the output so that they don't get included in the library
10310 # dependencies.
10311 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'
10313 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10316 # Archives containing C++ object files must be created using
10317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10320 icpc)
10321 # Intel C++
10322 with_gnu_ld=yes
10323 archive_cmds_need_lc_CXX=no
10324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 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'
10326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10330 cxx)
10331 # Compaq C++
10332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 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'
10335 runpath_var=LD_RUN_PATH
10336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10337 hardcode_libdir_separator_CXX=:
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10346 # dependencies.
10347 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10349 esac
10351 lynxos*)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10355 m88k*)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10359 mvs*)
10360 case $cc_basename in
10361 cxx)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10369 esac
10371 netbsd*)
10372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10374 wlarc=
10375 hardcode_libdir_flag_spec_CXX='-R$libdir'
10376 hardcode_direct_CXX=yes
10377 hardcode_shlibpath_var_CXX=no
10379 # Workaround some broken pre-1.5 toolchains
10380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10382 osf3*)
10383 case $cc_basename in
10384 KCC)
10385 # Kuck and Associates, Inc. (KAI) C++ Compiler
10387 # KCC will only create a shared library if the output file
10388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10389 # to its proper name (with version) after linking.
10390 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'
10392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10393 hardcode_libdir_separator_CXX=:
10395 # Archives containing C++ object files must be created using
10396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10400 RCC)
10401 # Rational C++ 2.4.1
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10405 cxx)
10406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator_CXX=:
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10416 # There doesn't appear to be a way to prevent this compiler from
10417 # explicitly linking system object files so we need to strip them
10418 # from the output so that they don't get included in the library
10419 # dependencies.
10420 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'
10423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10425 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator_CXX=:
10430 # Commands to make compiler produce verbose output that lists
10431 # what "hidden" libraries, object files and flags are used when
10432 # linking a shared library.
10433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10435 else
10436 # FIXME: insert proper C++ library support
10437 ld_shlibs_CXX=no
10440 esac
10442 osf4* | osf5*)
10443 case $cc_basename in
10444 KCC)
10445 # Kuck and Associates, Inc. (KAI) C++ Compiler
10447 # KCC will only create a shared library if the output file
10448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10449 # to its proper name (with version) after linking.
10450 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'
10452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10453 hardcode_libdir_separator_CXX=:
10455 # Archives containing C++ object files must be created using
10456 # the KAI C++ compiler.
10457 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10459 RCC)
10460 # Rational C++ 2.4.1
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10464 cxx)
10465 allow_undefined_flag_CXX=' -expect_unresolved \*'
10466 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10468 echo "-hidden">> $lib.exp~
10469 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10470 $rm $lib.exp'
10472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10473 hardcode_libdir_separator_CXX=:
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10479 # There doesn't appear to be a way to prevent this compiler from
10480 # explicitly linking system object files so we need to strip them
10481 # from the output so that they don't get included in the library
10482 # dependencies.
10483 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'
10486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10488 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10498 else
10499 # FIXME: insert proper C++ library support
10500 ld_shlibs_CXX=no
10503 esac
10505 psos*)
10506 # FIXME: insert proper C++ library support
10507 ld_shlibs_CXX=no
10509 sco*)
10510 archive_cmds_need_lc_CXX=no
10511 case $cc_basename in
10513 # FIXME: insert proper C++ library support
10514 ld_shlibs_CXX=no
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10520 esac
10522 sunos4*)
10523 case $cc_basename in
10525 # Sun C++ 4.x
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10529 lcc)
10530 # Lucid
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10538 esac
10540 solaris*)
10541 case $cc_basename in
10543 # Sun C++ 4.2, 5.x and Centerline C++
10544 no_undefined_flag_CXX=' -zdefs'
10545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10547 $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'
10549 hardcode_libdir_flag_spec_CXX='-R$libdir'
10550 hardcode_shlibpath_var_CXX=no
10551 case $host_os in
10552 solaris2.0-5 | solaris2.0-5.*) ;;
10554 # The C++ compiler is used as linker so we must use $wl
10555 # flag to pass the commands to the underlying system
10556 # linker.
10557 # Supported since Solaris 2.6 (maybe 2.5.1?)
10558 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10560 esac
10561 link_all_deplibs_CXX=yes
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10570 # dependencies.
10571 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'
10573 # Archives containing C++ object files must be created using
10574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10575 # necessary to make sure instantiated templates are included
10576 # in the archive.
10577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10579 gcx)
10580 # Green Hills C++ Compiler
10581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10583 # The C++ compiler must be used to create the archive.
10584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10587 # GNU C++ compiler with Solaris linker
10588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10590 if $CC --version | grep -v '^2\.7' > /dev/null; then
10591 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10595 # Commands to make compiler produce verbose output that lists
10596 # what "hidden" libraries, object files and flags are used when
10597 # linking a shared library.
10598 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10599 else
10600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10601 # platform.
10602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10606 # Commands to make compiler produce verbose output that lists
10607 # what "hidden" libraries, object files and flags are used when
10608 # linking a shared library.
10609 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10615 esac
10617 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10618 archive_cmds_need_lc_CXX=no
10620 tandem*)
10621 case $cc_basename in
10622 NCC)
10623 # NonStop-UX NCC 3.20
10624 # FIXME: insert proper C++ library support
10625 ld_shlibs_CXX=no
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10631 esac
10633 vxworks*)
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10641 esac
10642 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10643 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10644 test "$ld_shlibs_CXX" = no && can_build_shared=no
10646 GCC_CXX="$GXX"
10647 LD_CXX="$LD"
10650 cat > conftest.$ac_ext <<EOF
10651 class Foo
10653 public:
10654 Foo (void) { a = 0; }
10655 private:
10656 int a;
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Parse the compiler output and extract the necessary
10666 # objects, libraries and library flags.
10668 # Sentinel used to keep track of whether or not we are before
10669 # the conftest object file.
10670 pre_test_object_deps_done=no
10672 # The `*' in the case matches for architectures that use `case' in
10673 # $output_verbose_cmd can trigger glob expansion during the loop
10674 # eval without this substitution.
10675 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10677 for p in `eval $output_verbose_link_cmd`; do
10678 case $p in
10680 -L* | -R* | -l*)
10681 # Some compilers place space between "-{L,R}" and the path.
10682 # Remove the space.
10683 if test $p = "-L" \
10684 || test $p = "-R"; then
10685 prev=$p
10686 continue
10687 else
10688 prev=
10691 if test "$pre_test_object_deps_done" = no; then
10692 case $p in
10693 -L* | -R*)
10694 # Internal compiler library paths should come after those
10695 # provided the user. The postdeps already come after the
10696 # user supplied libs so there is no need to process them.
10697 if test -z "$compiler_lib_search_path_CXX"; then
10698 compiler_lib_search_path_CXX="${prev}${p}"
10699 else
10700 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10703 # The "-l" case would never come before the object being
10704 # linked, so don't bother handling this case.
10705 esac
10706 else
10707 if test -z "$postdeps_CXX"; then
10708 postdeps_CXX="${prev}${p}"
10709 else
10710 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10715 *.$objext)
10716 # This assumes that the test object file only shows up
10717 # once in the compiler output.
10718 if test "$p" = "conftest.$objext"; then
10719 pre_test_object_deps_done=yes
10720 continue
10723 if test "$pre_test_object_deps_done" = no; then
10724 if test -z "$predep_objects_CXX"; then
10725 predep_objects_CXX="$p"
10726 else
10727 predep_objects_CXX="$predep_objects_CXX $p"
10729 else
10730 if test -z "$postdep_objects_CXX"; then
10731 postdep_objects_CXX="$p"
10732 else
10733 postdep_objects_CXX="$postdep_objects_CXX $p"
10738 *) ;; # Ignore the rest.
10740 esac
10741 done
10743 # Clean up.
10744 rm -f a.out a.exe
10745 else
10746 echo "libtool.m4: error: problem compiling CXX test program"
10749 $rm -f confest.$objext
10751 case " $postdeps_CXX " in
10752 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10753 esac
10755 lt_prog_compiler_wl_CXX=
10756 lt_prog_compiler_pic_CXX=
10757 lt_prog_compiler_static_CXX=
10759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10762 # C++ specific cases for pic, static, wl, etc.
10763 if test "$GXX" = yes; then
10764 lt_prog_compiler_wl_CXX='-Wl,'
10765 lt_prog_compiler_static_CXX='-static'
10767 case $host_os in
10768 aix*)
10769 # All AIX code is PIC.
10770 if test "$host_cpu" = ia64; then
10771 # AIX 5 now supports IA64 processor
10772 lt_prog_compiler_static_CXX='-Bstatic'
10775 amigaos*)
10776 # FIXME: we need at least 68020 code to build shared libraries, but
10777 # adding the `-m68020' flag to GCC prevents building anything better,
10778 # like `-m68040'.
10779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10782 # PIC is the default for these OSes.
10784 mingw* | os2* | pw32*)
10785 # This hack is so that the source file can tell whether it is being
10786 # built for inclusion in a dll (and should export symbols for example).
10787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10789 darwin* | rhapsody*)
10790 # PIC is the default on this platform
10791 # Common symbols not allowed in MH_DYLIB files
10792 lt_prog_compiler_pic_CXX='-fno-common'
10794 *djgpp*)
10795 # DJGPP does not support shared libraries at all
10796 lt_prog_compiler_pic_CXX=
10798 sysv4*MP*)
10799 if test -d /usr/nec; then
10800 lt_prog_compiler_pic_CXX=-Kconform_pic
10803 hpux*)
10804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10805 # not for PA HP-UX.
10806 case "$host_cpu" in
10807 hppa*64*|ia64*)
10810 lt_prog_compiler_pic_CXX='-fPIC'
10812 esac
10815 lt_prog_compiler_pic_CXX='-fPIC'
10817 esac
10818 else
10819 case $host_os in
10820 aix4* | aix5*)
10821 # All AIX code is PIC.
10822 if test "$host_cpu" = ia64; then
10823 # AIX 5 now supports IA64 processor
10824 lt_prog_compiler_static_CXX='-Bstatic'
10825 else
10826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10829 chorus*)
10830 case $cc_basename in
10831 cxch68)
10832 # Green Hills C++ Compiler
10833 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10835 esac
10837 dgux*)
10838 case $cc_basename in
10839 ec++)
10840 lt_prog_compiler_pic_CXX='-KPIC'
10842 ghcx)
10843 # Green Hills C++ Compiler
10844 lt_prog_compiler_pic_CXX='-pic'
10848 esac
10850 freebsd*)
10851 # FreeBSD uses GNU C++
10853 hpux9* | hpux10* | hpux11*)
10854 case $cc_basename in
10856 lt_prog_compiler_wl_CXX='-Wl,'
10857 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10858 if test "$host_cpu" != ia64; then
10859 lt_prog_compiler_pic_CXX='+Z'
10862 aCC)
10863 lt_prog_compiler_wl_CXX='-Wl,'
10864 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10865 case "$host_cpu" in
10866 hppa*64*|ia64*)
10867 # +Z the default
10870 lt_prog_compiler_pic_CXX='+Z'
10872 esac
10876 esac
10878 irix5* | irix6* | nonstopux*)
10879 case $cc_basename in
10881 lt_prog_compiler_wl_CXX='-Wl,'
10882 lt_prog_compiler_static_CXX='-non_shared'
10883 # CC pic flag -KPIC is the default.
10887 esac
10889 linux*)
10890 case $cc_basename in
10891 KCC)
10892 # KAI C++ Compiler
10893 lt_prog_compiler_wl_CXX='--backend -Wl,'
10894 lt_prog_compiler_pic_CXX='-fPIC'
10896 icpc)
10897 # Intel C++
10898 lt_prog_compiler_wl_CXX='-Wl,'
10899 lt_prog_compiler_pic_CXX='-KPIC'
10900 lt_prog_compiler_static_CXX='-static'
10902 cxx)
10903 # Compaq C++
10904 # Make sure the PIC flag is empty. It appears that all Alpha
10905 # Linux and Compaq Tru64 Unix objects are PIC.
10906 lt_prog_compiler_pic_CXX=
10907 lt_prog_compiler_static_CXX='-non_shared'
10911 esac
10913 lynxos*)
10915 m88k*)
10917 mvs*)
10918 case $cc_basename in
10919 cxx)
10920 lt_prog_compiler_pic_CXX='-W c,exportall'
10924 esac
10926 netbsd*)
10928 osf3* | osf4* | osf5*)
10929 case $cc_basename in
10930 KCC)
10931 lt_prog_compiler_wl_CXX='--backend -Wl,'
10933 RCC)
10934 # Rational C++ 2.4.1
10935 lt_prog_compiler_pic_CXX='-pic'
10937 cxx)
10938 # Digital/Compaq C++
10939 lt_prog_compiler_wl_CXX='-Wl,'
10940 # Make sure the PIC flag is empty. It appears that all Alpha
10941 # Linux and Compaq Tru64 Unix objects are PIC.
10942 lt_prog_compiler_pic_CXX=
10943 lt_prog_compiler_static_CXX='-non_shared'
10947 esac
10949 psos*)
10951 sco*)
10952 case $cc_basename in
10954 lt_prog_compiler_pic_CXX='-fPIC'
10958 esac
10960 solaris*)
10961 case $cc_basename in
10963 # Sun C++ 4.2, 5.x and Centerline C++
10964 lt_prog_compiler_pic_CXX='-KPIC'
10965 lt_prog_compiler_static_CXX='-Bstatic'
10966 lt_prog_compiler_wl_CXX='-Qoption ld '
10968 gcx)
10969 # Green Hills C++ Compiler
10970 lt_prog_compiler_pic_CXX='-PIC'
10974 esac
10976 sunos4*)
10977 case $cc_basename in
10979 # Sun C++ 4.x
10980 lt_prog_compiler_pic_CXX='-pic'
10981 lt_prog_compiler_static_CXX='-Bstatic'
10983 lcc)
10984 # Lucid
10985 lt_prog_compiler_pic_CXX='-pic'
10989 esac
10991 tandem*)
10992 case $cc_basename in
10993 NCC)
10994 # NonStop-UX NCC 3.20
10995 lt_prog_compiler_pic_CXX='-KPIC'
10999 esac
11001 unixware*)
11003 vxworks*)
11006 lt_prog_compiler_can_build_shared_CXX=no
11008 esac
11011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11012 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11015 # Check to make sure the PIC flag actually works.
11017 if test -n "$lt_prog_compiler_pic_CXX"; then
11018 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11019 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11020 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 lt_prog_compiler_pic_works_CXX=no
11024 ac_outfile=conftest.$ac_objext
11025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11026 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11027 # Insert the option either (1) after the last *FLAGS variable, or
11028 # (2) before a word containing "conftest.", or (3) at the end.
11029 # Note that $ac_compile itself does not contain backslashes and begins
11030 # with a dollar sign (not a hyphen), so the echo should work correctly.
11031 # The option is referenced via a variable to avoid confusing sed.
11032 lt_compile=`echo "$ac_compile" | $SED \
11033 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11035 -e 's:$: $lt_compiler_flag:'`
11036 (eval echo "\"\$as_me:11036: $lt_compile\"" >&5)
11037 (eval "$lt_compile" 2>conftest.err)
11038 ac_status=$?
11039 cat conftest.err >&5
11040 echo "$as_me:11040: \$? = $ac_status" >&5
11041 if (exit $ac_status) && test -s "$ac_outfile"; then
11042 # The compiler can only warn and ignore the option if not recognized
11043 # So say no if there are warnings
11044 if test ! -s conftest.err; then
11045 lt_prog_compiler_pic_works_CXX=yes
11048 $rm conftest*
11051 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11052 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11054 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11055 case $lt_prog_compiler_pic_CXX in
11056 "" | " "*) ;;
11057 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11058 esac
11059 else
11060 lt_prog_compiler_pic_CXX=
11061 lt_prog_compiler_can_build_shared_CXX=no
11065 case "$host_os" in
11066 # For platforms which do not support PIC, -DPIC is meaningless:
11067 *djgpp*)
11068 lt_prog_compiler_pic_CXX=
11071 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11073 esac
11075 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11076 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11077 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 lt_cv_prog_compiler_c_o_CXX=no
11081 $rm -r conftest 2>/dev/null
11082 mkdir conftest
11083 cd conftest
11084 mkdir out
11085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11087 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11088 # that will create temporary files in the current directory regardless of
11089 # the output directory. Thus, making CWD read-only will cause this test
11090 # to fail, enabling locking or at least warning the user not to do parallel
11091 # builds.
11092 chmod -w .
11094 lt_compiler_flag="-o out/conftest2.$ac_objext"
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
11103 (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
11104 (eval "$lt_compile" 2>out/conftest.err)
11105 ac_status=$?
11106 cat out/conftest.err >&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11109 then
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings
11112 if test ! -s out/conftest.err; then
11113 lt_cv_prog_compiler_c_o_CXX=yes
11116 chmod u+w .
11117 $rm conftest* out/*
11118 rmdir out
11119 cd ..
11120 rmdir conftest
11121 $rm conftest*
11124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11128 hard_links="nottested"
11129 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11130 # do not overwrite the value of need_locks provided by the user
11131 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11133 hard_links=yes
11134 $rm conftest*
11135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11136 touch conftest.a
11137 ln conftest.a conftest.b 2>&5 || hard_links=no
11138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11139 echo "$as_me:$LINENO: result: $hard_links" >&5
11140 echo "${ECHO_T}$hard_links" >&6
11141 if test "$hard_links" = no; then
11142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11144 need_locks=warn
11146 else
11147 need_locks=no
11150 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11154 case $host_os in
11155 aix4* | aix5*)
11156 # If we're using GNU nm, then we don't want the "-C" option.
11157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11159 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'
11160 else
11161 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'
11164 pw32*)
11165 export_symbols_cmds_CXX="$ltdll_cmds"
11167 cygwin* | mingw*)
11168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11173 esac
11175 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11176 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11177 test "$ld_shlibs_CXX" = no && can_build_shared=no
11179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11180 if test "$GCC" = yes; then
11181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11185 # Do we need to explicitly link libc?
11187 case "x$archive_cmds_need_lc_CXX" in
11188 x|xyes)
11189 # Assume -lc should be added
11190 archive_cmds_need_lc_CXX=yes
11192 if test "$enable_shared" = yes && test "$GCC" = yes; then
11193 case $archive_cmds_CXX in
11194 *'~'*)
11195 # FIXME: we may have to deal with multi-command sequences.
11197 '$CC '*)
11198 # Test whether the compiler implicitly links with -lc since on some
11199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11200 # to ld, don't add -lc before -lgcc.
11201 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11202 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11203 $rm conftest*
11204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } 2>conftest.err; then
11211 soname=conftest
11212 lib=conftest
11213 libobjs=conftest.$ac_objext
11214 deplibs=
11215 wl=$lt_prog_compiler_wl_CXX
11216 compiler_flags=-v
11217 linker_flags=-v
11218 verstring=
11219 output_objdir=.
11220 libname=conftest
11221 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11222 allow_undefined_flag_CXX=
11223 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11224 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }
11228 then
11229 archive_cmds_need_lc_CXX=no
11230 else
11231 archive_cmds_need_lc_CXX=yes
11233 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11234 else
11235 cat conftest.err 1>&5
11237 $rm conftest*
11238 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11239 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11241 esac
11244 esac
11246 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11248 hardcode_action_CXX=
11249 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11250 test -n "$runpath_var CXX" || \
11251 test "X$hardcode_automatic_CXX"="Xyes" ; then
11253 # We can hardcode non-existant directories.
11254 if test "$hardcode_direct_CXX" != no &&
11255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11256 # have to relink, otherwise we might link with an installed library
11257 # when we should be linking with a yet-to-be-installed one
11258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11259 test "$hardcode_minus_L_CXX" != no; then
11260 # Linking always hardcodes the temporary library directory.
11261 hardcode_action_CXX=relink
11262 else
11263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11264 hardcode_action_CXX=immediate
11266 else
11267 # We cannot hardcode anything, or else we can only hardcode existing
11268 # directories.
11269 hardcode_action_CXX=unsupported
11271 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11272 echo "${ECHO_T}$hardcode_action_CXX" >&6
11274 if test "$hardcode_action_CXX" = relink; then
11275 # Fast installation is not supported
11276 enable_fast_install=no
11277 elif test "$shlibpath_overrides_runpath" = yes ||
11278 test "$enable_shared" = no; then
11279 # Fast installation is not necessary
11280 enable_fast_install=needless
11283 striplib=
11284 old_striplib=
11285 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11286 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11287 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11289 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11290 echo "$as_me:$LINENO: result: yes" >&5
11291 echo "${ECHO_T}yes" >&6
11292 else
11293 # FIXME - insert some real tests, host_os isn't really good enough
11294 case $host_os in
11295 darwin*)
11296 if test -n "$STRIP" ; then
11297 striplib="$STRIP -x"
11298 echo "$as_me:$LINENO: result: yes" >&5
11299 echo "${ECHO_T}yes" >&6
11300 else
11301 echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6
11306 echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6
11309 esac
11312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11314 library_names_spec=
11315 libname_spec='lib$name'
11316 soname_spec=
11317 shrext=".so"
11318 postinstall_cmds=
11319 postuninstall_cmds=
11320 finish_cmds=
11321 finish_eval=
11322 shlibpath_var=
11323 shlibpath_overrides_runpath=unknown
11324 version_type=none
11325 dynamic_linker="$host_os ld.so"
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11327 if test "$GCC" = yes; then
11328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11330 # if the path contains ";" then we assume it to be the separator
11331 # otherwise default to the standard path separator (i.e. ":") - it is
11332 # assumed that no part of a normal pathname contains ";" but that should
11333 # okay in the real world where ";" in dirpaths is itself problematic.
11334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11335 else
11336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11338 else
11339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11341 need_lib_prefix=unknown
11342 hardcode_into_libs=no
11344 # when you set need_version to no, make sure it does not cause -set_version
11345 # flags to be left without arguments
11346 need_version=unknown
11348 case $host_os in
11349 aix3*)
11350 version_type=linux
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11352 shlibpath_var=LIBPATH
11354 # AIX 3 has no versioning support, so we append a major version to the name.
11355 soname_spec='${libname}${release}${shared_ext}$major'
11358 aix4* | aix5*)
11359 version_type=linux
11360 need_lib_prefix=no
11361 need_version=no
11362 hardcode_into_libs=yes
11363 if test "$host_cpu" = ia64; then
11364 # AIX 5 supports IA64
11365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 else
11368 # With GCC up to 2.95.x, collect2 would create an import file
11369 # for dependence libraries. The import file would start with
11370 # the line `#! .'. This would cause the generated library to
11371 # depend on `.', always an invalid library. This was fixed in
11372 # development snapshots of GCC prior to 3.0.
11373 case $host_os in
11374 aix4 | aix4.[01] | aix4.[01].*)
11375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11376 echo ' yes '
11377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11379 else
11380 can_build_shared=no
11383 esac
11384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11385 # soname into executable. Probably we can add versioning support to
11386 # collect2, so additional links can be useful in future.
11387 if test "$aix_use_runtimelinking" = yes; then
11388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11389 # instead of lib<name>.a to let people know that these are not
11390 # typical AIX shared libraries.
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 else
11393 # We preserve .a as extension for shared libraries through AIX4.2
11394 # and later when we are not doing run time linking.
11395 library_names_spec='${libname}${release}.a $libname.a'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LIBPATH
11402 amigaos*)
11403 library_names_spec='$libname.ixlibrary $libname.a'
11404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11405 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'
11408 beos*)
11409 library_names_spec='${libname}${shared_ext}'
11410 dynamic_linker="$host_os ld.so"
11411 shlibpath_var=LIBRARY_PATH
11414 bsdi4*)
11415 version_type=linux
11416 need_version=no
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11423 # the default ld.so.conf also contains /usr/contrib/lib and
11424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11425 # libtool to hard-code these into programs
11428 cygwin* | mingw* | pw32*)
11429 version_type=windows
11430 shrext=".dll"
11431 need_version=no
11432 need_lib_prefix=no
11434 case $GCC,$host_os in
11435 yes,cygwin* | yes,mingw* | yes,pw32*)
11436 library_names_spec='$libname.dll.a'
11437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11438 postinstall_cmds='base_file=`basename \${file}`~
11439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11440 dldir=$destdir/`dirname \$dlpath`~
11441 test -d \$dldir || mkdir -p \$dldir~
11442 $install_prog $dir/$dlname \$dldir/$dlname'
11443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11444 dlpath=$dir/\$dldll~
11445 $rm \$dlpath'
11446 shlibpath_overrides_runpath=yes
11448 case $host_os in
11449 cygwin*)
11450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11454 mingw*)
11455 # MinGW DLLs use traditional 'lib' prefix
11456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11459 # It is most probably a Windows format PATH printed by
11460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11461 # path with ; separators, and with drive letters. We can handle the
11462 # drive letters (cygwin fileutils understands them), so leave them,
11463 # especially as we might pass files found there to a mingw objdump,
11464 # which wouldn't understand a cygwinified path. Ahh.
11465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11466 else
11467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11470 pw32*)
11471 # pw32 DLLs use 'pw' prefix rather than 'lib'
11472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11474 esac
11478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11480 esac
11481 dynamic_linker='Win32 ld.exe'
11482 # FIXME: first we should search . and the directory the executable is in
11483 shlibpath_var=PATH
11486 darwin* | rhapsody*)
11487 dynamic_linker="$host_os dyld"
11488 version_type=darwin
11489 need_lib_prefix=no
11490 need_version=no
11491 # FIXME: Relying on posixy $() will cause problems for
11492 # cross-compilation, but unfortunately the echo tests do not
11493 # yet detect zsh echo's removal of \ escapes.
11494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11495 soname_spec='${libname}${release}${major}$shared_ext'
11496 shlibpath_overrides_runpath=yes
11497 shlibpath_var=DYLD_LIBRARY_PATH
11498 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11500 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11501 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"`
11503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11506 dgux*)
11507 version_type=linux
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11515 freebsd1*)
11516 dynamic_linker=no
11519 freebsd*)
11520 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11521 version_type=freebsd-$objformat
11522 case $version_type in
11523 freebsd-elf*)
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11525 need_version=no
11526 need_lib_prefix=no
11528 freebsd-*)
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11530 need_version=yes
11532 esac
11533 shlibpath_var=LD_LIBRARY_PATH
11534 case $host_os in
11535 freebsd2*)
11536 shlibpath_overrides_runpath=yes
11538 freebsd3.01* | freebsdelf3.01*)
11539 shlibpath_overrides_runpath=yes
11540 hardcode_into_libs=yes
11542 *) # from 3.2 on
11543 shlibpath_overrides_runpath=no
11544 hardcode_into_libs=yes
11546 esac
11549 gnu*)
11550 version_type=linux
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 hardcode_into_libs=yes
11559 hpux9* | hpux10* | hpux11*)
11560 # Give a soname corresponding to the major version so that dld.sl refuses to
11561 # link against other versions.
11562 version_type=sunos
11563 need_lib_prefix=no
11564 need_version=no
11565 case "$host_cpu" in
11566 ia64*)
11567 shrext='.so'
11568 hardcode_into_libs=yes
11569 dynamic_linker="$host_os dld.so"
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 if test "X$HPUX_IA64_MODE" = X32; then
11575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11576 else
11577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11581 hppa*64*)
11582 shrext='.sl'
11583 hardcode_into_libs=yes
11584 dynamic_linker="$host_os dld.sl"
11585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11593 shrext='.sl'
11594 dynamic_linker="$host_os dld.sl"
11595 shlibpath_var=SHLIB_PATH
11596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11600 esac
11601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11602 postinstall_cmds='chmod 555 $lib'
11605 irix5* | irix6* | nonstopux*)
11606 case $host_os in
11607 nonstopux*) version_type=nonstopux ;;
11609 if test "$lt_cv_prog_gnu_ld" = yes; then
11610 version_type=linux
11611 else
11612 version_type=irix
11613 fi ;;
11614 esac
11615 need_lib_prefix=no
11616 need_version=no
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11619 case $host_os in
11620 irix5* | nonstopux*)
11621 libsuff= shlibsuff=
11624 case $LD in # libtool.m4 will add one of these switches to LD
11625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11626 libsuff= shlibsuff= libmagic=32-bit;;
11627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11628 libsuff=32 shlibsuff=N32 libmagic=N32;;
11629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11631 *) libsuff= shlibsuff= libmagic=never-match;;
11632 esac
11634 esac
11635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11636 shlibpath_overrides_runpath=no
11637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11639 hardcode_into_libs=yes
11642 # No shared lib support for Linux oldld, aout, or coff.
11643 linux*oldld* | linux*aout* | linux*coff*)
11644 dynamic_linker=no
11647 # This must be Linux ELF.
11648 linux*)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 # This implies no fast_install, which is unacceptable.
11658 # Some rework will be needed to allow for fast_install
11659 # before this can be enabled.
11660 hardcode_into_libs=yes
11662 # We used to test for /lib/ld.so.1 and disable shared libraries on
11663 # powerpc, because MkLinux only supported shared libraries with the
11664 # GNU dynamic linker. Since this was broken with cross compilers,
11665 # most powerpc-linux boxes support dynamic linking these days and
11666 # people can always --disable-shared, the test was removed, and we
11667 # assume the GNU/Linux dynamic linker is in use.
11668 dynamic_linker='GNU/Linux ld.so'
11671 netbsd*)
11672 version_type=sunos
11673 need_lib_prefix=no
11674 need_version=no
11675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11678 dynamic_linker='NetBSD (a.out) ld.so'
11679 else
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11681 soname_spec='${libname}${release}${shared_ext}$major'
11682 dynamic_linker='NetBSD ld.elf_so'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=yes
11686 hardcode_into_libs=yes
11689 newsos6)
11690 version_type=linux
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=yes
11696 nto-qnx)
11697 version_type=linux
11698 need_lib_prefix=no
11699 need_version=no
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=yes
11706 openbsd*)
11707 version_type=sunos
11708 need_lib_prefix=no
11709 need_version=no
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714 case $host_os in
11715 openbsd2.[89] | openbsd2.[89].*)
11716 shlibpath_overrides_runpath=no
11719 shlibpath_overrides_runpath=yes
11721 esac
11722 else
11723 shlibpath_overrides_runpath=yes
11727 os2*)
11728 libname_spec='$name'
11729 shrext=".dll"
11730 need_lib_prefix=no
11731 library_names_spec='$libname${shared_ext} $libname.a'
11732 dynamic_linker='OS/2 ld.exe'
11733 shlibpath_var=LIBPATH
11736 osf3* | osf4* | osf5*)
11737 version_type=osf
11738 need_lib_prefix=no
11739 need_version=no
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11747 sco3.2v5*)
11748 version_type=osf
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11754 solaris*)
11755 version_type=linux
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 # ldd complains unless libraries are executable
11764 postinstall_cmds='chmod +x $lib'
11767 sunos4*)
11768 version_type=sunos
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=yes
11773 if test "$with_gnu_ld" = yes; then
11774 need_lib_prefix=no
11776 need_version=yes
11779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11780 version_type=linux
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 case $host_vendor in
11785 sni)
11786 shlibpath_overrides_runpath=no
11787 need_lib_prefix=no
11788 export_dynamic_flag_spec='${wl}-Blargedynsym'
11789 runpath_var=LD_RUN_PATH
11791 siemens)
11792 need_lib_prefix=no
11794 motorola)
11795 need_lib_prefix=no
11796 need_version=no
11797 shlibpath_overrides_runpath=no
11798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11800 esac
11803 sysv4*MP*)
11804 if test -d /usr/nec ;then
11805 version_type=linux
11806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11807 soname_spec='$libname${shared_ext}.$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11812 uts4*)
11813 version_type=linux
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11820 dynamic_linker=no
11822 esac
11823 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11824 echo "${ECHO_T}$dynamic_linker" >&6
11825 test "$dynamic_linker" = no && can_build_shared=no
11827 if test "x$enable_dlopen" != xyes; then
11828 enable_dlopen=unknown
11829 enable_dlopen_self=unknown
11830 enable_dlopen_self_static=unknown
11831 else
11832 lt_cv_dlopen=no
11833 lt_cv_dlopen_libs=
11835 case $host_os in
11836 beos*)
11837 lt_cv_dlopen="load_add_on"
11838 lt_cv_dlopen_libs=
11839 lt_cv_dlopen_self=yes
11842 mingw* | pw32*)
11843 lt_cv_dlopen="LoadLibrary"
11844 lt_cv_dlopen_libs=
11847 cygwin*)
11848 lt_cv_dlopen="dlopen"
11849 lt_cv_dlopen_libs=
11852 darwin*)
11853 # if libdl is installed we need to link against it
11854 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldl $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 #line $LINENO "configure"
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11869 /* Override any gcc2 internal prototype to avoid an error. */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11875 char dlopen ();
11877 main ()
11879 dlopen ();
11881 return 0;
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_lib_dl_dlopen=yes
11897 else
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_cv_lib_dl_dlopen=no
11903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11906 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11908 if test $ac_cv_lib_dl_dlopen = yes; then
11909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11910 else
11912 lt_cv_dlopen="dyld"
11913 lt_cv_dlopen_libs=
11914 lt_cv_dlopen_self=yes
11921 echo "$as_me:$LINENO: checking for shl_load" >&5
11922 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11923 if test "${ac_cv_func_shl_load+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char shl_load (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
11937 #ifdef __STDC__
11938 # include <limits.h>
11939 #else
11940 # include <assert.h>
11941 #endif
11942 /* Override any gcc2 internal prototype to avoid an error. */
11943 #ifdef __cplusplus
11944 extern "C"
11946 #endif
11947 /* We use char because int might match the return type of a gcc2
11948 builtin and then its argument prototype would still apply. */
11949 char shl_load ();
11950 /* The GNU C library defines this for functions which it implements
11951 to always fail with ENOSYS. Some functions are actually named
11952 something starting with __ and the normal name is an alias. */
11953 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11954 choke me
11955 #else
11956 char (*f) () = shl_load;
11957 #endif
11958 #ifdef __cplusplus
11960 #endif
11963 main ()
11965 return f != shl_load;
11967 return 0;
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972 (eval $ac_link) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_func_shl_load=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_func_shl_load=no
11989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11991 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11992 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11993 if test $ac_cv_func_shl_load = yes; then
11994 lt_cv_dlopen="shl_load"
11995 else
11996 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11997 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11998 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-ldld $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 #line $LINENO "configure"
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12011 /* Override any gcc2 internal prototype to avoid an error. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 /* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12017 char shl_load ();
12019 main ()
12021 shl_load ();
12023 return 0;
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_lib_dld_shl_load=yes
12039 else
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ac_cv_lib_dld_shl_load=no
12045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12048 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12049 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12050 if test $ac_cv_lib_dld_shl_load = yes; then
12051 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12052 else
12053 echo "$as_me:$LINENO: checking for dlopen" >&5
12054 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12055 if test "${ac_cv_func_dlopen+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char dlopen (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12069 #ifdef __STDC__
12070 # include <limits.h>
12071 #else
12072 # include <assert.h>
12073 #endif
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081 char dlopen ();
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12086 choke me
12087 #else
12088 char (*f) () = dlopen;
12089 #endif
12090 #ifdef __cplusplus
12092 #endif
12095 main ()
12097 return f != dlopen;
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_cv_func_dlopen=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ac_cv_func_dlopen=no
12121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12124 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12125 if test $ac_cv_func_dlopen = yes; then
12126 lt_cv_dlopen="dlopen"
12127 else
12128 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-ldl $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12143 /* Override any gcc2 internal prototype to avoid an error. */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char dlopen ();
12151 main ()
12153 dlopen ();
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170 ac_cv_lib_dl_dlopen=yes
12171 else
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 ac_cv_lib_dl_dlopen=no
12177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12182 if test $ac_cv_lib_dl_dlopen = yes; then
12183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12184 else
12185 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12186 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12187 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lsvld $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206 char dlopen ();
12208 main ()
12210 dlopen ();
12212 return 0;
12214 _ACEOF
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12217 (eval $ac_link) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_svld_dlopen=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_lib_svld_dlopen=no
12234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12237 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12238 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12239 if test $ac_cv_lib_svld_dlopen = yes; then
12240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12241 else
12242 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12243 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12244 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-ldld $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any gcc2 internal prototype to avoid an error. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char dld_link ();
12265 main ()
12267 dld_link ();
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_dld_dld_link=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_dld_dld_link=no
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12295 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12296 if test $ac_cv_lib_dld_dld_link = yes; then
12297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12316 esac
12318 if test "x$lt_cv_dlopen" != xno; then
12319 enable_dlopen=yes
12320 else
12321 enable_dlopen=no
12324 case $lt_cv_dlopen in
12325 dlopen)
12326 save_CPPFLAGS="$CPPFLAGS"
12327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12329 save_LDFLAGS="$LDFLAGS"
12330 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12332 save_LIBS="$LIBS"
12333 LIBS="$lt_cv_dlopen_libs $LIBS"
12335 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12336 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12337 if test "${lt_cv_dlopen_self+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 if test "$cross_compiling" = yes; then :
12341 lt_cv_dlopen_self=cross
12342 else
12343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344 lt_status=$lt_dlunknown
12345 cat > conftest.$ac_ext <<EOF
12346 #line 12346 "configure"
12347 #include "confdefs.h"
12349 #if HAVE_DLFCN_H
12350 #include <dlfcn.h>
12351 #endif
12353 #include <stdio.h>
12355 #ifdef RTLD_GLOBAL
12356 # define LT_DLGLOBAL RTLD_GLOBAL
12357 #else
12358 # ifdef DL_GLOBAL
12359 # define LT_DLGLOBAL DL_GLOBAL
12360 # else
12361 # define LT_DLGLOBAL 0
12362 # endif
12363 #endif
12365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366 find out it does not work in some platform. */
12367 #ifndef LT_DLLAZY_OR_NOW
12368 # ifdef RTLD_LAZY
12369 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12370 # else
12371 # ifdef DL_LAZY
12372 # define LT_DLLAZY_OR_NOW DL_LAZY
12373 # else
12374 # ifdef RTLD_NOW
12375 # define LT_DLLAZY_OR_NOW RTLD_NOW
12376 # else
12377 # ifdef DL_NOW
12378 # define LT_DLLAZY_OR_NOW DL_NOW
12379 # else
12380 # define LT_DLLAZY_OR_NOW 0
12381 # endif
12382 # endif
12383 # endif
12384 # endif
12385 #endif
12387 #ifdef __cplusplus
12388 extern "C" void exit (int);
12389 #endif
12391 void fnord() { int i=42;}
12392 int main ()
12394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12395 int status = $lt_dlunknown;
12397 if (self)
12399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12401 /* dlclose (self); */
12404 exit (status);
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12412 (./conftest; exit; ) 2>/dev/null
12413 lt_status=$?
12414 case x$lt_status in
12415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12417 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12418 esac
12419 else :
12420 # compilation failed
12421 lt_cv_dlopen_self=no
12424 rm -fr conftest*
12428 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12429 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12431 if test "x$lt_cv_dlopen_self" = xyes; then
12432 LDFLAGS="$LDFLAGS $link_static_flag"
12433 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12434 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12435 if test "${lt_cv_dlopen_self_static+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438 if test "$cross_compiling" = yes; then :
12439 lt_cv_dlopen_self_static=cross
12440 else
12441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12442 lt_status=$lt_dlunknown
12443 cat > conftest.$ac_ext <<EOF
12444 #line 12444 "configure"
12445 #include "confdefs.h"
12447 #if HAVE_DLFCN_H
12448 #include <dlfcn.h>
12449 #endif
12451 #include <stdio.h>
12453 #ifdef RTLD_GLOBAL
12454 # define LT_DLGLOBAL RTLD_GLOBAL
12455 #else
12456 # ifdef DL_GLOBAL
12457 # define LT_DLGLOBAL DL_GLOBAL
12458 # else
12459 # define LT_DLGLOBAL 0
12460 # endif
12461 #endif
12463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12464 find out it does not work in some platform. */
12465 #ifndef LT_DLLAZY_OR_NOW
12466 # ifdef RTLD_LAZY
12467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12468 # else
12469 # ifdef DL_LAZY
12470 # define LT_DLLAZY_OR_NOW DL_LAZY
12471 # else
12472 # ifdef RTLD_NOW
12473 # define LT_DLLAZY_OR_NOW RTLD_NOW
12474 # else
12475 # ifdef DL_NOW
12476 # define LT_DLLAZY_OR_NOW DL_NOW
12477 # else
12478 # define LT_DLLAZY_OR_NOW 0
12479 # endif
12480 # endif
12481 # endif
12482 # endif
12483 #endif
12485 #ifdef __cplusplus
12486 extern "C" void exit (int);
12487 #endif
12489 void fnord() { int i=42;}
12490 int main ()
12492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12493 int status = $lt_dlunknown;
12495 if (self)
12497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12499 /* dlclose (self); */
12502 exit (status);
12505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506 (eval $ac_link) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12510 (./conftest; exit; ) 2>/dev/null
12511 lt_status=$?
12512 case x$lt_status in
12513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12515 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12516 esac
12517 else :
12518 # compilation failed
12519 lt_cv_dlopen_self_static=no
12522 rm -fr conftest*
12526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12527 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12530 CPPFLAGS="$save_CPPFLAGS"
12531 LDFLAGS="$save_LDFLAGS"
12532 LIBS="$save_LIBS"
12534 esac
12536 case $lt_cv_dlopen_self in
12537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12538 *) enable_dlopen_self=unknown ;;
12539 esac
12541 case $lt_cv_dlopen_self_static in
12542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12543 *) enable_dlopen_self_static=unknown ;;
12544 esac
12548 # The else clause should only fire when bootstrapping the
12549 # libtool distribution, otherwise you forgot to ship ltmain.sh
12550 # with your package, and you will get complaints that there are
12551 # no rules to generate ltmain.sh.
12552 if test -f "$ltmain"; then
12553 # See if we are running on zsh, and set the options which allow our commands through
12554 # without removal of \ escapes.
12555 if test -n "${ZSH_VERSION+set}" ; then
12556 setopt NO_GLOB_SUBST
12558 # Now quote all the things that may contain metacharacters while being
12559 # careful not to overquote the AC_SUBSTed values. We take copies of the
12560 # variables and quote the copies for generation of the libtool script.
12561 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12564 deplibs_check_method reload_flag reload_cmds need_locks \
12565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12566 lt_cv_sys_global_symbol_to_c_name_address \
12567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12568 old_postinstall_cmds old_postuninstall_cmds \
12569 compiler_CXX \
12570 CC_CXX \
12571 LD_CXX \
12572 lt_prog_compiler_wl_CXX \
12573 lt_prog_compiler_pic_CXX \
12574 lt_prog_compiler_static_CXX \
12575 lt_prog_compiler_no_builtin_flag_CXX \
12576 export_dynamic_flag_spec_CXX \
12577 thread_safe_flag_spec_CXX \
12578 whole_archive_flag_spec_CXX \
12579 enable_shared_with_static_runtimes_CXX \
12580 old_archive_cmds_CXX \
12581 old_archive_from_new_cmds_CXX \
12582 predep_objects_CXX \
12583 postdep_objects_CXX \
12584 predeps_CXX \
12585 postdeps_CXX \
12586 compiler_lib_search_path_CXX \
12587 archive_cmds_CXX \
12588 archive_expsym_cmds_CXX \
12589 postinstall_cmds_CXX \
12590 postuninstall_cmds_CXX \
12591 old_archive_from_expsyms_cmds_CXX \
12592 allow_undefined_flag_CXX \
12593 no_undefined_flag_CXX \
12594 export_symbols_cmds_CXX \
12595 hardcode_libdir_flag_spec_CXX \
12596 hardcode_libdir_flag_spec_ld_CXX \
12597 hardcode_libdir_separator_CXX \
12598 hardcode_automatic_CXX \
12599 module_cmds_CXX \
12600 module_expsym_cmds_CXX \
12601 lt_cv_prog_compiler_c_o_CXX \
12602 exclude_expsyms_CXX \
12603 include_expsyms_CXX; do
12605 case $var in
12606 old_archive_cmds_CXX | \
12607 old_archive_from_new_cmds_CXX | \
12608 archive_cmds_CXX | \
12609 archive_expsym_cmds_CXX | \
12610 module_cmds_CXX | \
12611 module_expsym_cmds_CXX | \
12612 old_archive_from_expsyms_cmds_CXX | \
12613 export_symbols_cmds_CXX | \
12614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12615 postinstall_cmds | postuninstall_cmds | \
12616 old_postinstall_cmds | old_postuninstall_cmds | \
12617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12618 # Double-quote double-evaled strings.
12619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12624 esac
12625 done
12627 case $lt_echo in
12628 *'\$0 --fallback-echo"')
12629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12631 esac
12633 cfgfile="$ofile"
12635 cat <<__EOF__ >> "$cfgfile"
12636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12640 # Shell to use when invoking shell scripts.
12641 SHELL=$lt_SHELL
12643 # Whether or not to build shared libraries.
12644 build_libtool_libs=$enable_shared
12646 # Whether or not to build static libraries.
12647 build_old_libs=$enable_static
12649 # Whether or not to add -lc for building shared libraries.
12650 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12652 # Whether or not to disallow shared libs when runtime libs are static
12653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12655 # Whether or not to optimize for fast installation.
12656 fast_install=$enable_fast_install
12658 # The host system.
12659 host_alias=$host_alias
12660 host=$host
12662 # An echo program that does not interpret backslashes.
12663 echo=$lt_echo
12665 # The archiver.
12666 AR=$lt_AR
12667 AR_FLAGS=$lt_AR_FLAGS
12669 # A C compiler.
12670 LTCC=$lt_LTCC
12672 # A language-specific compiler.
12673 CC=$lt_compiler_CXX
12675 # Is the compiler the GNU C compiler?
12676 with_gcc=$GCC_CXX
12678 # An ERE matcher.
12679 EGREP=$lt_EGREP
12681 # The linker used to build libraries.
12682 LD=$lt_LD_CXX
12684 # Whether we need hard or soft links.
12685 LN_S=$lt_LN_S
12687 # A BSD-compatible nm program.
12688 NM=$lt_NM
12690 # A symbol stripping program
12691 STRIP=$STRIP
12693 # Used to examine libraries when file_magic_cmd begins "file"
12694 MAGIC_CMD=$MAGIC_CMD
12696 # Used on cygwin: DLL creation program.
12697 DLLTOOL="$DLLTOOL"
12699 # Used on cygwin: object dumper.
12700 OBJDUMP="$OBJDUMP"
12702 # Used on cygwin: assembler.
12703 AS="$AS"
12705 # The name of the directory that contains temporary libtool files.
12706 objdir=$objdir
12708 # How to create reloadable object files.
12709 reload_flag=$lt_reload_flag
12710 reload_cmds=$lt_reload_cmds
12712 # How to pass a linker flag through the compiler.
12713 wl=$lt_lt_prog_compiler_wl_CXX
12715 # Object file suffix (normally "o").
12716 objext="$ac_objext"
12718 # Old archive suffix (normally "a").
12719 libext="$libext"
12721 # Shared library suffix (normally ".so").
12722 shrext='$shrext'
12724 # Executable file suffix (normally "").
12725 exeext="$exeext"
12727 # Additional compiler flags for building library objects.
12728 pic_flag=$lt_lt_prog_compiler_pic_CXX
12729 pic_mode=$pic_mode
12731 # What is the maximum length of a command?
12732 max_cmd_len=$lt_cv_sys_max_cmd_len
12734 # Does compiler simultaneously support -c and -o options?
12735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12737 # Must we lock files when doing compilation ?
12738 need_locks=$lt_need_locks
12740 # Do we need the lib prefix for modules?
12741 need_lib_prefix=$need_lib_prefix
12743 # Do we need a version for libraries?
12744 need_version=$need_version
12746 # Whether dlopen is supported.
12747 dlopen_support=$enable_dlopen
12749 # Whether dlopen of programs is supported.
12750 dlopen_self=$enable_dlopen_self
12752 # Whether dlopen of statically linked programs is supported.
12753 dlopen_self_static=$enable_dlopen_self_static
12755 # Compiler flag to prevent dynamic linking.
12756 link_static_flag=$lt_lt_prog_compiler_static_CXX
12758 # Compiler flag to turn off builtin functions.
12759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12761 # Compiler flag to allow reflexive dlopens.
12762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12764 # Compiler flag to generate shared objects directly from archives.
12765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12767 # Compiler flag to generate thread-safe objects.
12768 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12770 # Library versioning type.
12771 version_type=$version_type
12773 # Format of library name prefix.
12774 libname_spec=$lt_libname_spec
12776 # List of archive names. First name is the real one, the rest are links.
12777 # The last name is the one that the linker finds with -lNAME.
12778 library_names_spec=$lt_library_names_spec
12780 # The coded name of the library, if different from the real name.
12781 soname_spec=$lt_soname_spec
12783 # Commands used to build and install an old-style archive.
12784 RANLIB=$lt_RANLIB
12785 old_archive_cmds=$lt_old_archive_cmds_CXX
12786 old_postinstall_cmds=$lt_old_postinstall_cmds
12787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12789 # Create an old-style archive from a shared archive.
12790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12792 # Create a temporary old-style archive to link instead of a shared archive.
12793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12795 # Commands used to build and install a shared archive.
12796 archive_cmds=$lt_archive_cmds_CXX
12797 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12798 postinstall_cmds=$lt_postinstall_cmds
12799 postuninstall_cmds=$lt_postuninstall_cmds
12801 # Commands used to build a loadable module (assumed same as above if empty)
12802 module_cmds=$lt_module_cmds_CXX
12803 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12805 # Commands to strip libraries.
12806 old_striplib=$lt_old_striplib
12807 striplib=$lt_striplib
12809 # Dependencies to place before the objects being linked to create a
12810 # shared library.
12811 predep_objects=$lt_predep_objects_CXX
12813 # Dependencies to place after the objects being linked to create a
12814 # shared library.
12815 postdep_objects=$lt_postdep_objects_CXX
12817 # Dependencies to place before the objects being linked to create a
12818 # shared library.
12819 predeps=$lt_predeps_CXX
12821 # Dependencies to place after the objects being linked to create a
12822 # shared library.
12823 postdeps=$lt_postdeps_CXX
12825 # The library search path used internally by the compiler when linking
12826 # a shared library.
12827 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12829 # Method to check whether dependent libraries are shared objects.
12830 deplibs_check_method=$lt_deplibs_check_method
12832 # Command to use when deplibs_check_method == file_magic.
12833 file_magic_cmd=$lt_file_magic_cmd
12835 # Flag that allows shared libraries with undefined symbols to be built.
12836 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12838 # Flag that forces no undefined symbols.
12839 no_undefined_flag=$lt_no_undefined_flag_CXX
12841 # Commands used to finish a libtool library installation in a directory.
12842 finish_cmds=$lt_finish_cmds
12844 # Same as above, but a single script fragment to be evaled but not shown.
12845 finish_eval=$lt_finish_eval
12847 # Take the output of nm and produce a listing of raw symbols and C names.
12848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12850 # Transform the output of nm in a proper C declaration
12851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12853 # Transform the output of nm in a C name address pair
12854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12856 # This is the shared library runtime path variable.
12857 runpath_var=$runpath_var
12859 # This is the shared library path variable.
12860 shlibpath_var=$shlibpath_var
12862 # Is shlibpath searched before the hard-coded library search path?
12863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12865 # How to hardcode a shared library path into an executable.
12866 hardcode_action=$hardcode_action_CXX
12868 # Whether we should hardcode library paths into libraries.
12869 hardcode_into_libs=$hardcode_into_libs
12871 # Flag to hardcode \$libdir into a binary during linking.
12872 # This must work even if \$libdir does not exist.
12873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12875 # If ld is used when linking, flag to hardcode \$libdir into
12876 # a binary during linking. This must work even if \$libdir does
12877 # not exist.
12878 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12880 # Whether we need a single -rpath flag with a separated argument.
12881 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12883 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12884 # resulting binary.
12885 hardcode_direct=$hardcode_direct_CXX
12887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12888 # resulting binary.
12889 hardcode_minus_L=$hardcode_minus_L_CXX
12891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12892 # the resulting binary.
12893 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12895 # Set to yes if building a shared library automatically hardcodes DIR into the library
12896 # and all subsequent libraries and executables linked against it.
12897 hardcode_automatic=$hardcode_automatic_CXX
12899 # Variables whose values should be saved in libtool wrapper scripts and
12900 # restored at relink time.
12901 variables_saved_for_relink="$variables_saved_for_relink"
12903 # Whether libtool must link a program against all its dependency libraries.
12904 link_all_deplibs=$link_all_deplibs_CXX
12906 # Compile-time system search path for libraries
12907 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12909 # Run-time system search path for libraries
12910 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12912 # Fix the shell variable \$srcfile for the compiler.
12913 fix_srcfile_path="$fix_srcfile_path_CXX"
12915 # Set to yes if exported symbols are required.
12916 always_export_symbols=$always_export_symbols_CXX
12918 # The commands to list exported symbols.
12919 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12921 # The commands to extract the exported symbol list from a shared archive.
12922 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12924 # Symbols that should not be listed in the preloaded symbols.
12925 exclude_expsyms=$lt_exclude_expsyms_CXX
12927 # Symbols that must always be exported.
12928 include_expsyms=$lt_include_expsyms_CXX
12930 # ### END LIBTOOL TAG CONFIG: $tagname
12932 __EOF__
12935 else
12936 # If there is no Makefile yet, we rely on a make rule to execute
12937 # `config.status --recheck' to rerun these tests and create the
12938 # libtool script then.
12939 test -f Makefile && make "$ltmain"
12943 ac_ext=c
12944 ac_cpp='$CPP $CPPFLAGS'
12945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12949 CC=$lt_save_CC
12950 LDCXX=$LD
12951 LD=$lt_save_LD
12952 GCC=$lt_save_GCC
12953 with_gnu_ldcxx=$with_gnu_ld
12954 with_gnu_ld=$lt_save_with_gnu_ld
12955 lt_cv_path_LDCXX=$lt_cv_path_LD
12956 lt_cv_path_LD=$lt_save_path_LD
12957 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12958 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12960 else
12961 tagname=""
12965 F77)
12966 if test -n "$F77" && test "X$F77" != "Xno"; then
12968 ac_ext=f
12969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12974 archive_cmds_need_lc_F77=no
12975 allow_undefined_flag_F77=
12976 always_export_symbols_F77=no
12977 archive_expsym_cmds_F77=
12978 export_dynamic_flag_spec_F77=
12979 hardcode_direct_F77=no
12980 hardcode_libdir_flag_spec_F77=
12981 hardcode_libdir_flag_spec_ld_F77=
12982 hardcode_libdir_separator_F77=
12983 hardcode_minus_L_F77=no
12984 hardcode_automatic_F77=no
12985 module_cmds_F77=
12986 module_expsym_cmds_F77=
12987 link_all_deplibs_F77=unknown
12988 old_archive_cmds_F77=$old_archive_cmds
12989 no_undefined_flag_F77=
12990 whole_archive_flag_spec_F77=
12991 enable_shared_with_static_runtimes_F77=no
12993 # Source file extension for f77 test sources.
12994 ac_ext=f
12996 # Object file extension for compiled f77 test sources.
12997 objext=o
12998 objext_F77=$objext
13000 # Code to be used in simple compile tests
13001 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13003 # Code to be used in simple link tests
13004 lt_simple_link_test_code=" program t\n end\n"
13006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13008 # If no C compiler was specified, use CC.
13009 LTCC=${LTCC-"$CC"}
13011 # Allow CC to be a program name with arguments.
13012 compiler=$CC
13015 # Allow CC to be a program name with arguments.
13016 lt_save_CC="$CC"
13017 CC=${F77-"f77"}
13018 compiler=$CC
13019 compiler_F77=$CC
13020 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13022 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13023 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13024 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13025 echo "${ECHO_T}$can_build_shared" >&6
13027 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13028 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13029 test "$can_build_shared" = "no" && enable_shared=no
13031 # On AIX, shared libraries and static libraries use the same namespace, and
13032 # are all built from PIC.
13033 case "$host_os" in
13034 aix3*)
13035 test "$enable_shared" = yes && enable_static=no
13036 if test -n "$RANLIB"; then
13037 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13038 postinstall_cmds='$RANLIB $lib'
13041 aix4*)
13042 test "$enable_shared" = yes && enable_static=no
13044 esac
13045 echo "$as_me:$LINENO: result: $enable_shared" >&5
13046 echo "${ECHO_T}$enable_shared" >&6
13048 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13049 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13050 # Make sure either enable_shared or enable_static is yes.
13051 test "$enable_shared" = yes || enable_static=yes
13052 echo "$as_me:$LINENO: result: $enable_static" >&5
13053 echo "${ECHO_T}$enable_static" >&6
13055 test "$ld_shlibs_F77" = no && can_build_shared=no
13057 GCC_F77="$G77"
13058 LD_F77="$LD"
13060 lt_prog_compiler_wl_F77=
13061 lt_prog_compiler_pic_F77=
13062 lt_prog_compiler_static_F77=
13064 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13065 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13067 if test "$GCC" = yes; then
13068 lt_prog_compiler_wl_F77='-Wl,'
13069 lt_prog_compiler_static_F77='-static'
13071 case $host_os in
13072 aix*)
13073 # All AIX code is PIC.
13074 if test "$host_cpu" = ia64; then
13075 # AIX 5 now supports IA64 processor
13076 lt_prog_compiler_static_F77='-Bstatic'
13080 amigaos*)
13081 # FIXME: we need at least 68020 code to build shared libraries, but
13082 # adding the `-m68020' flag to GCC prevents building anything better,
13083 # like `-m68040'.
13084 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13087 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13088 # PIC is the default for these OSes.
13091 mingw* | pw32* | os2*)
13092 # This hack is so that the source file can tell whether it is being
13093 # built for inclusion in a dll (and should export symbols for example).
13094 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13097 darwin* | rhapsody*)
13098 # PIC is the default on this platform
13099 # Common symbols not allowed in MH_DYLIB files
13100 lt_prog_compiler_pic_F77='-fno-common'
13103 msdosdjgpp*)
13104 # Just because we use GCC doesn't mean we suddenly get shared libraries
13105 # on systems that don't support them.
13106 lt_prog_compiler_can_build_shared_F77=no
13107 enable_shared=no
13110 sysv4*MP*)
13111 if test -d /usr/nec; then
13112 lt_prog_compiler_pic_F77=-Kconform_pic
13116 hpux*)
13117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13118 # not for PA HP-UX.
13119 case "$host_cpu" in
13120 hppa*64*|ia64*)
13121 # +Z the default
13124 lt_prog_compiler_pic_F77='-fPIC'
13126 esac
13130 lt_prog_compiler_pic_F77='-fPIC'
13132 esac
13133 else
13134 # PORTME Check for flag to pass linker flags through the system compiler.
13135 case $host_os in
13136 aix*)
13137 lt_prog_compiler_wl_F77='-Wl,'
13138 if test "$host_cpu" = ia64; then
13139 # AIX 5 now supports IA64 processor
13140 lt_prog_compiler_static_F77='-Bstatic'
13141 else
13142 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13146 mingw* | pw32* | os2*)
13147 # This hack is so that the source file can tell whether it is being
13148 # built for inclusion in a dll (and should export symbols for example).
13149 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13152 hpux9* | hpux10* | hpux11*)
13153 lt_prog_compiler_wl_F77='-Wl,'
13154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13155 # not for PA HP-UX.
13156 case "$host_cpu" in
13157 hppa*64*|ia64*)
13158 # +Z the default
13161 lt_prog_compiler_pic_F77='+Z'
13163 esac
13164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13165 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13168 irix5* | irix6* | nonstopux*)
13169 lt_prog_compiler_wl_F77='-Wl,'
13170 # PIC (with -KPIC) is the default.
13171 lt_prog_compiler_static_F77='-non_shared'
13174 newsos6)
13175 lt_prog_compiler_pic_F77='-KPIC'
13176 lt_prog_compiler_static_F77='-Bstatic'
13179 linux*)
13180 case $CC in
13181 icc|ecc)
13182 lt_prog_compiler_wl_F77='-Wl,'
13183 lt_prog_compiler_pic_F77='-KPIC'
13184 lt_prog_compiler_static_F77='-static'
13186 ccc)
13187 lt_prog_compiler_wl_F77='-Wl,'
13188 # All Alpha code is PIC.
13189 lt_prog_compiler_static_F77='-non_shared'
13191 esac
13194 osf3* | osf4* | osf5*)
13195 lt_prog_compiler_wl_F77='-Wl,'
13196 # All OSF/1 code is PIC.
13197 lt_prog_compiler_static_F77='-non_shared'
13200 sco3.2v5*)
13201 lt_prog_compiler_pic_F77='-Kpic'
13202 lt_prog_compiler_static_F77='-dn'
13205 solaris*)
13206 lt_prog_compiler_wl_F77='-Wl,'
13207 lt_prog_compiler_pic_F77='-KPIC'
13208 lt_prog_compiler_static_F77='-Bstatic'
13211 sunos4*)
13212 lt_prog_compiler_wl_F77='-Qoption ld '
13213 lt_prog_compiler_pic_F77='-PIC'
13214 lt_prog_compiler_static_F77='-Bstatic'
13217 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13218 lt_prog_compiler_wl_F77='-Wl,'
13219 lt_prog_compiler_pic_F77='-KPIC'
13220 lt_prog_compiler_static_F77='-Bstatic'
13223 sysv4*MP*)
13224 if test -d /usr/nec ;then
13225 lt_prog_compiler_pic_F77='-Kconform_pic'
13226 lt_prog_compiler_static_F77='-Bstatic'
13230 uts4*)
13231 lt_prog_compiler_pic_F77='-pic'
13232 lt_prog_compiler_static_F77='-Bstatic'
13236 lt_prog_compiler_can_build_shared_F77=no
13238 esac
13241 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13242 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13245 # Check to make sure the PIC flag actually works.
13247 if test -n "$lt_prog_compiler_pic_F77"; then
13248 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13249 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13250 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 lt_prog_compiler_pic_works_F77=no
13254 ac_outfile=conftest.$ac_objext
13255 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13256 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13257 # Insert the option either (1) after the last *FLAGS variable, or
13258 # (2) before a word containing "conftest.", or (3) at the end.
13259 # Note that $ac_compile itself does not contain backslashes and begins
13260 # with a dollar sign (not a hyphen), so the echo should work correctly.
13261 # The option is referenced via a variable to avoid confusing sed.
13262 lt_compile=`echo "$ac_compile" | $SED \
13263 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13265 -e 's:$: $lt_compiler_flag:'`
13266 (eval echo "\"\$as_me:13266: $lt_compile\"" >&5)
13267 (eval "$lt_compile" 2>conftest.err)
13268 ac_status=$?
13269 cat conftest.err >&5
13270 echo "$as_me:13270: \$? = $ac_status" >&5
13271 if (exit $ac_status) && test -s "$ac_outfile"; then
13272 # The compiler can only warn and ignore the option if not recognized
13273 # So say no if there are warnings
13274 if test ! -s conftest.err; then
13275 lt_prog_compiler_pic_works_F77=yes
13278 $rm conftest*
13281 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13282 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13284 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13285 case $lt_prog_compiler_pic_F77 in
13286 "" | " "*) ;;
13287 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13288 esac
13289 else
13290 lt_prog_compiler_pic_F77=
13291 lt_prog_compiler_can_build_shared_F77=no
13295 case "$host_os" in
13296 # For platforms which do not support PIC, -DPIC is meaningless:
13297 *djgpp*)
13298 lt_prog_compiler_pic_F77=
13301 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13303 esac
13305 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13306 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13307 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310 lt_cv_prog_compiler_c_o_F77=no
13311 $rm -r conftest 2>/dev/null
13312 mkdir conftest
13313 cd conftest
13314 mkdir out
13315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13317 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13318 # that will create temporary files in the current directory regardless of
13319 # the output directory. Thus, making CWD read-only will cause this test
13320 # to fail, enabling locking or at least warning the user not to do parallel
13321 # builds.
13322 chmod -w .
13324 lt_compiler_flag="-o out/conftest2.$ac_objext"
13325 # Insert the option either (1) after the last *FLAGS variable, or
13326 # (2) before a word containing "conftest.", or (3) at the end.
13327 # Note that $ac_compile itself does not contain backslashes and begins
13328 # with a dollar sign (not a hyphen), so the echo should work correctly.
13329 lt_compile=`echo "$ac_compile" | $SED \
13330 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332 -e 's:$: $lt_compiler_flag:'`
13333 (eval echo "\"\$as_me:13333: $lt_compile\"" >&5)
13334 (eval "$lt_compile" 2>out/conftest.err)
13335 ac_status=$?
13336 cat out/conftest.err >&5
13337 echo "$as_me:13337: \$? = $ac_status" >&5
13338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13339 then
13340 # The compiler can only warn and ignore the option if not recognized
13341 # So say no if there are warnings
13342 if test ! -s out/conftest.err; then
13343 lt_cv_prog_compiler_c_o_F77=yes
13346 chmod u+w .
13347 $rm conftest* out/*
13348 rmdir out
13349 cd ..
13350 rmdir conftest
13351 $rm conftest*
13354 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13358 hard_links="nottested"
13359 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13360 # do not overwrite the value of need_locks provided by the user
13361 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13362 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13363 hard_links=yes
13364 $rm conftest*
13365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13366 touch conftest.a
13367 ln conftest.a conftest.b 2>&5 || hard_links=no
13368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13369 echo "$as_me:$LINENO: result: $hard_links" >&5
13370 echo "${ECHO_T}$hard_links" >&6
13371 if test "$hard_links" = no; then
13372 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13373 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13374 need_locks=warn
13376 else
13377 need_locks=no
13380 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13383 runpath_var=
13384 allow_undefined_flag_F77=
13385 enable_shared_with_static_runtimes_F77=no
13386 archive_cmds_F77=
13387 archive_expsym_cmds_F77=
13388 old_archive_From_new_cmds_F77=
13389 old_archive_from_expsyms_cmds_F77=
13390 export_dynamic_flag_spec_F77=
13391 whole_archive_flag_spec_F77=
13392 thread_safe_flag_spec_F77=
13393 hardcode_libdir_flag_spec_F77=
13394 hardcode_libdir_flag_spec_ld_F77=
13395 hardcode_libdir_separator_F77=
13396 hardcode_direct_F77=no
13397 hardcode_minus_L_F77=no
13398 hardcode_shlibpath_var_F77=unsupported
13399 link_all_deplibs_F77=unknown
13400 hardcode_automatic_F77=no
13401 module_cmds_F77=
13402 module_expsym_cmds_F77=
13403 always_export_symbols_F77=no
13404 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13405 # include_expsyms should be a list of space-separated symbols to be *always*
13406 # included in the symbol list
13407 include_expsyms_F77=
13408 # exclude_expsyms can be an extended regexp of symbols to exclude
13409 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13410 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13411 # as well as any symbol that contains `d'.
13412 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13414 # platforms (ab)use it in PIC code, but their linkers get confused if
13415 # the symbol is explicitly referenced. Since portable code cannot
13416 # rely on this symbol name, it's probably fine to never include it in
13417 # preloaded symbol tables.
13418 extract_expsyms_cmds=
13420 case $host_os in
13421 cygwin* | mingw* | pw32*)
13422 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13423 # When not using gcc, we currently assume that we are using
13424 # Microsoft Visual C++.
13425 if test "$GCC" != yes; then
13426 with_gnu_ld=no
13429 openbsd*)
13430 with_gnu_ld=no
13432 esac
13434 ld_shlibs_F77=yes
13435 if test "$with_gnu_ld" = yes; then
13436 # If archive_cmds runs LD, not CC, wlarc should be empty
13437 wlarc='${wl}'
13439 # See if GNU ld supports shared libraries.
13440 case $host_os in
13441 aix3* | aix4* | aix5*)
13442 # On AIX/PPC, the GNU linker is very broken
13443 if test "$host_cpu" != ia64; then
13444 ld_shlibs_F77=no
13445 cat <<EOF 1>&2
13447 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13448 *** to be unable to reliably create shared libraries on AIX.
13449 *** Therefore, libtool is disabling shared libraries support. If you
13450 *** really care for shared libraries, you may want to modify your PATH
13451 *** so that a non-GNU linker is found, and then restart.
13457 amigaos*)
13458 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)'
13459 hardcode_libdir_flag_spec_F77='-L$libdir'
13460 hardcode_minus_L_F77=yes
13462 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13463 # that the semantics of dynamic libraries on AmigaOS, at least up
13464 # to version 4, is to share data among multiple programs linked
13465 # with the same dynamic library. Since this doesn't match the
13466 # behavior of shared libraries on other platforms, we can't use
13467 # them.
13468 ld_shlibs_F77=no
13471 beos*)
13472 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13473 allow_undefined_flag_F77=unsupported
13474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13475 # support --undefined. This deserves some investigation. FIXME
13476 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13477 else
13478 ld_shlibs_F77=no
13482 cygwin* | mingw* | pw32*)
13483 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13484 # as there is no search path for DLLs.
13485 hardcode_libdir_flag_spec_F77='-L$libdir'
13486 allow_undefined_flag_F77=unsupported
13487 always_export_symbols_F77=no
13488 enable_shared_with_static_runtimes_F77=yes
13489 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13491 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13493 # If the export-symbols file already is a .def file (1st line
13494 # is EXPORTS), use it as is; otherwise, prepend...
13495 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13496 cp $export_symbols $output_objdir/$soname.def;
13497 else
13498 echo EXPORTS > $output_objdir/$soname.def;
13499 cat $export_symbols >> $output_objdir/$soname.def;
13501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13502 else
13503 ld_shlibs=no
13507 netbsd*)
13508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13509 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13510 wlarc=
13511 else
13512 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13517 solaris* | sysv5*)
13518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13519 ld_shlibs_F77=no
13520 cat <<EOF 1>&2
13522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13523 *** create shared libraries on Solaris systems. Therefore, libtool
13524 *** is disabling shared libraries support. We urge you to upgrade GNU
13525 *** binutils to release 2.9.1 or newer. Another option is to modify
13526 *** your PATH or compiler configuration so that the native linker is
13527 *** used, and then restart.
13530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13533 else
13534 ld_shlibs_F77=no
13538 sunos4*)
13539 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13540 wlarc=
13541 hardcode_direct_F77=yes
13542 hardcode_shlibpath_var_F77=no
13546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13547 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13548 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13549 else
13550 ld_shlibs_F77=no
13553 esac
13555 if test "$ld_shlibs_F77" = yes; then
13556 runpath_var=LD_RUN_PATH
13557 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13558 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13559 # ancient GNU ld didn't support --whole-archive et. al.
13560 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13561 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13562 else
13563 whole_archive_flag_spec_F77=
13566 else
13567 # PORTME fill in a description of your system's linker (not GNU ld)
13568 case $host_os in
13569 aix3*)
13570 allow_undefined_flag_F77=unsupported
13571 always_export_symbols_F77=yes
13572 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'
13573 # Note: this linker hardcodes the directories in LIBPATH if there
13574 # are no directories specified by -L.
13575 hardcode_minus_L_F77=yes
13576 if test "$GCC" = yes && test -z "$link_static_flag"; then
13577 # Neither direct hardcoding nor static linking is supported with a
13578 # broken collect2.
13579 hardcode_direct_F77=unsupported
13583 aix4* | aix5*)
13584 if test "$host_cpu" = ia64; then
13585 # On IA64, the linker does run time linking by default, so we don't
13586 # have to do anything special.
13587 aix_use_runtimelinking=no
13588 exp_sym_flag='-Bexport'
13589 no_entry_flag=""
13590 else
13591 # If we're using GNU nm, then we don't want the "-C" option.
13592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13594 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'
13595 else
13596 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'
13598 aix_use_runtimelinking=no
13600 # Test if we are trying to use run time linking or normal
13601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13602 # need to do runtime linking.
13603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13604 for ld_flag in $LDFLAGS; do
13605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13606 aix_use_runtimelinking=yes
13607 break
13609 done
13610 esac
13612 exp_sym_flag='-bexport'
13613 no_entry_flag='-bnoentry'
13616 # When large executables or shared objects are built, AIX ld can
13617 # have problems creating the table of contents. If linking a library
13618 # or program results in "error TOC overflow" add -mminimal-toc to
13619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13622 archive_cmds_F77=''
13623 hardcode_direct_F77=yes
13624 hardcode_libdir_separator_F77=':'
13625 link_all_deplibs_F77=yes
13627 if test "$GCC" = yes; then
13628 case $host_os in aix4.012|aix4.012.*)
13629 # We only want to do this on AIX 4.2 and lower, the check
13630 # below for broken collect2 doesn't work under 4.3+
13631 collect2name=`${CC} -print-prog-name=collect2`
13632 if test -f "$collect2name" && \
13633 strings "$collect2name" | grep resolve_lib_name >/dev/null
13634 then
13635 # We have reworked collect2
13636 hardcode_direct_F77=yes
13637 else
13638 # We have old collect2
13639 hardcode_direct_F77=unsupported
13640 # It fails to find uninstalled libraries when the uninstalled
13641 # path is not listed in the libpath. Setting hardcode_minus_L
13642 # to unsupported forces relinking
13643 hardcode_minus_L_F77=yes
13644 hardcode_libdir_flag_spec_F77='-L$libdir'
13645 hardcode_libdir_separator_F77=
13647 esac
13648 shared_flag='-shared'
13649 else
13650 # not using gcc
13651 if test "$host_cpu" = ia64; then
13652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13653 # chokes on -Wl,-G. The following line is correct:
13654 shared_flag='-G'
13655 else
13656 if test "$aix_use_runtimelinking" = yes; then
13657 shared_flag='${wl}-G'
13658 else
13659 shared_flag='${wl}-bM:SRE'
13664 # It seems that -bexpall does not export symbols beginning with
13665 # underscore (_), so it is better to generate a list of symbols to export.
13666 always_export_symbols_F77=yes
13667 if test "$aix_use_runtimelinking" = yes; then
13668 # Warning - without using the other runtime loading flags (-brtl),
13669 # -berok will link without error, but may produce a broken library.
13670 allow_undefined_flag_F77='-berok'
13671 # Determine the default libpath from the value encoded in an empty executable.
13672 cat >conftest.$ac_ext <<_ACEOF
13673 program main
13676 _ACEOF
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679 (eval $ac_link) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -s conftest$ac_exeext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13692 # Check for a 64-bit object if we didn't find anything.
13693 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; }
13694 }'`; fi
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13703 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13704 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"
13705 else
13706 if test "$host_cpu" = ia64; then
13707 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13708 allow_undefined_flag_F77="-z nodefs"
13709 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"
13710 else
13711 # Determine the default libpath from the value encoded in an empty executable.
13712 cat >conftest.$ac_ext <<_ACEOF
13713 program main
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719 (eval $ac_link) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -s conftest$ac_exeext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13730 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13732 # Check for a 64-bit object if we didn't find anything.
13733 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; }
13734 }'`; fi
13735 else
13736 echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13743 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13744 # Warning - without using the other run time loading flags,
13745 # -berok will link without error, but may produce a broken library.
13746 no_undefined_flag_F77=' ${wl}-bernotok'
13747 allow_undefined_flag_F77=' ${wl}-berok'
13748 # -bexpall does not export symbols beginning with underscore (_)
13749 always_export_symbols_F77=yes
13750 # Exported symbols can be pulled into shared objects from archives
13751 whole_archive_flag_spec_F77=' '
13752 archive_cmds_need_lc_F77=yes
13753 # This is similar to how AIX traditionally builds it's shared libraries.
13754 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'
13759 amigaos*)
13760 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)'
13761 hardcode_libdir_flag_spec_F77='-L$libdir'
13762 hardcode_minus_L_F77=yes
13763 # see comment about different semantics on the GNU ld section
13764 ld_shlibs_F77=no
13767 bsdi4*)
13768 export_dynamic_flag_spec_F77=-rdynamic
13771 cygwin* | mingw* | pw32*)
13772 # When not using gcc, we currently assume that we are using
13773 # Microsoft Visual C++.
13774 # hardcode_libdir_flag_spec is actually meaningless, as there is
13775 # no search path for DLLs.
13776 hardcode_libdir_flag_spec_F77=' '
13777 allow_undefined_flag_F77=unsupported
13778 # Tell ltmain to make .lib files, not .a files.
13779 libext=lib
13780 # Tell ltmain to make .dll files, not .so files.
13781 shrext=".dll"
13782 # FIXME: Setting linknames here is a bad hack.
13783 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13784 # The linker will automatically build a .lib file if we build a DLL.
13785 old_archive_From_new_cmds_F77='true'
13786 # FIXME: Should let the user specify the lib program.
13787 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13788 fix_srcfile_path='`cygpath -w "$srcfile"`'
13789 enable_shared_with_static_runtimes_F77=yes
13792 darwin* | rhapsody*)
13793 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13794 archive_cmds_need_lc_F77=no
13795 case "$host_os" in
13796 rhapsody* | darwin1.[012])
13797 allow_undefined_flag_F77='-undefined suppress'
13799 *) # Darwin 1.3 on
13800 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13802 esac
13803 # FIXME: Relying on posixy $() will cause problems for
13804 # cross-compilation, but unfortunately the echo tests do not
13805 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13806 # `"' quotes if we put them in here... so don't!
13807 lt_int_apple_cc_single_mod=no
13808 output_verbose_link_cmd='echo'
13809 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13810 lt_int_apple_cc_single_mod=yes
13812 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13813 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13814 else
13815 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13817 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13819 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13820 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13821 else
13822 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13824 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13825 hardcode_direct_F77=no
13826 hardcode_automatic_F77=yes
13827 hardcode_shlibpath_var_F77=unsupported
13828 whole_archive_flag_spec_F77='-all_load $convenience'
13829 link_all_deplibs_F77=yes
13833 dgux*)
13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_libdir_flag_spec_F77='-L$libdir'
13836 hardcode_shlibpath_var_F77=no
13839 freebsd1*)
13840 ld_shlibs_F77=no
13843 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13844 # support. Future versions do this automatically, but an explicit c++rt0.o
13845 # does not break anything, and helps significantly (at the cost of a little
13846 # extra space).
13847 freebsd2.2*)
13848 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13849 hardcode_libdir_flag_spec_F77='-R$libdir'
13850 hardcode_direct_F77=yes
13851 hardcode_shlibpath_var_F77=no
13854 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13855 freebsd2*)
13856 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_direct_F77=yes
13858 hardcode_minus_L_F77=yes
13859 hardcode_shlibpath_var_F77=no
13862 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13863 freebsd*)
13864 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13865 hardcode_libdir_flag_spec_F77='-R$libdir'
13866 hardcode_direct_F77=yes
13867 hardcode_shlibpath_var_F77=no
13870 hpux9*)
13871 if test "$GCC" = yes; then
13872 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'
13873 else
13874 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'
13876 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13877 hardcode_libdir_separator_F77=:
13878 hardcode_direct_F77=yes
13880 # hardcode_minus_L: Not really in the search PATH,
13881 # but as the default location of the library.
13882 hardcode_minus_L_F77=yes
13883 export_dynamic_flag_spec_F77='${wl}-E'
13886 hpux10* | hpux11*)
13887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13888 case "$host_cpu" in
13889 hppa*64*|ia64*)
13890 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13895 esac
13896 else
13897 case "$host_cpu" in
13898 hppa*64*|ia64*)
13899 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13904 esac
13906 if test "$with_gnu_ld" = no; then
13907 case "$host_cpu" in
13908 hppa*64*)
13909 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13910 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13911 hardcode_libdir_separator_F77=:
13912 hardcode_direct_F77=no
13913 hardcode_shlibpath_var_F77=no
13915 ia64*)
13916 hardcode_libdir_flag_spec_F77='-L$libdir'
13917 hardcode_direct_F77=no
13918 hardcode_shlibpath_var_F77=no
13920 # hardcode_minus_L: Not really in the search PATH,
13921 # but as the default location of the library.
13922 hardcode_minus_L_F77=yes
13925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13926 hardcode_libdir_separator_F77=:
13927 hardcode_direct_F77=yes
13928 export_dynamic_flag_spec_F77='${wl}-E'
13930 # hardcode_minus_L: Not really in the search PATH,
13931 # but as the default location of the library.
13932 hardcode_minus_L_F77=yes
13934 esac
13938 irix5* | irix6* | nonstopux*)
13939 if test "$GCC" = yes; then
13940 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'
13941 else
13942 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'
13943 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13945 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13946 hardcode_libdir_separator_F77=:
13947 link_all_deplibs_F77=yes
13950 netbsd*)
13951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13952 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13953 else
13954 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13956 hardcode_libdir_flag_spec_F77='-R$libdir'
13957 hardcode_direct_F77=yes
13958 hardcode_shlibpath_var_F77=no
13961 newsos6)
13962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13963 hardcode_direct_F77=yes
13964 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13965 hardcode_libdir_separator_F77=:
13966 hardcode_shlibpath_var_F77=no
13969 openbsd*)
13970 hardcode_direct_F77=yes
13971 hardcode_shlibpath_var_F77=no
13972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13973 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13974 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13975 export_dynamic_flag_spec_F77='${wl}-E'
13976 else
13977 case $host_os in
13978 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_libdir_flag_spec_F77='-R$libdir'
13983 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13984 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13986 esac
13990 os2*)
13991 hardcode_libdir_flag_spec_F77='-L$libdir'
13992 hardcode_minus_L_F77=yes
13993 allow_undefined_flag_F77=unsupported
13994 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'
13995 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13998 osf3*)
13999 if test "$GCC" = yes; then
14000 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14001 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'
14002 else
14003 allow_undefined_flag_F77=' -expect_unresolved \*'
14004 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'
14006 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14007 hardcode_libdir_separator_F77=:
14010 osf4* | osf5*) # as osf3* with the addition of -msym flag
14011 if test "$GCC" = yes; then
14012 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14013 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'
14014 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14015 else
14016 allow_undefined_flag_F77=' -expect_unresolved \*'
14017 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'
14018 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~
14019 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14021 # Both c and cxx compiler support -rpath directly
14022 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14024 hardcode_libdir_separator_F77=:
14027 sco3.2v5*)
14028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029 hardcode_shlibpath_var_F77=no
14030 export_dynamic_flag_spec_F77='${wl}-Bexport'
14031 runpath_var=LD_RUN_PATH
14032 hardcode_runpath_var=yes
14035 solaris*)
14036 no_undefined_flag_F77=' -z text'
14037 if test "$GCC" = yes; then
14038 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14039 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14041 else
14042 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14043 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14046 hardcode_libdir_flag_spec_F77='-R$libdir'
14047 hardcode_shlibpath_var_F77=no
14048 case $host_os in
14049 solaris2.[0-5] | solaris2.[0-5].*) ;;
14050 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14051 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14052 esac
14053 link_all_deplibs_F77=yes
14056 sunos4*)
14057 if test "x$host_vendor" = xsequent; then
14058 # Use $CC to link under sequent, because it throws in some extra .o
14059 # files that make .init and .fini sections work.
14060 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14061 else
14062 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14064 hardcode_libdir_flag_spec_F77='-L$libdir'
14065 hardcode_direct_F77=yes
14066 hardcode_minus_L_F77=yes
14067 hardcode_shlibpath_var_F77=no
14070 sysv4)
14071 case $host_vendor in
14072 sni)
14073 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14074 hardcode_direct_F77=yes # is this really true???
14076 siemens)
14077 ## LD is ld it makes a PLAMLIB
14078 ## CC just makes a GrossModule.
14079 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14080 reload_cmds_F77='$CC -r -o $output$reload_objs'
14081 hardcode_direct_F77=no
14083 motorola)
14084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14087 esac
14088 runpath_var='LD_RUN_PATH'
14089 hardcode_shlibpath_var_F77=no
14092 sysv4.3*)
14093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14094 hardcode_shlibpath_var_F77=no
14095 export_dynamic_flag_spec_F77='-Bexport'
14098 sysv4*MP*)
14099 if test -d /usr/nec; then
14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14101 hardcode_shlibpath_var_F77=no
14102 runpath_var=LD_RUN_PATH
14103 hardcode_runpath_var=yes
14104 ld_shlibs_F77=yes
14108 sysv4.2uw2*)
14109 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14110 hardcode_direct_F77=yes
14111 hardcode_minus_L_F77=no
14112 hardcode_shlibpath_var_F77=no
14113 hardcode_runpath_var=yes
14114 runpath_var=LD_RUN_PATH
14117 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14118 no_undefined_flag_F77='${wl}-z ${wl}text'
14119 if test "$GCC" = yes; then
14120 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 else
14122 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14124 runpath_var='LD_RUN_PATH'
14125 hardcode_shlibpath_var_F77=no
14128 sysv5*)
14129 no_undefined_flag_F77=' -z text'
14130 # $CC -shared without GNU ld will not create a library from C++
14131 # object files and a static libstdc++, better avoid it by now
14132 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14135 hardcode_libdir_flag_spec_F77=
14136 hardcode_shlibpath_var_F77=no
14137 runpath_var='LD_RUN_PATH'
14140 uts4*)
14141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14142 hardcode_libdir_flag_spec_F77='-L$libdir'
14143 hardcode_shlibpath_var_F77=no
14147 ld_shlibs_F77=no
14149 esac
14152 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14153 echo "${ECHO_T}$ld_shlibs_F77" >&6
14154 test "$ld_shlibs_F77" = no && can_build_shared=no
14156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14157 if test "$GCC" = yes; then
14158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14162 # Do we need to explicitly link libc?
14164 case "x$archive_cmds_need_lc_F77" in
14165 x|xyes)
14166 # Assume -lc should be added
14167 archive_cmds_need_lc_F77=yes
14169 if test "$enable_shared" = yes && test "$GCC" = yes; then
14170 case $archive_cmds_F77 in
14171 *'~'*)
14172 # FIXME: we may have to deal with multi-command sequences.
14174 '$CC '*)
14175 # Test whether the compiler implicitly links with -lc since on some
14176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14177 # to ld, don't add -lc before -lgcc.
14178 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14180 $rm conftest*
14181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } 2>conftest.err; then
14188 soname=conftest
14189 lib=conftest
14190 libobjs=conftest.$ac_objext
14191 deplibs=
14192 wl=$lt_prog_compiler_wl_F77
14193 compiler_flags=-v
14194 linker_flags=-v
14195 verstring=
14196 output_objdir=.
14197 libname=conftest
14198 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14199 allow_undefined_flag_F77=
14200 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14201 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }
14205 then
14206 archive_cmds_need_lc_F77=no
14207 else
14208 archive_cmds_need_lc_F77=yes
14210 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14211 else
14212 cat conftest.err 1>&5
14214 $rm conftest*
14215 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14216 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14218 esac
14221 esac
14223 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14224 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14225 hardcode_action_F77=
14226 if test -n "$hardcode_libdir_flag_spec_F77" || \
14227 test -n "$runpath_var F77" || \
14228 test "X$hardcode_automatic_F77"="Xyes" ; then
14230 # We can hardcode non-existant directories.
14231 if test "$hardcode_direct_F77" != no &&
14232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14233 # have to relink, otherwise we might link with an installed library
14234 # when we should be linking with a yet-to-be-installed one
14235 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14236 test "$hardcode_minus_L_F77" != no; then
14237 # Linking always hardcodes the temporary library directory.
14238 hardcode_action_F77=relink
14239 else
14240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14241 hardcode_action_F77=immediate
14243 else
14244 # We cannot hardcode anything, or else we can only hardcode existing
14245 # directories.
14246 hardcode_action_F77=unsupported
14248 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14249 echo "${ECHO_T}$hardcode_action_F77" >&6
14251 if test "$hardcode_action_F77" = relink; then
14252 # Fast installation is not supported
14253 enable_fast_install=no
14254 elif test "$shlibpath_overrides_runpath" = yes ||
14255 test "$enable_shared" = no; then
14256 # Fast installation is not necessary
14257 enable_fast_install=needless
14260 striplib=
14261 old_striplib=
14262 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14263 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14265 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14266 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14267 echo "$as_me:$LINENO: result: yes" >&5
14268 echo "${ECHO_T}yes" >&6
14269 else
14270 # FIXME - insert some real tests, host_os isn't really good enough
14271 case $host_os in
14272 darwin*)
14273 if test -n "$STRIP" ; then
14274 striplib="$STRIP -x"
14275 echo "$as_me:$LINENO: result: yes" >&5
14276 echo "${ECHO_T}yes" >&6
14277 else
14278 echo "$as_me:$LINENO: result: no" >&5
14279 echo "${ECHO_T}no" >&6
14283 echo "$as_me:$LINENO: result: no" >&5
14284 echo "${ECHO_T}no" >&6
14286 esac
14289 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14290 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14291 library_names_spec=
14292 libname_spec='lib$name'
14293 soname_spec=
14294 shrext=".so"
14295 postinstall_cmds=
14296 postuninstall_cmds=
14297 finish_cmds=
14298 finish_eval=
14299 shlibpath_var=
14300 shlibpath_overrides_runpath=unknown
14301 version_type=none
14302 dynamic_linker="$host_os ld.so"
14303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14304 if test "$GCC" = yes; then
14305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14307 # if the path contains ";" then we assume it to be the separator
14308 # otherwise default to the standard path separator (i.e. ":") - it is
14309 # assumed that no part of a normal pathname contains ";" but that should
14310 # okay in the real world where ";" in dirpaths is itself problematic.
14311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14312 else
14313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14315 else
14316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14318 need_lib_prefix=unknown
14319 hardcode_into_libs=no
14321 # when you set need_version to no, make sure it does not cause -set_version
14322 # flags to be left without arguments
14323 need_version=unknown
14325 case $host_os in
14326 aix3*)
14327 version_type=linux
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14329 shlibpath_var=LIBPATH
14331 # AIX 3 has no versioning support, so we append a major version to the name.
14332 soname_spec='${libname}${release}${shared_ext}$major'
14335 aix4* | aix5*)
14336 version_type=linux
14337 need_lib_prefix=no
14338 need_version=no
14339 hardcode_into_libs=yes
14340 if test "$host_cpu" = ia64; then
14341 # AIX 5 supports IA64
14342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 else
14345 # With GCC up to 2.95.x, collect2 would create an import file
14346 # for dependence libraries. The import file would start with
14347 # the line `#! .'. This would cause the generated library to
14348 # depend on `.', always an invalid library. This was fixed in
14349 # development snapshots of GCC prior to 3.0.
14350 case $host_os in
14351 aix4 | aix4.[01] | aix4.[01].*)
14352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14353 echo ' yes '
14354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14356 else
14357 can_build_shared=no
14360 esac
14361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14362 # soname into executable. Probably we can add versioning support to
14363 # collect2, so additional links can be useful in future.
14364 if test "$aix_use_runtimelinking" = yes; then
14365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14366 # instead of lib<name>.a to let people know that these are not
14367 # typical AIX shared libraries.
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 else
14370 # We preserve .a as extension for shared libraries through AIX4.2
14371 # and later when we are not doing run time linking.
14372 library_names_spec='${libname}${release}.a $libname.a'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14375 shlibpath_var=LIBPATH
14379 amigaos*)
14380 library_names_spec='$libname.ixlibrary $libname.a'
14381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14382 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'
14385 beos*)
14386 library_names_spec='${libname}${shared_ext}'
14387 dynamic_linker="$host_os ld.so"
14388 shlibpath_var=LIBRARY_PATH
14391 bsdi4*)
14392 version_type=linux
14393 need_version=no
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14397 shlibpath_var=LD_LIBRARY_PATH
14398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14400 # the default ld.so.conf also contains /usr/contrib/lib and
14401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14402 # libtool to hard-code these into programs
14405 cygwin* | mingw* | pw32*)
14406 version_type=windows
14407 shrext=".dll"
14408 need_version=no
14409 need_lib_prefix=no
14411 case $GCC,$host_os in
14412 yes,cygwin* | yes,mingw* | yes,pw32*)
14413 library_names_spec='$libname.dll.a'
14414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14415 postinstall_cmds='base_file=`basename \${file}`~
14416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14417 dldir=$destdir/`dirname \$dlpath`~
14418 test -d \$dldir || mkdir -p \$dldir~
14419 $install_prog $dir/$dlname \$dldir/$dlname'
14420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14421 dlpath=$dir/\$dldll~
14422 $rm \$dlpath'
14423 shlibpath_overrides_runpath=yes
14425 case $host_os in
14426 cygwin*)
14427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14429 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14431 mingw*)
14432 # MinGW DLLs use traditional 'lib' prefix
14433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14436 # It is most probably a Windows format PATH printed by
14437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14438 # path with ; separators, and with drive letters. We can handle the
14439 # drive letters (cygwin fileutils understands them), so leave them,
14440 # especially as we might pass files found there to a mingw objdump,
14441 # which wouldn't understand a cygwinified path. Ahh.
14442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14443 else
14444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14447 pw32*)
14448 # pw32 DLLs use 'pw' prefix rather than 'lib'
14449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14451 esac
14455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14457 esac
14458 dynamic_linker='Win32 ld.exe'
14459 # FIXME: first we should search . and the directory the executable is in
14460 shlibpath_var=PATH
14463 darwin* | rhapsody*)
14464 dynamic_linker="$host_os dyld"
14465 version_type=darwin
14466 need_lib_prefix=no
14467 need_version=no
14468 # FIXME: Relying on posixy $() will cause problems for
14469 # cross-compilation, but unfortunately the echo tests do not
14470 # yet detect zsh echo's removal of \ escapes.
14471 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14472 soname_spec='${libname}${release}${major}$shared_ext'
14473 shlibpath_overrides_runpath=yes
14474 shlibpath_var=DYLD_LIBRARY_PATH
14475 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14476 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14477 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14478 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"`
14480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483 dgux*)
14484 version_type=linux
14485 need_lib_prefix=no
14486 need_version=no
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14492 freebsd1*)
14493 dynamic_linker=no
14496 freebsd*)
14497 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14498 version_type=freebsd-$objformat
14499 case $version_type in
14500 freebsd-elf*)
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14502 need_version=no
14503 need_lib_prefix=no
14505 freebsd-*)
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14507 need_version=yes
14509 esac
14510 shlibpath_var=LD_LIBRARY_PATH
14511 case $host_os in
14512 freebsd2*)
14513 shlibpath_overrides_runpath=yes
14515 freebsd3.01* | freebsdelf3.01*)
14516 shlibpath_overrides_runpath=yes
14517 hardcode_into_libs=yes
14519 *) # from 3.2 on
14520 shlibpath_overrides_runpath=no
14521 hardcode_into_libs=yes
14523 esac
14526 gnu*)
14527 version_type=linux
14528 need_lib_prefix=no
14529 need_version=no
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 hardcode_into_libs=yes
14536 hpux9* | hpux10* | hpux11*)
14537 # Give a soname corresponding to the major version so that dld.sl refuses to
14538 # link against other versions.
14539 version_type=sunos
14540 need_lib_prefix=no
14541 need_version=no
14542 case "$host_cpu" in
14543 ia64*)
14544 shrext='.so'
14545 hardcode_into_libs=yes
14546 dynamic_linker="$host_os dld.so"
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 if test "X$HPUX_IA64_MODE" = X32; then
14552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14553 else
14554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14558 hppa*64*)
14559 shrext='.sl'
14560 hardcode_into_libs=yes
14561 dynamic_linker="$host_os dld.sl"
14562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14570 shrext='.sl'
14571 dynamic_linker="$host_os dld.sl"
14572 shlibpath_var=SHLIB_PATH
14573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14577 esac
14578 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14579 postinstall_cmds='chmod 555 $lib'
14582 irix5* | irix6* | nonstopux*)
14583 case $host_os in
14584 nonstopux*) version_type=nonstopux ;;
14586 if test "$lt_cv_prog_gnu_ld" = yes; then
14587 version_type=linux
14588 else
14589 version_type=irix
14590 fi ;;
14591 esac
14592 need_lib_prefix=no
14593 need_version=no
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14596 case $host_os in
14597 irix5* | nonstopux*)
14598 libsuff= shlibsuff=
14601 case $LD in # libtool.m4 will add one of these switches to LD
14602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14603 libsuff= shlibsuff= libmagic=32-bit;;
14604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14605 libsuff=32 shlibsuff=N32 libmagic=N32;;
14606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14608 *) libsuff= shlibsuff= libmagic=never-match;;
14609 esac
14611 esac
14612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14613 shlibpath_overrides_runpath=no
14614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14616 hardcode_into_libs=yes
14619 # No shared lib support for Linux oldld, aout, or coff.
14620 linux*oldld* | linux*aout* | linux*coff*)
14621 dynamic_linker=no
14624 # This must be Linux ELF.
14625 linux*)
14626 version_type=linux
14627 need_lib_prefix=no
14628 need_version=no
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 shlibpath_overrides_runpath=no
14634 # This implies no fast_install, which is unacceptable.
14635 # Some rework will be needed to allow for fast_install
14636 # before this can be enabled.
14637 hardcode_into_libs=yes
14639 # We used to test for /lib/ld.so.1 and disable shared libraries on
14640 # powerpc, because MkLinux only supported shared libraries with the
14641 # GNU dynamic linker. Since this was broken with cross compilers,
14642 # most powerpc-linux boxes support dynamic linking these days and
14643 # people can always --disable-shared, the test was removed, and we
14644 # assume the GNU/Linux dynamic linker is in use.
14645 dynamic_linker='GNU/Linux ld.so'
14648 netbsd*)
14649 version_type=sunos
14650 need_lib_prefix=no
14651 need_version=no
14652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14655 dynamic_linker='NetBSD (a.out) ld.so'
14656 else
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 dynamic_linker='NetBSD ld.elf_so'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 shlibpath_overrides_runpath=yes
14663 hardcode_into_libs=yes
14666 newsos6)
14667 version_type=linux
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14673 nto-qnx)
14674 version_type=linux
14675 need_lib_prefix=no
14676 need_version=no
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=yes
14683 openbsd*)
14684 version_type=sunos
14685 need_lib_prefix=no
14686 need_version=no
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14689 shlibpath_var=LD_LIBRARY_PATH
14690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14691 case $host_os in
14692 openbsd2.[89] | openbsd2.[89].*)
14693 shlibpath_overrides_runpath=no
14696 shlibpath_overrides_runpath=yes
14698 esac
14699 else
14700 shlibpath_overrides_runpath=yes
14704 os2*)
14705 libname_spec='$name'
14706 shrext=".dll"
14707 need_lib_prefix=no
14708 library_names_spec='$libname${shared_ext} $libname.a'
14709 dynamic_linker='OS/2 ld.exe'
14710 shlibpath_var=LIBPATH
14713 osf3* | osf4* | osf5*)
14714 version_type=osf
14715 need_lib_prefix=no
14716 need_version=no
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14724 sco3.2v5*)
14725 version_type=osf
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14731 solaris*)
14732 version_type=linux
14733 need_lib_prefix=no
14734 need_version=no
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 hardcode_into_libs=yes
14740 # ldd complains unless libraries are executable
14741 postinstall_cmds='chmod +x $lib'
14744 sunos4*)
14745 version_type=sunos
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes
14750 if test "$with_gnu_ld" = yes; then
14751 need_lib_prefix=no
14753 need_version=yes
14756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14757 version_type=linux
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 case $host_vendor in
14762 sni)
14763 shlibpath_overrides_runpath=no
14764 need_lib_prefix=no
14765 export_dynamic_flag_spec='${wl}-Blargedynsym'
14766 runpath_var=LD_RUN_PATH
14768 siemens)
14769 need_lib_prefix=no
14771 motorola)
14772 need_lib_prefix=no
14773 need_version=no
14774 shlibpath_overrides_runpath=no
14775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14777 esac
14780 sysv4*MP*)
14781 if test -d /usr/nec ;then
14782 version_type=linux
14783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14784 soname_spec='$libname${shared_ext}.$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14789 uts4*)
14790 version_type=linux
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14797 dynamic_linker=no
14799 esac
14800 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14801 echo "${ECHO_T}$dynamic_linker" >&6
14802 test "$dynamic_linker" = no && can_build_shared=no
14805 # The else clause should only fire when bootstrapping the
14806 # libtool distribution, otherwise you forgot to ship ltmain.sh
14807 # with your package, and you will get complaints that there are
14808 # no rules to generate ltmain.sh.
14809 if test -f "$ltmain"; then
14810 # See if we are running on zsh, and set the options which allow our commands through
14811 # without removal of \ escapes.
14812 if test -n "${ZSH_VERSION+set}" ; then
14813 setopt NO_GLOB_SUBST
14815 # Now quote all the things that may contain metacharacters while being
14816 # careful not to overquote the AC_SUBSTed values. We take copies of the
14817 # variables and quote the copies for generation of the libtool script.
14818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14821 deplibs_check_method reload_flag reload_cmds need_locks \
14822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14823 lt_cv_sys_global_symbol_to_c_name_address \
14824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14825 old_postinstall_cmds old_postuninstall_cmds \
14826 compiler_F77 \
14827 CC_F77 \
14828 LD_F77 \
14829 lt_prog_compiler_wl_F77 \
14830 lt_prog_compiler_pic_F77 \
14831 lt_prog_compiler_static_F77 \
14832 lt_prog_compiler_no_builtin_flag_F77 \
14833 export_dynamic_flag_spec_F77 \
14834 thread_safe_flag_spec_F77 \
14835 whole_archive_flag_spec_F77 \
14836 enable_shared_with_static_runtimes_F77 \
14837 old_archive_cmds_F77 \
14838 old_archive_from_new_cmds_F77 \
14839 predep_objects_F77 \
14840 postdep_objects_F77 \
14841 predeps_F77 \
14842 postdeps_F77 \
14843 compiler_lib_search_path_F77 \
14844 archive_cmds_F77 \
14845 archive_expsym_cmds_F77 \
14846 postinstall_cmds_F77 \
14847 postuninstall_cmds_F77 \
14848 old_archive_from_expsyms_cmds_F77 \
14849 allow_undefined_flag_F77 \
14850 no_undefined_flag_F77 \
14851 export_symbols_cmds_F77 \
14852 hardcode_libdir_flag_spec_F77 \
14853 hardcode_libdir_flag_spec_ld_F77 \
14854 hardcode_libdir_separator_F77 \
14855 hardcode_automatic_F77 \
14856 module_cmds_F77 \
14857 module_expsym_cmds_F77 \
14858 lt_cv_prog_compiler_c_o_F77 \
14859 exclude_expsyms_F77 \
14860 include_expsyms_F77; do
14862 case $var in
14863 old_archive_cmds_F77 | \
14864 old_archive_from_new_cmds_F77 | \
14865 archive_cmds_F77 | \
14866 archive_expsym_cmds_F77 | \
14867 module_cmds_F77 | \
14868 module_expsym_cmds_F77 | \
14869 old_archive_from_expsyms_cmds_F77 | \
14870 export_symbols_cmds_F77 | \
14871 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14872 postinstall_cmds | postuninstall_cmds | \
14873 old_postinstall_cmds | old_postuninstall_cmds | \
14874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14875 # Double-quote double-evaled strings.
14876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14881 esac
14882 done
14884 case $lt_echo in
14885 *'\$0 --fallback-echo"')
14886 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14888 esac
14890 cfgfile="$ofile"
14892 cat <<__EOF__ >> "$cfgfile"
14893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14897 # Shell to use when invoking shell scripts.
14898 SHELL=$lt_SHELL
14900 # Whether or not to build shared libraries.
14901 build_libtool_libs=$enable_shared
14903 # Whether or not to build static libraries.
14904 build_old_libs=$enable_static
14906 # Whether or not to add -lc for building shared libraries.
14907 build_libtool_need_lc=$archive_cmds_need_lc_F77
14909 # Whether or not to disallow shared libs when runtime libs are static
14910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14912 # Whether or not to optimize for fast installation.
14913 fast_install=$enable_fast_install
14915 # The host system.
14916 host_alias=$host_alias
14917 host=$host
14919 # An echo program that does not interpret backslashes.
14920 echo=$lt_echo
14922 # The archiver.
14923 AR=$lt_AR
14924 AR_FLAGS=$lt_AR_FLAGS
14926 # A C compiler.
14927 LTCC=$lt_LTCC
14929 # A language-specific compiler.
14930 CC=$lt_compiler_F77
14932 # Is the compiler the GNU C compiler?
14933 with_gcc=$GCC_F77
14935 # An ERE matcher.
14936 EGREP=$lt_EGREP
14938 # The linker used to build libraries.
14939 LD=$lt_LD_F77
14941 # Whether we need hard or soft links.
14942 LN_S=$lt_LN_S
14944 # A BSD-compatible nm program.
14945 NM=$lt_NM
14947 # A symbol stripping program
14948 STRIP=$STRIP
14950 # Used to examine libraries when file_magic_cmd begins "file"
14951 MAGIC_CMD=$MAGIC_CMD
14953 # Used on cygwin: DLL creation program.
14954 DLLTOOL="$DLLTOOL"
14956 # Used on cygwin: object dumper.
14957 OBJDUMP="$OBJDUMP"
14959 # Used on cygwin: assembler.
14960 AS="$AS"
14962 # The name of the directory that contains temporary libtool files.
14963 objdir=$objdir
14965 # How to create reloadable object files.
14966 reload_flag=$lt_reload_flag
14967 reload_cmds=$lt_reload_cmds
14969 # How to pass a linker flag through the compiler.
14970 wl=$lt_lt_prog_compiler_wl_F77
14972 # Object file suffix (normally "o").
14973 objext="$ac_objext"
14975 # Old archive suffix (normally "a").
14976 libext="$libext"
14978 # Shared library suffix (normally ".so").
14979 shrext='$shrext'
14981 # Executable file suffix (normally "").
14982 exeext="$exeext"
14984 # Additional compiler flags for building library objects.
14985 pic_flag=$lt_lt_prog_compiler_pic_F77
14986 pic_mode=$pic_mode
14988 # What is the maximum length of a command?
14989 max_cmd_len=$lt_cv_sys_max_cmd_len
14991 # Does compiler simultaneously support -c and -o options?
14992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14994 # Must we lock files when doing compilation ?
14995 need_locks=$lt_need_locks
14997 # Do we need the lib prefix for modules?
14998 need_lib_prefix=$need_lib_prefix
15000 # Do we need a version for libraries?
15001 need_version=$need_version
15003 # Whether dlopen is supported.
15004 dlopen_support=$enable_dlopen
15006 # Whether dlopen of programs is supported.
15007 dlopen_self=$enable_dlopen_self
15009 # Whether dlopen of statically linked programs is supported.
15010 dlopen_self_static=$enable_dlopen_self_static
15012 # Compiler flag to prevent dynamic linking.
15013 link_static_flag=$lt_lt_prog_compiler_static_F77
15015 # Compiler flag to turn off builtin functions.
15016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15018 # Compiler flag to allow reflexive dlopens.
15019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15021 # Compiler flag to generate shared objects directly from archives.
15022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15024 # Compiler flag to generate thread-safe objects.
15025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15027 # Library versioning type.
15028 version_type=$version_type
15030 # Format of library name prefix.
15031 libname_spec=$lt_libname_spec
15033 # List of archive names. First name is the real one, the rest are links.
15034 # The last name is the one that the linker finds with -lNAME.
15035 library_names_spec=$lt_library_names_spec
15037 # The coded name of the library, if different from the real name.
15038 soname_spec=$lt_soname_spec
15040 # Commands used to build and install an old-style archive.
15041 RANLIB=$lt_RANLIB
15042 old_archive_cmds=$lt_old_archive_cmds_F77
15043 old_postinstall_cmds=$lt_old_postinstall_cmds
15044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15046 # Create an old-style archive from a shared archive.
15047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15049 # Create a temporary old-style archive to link instead of a shared archive.
15050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15052 # Commands used to build and install a shared archive.
15053 archive_cmds=$lt_archive_cmds_F77
15054 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15055 postinstall_cmds=$lt_postinstall_cmds
15056 postuninstall_cmds=$lt_postuninstall_cmds
15058 # Commands used to build a loadable module (assumed same as above if empty)
15059 module_cmds=$lt_module_cmds_F77
15060 module_expsym_cmds=$lt_module_expsym_cmds_F77
15062 # Commands to strip libraries.
15063 old_striplib=$lt_old_striplib
15064 striplib=$lt_striplib
15066 # Dependencies to place before the objects being linked to create a
15067 # shared library.
15068 predep_objects=$lt_predep_objects_F77
15070 # Dependencies to place after the objects being linked to create a
15071 # shared library.
15072 postdep_objects=$lt_postdep_objects_F77
15074 # Dependencies to place before the objects being linked to create a
15075 # shared library.
15076 predeps=$lt_predeps_F77
15078 # Dependencies to place after the objects being linked to create a
15079 # shared library.
15080 postdeps=$lt_postdeps_F77
15082 # The library search path used internally by the compiler when linking
15083 # a shared library.
15084 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15086 # Method to check whether dependent libraries are shared objects.
15087 deplibs_check_method=$lt_deplibs_check_method
15089 # Command to use when deplibs_check_method == file_magic.
15090 file_magic_cmd=$lt_file_magic_cmd
15092 # Flag that allows shared libraries with undefined symbols to be built.
15093 allow_undefined_flag=$lt_allow_undefined_flag_F77
15095 # Flag that forces no undefined symbols.
15096 no_undefined_flag=$lt_no_undefined_flag_F77
15098 # Commands used to finish a libtool library installation in a directory.
15099 finish_cmds=$lt_finish_cmds
15101 # Same as above, but a single script fragment to be evaled but not shown.
15102 finish_eval=$lt_finish_eval
15104 # Take the output of nm and produce a listing of raw symbols and C names.
15105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15107 # Transform the output of nm in a proper C declaration
15108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15110 # Transform the output of nm in a C name address pair
15111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15113 # This is the shared library runtime path variable.
15114 runpath_var=$runpath_var
15116 # This is the shared library path variable.
15117 shlibpath_var=$shlibpath_var
15119 # Is shlibpath searched before the hard-coded library search path?
15120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15122 # How to hardcode a shared library path into an executable.
15123 hardcode_action=$hardcode_action_F77
15125 # Whether we should hardcode library paths into libraries.
15126 hardcode_into_libs=$hardcode_into_libs
15128 # Flag to hardcode \$libdir into a binary during linking.
15129 # This must work even if \$libdir does not exist.
15130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15132 # If ld is used when linking, flag to hardcode \$libdir into
15133 # a binary during linking. This must work even if \$libdir does
15134 # not exist.
15135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15137 # Whether we need a single -rpath flag with a separated argument.
15138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15140 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15141 # resulting binary.
15142 hardcode_direct=$hardcode_direct_F77
15144 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15145 # resulting binary.
15146 hardcode_minus_L=$hardcode_minus_L_F77
15148 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15149 # the resulting binary.
15150 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15152 # Set to yes if building a shared library automatically hardcodes DIR into the library
15153 # and all subsequent libraries and executables linked against it.
15154 hardcode_automatic=$hardcode_automatic_F77
15156 # Variables whose values should be saved in libtool wrapper scripts and
15157 # restored at relink time.
15158 variables_saved_for_relink="$variables_saved_for_relink"
15160 # Whether libtool must link a program against all its dependency libraries.
15161 link_all_deplibs=$link_all_deplibs_F77
15163 # Compile-time system search path for libraries
15164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15166 # Run-time system search path for libraries
15167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15169 # Fix the shell variable \$srcfile for the compiler.
15170 fix_srcfile_path="$fix_srcfile_path_F77"
15172 # Set to yes if exported symbols are required.
15173 always_export_symbols=$always_export_symbols_F77
15175 # The commands to list exported symbols.
15176 export_symbols_cmds=$lt_export_symbols_cmds_F77
15178 # The commands to extract the exported symbol list from a shared archive.
15179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15181 # Symbols that should not be listed in the preloaded symbols.
15182 exclude_expsyms=$lt_exclude_expsyms_F77
15184 # Symbols that must always be exported.
15185 include_expsyms=$lt_include_expsyms_F77
15187 # ### END LIBTOOL TAG CONFIG: $tagname
15189 __EOF__
15192 else
15193 # If there is no Makefile yet, we rely on a make rule to execute
15194 # `config.status --recheck' to rerun these tests and create the
15195 # libtool script then.
15196 test -f Makefile && make "$ltmain"
15200 ac_ext=c
15201 ac_cpp='$CPP $CPPFLAGS'
15202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15206 CC="$lt_save_CC"
15208 else
15209 tagname=""
15213 GCJ)
15214 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15218 # Source file extension for Java test sources.
15219 ac_ext=java
15221 # Object file extension for compiled Java test sources.
15222 objext=o
15223 objext_GCJ=$objext
15225 # Code to be used in simple compile tests
15226 lt_simple_compile_test_code="class foo {}\n"
15228 # Code to be used in simple link tests
15229 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15233 # If no C compiler was specified, use CC.
15234 LTCC=${LTCC-"$CC"}
15236 # Allow CC to be a program name with arguments.
15237 compiler=$CC
15240 # Allow CC to be a program name with arguments.
15241 lt_save_CC="$CC"
15242 CC=${GCJ-"gcj"}
15243 compiler=$CC
15244 compiler_GCJ=$CC
15246 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15247 archive_cmds_need_lc_GCJ=no
15250 lt_prog_compiler_no_builtin_flag_GCJ=
15252 if test "$GCC" = yes; then
15253 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15255 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15256 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15257 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260 lt_cv_prog_compiler_rtti_exceptions=no
15261 ac_outfile=conftest.$ac_objext
15262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="-fno-rtti -fno-exceptions"
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings
15281 if test ! -s conftest.err; then
15282 lt_cv_prog_compiler_rtti_exceptions=yes
15285 $rm conftest*
15288 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15289 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15291 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15292 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15293 else
15299 lt_prog_compiler_wl_GCJ=
15300 lt_prog_compiler_pic_GCJ=
15301 lt_prog_compiler_static_GCJ=
15303 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15306 if test "$GCC" = yes; then
15307 lt_prog_compiler_wl_GCJ='-Wl,'
15308 lt_prog_compiler_static_GCJ='-static'
15310 case $host_os in
15311 aix*)
15312 # All AIX code is PIC.
15313 if test "$host_cpu" = ia64; then
15314 # AIX 5 now supports IA64 processor
15315 lt_prog_compiler_static_GCJ='-Bstatic'
15319 amigaos*)
15320 # FIXME: we need at least 68020 code to build shared libraries, but
15321 # adding the `-m68020' flag to GCC prevents building anything better,
15322 # like `-m68040'.
15323 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15327 # PIC is the default for these OSes.
15330 mingw* | pw32* | os2*)
15331 # This hack is so that the source file can tell whether it is being
15332 # built for inclusion in a dll (and should export symbols for example).
15333 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15336 darwin* | rhapsody*)
15337 # PIC is the default on this platform
15338 # Common symbols not allowed in MH_DYLIB files
15339 lt_prog_compiler_pic_GCJ='-fno-common'
15342 msdosdjgpp*)
15343 # Just because we use GCC doesn't mean we suddenly get shared libraries
15344 # on systems that don't support them.
15345 lt_prog_compiler_can_build_shared_GCJ=no
15346 enable_shared=no
15349 sysv4*MP*)
15350 if test -d /usr/nec; then
15351 lt_prog_compiler_pic_GCJ=-Kconform_pic
15355 hpux*)
15356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15357 # not for PA HP-UX.
15358 case "$host_cpu" in
15359 hppa*64*|ia64*)
15360 # +Z the default
15363 lt_prog_compiler_pic_GCJ='-fPIC'
15365 esac
15369 lt_prog_compiler_pic_GCJ='-fPIC'
15371 esac
15372 else
15373 # PORTME Check for flag to pass linker flags through the system compiler.
15374 case $host_os in
15375 aix*)
15376 lt_prog_compiler_wl_GCJ='-Wl,'
15377 if test "$host_cpu" = ia64; then
15378 # AIX 5 now supports IA64 processor
15379 lt_prog_compiler_static_GCJ='-Bstatic'
15380 else
15381 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15385 mingw* | pw32* | os2*)
15386 # This hack is so that the source file can tell whether it is being
15387 # built for inclusion in a dll (and should export symbols for example).
15388 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15391 hpux9* | hpux10* | hpux11*)
15392 lt_prog_compiler_wl_GCJ='-Wl,'
15393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15394 # not for PA HP-UX.
15395 case "$host_cpu" in
15396 hppa*64*|ia64*)
15397 # +Z the default
15400 lt_prog_compiler_pic_GCJ='+Z'
15402 esac
15403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15404 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15407 irix5* | irix6* | nonstopux*)
15408 lt_prog_compiler_wl_GCJ='-Wl,'
15409 # PIC (with -KPIC) is the default.
15410 lt_prog_compiler_static_GCJ='-non_shared'
15413 newsos6)
15414 lt_prog_compiler_pic_GCJ='-KPIC'
15415 lt_prog_compiler_static_GCJ='-Bstatic'
15418 linux*)
15419 case $CC in
15420 icc|ecc)
15421 lt_prog_compiler_wl_GCJ='-Wl,'
15422 lt_prog_compiler_pic_GCJ='-KPIC'
15423 lt_prog_compiler_static_GCJ='-static'
15425 ccc)
15426 lt_prog_compiler_wl_GCJ='-Wl,'
15427 # All Alpha code is PIC.
15428 lt_prog_compiler_static_GCJ='-non_shared'
15430 esac
15433 osf3* | osf4* | osf5*)
15434 lt_prog_compiler_wl_GCJ='-Wl,'
15435 # All OSF/1 code is PIC.
15436 lt_prog_compiler_static_GCJ='-non_shared'
15439 sco3.2v5*)
15440 lt_prog_compiler_pic_GCJ='-Kpic'
15441 lt_prog_compiler_static_GCJ='-dn'
15444 solaris*)
15445 lt_prog_compiler_wl_GCJ='-Wl,'
15446 lt_prog_compiler_pic_GCJ='-KPIC'
15447 lt_prog_compiler_static_GCJ='-Bstatic'
15450 sunos4*)
15451 lt_prog_compiler_wl_GCJ='-Qoption ld '
15452 lt_prog_compiler_pic_GCJ='-PIC'
15453 lt_prog_compiler_static_GCJ='-Bstatic'
15456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15457 lt_prog_compiler_wl_GCJ='-Wl,'
15458 lt_prog_compiler_pic_GCJ='-KPIC'
15459 lt_prog_compiler_static_GCJ='-Bstatic'
15462 sysv4*MP*)
15463 if test -d /usr/nec ;then
15464 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15465 lt_prog_compiler_static_GCJ='-Bstatic'
15469 uts4*)
15470 lt_prog_compiler_pic_GCJ='-pic'
15471 lt_prog_compiler_static_GCJ='-Bstatic'
15475 lt_prog_compiler_can_build_shared_GCJ=no
15477 esac
15480 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15481 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15484 # Check to make sure the PIC flag actually works.
15486 if test -n "$lt_prog_compiler_pic_GCJ"; then
15487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15489 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 lt_prog_compiler_pic_works_GCJ=no
15493 ac_outfile=conftest.$ac_objext
15494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:15505: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15507 ac_status=$?
15508 cat conftest.err >&5
15509 echo "$as_me:15509: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings
15513 if test ! -s conftest.err; then
15514 lt_prog_compiler_pic_works_GCJ=yes
15517 $rm conftest*
15520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15521 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15523 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15524 case $lt_prog_compiler_pic_GCJ in
15525 "" | " "*) ;;
15526 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15527 esac
15528 else
15529 lt_prog_compiler_pic_GCJ=
15530 lt_prog_compiler_can_build_shared_GCJ=no
15534 case "$host_os" in
15535 # For platforms which do not support PIC, -DPIC is meaningless:
15536 *djgpp*)
15537 lt_prog_compiler_pic_GCJ=
15540 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15542 esac
15544 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15546 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549 lt_cv_prog_compiler_c_o_GCJ=no
15550 $rm -r conftest 2>/dev/null
15551 mkdir conftest
15552 cd conftest
15553 mkdir out
15554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15556 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15557 # that will create temporary files in the current directory regardless of
15558 # the output directory. Thus, making CWD read-only will cause this test
15559 # to fail, enabling locking or at least warning the user not to do parallel
15560 # builds.
15561 chmod -w .
15563 lt_compiler_flag="-o out/conftest2.$ac_objext"
15564 # Insert the option either (1) after the last *FLAGS variable, or
15565 # (2) before a word containing "conftest.", or (3) at the end.
15566 # Note that $ac_compile itself does not contain backslashes and begins
15567 # with a dollar sign (not a hyphen), so the echo should work correctly.
15568 lt_compile=`echo "$ac_compile" | $SED \
15569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15571 -e 's:$: $lt_compiler_flag:'`
15572 (eval echo "\"\$as_me:15572: $lt_compile\"" >&5)
15573 (eval "$lt_compile" 2>out/conftest.err)
15574 ac_status=$?
15575 cat out/conftest.err >&5
15576 echo "$as_me:15576: \$? = $ac_status" >&5
15577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578 then
15579 # The compiler can only warn and ignore the option if not recognized
15580 # So say no if there are warnings
15581 if test ! -s out/conftest.err; then
15582 lt_cv_prog_compiler_c_o_GCJ=yes
15585 chmod u+w .
15586 $rm conftest* out/*
15587 rmdir out
15588 cd ..
15589 rmdir conftest
15590 $rm conftest*
15593 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15597 hard_links="nottested"
15598 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15599 # do not overwrite the value of need_locks provided by the user
15600 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15602 hard_links=yes
15603 $rm conftest*
15604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15605 touch conftest.a
15606 ln conftest.a conftest.b 2>&5 || hard_links=no
15607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15608 echo "$as_me:$LINENO: result: $hard_links" >&5
15609 echo "${ECHO_T}$hard_links" >&6
15610 if test "$hard_links" = no; then
15611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15613 need_locks=warn
15615 else
15616 need_locks=no
15619 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15622 runpath_var=
15623 allow_undefined_flag_GCJ=
15624 enable_shared_with_static_runtimes_GCJ=no
15625 archive_cmds_GCJ=
15626 archive_expsym_cmds_GCJ=
15627 old_archive_From_new_cmds_GCJ=
15628 old_archive_from_expsyms_cmds_GCJ=
15629 export_dynamic_flag_spec_GCJ=
15630 whole_archive_flag_spec_GCJ=
15631 thread_safe_flag_spec_GCJ=
15632 hardcode_libdir_flag_spec_GCJ=
15633 hardcode_libdir_flag_spec_ld_GCJ=
15634 hardcode_libdir_separator_GCJ=
15635 hardcode_direct_GCJ=no
15636 hardcode_minus_L_GCJ=no
15637 hardcode_shlibpath_var_GCJ=unsupported
15638 link_all_deplibs_GCJ=unknown
15639 hardcode_automatic_GCJ=no
15640 module_cmds_GCJ=
15641 module_expsym_cmds_GCJ=
15642 always_export_symbols_GCJ=no
15643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15644 # include_expsyms should be a list of space-separated symbols to be *always*
15645 # included in the symbol list
15646 include_expsyms_GCJ=
15647 # exclude_expsyms can be an extended regexp of symbols to exclude
15648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15650 # as well as any symbol that contains `d'.
15651 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15653 # platforms (ab)use it in PIC code, but their linkers get confused if
15654 # the symbol is explicitly referenced. Since portable code cannot
15655 # rely on this symbol name, it's probably fine to never include it in
15656 # preloaded symbol tables.
15657 extract_expsyms_cmds=
15659 case $host_os in
15660 cygwin* | mingw* | pw32*)
15661 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15662 # When not using gcc, we currently assume that we are using
15663 # Microsoft Visual C++.
15664 if test "$GCC" != yes; then
15665 with_gnu_ld=no
15668 openbsd*)
15669 with_gnu_ld=no
15671 esac
15673 ld_shlibs_GCJ=yes
15674 if test "$with_gnu_ld" = yes; then
15675 # If archive_cmds runs LD, not CC, wlarc should be empty
15676 wlarc='${wl}'
15678 # See if GNU ld supports shared libraries.
15679 case $host_os in
15680 aix3* | aix4* | aix5*)
15681 # On AIX/PPC, the GNU linker is very broken
15682 if test "$host_cpu" != ia64; then
15683 ld_shlibs_GCJ=no
15684 cat <<EOF 1>&2
15686 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15687 *** to be unable to reliably create shared libraries on AIX.
15688 *** Therefore, libtool is disabling shared libraries support. If you
15689 *** really care for shared libraries, you may want to modify your PATH
15690 *** so that a non-GNU linker is found, and then restart.
15696 amigaos*)
15697 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)'
15698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15699 hardcode_minus_L_GCJ=yes
15701 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15702 # that the semantics of dynamic libraries on AmigaOS, at least up
15703 # to version 4, is to share data among multiple programs linked
15704 # with the same dynamic library. Since this doesn't match the
15705 # behavior of shared libraries on other platforms, we can't use
15706 # them.
15707 ld_shlibs_GCJ=no
15710 beos*)
15711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15712 allow_undefined_flag_GCJ=unsupported
15713 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15714 # support --undefined. This deserves some investigation. FIXME
15715 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15716 else
15717 ld_shlibs_GCJ=no
15721 cygwin* | mingw* | pw32*)
15722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15723 # as there is no search path for DLLs.
15724 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15725 allow_undefined_flag_GCJ=unsupported
15726 always_export_symbols_GCJ=no
15727 enable_shared_with_static_runtimes_GCJ=yes
15728 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15730 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15732 # If the export-symbols file already is a .def file (1st line
15733 # is EXPORTS), use it as is; otherwise, prepend...
15734 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15735 cp $export_symbols $output_objdir/$soname.def;
15736 else
15737 echo EXPORTS > $output_objdir/$soname.def;
15738 cat $export_symbols >> $output_objdir/$soname.def;
15740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15741 else
15742 ld_shlibs=no
15746 netbsd*)
15747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15748 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15749 wlarc=
15750 else
15751 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15756 solaris* | sysv5*)
15757 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15758 ld_shlibs_GCJ=no
15759 cat <<EOF 1>&2
15761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15762 *** create shared libraries on Solaris systems. Therefore, libtool
15763 *** is disabling shared libraries support. We urge you to upgrade GNU
15764 *** binutils to release 2.9.1 or newer. Another option is to modify
15765 *** your PATH or compiler configuration so that the native linker is
15766 *** used, and then restart.
15769 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15771 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15772 else
15773 ld_shlibs_GCJ=no
15777 sunos4*)
15778 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15779 wlarc=
15780 hardcode_direct_GCJ=yes
15781 hardcode_shlibpath_var_GCJ=no
15785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15786 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15788 else
15789 ld_shlibs_GCJ=no
15792 esac
15794 if test "$ld_shlibs_GCJ" = yes; then
15795 runpath_var=LD_RUN_PATH
15796 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15797 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15798 # ancient GNU ld didn't support --whole-archive et. al.
15799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15800 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15801 else
15802 whole_archive_flag_spec_GCJ=
15805 else
15806 # PORTME fill in a description of your system's linker (not GNU ld)
15807 case $host_os in
15808 aix3*)
15809 allow_undefined_flag_GCJ=unsupported
15810 always_export_symbols_GCJ=yes
15811 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'
15812 # Note: this linker hardcodes the directories in LIBPATH if there
15813 # are no directories specified by -L.
15814 hardcode_minus_L_GCJ=yes
15815 if test "$GCC" = yes && test -z "$link_static_flag"; then
15816 # Neither direct hardcoding nor static linking is supported with a
15817 # broken collect2.
15818 hardcode_direct_GCJ=unsupported
15822 aix4* | aix5*)
15823 if test "$host_cpu" = ia64; then
15824 # On IA64, the linker does run time linking by default, so we don't
15825 # have to do anything special.
15826 aix_use_runtimelinking=no
15827 exp_sym_flag='-Bexport'
15828 no_entry_flag=""
15829 else
15830 # If we're using GNU nm, then we don't want the "-C" option.
15831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15833 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'
15834 else
15835 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'
15837 aix_use_runtimelinking=no
15839 # Test if we are trying to use run time linking or normal
15840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15841 # need to do runtime linking.
15842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15843 for ld_flag in $LDFLAGS; do
15844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15845 aix_use_runtimelinking=yes
15846 break
15848 done
15849 esac
15851 exp_sym_flag='-bexport'
15852 no_entry_flag='-bnoentry'
15855 # When large executables or shared objects are built, AIX ld can
15856 # have problems creating the table of contents. If linking a library
15857 # or program results in "error TOC overflow" add -mminimal-toc to
15858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15861 archive_cmds_GCJ=''
15862 hardcode_direct_GCJ=yes
15863 hardcode_libdir_separator_GCJ=':'
15864 link_all_deplibs_GCJ=yes
15866 if test "$GCC" = yes; then
15867 case $host_os in aix4.012|aix4.012.*)
15868 # We only want to do this on AIX 4.2 and lower, the check
15869 # below for broken collect2 doesn't work under 4.3+
15870 collect2name=`${CC} -print-prog-name=collect2`
15871 if test -f "$collect2name" && \
15872 strings "$collect2name" | grep resolve_lib_name >/dev/null
15873 then
15874 # We have reworked collect2
15875 hardcode_direct_GCJ=yes
15876 else
15877 # We have old collect2
15878 hardcode_direct_GCJ=unsupported
15879 # It fails to find uninstalled libraries when the uninstalled
15880 # path is not listed in the libpath. Setting hardcode_minus_L
15881 # to unsupported forces relinking
15882 hardcode_minus_L_GCJ=yes
15883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15884 hardcode_libdir_separator_GCJ=
15886 esac
15887 shared_flag='-shared'
15888 else
15889 # not using gcc
15890 if test "$host_cpu" = ia64; then
15891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15892 # chokes on -Wl,-G. The following line is correct:
15893 shared_flag='-G'
15894 else
15895 if test "$aix_use_runtimelinking" = yes; then
15896 shared_flag='${wl}-G'
15897 else
15898 shared_flag='${wl}-bM:SRE'
15903 # It seems that -bexpall does not export symbols beginning with
15904 # underscore (_), so it is better to generate a list of symbols to export.
15905 always_export_symbols_GCJ=yes
15906 if test "$aix_use_runtimelinking" = yes; then
15907 # Warning - without using the other runtime loading flags (-brtl),
15908 # -berok will link without error, but may produce a broken library.
15909 allow_undefined_flag_GCJ='-berok'
15910 # Determine the default libpath from the value encoded in an empty executable.
15911 cat >conftest.$ac_ext <<_ACEOF
15912 #line $LINENO "configure"
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15920 main ()
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15929 (eval $ac_link) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -s conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15942 # Check for a 64-bit object if we didn't find anything.
15943 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; }
15944 }'`; fi
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15953 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15954 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"
15955 else
15956 if test "$host_cpu" = ia64; then
15957 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15958 allow_undefined_flag_GCJ="-z nodefs"
15959 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"
15960 else
15961 # Determine the default libpath from the value encoded in an empty executable.
15962 cat >conftest.$ac_ext <<_ACEOF
15963 #line $LINENO "configure"
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15971 main ()
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15993 # Check for a 64-bit object if we didn't find anything.
15994 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; }
15995 }'`; fi
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16004 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16005 # Warning - without using the other run time loading flags,
16006 # -berok will link without error, but may produce a broken library.
16007 no_undefined_flag_GCJ=' ${wl}-bernotok'
16008 allow_undefined_flag_GCJ=' ${wl}-berok'
16009 # -bexpall does not export symbols beginning with underscore (_)
16010 always_export_symbols_GCJ=yes
16011 # Exported symbols can be pulled into shared objects from archives
16012 whole_archive_flag_spec_GCJ=' '
16013 archive_cmds_need_lc_GCJ=yes
16014 # This is similar to how AIX traditionally builds it's shared libraries.
16015 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'
16020 amigaos*)
16021 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)'
16022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023 hardcode_minus_L_GCJ=yes
16024 # see comment about different semantics on the GNU ld section
16025 ld_shlibs_GCJ=no
16028 bsdi4*)
16029 export_dynamic_flag_spec_GCJ=-rdynamic
16032 cygwin* | mingw* | pw32*)
16033 # When not using gcc, we currently assume that we are using
16034 # Microsoft Visual C++.
16035 # hardcode_libdir_flag_spec is actually meaningless, as there is
16036 # no search path for DLLs.
16037 hardcode_libdir_flag_spec_GCJ=' '
16038 allow_undefined_flag_GCJ=unsupported
16039 # Tell ltmain to make .lib files, not .a files.
16040 libext=lib
16041 # Tell ltmain to make .dll files, not .so files.
16042 shrext=".dll"
16043 # FIXME: Setting linknames here is a bad hack.
16044 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16045 # The linker will automatically build a .lib file if we build a DLL.
16046 old_archive_From_new_cmds_GCJ='true'
16047 # FIXME: Should let the user specify the lib program.
16048 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16049 fix_srcfile_path='`cygpath -w "$srcfile"`'
16050 enable_shared_with_static_runtimes_GCJ=yes
16053 darwin* | rhapsody*)
16054 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16055 archive_cmds_need_lc_GCJ=no
16056 case "$host_os" in
16057 rhapsody* | darwin1.[012])
16058 allow_undefined_flag_GCJ='-undefined suppress'
16060 *) # Darwin 1.3 on
16061 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16063 esac
16064 # FIXME: Relying on posixy $() will cause problems for
16065 # cross-compilation, but unfortunately the echo tests do not
16066 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16067 # `"' quotes if we put them in here... so don't!
16068 lt_int_apple_cc_single_mod=no
16069 output_verbose_link_cmd='echo'
16070 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16071 lt_int_apple_cc_single_mod=yes
16073 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16074 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16075 else
16076 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16078 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16080 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16081 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16082 else
16083 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16085 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16086 hardcode_direct_GCJ=no
16087 hardcode_automatic_GCJ=yes
16088 hardcode_shlibpath_var_GCJ=unsupported
16089 whole_archive_flag_spec_GCJ='-all_load $convenience'
16090 link_all_deplibs_GCJ=yes
16094 dgux*)
16095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16097 hardcode_shlibpath_var_GCJ=no
16100 freebsd1*)
16101 ld_shlibs_GCJ=no
16104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16105 # support. Future versions do this automatically, but an explicit c++rt0.o
16106 # does not break anything, and helps significantly (at the cost of a little
16107 # extra space).
16108 freebsd2.2*)
16109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16111 hardcode_direct_GCJ=yes
16112 hardcode_shlibpath_var_GCJ=no
16115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16116 freebsd2*)
16117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_direct_GCJ=yes
16119 hardcode_minus_L_GCJ=yes
16120 hardcode_shlibpath_var_GCJ=no
16123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16124 freebsd*)
16125 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16127 hardcode_direct_GCJ=yes
16128 hardcode_shlibpath_var_GCJ=no
16131 hpux9*)
16132 if test "$GCC" = yes; then
16133 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'
16134 else
16135 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'
16137 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16138 hardcode_libdir_separator_GCJ=:
16139 hardcode_direct_GCJ=yes
16141 # hardcode_minus_L: Not really in the search PATH,
16142 # but as the default location of the library.
16143 hardcode_minus_L_GCJ=yes
16144 export_dynamic_flag_spec_GCJ='${wl}-E'
16147 hpux10* | hpux11*)
16148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16149 case "$host_cpu" in
16150 hppa*64*|ia64*)
16151 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16154 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16156 esac
16157 else
16158 case "$host_cpu" in
16159 hppa*64*|ia64*)
16160 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16163 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16165 esac
16167 if test "$with_gnu_ld" = no; then
16168 case "$host_cpu" in
16169 hppa*64*)
16170 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16171 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16172 hardcode_libdir_separator_GCJ=:
16173 hardcode_direct_GCJ=no
16174 hardcode_shlibpath_var_GCJ=no
16176 ia64*)
16177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16178 hardcode_direct_GCJ=no
16179 hardcode_shlibpath_var_GCJ=no
16181 # hardcode_minus_L: Not really in the search PATH,
16182 # but as the default location of the library.
16183 hardcode_minus_L_GCJ=yes
16186 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16187 hardcode_libdir_separator_GCJ=:
16188 hardcode_direct_GCJ=yes
16189 export_dynamic_flag_spec_GCJ='${wl}-E'
16191 # hardcode_minus_L: Not really in the search PATH,
16192 # but as the default location of the library.
16193 hardcode_minus_L_GCJ=yes
16195 esac
16199 irix5* | irix6* | nonstopux*)
16200 if test "$GCC" = yes; then
16201 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'
16202 else
16203 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'
16204 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16207 hardcode_libdir_separator_GCJ=:
16208 link_all_deplibs_GCJ=yes
16211 netbsd*)
16212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16213 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16214 else
16215 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16217 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16218 hardcode_direct_GCJ=yes
16219 hardcode_shlibpath_var_GCJ=no
16222 newsos6)
16223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct_GCJ=yes
16225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16226 hardcode_libdir_separator_GCJ=:
16227 hardcode_shlibpath_var_GCJ=no
16230 openbsd*)
16231 hardcode_direct_GCJ=yes
16232 hardcode_shlibpath_var_GCJ=no
16233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16234 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16236 export_dynamic_flag_spec_GCJ='${wl}-E'
16237 else
16238 case $host_os in
16239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16240 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16241 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16244 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16245 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16247 esac
16251 os2*)
16252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16253 hardcode_minus_L_GCJ=yes
16254 allow_undefined_flag_GCJ=unsupported
16255 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'
16256 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16259 osf3*)
16260 if test "$GCC" = yes; then
16261 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16262 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'
16263 else
16264 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16265 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'
16267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16268 hardcode_libdir_separator_GCJ=:
16271 osf4* | osf5*) # as osf3* with the addition of -msym flag
16272 if test "$GCC" = yes; then
16273 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16274 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'
16275 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16276 else
16277 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16278 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'
16279 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~
16280 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16282 # Both c and cxx compiler support -rpath directly
16283 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16285 hardcode_libdir_separator_GCJ=:
16288 sco3.2v5*)
16289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290 hardcode_shlibpath_var_GCJ=no
16291 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16292 runpath_var=LD_RUN_PATH
16293 hardcode_runpath_var=yes
16296 solaris*)
16297 no_undefined_flag_GCJ=' -z text'
16298 if test "$GCC" = yes; then
16299 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16301 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16302 else
16303 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16304 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16305 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16307 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16308 hardcode_shlibpath_var_GCJ=no
16309 case $host_os in
16310 solaris2.[0-5] | solaris2.[0-5].*) ;;
16311 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16312 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16313 esac
16314 link_all_deplibs_GCJ=yes
16317 sunos4*)
16318 if test "x$host_vendor" = xsequent; then
16319 # Use $CC to link under sequent, because it throws in some extra .o
16320 # files that make .init and .fini sections work.
16321 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16322 else
16323 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16326 hardcode_direct_GCJ=yes
16327 hardcode_minus_L_GCJ=yes
16328 hardcode_shlibpath_var_GCJ=no
16331 sysv4)
16332 case $host_vendor in
16333 sni)
16334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_direct_GCJ=yes # is this really true???
16337 siemens)
16338 ## LD is ld it makes a PLAMLIB
16339 ## CC just makes a GrossModule.
16340 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16341 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16342 hardcode_direct_GCJ=no
16344 motorola)
16345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16348 esac
16349 runpath_var='LD_RUN_PATH'
16350 hardcode_shlibpath_var_GCJ=no
16353 sysv4.3*)
16354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16355 hardcode_shlibpath_var_GCJ=no
16356 export_dynamic_flag_spec_GCJ='-Bexport'
16359 sysv4*MP*)
16360 if test -d /usr/nec; then
16361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_shlibpath_var_GCJ=no
16363 runpath_var=LD_RUN_PATH
16364 hardcode_runpath_var=yes
16365 ld_shlibs_GCJ=yes
16369 sysv4.2uw2*)
16370 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16371 hardcode_direct_GCJ=yes
16372 hardcode_minus_L_GCJ=no
16373 hardcode_shlibpath_var_GCJ=no
16374 hardcode_runpath_var=yes
16375 runpath_var=LD_RUN_PATH
16378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16379 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16380 if test "$GCC" = yes; then
16381 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 else
16383 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 runpath_var='LD_RUN_PATH'
16386 hardcode_shlibpath_var_GCJ=no
16389 sysv5*)
16390 no_undefined_flag_GCJ=' -z text'
16391 # $CC -shared without GNU ld will not create a library from C++
16392 # object files and a static libstdc++, better avoid it by now
16393 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16396 hardcode_libdir_flag_spec_GCJ=
16397 hardcode_shlibpath_var_GCJ=no
16398 runpath_var='LD_RUN_PATH'
16401 uts4*)
16402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16404 hardcode_shlibpath_var_GCJ=no
16408 ld_shlibs_GCJ=no
16410 esac
16413 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16414 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16415 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16418 if test "$GCC" = yes; then
16419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16423 # Do we need to explicitly link libc?
16425 case "x$archive_cmds_need_lc_GCJ" in
16426 x|xyes)
16427 # Assume -lc should be added
16428 archive_cmds_need_lc_GCJ=yes
16430 if test "$enable_shared" = yes && test "$GCC" = yes; then
16431 case $archive_cmds_GCJ in
16432 *'~'*)
16433 # FIXME: we may have to deal with multi-command sequences.
16435 '$CC '*)
16436 # Test whether the compiler implicitly links with -lc since on some
16437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16438 # to ld, don't add -lc before -lgcc.
16439 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16441 $rm conftest*
16442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } 2>conftest.err; then
16449 soname=conftest
16450 lib=conftest
16451 libobjs=conftest.$ac_objext
16452 deplibs=
16453 wl=$lt_prog_compiler_wl_GCJ
16454 compiler_flags=-v
16455 linker_flags=-v
16456 verstring=
16457 output_objdir=.
16458 libname=conftest
16459 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16460 allow_undefined_flag_GCJ=
16461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16462 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16463 ac_status=$?
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }
16466 then
16467 archive_cmds_need_lc_GCJ=no
16468 else
16469 archive_cmds_need_lc_GCJ=yes
16471 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16472 else
16473 cat conftest.err 1>&5
16475 $rm conftest*
16476 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16479 esac
16482 esac
16484 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16485 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16486 hardcode_action_GCJ=
16487 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16488 test -n "$runpath_var GCJ" || \
16489 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16491 # We can hardcode non-existant directories.
16492 if test "$hardcode_direct_GCJ" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16497 test "$hardcode_minus_L_GCJ" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action_GCJ=relink
16500 else
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action_GCJ=immediate
16504 else
16505 # We cannot hardcode anything, or else we can only hardcode existing
16506 # directories.
16507 hardcode_action_GCJ=unsupported
16509 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16510 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16512 if test "$hardcode_action_GCJ" = relink; then
16513 # Fast installation is not supported
16514 enable_fast_install=no
16515 elif test "$shlibpath_overrides_runpath" = yes ||
16516 test "$enable_shared" = no; then
16517 # Fast installation is not necessary
16518 enable_fast_install=needless
16521 striplib=
16522 old_striplib=
16523 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16524 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16525 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16528 echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6
16530 else
16531 # FIXME - insert some real tests, host_os isn't really good enough
16532 case $host_os in
16533 darwin*)
16534 if test -n "$STRIP" ; then
16535 striplib="$STRIP -x"
16536 echo "$as_me:$LINENO: result: yes" >&5
16537 echo "${ECHO_T}yes" >&6
16538 else
16539 echo "$as_me:$LINENO: result: no" >&5
16540 echo "${ECHO_T}no" >&6
16544 echo "$as_me:$LINENO: result: no" >&5
16545 echo "${ECHO_T}no" >&6
16547 esac
16550 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16551 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16552 library_names_spec=
16553 libname_spec='lib$name'
16554 soname_spec=
16555 shrext=".so"
16556 postinstall_cmds=
16557 postuninstall_cmds=
16558 finish_cmds=
16559 finish_eval=
16560 shlibpath_var=
16561 shlibpath_overrides_runpath=unknown
16562 version_type=none
16563 dynamic_linker="$host_os ld.so"
16564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16565 if test "$GCC" = yes; then
16566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16568 # if the path contains ";" then we assume it to be the separator
16569 # otherwise default to the standard path separator (i.e. ":") - it is
16570 # assumed that no part of a normal pathname contains ";" but that should
16571 # okay in the real world where ";" in dirpaths is itself problematic.
16572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16573 else
16574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16576 else
16577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16579 need_lib_prefix=unknown
16580 hardcode_into_libs=no
16582 # when you set need_version to no, make sure it does not cause -set_version
16583 # flags to be left without arguments
16584 need_version=unknown
16586 case $host_os in
16587 aix3*)
16588 version_type=linux
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16590 shlibpath_var=LIBPATH
16592 # AIX 3 has no versioning support, so we append a major version to the name.
16593 soname_spec='${libname}${release}${shared_ext}$major'
16596 aix4* | aix5*)
16597 version_type=linux
16598 need_lib_prefix=no
16599 need_version=no
16600 hardcode_into_libs=yes
16601 if test "$host_cpu" = ia64; then
16602 # AIX 5 supports IA64
16603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16604 shlibpath_var=LD_LIBRARY_PATH
16605 else
16606 # With GCC up to 2.95.x, collect2 would create an import file
16607 # for dependence libraries. The import file would start with
16608 # the line `#! .'. This would cause the generated library to
16609 # depend on `.', always an invalid library. This was fixed in
16610 # development snapshots of GCC prior to 3.0.
16611 case $host_os in
16612 aix4 | aix4.[01] | aix4.[01].*)
16613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16614 echo ' yes '
16615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16617 else
16618 can_build_shared=no
16621 esac
16622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16623 # soname into executable. Probably we can add versioning support to
16624 # collect2, so additional links can be useful in future.
16625 if test "$aix_use_runtimelinking" = yes; then
16626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16627 # instead of lib<name>.a to let people know that these are not
16628 # typical AIX shared libraries.
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 else
16631 # We preserve .a as extension for shared libraries through AIX4.2
16632 # and later when we are not doing run time linking.
16633 library_names_spec='${libname}${release}.a $libname.a'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16636 shlibpath_var=LIBPATH
16640 amigaos*)
16641 library_names_spec='$libname.ixlibrary $libname.a'
16642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16643 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'
16646 beos*)
16647 library_names_spec='${libname}${shared_ext}'
16648 dynamic_linker="$host_os ld.so"
16649 shlibpath_var=LIBRARY_PATH
16652 bsdi4*)
16653 version_type=linux
16654 need_version=no
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16661 # the default ld.so.conf also contains /usr/contrib/lib and
16662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16663 # libtool to hard-code these into programs
16666 cygwin* | mingw* | pw32*)
16667 version_type=windows
16668 shrext=".dll"
16669 need_version=no
16670 need_lib_prefix=no
16672 case $GCC,$host_os in
16673 yes,cygwin* | yes,mingw* | yes,pw32*)
16674 library_names_spec='$libname.dll.a'
16675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16676 postinstall_cmds='base_file=`basename \${file}`~
16677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16678 dldir=$destdir/`dirname \$dlpath`~
16679 test -d \$dldir || mkdir -p \$dldir~
16680 $install_prog $dir/$dlname \$dldir/$dlname'
16681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16682 dlpath=$dir/\$dldll~
16683 $rm \$dlpath'
16684 shlibpath_overrides_runpath=yes
16686 case $host_os in
16687 cygwin*)
16688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16690 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16692 mingw*)
16693 # MinGW DLLs use traditional 'lib' prefix
16694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16697 # It is most probably a Windows format PATH printed by
16698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16699 # path with ; separators, and with drive letters. We can handle the
16700 # drive letters (cygwin fileutils understands them), so leave them,
16701 # especially as we might pass files found there to a mingw objdump,
16702 # which wouldn't understand a cygwinified path. Ahh.
16703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16704 else
16705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16708 pw32*)
16709 # pw32 DLLs use 'pw' prefix rather than 'lib'
16710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16712 esac
16716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16718 esac
16719 dynamic_linker='Win32 ld.exe'
16720 # FIXME: first we should search . and the directory the executable is in
16721 shlibpath_var=PATH
16724 darwin* | rhapsody*)
16725 dynamic_linker="$host_os dyld"
16726 version_type=darwin
16727 need_lib_prefix=no
16728 need_version=no
16729 # FIXME: Relying on posixy $() will cause problems for
16730 # cross-compilation, but unfortunately the echo tests do not
16731 # yet detect zsh echo's removal of \ escapes.
16732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16733 soname_spec='${libname}${release}${major}$shared_ext'
16734 shlibpath_overrides_runpath=yes
16735 shlibpath_var=DYLD_LIBRARY_PATH
16736 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16738 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16739 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"`
16741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16744 dgux*)
16745 version_type=linux
16746 need_lib_prefix=no
16747 need_version=no
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 shlibpath_var=LD_LIBRARY_PATH
16753 freebsd1*)
16754 dynamic_linker=no
16757 freebsd*)
16758 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16759 version_type=freebsd-$objformat
16760 case $version_type in
16761 freebsd-elf*)
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763 need_version=no
16764 need_lib_prefix=no
16766 freebsd-*)
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16768 need_version=yes
16770 esac
16771 shlibpath_var=LD_LIBRARY_PATH
16772 case $host_os in
16773 freebsd2*)
16774 shlibpath_overrides_runpath=yes
16776 freebsd3.01* | freebsdelf3.01*)
16777 shlibpath_overrides_runpath=yes
16778 hardcode_into_libs=yes
16780 *) # from 3.2 on
16781 shlibpath_overrides_runpath=no
16782 hardcode_into_libs=yes
16784 esac
16787 gnu*)
16788 version_type=linux
16789 need_lib_prefix=no
16790 need_version=no
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 hardcode_into_libs=yes
16797 hpux9* | hpux10* | hpux11*)
16798 # Give a soname corresponding to the major version so that dld.sl refuses to
16799 # link against other versions.
16800 version_type=sunos
16801 need_lib_prefix=no
16802 need_version=no
16803 case "$host_cpu" in
16804 ia64*)
16805 shrext='.so'
16806 hardcode_into_libs=yes
16807 dynamic_linker="$host_os dld.so"
16808 shlibpath_var=LD_LIBRARY_PATH
16809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 if test "X$HPUX_IA64_MODE" = X32; then
16813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16814 else
16815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16819 hppa*64*)
16820 shrext='.sl'
16821 hardcode_into_libs=yes
16822 dynamic_linker="$host_os dld.sl"
16823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16831 shrext='.sl'
16832 dynamic_linker="$host_os dld.sl"
16833 shlibpath_var=SHLIB_PATH
16834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 soname_spec='${libname}${release}${shared_ext}$major'
16838 esac
16839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16840 postinstall_cmds='chmod 555 $lib'
16843 irix5* | irix6* | nonstopux*)
16844 case $host_os in
16845 nonstopux*) version_type=nonstopux ;;
16847 if test "$lt_cv_prog_gnu_ld" = yes; then
16848 version_type=linux
16849 else
16850 version_type=irix
16851 fi ;;
16852 esac
16853 need_lib_prefix=no
16854 need_version=no
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16857 case $host_os in
16858 irix5* | nonstopux*)
16859 libsuff= shlibsuff=
16862 case $LD in # libtool.m4 will add one of these switches to LD
16863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16864 libsuff= shlibsuff= libmagic=32-bit;;
16865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16866 libsuff=32 shlibsuff=N32 libmagic=N32;;
16867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16869 *) libsuff= shlibsuff= libmagic=never-match;;
16870 esac
16872 esac
16873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16874 shlibpath_overrides_runpath=no
16875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16877 hardcode_into_libs=yes
16880 # No shared lib support for Linux oldld, aout, or coff.
16881 linux*oldld* | linux*aout* | linux*coff*)
16882 dynamic_linker=no
16885 # This must be Linux ELF.
16886 linux*)
16887 version_type=linux
16888 need_lib_prefix=no
16889 need_version=no
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16893 shlibpath_var=LD_LIBRARY_PATH
16894 shlibpath_overrides_runpath=no
16895 # This implies no fast_install, which is unacceptable.
16896 # Some rework will be needed to allow for fast_install
16897 # before this can be enabled.
16898 hardcode_into_libs=yes
16900 # We used to test for /lib/ld.so.1 and disable shared libraries on
16901 # powerpc, because MkLinux only supported shared libraries with the
16902 # GNU dynamic linker. Since this was broken with cross compilers,
16903 # most powerpc-linux boxes support dynamic linking these days and
16904 # people can always --disable-shared, the test was removed, and we
16905 # assume the GNU/Linux dynamic linker is in use.
16906 dynamic_linker='GNU/Linux ld.so'
16909 netbsd*)
16910 version_type=sunos
16911 need_lib_prefix=no
16912 need_version=no
16913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16916 dynamic_linker='NetBSD (a.out) ld.so'
16917 else
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 dynamic_linker='NetBSD ld.elf_so'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 shlibpath_overrides_runpath=yes
16924 hardcode_into_libs=yes
16927 newsos6)
16928 version_type=linux
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 shlibpath_var=LD_LIBRARY_PATH
16931 shlibpath_overrides_runpath=yes
16934 nto-qnx)
16935 version_type=linux
16936 need_lib_prefix=no
16937 need_version=no
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 shlibpath_overrides_runpath=yes
16944 openbsd*)
16945 version_type=sunos
16946 need_lib_prefix=no
16947 need_version=no
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16952 case $host_os in
16953 openbsd2.[89] | openbsd2.[89].*)
16954 shlibpath_overrides_runpath=no
16957 shlibpath_overrides_runpath=yes
16959 esac
16960 else
16961 shlibpath_overrides_runpath=yes
16965 os2*)
16966 libname_spec='$name'
16967 shrext=".dll"
16968 need_lib_prefix=no
16969 library_names_spec='$libname${shared_ext} $libname.a'
16970 dynamic_linker='OS/2 ld.exe'
16971 shlibpath_var=LIBPATH
16974 osf3* | osf4* | osf5*)
16975 version_type=osf
16976 need_lib_prefix=no
16977 need_version=no
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16985 sco3.2v5*)
16986 version_type=osf
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16989 shlibpath_var=LD_LIBRARY_PATH
16992 solaris*)
16993 version_type=linux
16994 need_lib_prefix=no
16995 need_version=no
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17000 hardcode_into_libs=yes
17001 # ldd complains unless libraries are executable
17002 postinstall_cmds='chmod +x $lib'
17005 sunos4*)
17006 version_type=sunos
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=yes
17011 if test "$with_gnu_ld" = yes; then
17012 need_lib_prefix=no
17014 need_version=yes
17017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17018 version_type=linux
17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17020 soname_spec='${libname}${release}${shared_ext}$major'
17021 shlibpath_var=LD_LIBRARY_PATH
17022 case $host_vendor in
17023 sni)
17024 shlibpath_overrides_runpath=no
17025 need_lib_prefix=no
17026 export_dynamic_flag_spec='${wl}-Blargedynsym'
17027 runpath_var=LD_RUN_PATH
17029 siemens)
17030 need_lib_prefix=no
17032 motorola)
17033 need_lib_prefix=no
17034 need_version=no
17035 shlibpath_overrides_runpath=no
17036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17038 esac
17041 sysv4*MP*)
17042 if test -d /usr/nec ;then
17043 version_type=linux
17044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17045 soname_spec='$libname${shared_ext}.$major'
17046 shlibpath_var=LD_LIBRARY_PATH
17050 uts4*)
17051 version_type=linux
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17058 dynamic_linker=no
17060 esac
17061 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17062 echo "${ECHO_T}$dynamic_linker" >&6
17063 test "$dynamic_linker" = no && can_build_shared=no
17065 if test "x$enable_dlopen" != xyes; then
17066 enable_dlopen=unknown
17067 enable_dlopen_self=unknown
17068 enable_dlopen_self_static=unknown
17069 else
17070 lt_cv_dlopen=no
17071 lt_cv_dlopen_libs=
17073 case $host_os in
17074 beos*)
17075 lt_cv_dlopen="load_add_on"
17076 lt_cv_dlopen_libs=
17077 lt_cv_dlopen_self=yes
17080 mingw* | pw32*)
17081 lt_cv_dlopen="LoadLibrary"
17082 lt_cv_dlopen_libs=
17085 cygwin*)
17086 lt_cv_dlopen="dlopen"
17087 lt_cv_dlopen_libs=
17090 darwin*)
17091 # if libdl is installed we need to link against it
17092 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17093 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17094 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-ldl $LIBS"
17099 cat >conftest.$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17101 /* confdefs.h. */
17102 _ACEOF
17103 cat confdefs.h >>conftest.$ac_ext
17104 cat >>conftest.$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17107 /* Override any gcc2 internal prototype to avoid an error. */
17108 #ifdef __cplusplus
17109 extern "C"
17110 #endif
17111 /* We use char because int might match the return type of a gcc2
17112 builtin and then its argument prototype would still apply. */
17113 char dlopen ();
17115 main ()
17117 dlopen ();
17119 return 0;
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124 (eval $ac_link) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_lib_dl_dlopen=yes
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ac_cv_lib_dl_dlopen=no
17141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17142 LIBS=$ac_check_lib_save_LIBS
17144 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17145 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17146 if test $ac_cv_lib_dl_dlopen = yes; then
17147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17148 else
17150 lt_cv_dlopen="dyld"
17151 lt_cv_dlopen_libs=
17152 lt_cv_dlopen_self=yes
17159 echo "$as_me:$LINENO: checking for shl_load" >&5
17160 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17161 if test "${ac_cv_func_shl_load+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 else
17164 cat >conftest.$ac_ext <<_ACEOF
17165 #line $LINENO "configure"
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 /* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char shl_load (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
17175 #ifdef __STDC__
17176 # include <limits.h>
17177 #else
17178 # include <assert.h>
17179 #endif
17180 /* Override any gcc2 internal prototype to avoid an error. */
17181 #ifdef __cplusplus
17182 extern "C"
17184 #endif
17185 /* We use char because int might match the return type of a gcc2
17186 builtin and then its argument prototype would still apply. */
17187 char shl_load ();
17188 /* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17192 choke me
17193 #else
17194 char (*f) () = shl_load;
17195 #endif
17196 #ifdef __cplusplus
17198 #endif
17201 main ()
17203 return f != shl_load;
17205 return 0;
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210 (eval $ac_link) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
17214 { ac_try='test -s conftest$ac_exeext'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_func_shl_load=yes
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_func_shl_load=no
17227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17229 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17230 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17231 if test $ac_cv_func_shl_load = yes; then
17232 lt_cv_dlopen="shl_load"
17233 else
17234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-ldld $LIBS"
17241 cat >conftest.$ac_ext <<_ACEOF
17242 #line $LINENO "configure"
17243 /* confdefs.h. */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 /* Override any gcc2 internal prototype to avoid an error. */
17250 #ifdef __cplusplus
17251 extern "C"
17252 #endif
17253 /* We use char because int might match the return type of a gcc2
17254 builtin and then its argument prototype would still apply. */
17255 char shl_load ();
17257 main ()
17259 shl_load ();
17261 return 0;
17263 _ACEOF
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17266 (eval $ac_link) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -s conftest$ac_exeext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_cv_lib_dld_shl_load=yes
17277 else
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ac_cv_lib_dld_shl_load=no
17283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17286 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17287 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17288 if test $ac_cv_lib_dld_shl_load = yes; then
17289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17290 else
17291 echo "$as_me:$LINENO: checking for dlopen" >&5
17292 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17293 if test "${ac_cv_func_dlopen+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 cat >conftest.$ac_ext <<_ACEOF
17297 #line $LINENO "configure"
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 /* System header to define __stub macros and hopefully few prototypes,
17304 which can conflict with char dlopen (); below.
17305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17306 <limits.h> exists even on freestanding compilers. */
17307 #ifdef __STDC__
17308 # include <limits.h>
17309 #else
17310 # include <assert.h>
17311 #endif
17312 /* Override any gcc2 internal prototype to avoid an error. */
17313 #ifdef __cplusplus
17314 extern "C"
17316 #endif
17317 /* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
17319 char dlopen ();
17320 /* The GNU C library defines this for functions which it implements
17321 to always fail with ENOSYS. Some functions are actually named
17322 something starting with __ and the normal name is an alias. */
17323 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17324 choke me
17325 #else
17326 char (*f) () = dlopen;
17327 #endif
17328 #ifdef __cplusplus
17330 #endif
17333 main ()
17335 return f != dlopen;
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -s conftest$ac_exeext'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ac_cv_func_dlopen=yes
17353 else
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_cv_func_dlopen=no
17359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17361 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17362 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17363 if test $ac_cv_func_dlopen = yes; then
17364 lt_cv_dlopen="dlopen"
17365 else
17366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-ldl $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17374 #line $LINENO "configure"
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17381 /* Override any gcc2 internal prototype to avoid an error. */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 /* We use char because int might match the return type of a gcc2
17386 builtin and then its argument prototype would still apply. */
17387 char dlopen ();
17389 main ()
17391 dlopen ();
17393 return 0;
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
17402 { ac_try='test -s conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_lib_dl_dlopen=yes
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_cv_lib_dl_dlopen=no
17415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17419 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17420 if test $ac_cv_lib_dl_dlopen = yes; then
17421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17422 else
17423 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17424 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17425 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428 ac_check_lib_save_LIBS=$LIBS
17429 LIBS="-lsvld $LIBS"
17430 cat >conftest.$ac_ext <<_ACEOF
17431 #line $LINENO "configure"
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17438 /* Override any gcc2 internal prototype to avoid an error. */
17439 #ifdef __cplusplus
17440 extern "C"
17441 #endif
17442 /* We use char because int might match the return type of a gcc2
17443 builtin and then its argument prototype would still apply. */
17444 char dlopen ();
17446 main ()
17448 dlopen ();
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455 (eval $ac_link) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_lib_svld_dlopen=yes
17466 else
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 ac_cv_lib_svld_dlopen=no
17472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17473 LIBS=$ac_check_lib_save_LIBS
17475 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17476 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17477 if test $ac_cv_lib_svld_dlopen = yes; then
17478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17479 else
17480 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17481 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17482 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485 ac_check_lib_save_LIBS=$LIBS
17486 LIBS="-ldld $LIBS"
17487 cat >conftest.$ac_ext <<_ACEOF
17488 #line $LINENO "configure"
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17495 /* Override any gcc2 internal prototype to avoid an error. */
17496 #ifdef __cplusplus
17497 extern "C"
17498 #endif
17499 /* We use char because int might match the return type of a gcc2
17500 builtin and then its argument prototype would still apply. */
17501 char dld_link ();
17503 main ()
17505 dld_link ();
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17512 (eval $ac_link) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -s conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_lib_dld_dld_link=yes
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_lib_dld_dld_link=no
17529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17530 LIBS=$ac_check_lib_save_LIBS
17532 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17533 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17534 if test $ac_cv_lib_dld_dld_link = yes; then
17535 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17554 esac
17556 if test "x$lt_cv_dlopen" != xno; then
17557 enable_dlopen=yes
17558 else
17559 enable_dlopen=no
17562 case $lt_cv_dlopen in
17563 dlopen)
17564 save_CPPFLAGS="$CPPFLAGS"
17565 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17567 save_LDFLAGS="$LDFLAGS"
17568 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17570 save_LIBS="$LIBS"
17571 LIBS="$lt_cv_dlopen_libs $LIBS"
17573 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17574 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17575 if test "${lt_cv_dlopen_self+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 if test "$cross_compiling" = yes; then :
17579 lt_cv_dlopen_self=cross
17580 else
17581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17582 lt_status=$lt_dlunknown
17583 cat > conftest.$ac_ext <<EOF
17584 #line 17584 "configure"
17585 #include "confdefs.h"
17587 #if HAVE_DLFCN_H
17588 #include <dlfcn.h>
17589 #endif
17591 #include <stdio.h>
17593 #ifdef RTLD_GLOBAL
17594 # define LT_DLGLOBAL RTLD_GLOBAL
17595 #else
17596 # ifdef DL_GLOBAL
17597 # define LT_DLGLOBAL DL_GLOBAL
17598 # else
17599 # define LT_DLGLOBAL 0
17600 # endif
17601 #endif
17603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17604 find out it does not work in some platform. */
17605 #ifndef LT_DLLAZY_OR_NOW
17606 # ifdef RTLD_LAZY
17607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17608 # else
17609 # ifdef DL_LAZY
17610 # define LT_DLLAZY_OR_NOW DL_LAZY
17611 # else
17612 # ifdef RTLD_NOW
17613 # define LT_DLLAZY_OR_NOW RTLD_NOW
17614 # else
17615 # ifdef DL_NOW
17616 # define LT_DLLAZY_OR_NOW DL_NOW
17617 # else
17618 # define LT_DLLAZY_OR_NOW 0
17619 # endif
17620 # endif
17621 # endif
17622 # endif
17623 #endif
17625 #ifdef __cplusplus
17626 extern "C" void exit (int);
17627 #endif
17629 void fnord() { int i=42;}
17630 int main ()
17632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17633 int status = $lt_dlunknown;
17635 if (self)
17637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17638 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17639 /* dlclose (self); */
17642 exit (status);
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17650 (./conftest; exit; ) 2>/dev/null
17651 lt_status=$?
17652 case x$lt_status in
17653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17655 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17656 esac
17657 else :
17658 # compilation failed
17659 lt_cv_dlopen_self=no
17662 rm -fr conftest*
17666 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17667 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17669 if test "x$lt_cv_dlopen_self" = xyes; then
17670 LDFLAGS="$LDFLAGS $link_static_flag"
17671 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17672 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17673 if test "${lt_cv_dlopen_self_static+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676 if test "$cross_compiling" = yes; then :
17677 lt_cv_dlopen_self_static=cross
17678 else
17679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17680 lt_status=$lt_dlunknown
17681 cat > conftest.$ac_ext <<EOF
17682 #line 17682 "configure"
17683 #include "confdefs.h"
17685 #if HAVE_DLFCN_H
17686 #include <dlfcn.h>
17687 #endif
17689 #include <stdio.h>
17691 #ifdef RTLD_GLOBAL
17692 # define LT_DLGLOBAL RTLD_GLOBAL
17693 #else
17694 # ifdef DL_GLOBAL
17695 # define LT_DLGLOBAL DL_GLOBAL
17696 # else
17697 # define LT_DLGLOBAL 0
17698 # endif
17699 #endif
17701 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17702 find out it does not work in some platform. */
17703 #ifndef LT_DLLAZY_OR_NOW
17704 # ifdef RTLD_LAZY
17705 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17706 # else
17707 # ifdef DL_LAZY
17708 # define LT_DLLAZY_OR_NOW DL_LAZY
17709 # else
17710 # ifdef RTLD_NOW
17711 # define LT_DLLAZY_OR_NOW RTLD_NOW
17712 # else
17713 # ifdef DL_NOW
17714 # define LT_DLLAZY_OR_NOW DL_NOW
17715 # else
17716 # define LT_DLLAZY_OR_NOW 0
17717 # endif
17718 # endif
17719 # endif
17720 # endif
17721 #endif
17723 #ifdef __cplusplus
17724 extern "C" void exit (int);
17725 #endif
17727 void fnord() { int i=42;}
17728 int main ()
17730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17731 int status = $lt_dlunknown;
17733 if (self)
17735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17737 /* dlclose (self); */
17740 exit (status);
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17748 (./conftest; exit; ) 2>/dev/null
17749 lt_status=$?
17750 case x$lt_status in
17751 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17752 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17753 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17754 esac
17755 else :
17756 # compilation failed
17757 lt_cv_dlopen_self_static=no
17760 rm -fr conftest*
17764 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17765 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17768 CPPFLAGS="$save_CPPFLAGS"
17769 LDFLAGS="$save_LDFLAGS"
17770 LIBS="$save_LIBS"
17772 esac
17774 case $lt_cv_dlopen_self in
17775 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17776 *) enable_dlopen_self=unknown ;;
17777 esac
17779 case $lt_cv_dlopen_self_static in
17780 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17781 *) enable_dlopen_self_static=unknown ;;
17782 esac
17786 # The else clause should only fire when bootstrapping the
17787 # libtool distribution, otherwise you forgot to ship ltmain.sh
17788 # with your package, and you will get complaints that there are
17789 # no rules to generate ltmain.sh.
17790 if test -f "$ltmain"; then
17791 # See if we are running on zsh, and set the options which allow our commands through
17792 # without removal of \ escapes.
17793 if test -n "${ZSH_VERSION+set}" ; then
17794 setopt NO_GLOB_SUBST
17796 # Now quote all the things that may contain metacharacters while being
17797 # careful not to overquote the AC_SUBSTed values. We take copies of the
17798 # variables and quote the copies for generation of the libtool script.
17799 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17800 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17801 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17802 deplibs_check_method reload_flag reload_cmds need_locks \
17803 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17804 lt_cv_sys_global_symbol_to_c_name_address \
17805 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17806 old_postinstall_cmds old_postuninstall_cmds \
17807 compiler_GCJ \
17808 CC_GCJ \
17809 LD_GCJ \
17810 lt_prog_compiler_wl_GCJ \
17811 lt_prog_compiler_pic_GCJ \
17812 lt_prog_compiler_static_GCJ \
17813 lt_prog_compiler_no_builtin_flag_GCJ \
17814 export_dynamic_flag_spec_GCJ \
17815 thread_safe_flag_spec_GCJ \
17816 whole_archive_flag_spec_GCJ \
17817 enable_shared_with_static_runtimes_GCJ \
17818 old_archive_cmds_GCJ \
17819 old_archive_from_new_cmds_GCJ \
17820 predep_objects_GCJ \
17821 postdep_objects_GCJ \
17822 predeps_GCJ \
17823 postdeps_GCJ \
17824 compiler_lib_search_path_GCJ \
17825 archive_cmds_GCJ \
17826 archive_expsym_cmds_GCJ \
17827 postinstall_cmds_GCJ \
17828 postuninstall_cmds_GCJ \
17829 old_archive_from_expsyms_cmds_GCJ \
17830 allow_undefined_flag_GCJ \
17831 no_undefined_flag_GCJ \
17832 export_symbols_cmds_GCJ \
17833 hardcode_libdir_flag_spec_GCJ \
17834 hardcode_libdir_flag_spec_ld_GCJ \
17835 hardcode_libdir_separator_GCJ \
17836 hardcode_automatic_GCJ \
17837 module_cmds_GCJ \
17838 module_expsym_cmds_GCJ \
17839 lt_cv_prog_compiler_c_o_GCJ \
17840 exclude_expsyms_GCJ \
17841 include_expsyms_GCJ; do
17843 case $var in
17844 old_archive_cmds_GCJ | \
17845 old_archive_from_new_cmds_GCJ | \
17846 archive_cmds_GCJ | \
17847 archive_expsym_cmds_GCJ | \
17848 module_cmds_GCJ | \
17849 module_expsym_cmds_GCJ | \
17850 old_archive_from_expsyms_cmds_GCJ | \
17851 export_symbols_cmds_GCJ | \
17852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17853 postinstall_cmds | postuninstall_cmds | \
17854 old_postinstall_cmds | old_postuninstall_cmds | \
17855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17856 # Double-quote double-evaled strings.
17857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17862 esac
17863 done
17865 case $lt_echo in
17866 *'\$0 --fallback-echo"')
17867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17869 esac
17871 cfgfile="$ofile"
17873 cat <<__EOF__ >> "$cfgfile"
17874 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17878 # Shell to use when invoking shell scripts.
17879 SHELL=$lt_SHELL
17881 # Whether or not to build shared libraries.
17882 build_libtool_libs=$enable_shared
17884 # Whether or not to build static libraries.
17885 build_old_libs=$enable_static
17887 # Whether or not to add -lc for building shared libraries.
17888 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17890 # Whether or not to disallow shared libs when runtime libs are static
17891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17893 # Whether or not to optimize for fast installation.
17894 fast_install=$enable_fast_install
17896 # The host system.
17897 host_alias=$host_alias
17898 host=$host
17900 # An echo program that does not interpret backslashes.
17901 echo=$lt_echo
17903 # The archiver.
17904 AR=$lt_AR
17905 AR_FLAGS=$lt_AR_FLAGS
17907 # A C compiler.
17908 LTCC=$lt_LTCC
17910 # A language-specific compiler.
17911 CC=$lt_compiler_GCJ
17913 # Is the compiler the GNU C compiler?
17914 with_gcc=$GCC_GCJ
17916 # An ERE matcher.
17917 EGREP=$lt_EGREP
17919 # The linker used to build libraries.
17920 LD=$lt_LD_GCJ
17922 # Whether we need hard or soft links.
17923 LN_S=$lt_LN_S
17925 # A BSD-compatible nm program.
17926 NM=$lt_NM
17928 # A symbol stripping program
17929 STRIP=$STRIP
17931 # Used to examine libraries when file_magic_cmd begins "file"
17932 MAGIC_CMD=$MAGIC_CMD
17934 # Used on cygwin: DLL creation program.
17935 DLLTOOL="$DLLTOOL"
17937 # Used on cygwin: object dumper.
17938 OBJDUMP="$OBJDUMP"
17940 # Used on cygwin: assembler.
17941 AS="$AS"
17943 # The name of the directory that contains temporary libtool files.
17944 objdir=$objdir
17946 # How to create reloadable object files.
17947 reload_flag=$lt_reload_flag
17948 reload_cmds=$lt_reload_cmds
17950 # How to pass a linker flag through the compiler.
17951 wl=$lt_lt_prog_compiler_wl_GCJ
17953 # Object file suffix (normally "o").
17954 objext="$ac_objext"
17956 # Old archive suffix (normally "a").
17957 libext="$libext"
17959 # Shared library suffix (normally ".so").
17960 shrext='$shrext'
17962 # Executable file suffix (normally "").
17963 exeext="$exeext"
17965 # Additional compiler flags for building library objects.
17966 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17967 pic_mode=$pic_mode
17969 # What is the maximum length of a command?
17970 max_cmd_len=$lt_cv_sys_max_cmd_len
17972 # Does compiler simultaneously support -c and -o options?
17973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17975 # Must we lock files when doing compilation ?
17976 need_locks=$lt_need_locks
17978 # Do we need the lib prefix for modules?
17979 need_lib_prefix=$need_lib_prefix
17981 # Do we need a version for libraries?
17982 need_version=$need_version
17984 # Whether dlopen is supported.
17985 dlopen_support=$enable_dlopen
17987 # Whether dlopen of programs is supported.
17988 dlopen_self=$enable_dlopen_self
17990 # Whether dlopen of statically linked programs is supported.
17991 dlopen_self_static=$enable_dlopen_self_static
17993 # Compiler flag to prevent dynamic linking.
17994 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17996 # Compiler flag to turn off builtin functions.
17997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17999 # Compiler flag to allow reflexive dlopens.
18000 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18002 # Compiler flag to generate shared objects directly from archives.
18003 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18005 # Compiler flag to generate thread-safe objects.
18006 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18008 # Library versioning type.
18009 version_type=$version_type
18011 # Format of library name prefix.
18012 libname_spec=$lt_libname_spec
18014 # List of archive names. First name is the real one, the rest are links.
18015 # The last name is the one that the linker finds with -lNAME.
18016 library_names_spec=$lt_library_names_spec
18018 # The coded name of the library, if different from the real name.
18019 soname_spec=$lt_soname_spec
18021 # Commands used to build and install an old-style archive.
18022 RANLIB=$lt_RANLIB
18023 old_archive_cmds=$lt_old_archive_cmds_GCJ
18024 old_postinstall_cmds=$lt_old_postinstall_cmds
18025 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18027 # Create an old-style archive from a shared archive.
18028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18030 # Create a temporary old-style archive to link instead of a shared archive.
18031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18033 # Commands used to build and install a shared archive.
18034 archive_cmds=$lt_archive_cmds_GCJ
18035 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18036 postinstall_cmds=$lt_postinstall_cmds
18037 postuninstall_cmds=$lt_postuninstall_cmds
18039 # Commands used to build a loadable module (assumed same as above if empty)
18040 module_cmds=$lt_module_cmds_GCJ
18041 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18043 # Commands to strip libraries.
18044 old_striplib=$lt_old_striplib
18045 striplib=$lt_striplib
18047 # Dependencies to place before the objects being linked to create a
18048 # shared library.
18049 predep_objects=$lt_predep_objects_GCJ
18051 # Dependencies to place after the objects being linked to create a
18052 # shared library.
18053 postdep_objects=$lt_postdep_objects_GCJ
18055 # Dependencies to place before the objects being linked to create a
18056 # shared library.
18057 predeps=$lt_predeps_GCJ
18059 # Dependencies to place after the objects being linked to create a
18060 # shared library.
18061 postdeps=$lt_postdeps_GCJ
18063 # The library search path used internally by the compiler when linking
18064 # a shared library.
18065 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18067 # Method to check whether dependent libraries are shared objects.
18068 deplibs_check_method=$lt_deplibs_check_method
18070 # Command to use when deplibs_check_method == file_magic.
18071 file_magic_cmd=$lt_file_magic_cmd
18073 # Flag that allows shared libraries with undefined symbols to be built.
18074 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18076 # Flag that forces no undefined symbols.
18077 no_undefined_flag=$lt_no_undefined_flag_GCJ
18079 # Commands used to finish a libtool library installation in a directory.
18080 finish_cmds=$lt_finish_cmds
18082 # Same as above, but a single script fragment to be evaled but not shown.
18083 finish_eval=$lt_finish_eval
18085 # Take the output of nm and produce a listing of raw symbols and C names.
18086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18088 # Transform the output of nm in a proper C declaration
18089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18091 # Transform the output of nm in a C name address pair
18092 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18094 # This is the shared library runtime path variable.
18095 runpath_var=$runpath_var
18097 # This is the shared library path variable.
18098 shlibpath_var=$shlibpath_var
18100 # Is shlibpath searched before the hard-coded library search path?
18101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18103 # How to hardcode a shared library path into an executable.
18104 hardcode_action=$hardcode_action_GCJ
18106 # Whether we should hardcode library paths into libraries.
18107 hardcode_into_libs=$hardcode_into_libs
18109 # Flag to hardcode \$libdir into a binary during linking.
18110 # This must work even if \$libdir does not exist.
18111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18113 # If ld is used when linking, flag to hardcode \$libdir into
18114 # a binary during linking. This must work even if \$libdir does
18115 # not exist.
18116 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18118 # Whether we need a single -rpath flag with a separated argument.
18119 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18121 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18122 # resulting binary.
18123 hardcode_direct=$hardcode_direct_GCJ
18125 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18126 # resulting binary.
18127 hardcode_minus_L=$hardcode_minus_L_GCJ
18129 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18130 # the resulting binary.
18131 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18133 # Set to yes if building a shared library automatically hardcodes DIR into the library
18134 # and all subsequent libraries and executables linked against it.
18135 hardcode_automatic=$hardcode_automatic_GCJ
18137 # Variables whose values should be saved in libtool wrapper scripts and
18138 # restored at relink time.
18139 variables_saved_for_relink="$variables_saved_for_relink"
18141 # Whether libtool must link a program against all its dependency libraries.
18142 link_all_deplibs=$link_all_deplibs_GCJ
18144 # Compile-time system search path for libraries
18145 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18147 # Run-time system search path for libraries
18148 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18150 # Fix the shell variable \$srcfile for the compiler.
18151 fix_srcfile_path="$fix_srcfile_path_GCJ"
18153 # Set to yes if exported symbols are required.
18154 always_export_symbols=$always_export_symbols_GCJ
18156 # The commands to list exported symbols.
18157 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18159 # The commands to extract the exported symbol list from a shared archive.
18160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18162 # Symbols that should not be listed in the preloaded symbols.
18163 exclude_expsyms=$lt_exclude_expsyms_GCJ
18165 # Symbols that must always be exported.
18166 include_expsyms=$lt_include_expsyms_GCJ
18168 # ### END LIBTOOL TAG CONFIG: $tagname
18170 __EOF__
18173 else
18174 # If there is no Makefile yet, we rely on a make rule to execute
18175 # `config.status --recheck' to rerun these tests and create the
18176 # libtool script then.
18177 test -f Makefile && make "$ltmain"
18181 ac_ext=c
18182 ac_cpp='$CPP $CPPFLAGS'
18183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18187 CC="$lt_save_CC"
18189 else
18190 tagname=""
18198 # Source file extension for RC test sources.
18199 ac_ext=rc
18201 # Object file extension for compiled RC test sources.
18202 objext=o
18203 objext_RC=$objext
18205 # Code to be used in simple compile tests
18206 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18208 # Code to be used in simple link tests
18209 lt_simple_link_test_code="$lt_simple_compile_test_code"
18211 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18213 # If no C compiler was specified, use CC.
18214 LTCC=${LTCC-"$CC"}
18216 # Allow CC to be a program name with arguments.
18217 compiler=$CC
18220 # Allow CC to be a program name with arguments.
18221 lt_save_CC="$CC"
18222 CC=${RC-"windres"}
18223 compiler=$CC
18224 compiler_RC=$CC
18225 lt_cv_prog_compiler_c_o_RC=yes
18227 # The else clause should only fire when bootstrapping the
18228 # libtool distribution, otherwise you forgot to ship ltmain.sh
18229 # with your package, and you will get complaints that there are
18230 # no rules to generate ltmain.sh.
18231 if test -f "$ltmain"; then
18232 # See if we are running on zsh, and set the options which allow our commands through
18233 # without removal of \ escapes.
18234 if test -n "${ZSH_VERSION+set}" ; then
18235 setopt NO_GLOB_SUBST
18237 # Now quote all the things that may contain metacharacters while being
18238 # careful not to overquote the AC_SUBSTed values. We take copies of the
18239 # variables and quote the copies for generation of the libtool script.
18240 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18243 deplibs_check_method reload_flag reload_cmds need_locks \
18244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18245 lt_cv_sys_global_symbol_to_c_name_address \
18246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18247 old_postinstall_cmds old_postuninstall_cmds \
18248 compiler_RC \
18249 CC_RC \
18250 LD_RC \
18251 lt_prog_compiler_wl_RC \
18252 lt_prog_compiler_pic_RC \
18253 lt_prog_compiler_static_RC \
18254 lt_prog_compiler_no_builtin_flag_RC \
18255 export_dynamic_flag_spec_RC \
18256 thread_safe_flag_spec_RC \
18257 whole_archive_flag_spec_RC \
18258 enable_shared_with_static_runtimes_RC \
18259 old_archive_cmds_RC \
18260 old_archive_from_new_cmds_RC \
18261 predep_objects_RC \
18262 postdep_objects_RC \
18263 predeps_RC \
18264 postdeps_RC \
18265 compiler_lib_search_path_RC \
18266 archive_cmds_RC \
18267 archive_expsym_cmds_RC \
18268 postinstall_cmds_RC \
18269 postuninstall_cmds_RC \
18270 old_archive_from_expsyms_cmds_RC \
18271 allow_undefined_flag_RC \
18272 no_undefined_flag_RC \
18273 export_symbols_cmds_RC \
18274 hardcode_libdir_flag_spec_RC \
18275 hardcode_libdir_flag_spec_ld_RC \
18276 hardcode_libdir_separator_RC \
18277 hardcode_automatic_RC \
18278 module_cmds_RC \
18279 module_expsym_cmds_RC \
18280 lt_cv_prog_compiler_c_o_RC \
18281 exclude_expsyms_RC \
18282 include_expsyms_RC; do
18284 case $var in
18285 old_archive_cmds_RC | \
18286 old_archive_from_new_cmds_RC | \
18287 archive_cmds_RC | \
18288 archive_expsym_cmds_RC | \
18289 module_cmds_RC | \
18290 module_expsym_cmds_RC | \
18291 old_archive_from_expsyms_cmds_RC | \
18292 export_symbols_cmds_RC | \
18293 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18294 postinstall_cmds | postuninstall_cmds | \
18295 old_postinstall_cmds | old_postuninstall_cmds | \
18296 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18297 # Double-quote double-evaled strings.
18298 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18303 esac
18304 done
18306 case $lt_echo in
18307 *'\$0 --fallback-echo"')
18308 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18310 esac
18312 cfgfile="$ofile"
18314 cat <<__EOF__ >> "$cfgfile"
18315 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18317 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18319 # Shell to use when invoking shell scripts.
18320 SHELL=$lt_SHELL
18322 # Whether or not to build shared libraries.
18323 build_libtool_libs=$enable_shared
18325 # Whether or not to build static libraries.
18326 build_old_libs=$enable_static
18328 # Whether or not to add -lc for building shared libraries.
18329 build_libtool_need_lc=$archive_cmds_need_lc_RC
18331 # Whether or not to disallow shared libs when runtime libs are static
18332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18334 # Whether or not to optimize for fast installation.
18335 fast_install=$enable_fast_install
18337 # The host system.
18338 host_alias=$host_alias
18339 host=$host
18341 # An echo program that does not interpret backslashes.
18342 echo=$lt_echo
18344 # The archiver.
18345 AR=$lt_AR
18346 AR_FLAGS=$lt_AR_FLAGS
18348 # A C compiler.
18349 LTCC=$lt_LTCC
18351 # A language-specific compiler.
18352 CC=$lt_compiler_RC
18354 # Is the compiler the GNU C compiler?
18355 with_gcc=$GCC_RC
18357 # An ERE matcher.
18358 EGREP=$lt_EGREP
18360 # The linker used to build libraries.
18361 LD=$lt_LD_RC
18363 # Whether we need hard or soft links.
18364 LN_S=$lt_LN_S
18366 # A BSD-compatible nm program.
18367 NM=$lt_NM
18369 # A symbol stripping program
18370 STRIP=$STRIP
18372 # Used to examine libraries when file_magic_cmd begins "file"
18373 MAGIC_CMD=$MAGIC_CMD
18375 # Used on cygwin: DLL creation program.
18376 DLLTOOL="$DLLTOOL"
18378 # Used on cygwin: object dumper.
18379 OBJDUMP="$OBJDUMP"
18381 # Used on cygwin: assembler.
18382 AS="$AS"
18384 # The name of the directory that contains temporary libtool files.
18385 objdir=$objdir
18387 # How to create reloadable object files.
18388 reload_flag=$lt_reload_flag
18389 reload_cmds=$lt_reload_cmds
18391 # How to pass a linker flag through the compiler.
18392 wl=$lt_lt_prog_compiler_wl_RC
18394 # Object file suffix (normally "o").
18395 objext="$ac_objext"
18397 # Old archive suffix (normally "a").
18398 libext="$libext"
18400 # Shared library suffix (normally ".so").
18401 shrext='$shrext'
18403 # Executable file suffix (normally "").
18404 exeext="$exeext"
18406 # Additional compiler flags for building library objects.
18407 pic_flag=$lt_lt_prog_compiler_pic_RC
18408 pic_mode=$pic_mode
18410 # What is the maximum length of a command?
18411 max_cmd_len=$lt_cv_sys_max_cmd_len
18413 # Does compiler simultaneously support -c and -o options?
18414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18416 # Must we lock files when doing compilation ?
18417 need_locks=$lt_need_locks
18419 # Do we need the lib prefix for modules?
18420 need_lib_prefix=$need_lib_prefix
18422 # Do we need a version for libraries?
18423 need_version=$need_version
18425 # Whether dlopen is supported.
18426 dlopen_support=$enable_dlopen
18428 # Whether dlopen of programs is supported.
18429 dlopen_self=$enable_dlopen_self
18431 # Whether dlopen of statically linked programs is supported.
18432 dlopen_self_static=$enable_dlopen_self_static
18434 # Compiler flag to prevent dynamic linking.
18435 link_static_flag=$lt_lt_prog_compiler_static_RC
18437 # Compiler flag to turn off builtin functions.
18438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18440 # Compiler flag to allow reflexive dlopens.
18441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18443 # Compiler flag to generate shared objects directly from archives.
18444 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18446 # Compiler flag to generate thread-safe objects.
18447 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18449 # Library versioning type.
18450 version_type=$version_type
18452 # Format of library name prefix.
18453 libname_spec=$lt_libname_spec
18455 # List of archive names. First name is the real one, the rest are links.
18456 # The last name is the one that the linker finds with -lNAME.
18457 library_names_spec=$lt_library_names_spec
18459 # The coded name of the library, if different from the real name.
18460 soname_spec=$lt_soname_spec
18462 # Commands used to build and install an old-style archive.
18463 RANLIB=$lt_RANLIB
18464 old_archive_cmds=$lt_old_archive_cmds_RC
18465 old_postinstall_cmds=$lt_old_postinstall_cmds
18466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18468 # Create an old-style archive from a shared archive.
18469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18471 # Create a temporary old-style archive to link instead of a shared archive.
18472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18474 # Commands used to build and install a shared archive.
18475 archive_cmds=$lt_archive_cmds_RC
18476 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18477 postinstall_cmds=$lt_postinstall_cmds
18478 postuninstall_cmds=$lt_postuninstall_cmds
18480 # Commands used to build a loadable module (assumed same as above if empty)
18481 module_cmds=$lt_module_cmds_RC
18482 module_expsym_cmds=$lt_module_expsym_cmds_RC
18484 # Commands to strip libraries.
18485 old_striplib=$lt_old_striplib
18486 striplib=$lt_striplib
18488 # Dependencies to place before the objects being linked to create a
18489 # shared library.
18490 predep_objects=$lt_predep_objects_RC
18492 # Dependencies to place after the objects being linked to create a
18493 # shared library.
18494 postdep_objects=$lt_postdep_objects_RC
18496 # Dependencies to place before the objects being linked to create a
18497 # shared library.
18498 predeps=$lt_predeps_RC
18500 # Dependencies to place after the objects being linked to create a
18501 # shared library.
18502 postdeps=$lt_postdeps_RC
18504 # The library search path used internally by the compiler when linking
18505 # a shared library.
18506 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18508 # Method to check whether dependent libraries are shared objects.
18509 deplibs_check_method=$lt_deplibs_check_method
18511 # Command to use when deplibs_check_method == file_magic.
18512 file_magic_cmd=$lt_file_magic_cmd
18514 # Flag that allows shared libraries with undefined symbols to be built.
18515 allow_undefined_flag=$lt_allow_undefined_flag_RC
18517 # Flag that forces no undefined symbols.
18518 no_undefined_flag=$lt_no_undefined_flag_RC
18520 # Commands used to finish a libtool library installation in a directory.
18521 finish_cmds=$lt_finish_cmds
18523 # Same as above, but a single script fragment to be evaled but not shown.
18524 finish_eval=$lt_finish_eval
18526 # Take the output of nm and produce a listing of raw symbols and C names.
18527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18529 # Transform the output of nm in a proper C declaration
18530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18532 # Transform the output of nm in a C name address pair
18533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18535 # This is the shared library runtime path variable.
18536 runpath_var=$runpath_var
18538 # This is the shared library path variable.
18539 shlibpath_var=$shlibpath_var
18541 # Is shlibpath searched before the hard-coded library search path?
18542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18544 # How to hardcode a shared library path into an executable.
18545 hardcode_action=$hardcode_action_RC
18547 # Whether we should hardcode library paths into libraries.
18548 hardcode_into_libs=$hardcode_into_libs
18550 # Flag to hardcode \$libdir into a binary during linking.
18551 # This must work even if \$libdir does not exist.
18552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18554 # If ld is used when linking, flag to hardcode \$libdir into
18555 # a binary during linking. This must work even if \$libdir does
18556 # not exist.
18557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18559 # Whether we need a single -rpath flag with a separated argument.
18560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18562 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18563 # resulting binary.
18564 hardcode_direct=$hardcode_direct_RC
18566 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18567 # resulting binary.
18568 hardcode_minus_L=$hardcode_minus_L_RC
18570 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18571 # the resulting binary.
18572 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18574 # Set to yes if building a shared library automatically hardcodes DIR into the library
18575 # and all subsequent libraries and executables linked against it.
18576 hardcode_automatic=$hardcode_automatic_RC
18578 # Variables whose values should be saved in libtool wrapper scripts and
18579 # restored at relink time.
18580 variables_saved_for_relink="$variables_saved_for_relink"
18582 # Whether libtool must link a program against all its dependency libraries.
18583 link_all_deplibs=$link_all_deplibs_RC
18585 # Compile-time system search path for libraries
18586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18588 # Run-time system search path for libraries
18589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18591 # Fix the shell variable \$srcfile for the compiler.
18592 fix_srcfile_path="$fix_srcfile_path_RC"
18594 # Set to yes if exported symbols are required.
18595 always_export_symbols=$always_export_symbols_RC
18597 # The commands to list exported symbols.
18598 export_symbols_cmds=$lt_export_symbols_cmds_RC
18600 # The commands to extract the exported symbol list from a shared archive.
18601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18603 # Symbols that should not be listed in the preloaded symbols.
18604 exclude_expsyms=$lt_exclude_expsyms_RC
18606 # Symbols that must always be exported.
18607 include_expsyms=$lt_include_expsyms_RC
18609 # ### END LIBTOOL TAG CONFIG: $tagname
18611 __EOF__
18614 else
18615 # If there is no Makefile yet, we rely on a make rule to execute
18616 # `config.status --recheck' to rerun these tests and create the
18617 # libtool script then.
18618 test -f Makefile && make "$ltmain"
18622 ac_ext=c
18623 ac_cpp='$CPP $CPPFLAGS'
18624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18628 CC="$lt_save_CC"
18633 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18634 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18635 { (exit 1); exit 1; }; }
18637 esac
18639 # Append the new tag name to the list of available tags.
18640 if test -n "$tagname" ; then
18641 available_tags="$available_tags $tagname"
18644 done
18645 IFS="$lt_save_ifs"
18647 # Now substitute the updated list of available tags.
18648 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18649 mv "${ofile}T" "$ofile"
18650 chmod +x "$ofile"
18651 else
18652 rm -f "${ofile}T"
18653 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18654 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18655 { (exit 1); exit 1; }; }
18661 # This can be used to rebuild libtool when needed
18662 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18664 # Always use our own libtool.
18665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18667 # Prevent multiple expansion
18695 ac_header_dirent=no
18696 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18697 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18698 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
18699 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703 cat >conftest.$ac_ext <<_ACEOF
18704 #line $LINENO "configure"
18705 /* confdefs.h. */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 #include <sys/types.h>
18711 #include <$ac_hdr>
18714 main ()
18716 if ((DIR *) 0)
18717 return 0;
18719 return 0;
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18724 (eval $ac_compile) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 eval "$as_ac_Header=yes"
18735 else
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 eval "$as_ac_Header=no"
18741 rm -f conftest.$ac_objext conftest.$ac_ext
18743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18746 cat >>confdefs.h <<_ACEOF
18747 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18748 _ACEOF
18750 ac_header_dirent=$ac_hdr; break
18753 done
18754 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18755 if test $ac_header_dirent = dirent.h; then
18756 echo "$as_me:$LINENO: checking for library containing opendir" >&5
18757 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
18758 if test "${ac_cv_search_opendir+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761 ac_func_search_save_LIBS=$LIBS
18762 ac_cv_search_opendir=no
18763 cat >conftest.$ac_ext <<_ACEOF
18764 #line $LINENO "configure"
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any gcc2 internal prototype to avoid an error. */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 /* We use char because int might match the return type of a gcc2
18776 builtin and then its argument prototype would still apply. */
18777 char opendir ();
18779 main ()
18781 opendir ();
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_cv_search_opendir="none required"
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18805 if test "$ac_cv_search_opendir" = no; then
18806 for ac_lib in dir; do
18807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18808 cat >conftest.$ac_ext <<_ACEOF
18809 #line $LINENO "configure"
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any gcc2 internal prototype to avoid an error. */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 /* We use char because int might match the return type of a gcc2
18821 builtin and then its argument prototype would still apply. */
18822 char opendir ();
18824 main ()
18826 opendir ();
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -s conftest$ac_exeext'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
18843 ac_cv_search_opendir="-l$ac_lib"
18844 break
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18851 done
18853 LIBS=$ac_func_search_save_LIBS
18855 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
18856 echo "${ECHO_T}$ac_cv_search_opendir" >&6
18857 if test "$ac_cv_search_opendir" != no; then
18858 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
18862 else
18863 echo "$as_me:$LINENO: checking for library containing opendir" >&5
18864 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
18865 if test "${ac_cv_search_opendir+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868 ac_func_search_save_LIBS=$LIBS
18869 ac_cv_search_opendir=no
18870 cat >conftest.$ac_ext <<_ACEOF
18871 #line $LINENO "configure"
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any gcc2 internal prototype to avoid an error. */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 /* We use char because int might match the return type of a gcc2
18883 builtin and then its argument prototype would still apply. */
18884 char opendir ();
18886 main ()
18888 opendir ();
18890 return 0;
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18895 (eval $ac_link) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_search_opendir="none required"
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18912 if test "$ac_cv_search_opendir" = no; then
18913 for ac_lib in x; do
18914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18915 cat >conftest.$ac_ext <<_ACEOF
18916 #line $LINENO "configure"
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 /* Override any gcc2 internal prototype to avoid an error. */
18924 #ifdef __cplusplus
18925 extern "C"
18926 #endif
18927 /* We use char because int might match the return type of a gcc2
18928 builtin and then its argument prototype would still apply. */
18929 char opendir ();
18931 main ()
18933 opendir ();
18935 return 0;
18937 _ACEOF
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18940 (eval $ac_link) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -s conftest$ac_exeext'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_search_opendir="-l$ac_lib"
18951 break
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18958 done
18960 LIBS=$ac_func_search_save_LIBS
18962 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
18963 echo "${ECHO_T}$ac_cv_search_opendir" >&6
18964 if test "$ac_cv_search_opendir" != no; then
18965 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
18971 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
18972 if test "${enable_ltdl_install+set}" = set; then
18973 enableval="$enable_ltdl_install"
18979 if test x"${enable_ltdl_install-no}" != xno; then
18980 INSTALL_LTDL_TRUE=
18981 INSTALL_LTDL_FALSE='#'
18982 else
18983 INSTALL_LTDL_TRUE='#'
18984 INSTALL_LTDL_FALSE=
18989 if test x"${enable_ltdl_convenience-no}" != xno; then
18990 CONVENIENCE_LTDL_TRUE=
18991 CONVENIENCE_LTDL_FALSE='#'
18992 else
18993 CONVENIENCE_LTDL_TRUE='#'
18994 CONVENIENCE_LTDL_FALSE=
18999 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19000 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19001 if test "${libltdl_cv_shlibext+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19005 # Here in libltdl for libgcj we don't build modules for darwin.
19006 # So we say no. Then the extension gets .dylib which is the right
19007 # thing for shared libraries on darwin.
19008 case "$host_os" in
19009 darwin*)
19010 module=no
19013 module=yes
19015 esac
19016 eval libltdl_cv_shlibext=$shrext
19019 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19020 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19021 if test -n "$libltdl_cv_shlibext"; then
19023 cat >>confdefs.h <<_ACEOF
19024 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19025 _ACEOF
19030 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19031 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19032 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035 libltdl_cv_shlibpath_var="$shlibpath_var"
19037 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19038 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19039 if test -n "$libltdl_cv_shlibpath_var"; then
19041 cat >>confdefs.h <<_ACEOF
19042 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19043 _ACEOF
19048 echo "$as_me:$LINENO: checking for the default library search path" >&5
19049 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19050 if test "${libltdl_cv_sys_search_path+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19055 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19056 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19057 if test -n "$libltdl_cv_sys_search_path"; then
19058 sys_search_path=
19059 for dir in $libltdl_cv_sys_search_path; do
19060 if test -z "$sys_search_path"; then
19061 sys_search_path="$dir"
19062 else
19063 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19065 done
19067 cat >>confdefs.h <<_ACEOF
19068 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19069 _ACEOF
19073 echo "$as_me:$LINENO: checking for objdir" >&5
19074 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19075 if test "${libltdl_cv_objdir+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078 libltdl_cv_objdir="$objdir"
19079 if test -n "$objdir"; then
19081 else
19082 rm -f .libs 2>/dev/null
19083 mkdir .libs 2>/dev/null
19084 if test -d .libs; then
19085 libltdl_cv_objdir=.libs
19086 else
19087 # MS-DOS does not allow filenames that begin with a dot.
19088 libltdl_cv_objdir=_libs
19090 rmdir .libs 2>/dev/null
19094 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19095 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19097 cat >>confdefs.h <<_ACEOF
19098 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19099 _ACEOF
19103 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19104 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19105 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19109 libltdl_cv_preloaded_symbols=yes
19110 else
19111 libltdl_cv_preloaded_symbols=no
19115 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19116 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19117 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19119 cat >>confdefs.h <<\_ACEOF
19120 #define HAVE_PRELOADED_SYMBOLS 1
19121 _ACEOF
19125 LIBADD_DL=
19127 ac_ext=c
19128 ac_cpp='$CPP $CPPFLAGS'
19129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19134 echo "$as_me:$LINENO: checking for shl_load" >&5
19135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19136 if test "${ac_cv_func_shl_load+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 else
19139 cat >conftest.$ac_ext <<_ACEOF
19140 #line $LINENO "configure"
19141 /* confdefs.h. */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 /* System header to define __stub macros and hopefully few prototypes,
19147 which can conflict with char shl_load (); below.
19148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19149 <limits.h> exists even on freestanding compilers. */
19150 #ifdef __STDC__
19151 # include <limits.h>
19152 #else
19153 # include <assert.h>
19154 #endif
19155 /* Override any gcc2 internal prototype to avoid an error. */
19156 #ifdef __cplusplus
19157 extern "C"
19159 #endif
19160 /* We use char because int might match the return type of a gcc2
19161 builtin and then its argument prototype would still apply. */
19162 char shl_load ();
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19167 choke me
19168 #else
19169 char (*f) () = shl_load;
19170 #endif
19171 #ifdef __cplusplus
19173 #endif
19176 main ()
19178 return f != shl_load;
19180 return 0;
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_func_shl_load=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_func_shl_load=no
19202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19206 if test $ac_cv_func_shl_load = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE_SHL_LOAD 1
19210 _ACEOF
19212 else
19213 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19214 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19215 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218 ac_check_lib_save_LIBS=$LIBS
19219 LIBS="-ldld $LIBS"
19220 cat >conftest.$ac_ext <<_ACEOF
19221 #line $LINENO "configure"
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19228 /* Override any gcc2 internal prototype to avoid an error. */
19229 #ifdef __cplusplus
19230 extern "C"
19231 #endif
19232 /* We use char because int might match the return type of a gcc2
19233 builtin and then its argument prototype would still apply. */
19234 char shl_load ();
19236 main ()
19238 shl_load ();
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19245 (eval $ac_link) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -s conftest$ac_exeext'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_cv_lib_dld_shl_load=yes
19256 else
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 ac_cv_lib_dld_shl_load=no
19262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19263 LIBS=$ac_check_lib_save_LIBS
19265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19266 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19267 if test $ac_cv_lib_dld_shl_load = yes; then
19269 cat >>confdefs.h <<\_ACEOF
19270 #define HAVE_SHL_LOAD 1
19271 _ACEOF
19273 LIBADD_DL="$LIBADD_DL -ldld"
19274 else
19275 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19276 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19277 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280 ac_check_lib_save_LIBS=$LIBS
19281 LIBS="-ldl $LIBS"
19282 cat >conftest.$ac_ext <<_ACEOF
19283 #line $LINENO "configure"
19284 /* confdefs.h. */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 /* Override any gcc2 internal prototype to avoid an error. */
19291 #ifdef __cplusplus
19292 extern "C"
19293 #endif
19294 /* We use char because int might match the return type of a gcc2
19295 builtin and then its argument prototype would still apply. */
19296 char dlopen ();
19298 main ()
19300 dlopen ();
19302 return 0;
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307 (eval $ac_link) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_lib_dl_dlopen=yes
19318 else
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_cv_lib_dl_dlopen=no
19324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19325 LIBS=$ac_check_lib_save_LIBS
19327 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19328 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19329 if test $ac_cv_lib_dl_dlopen = yes; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_LIBDL 1
19333 _ACEOF
19335 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19336 else
19337 cat >conftest.$ac_ext <<_ACEOF
19338 #line $LINENO "configure"
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #if HAVE_DLFCN_H
19345 # include <dlfcn.h>
19346 #endif
19349 main ()
19351 dlopen(0, 0);
19353 return 0;
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19369 cat >>confdefs.h <<\_ACEOF
19370 #define HAVE_LIBDL 1
19371 _ACEOF
19372 libltdl_cv_func_dlopen="yes"
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19378 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19379 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382 ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lsvld $LIBS"
19384 cat >conftest.$ac_ext <<_ACEOF
19385 #line $LINENO "configure"
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any gcc2 internal prototype to avoid an error. */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 /* We use char because int might match the return type of a gcc2
19397 builtin and then its argument prototype would still apply. */
19398 char dlopen ();
19400 main ()
19402 dlopen ();
19404 return 0;
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -s conftest$ac_exeext'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_lib_svld_dlopen=yes
19420 else
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_lib_svld_dlopen=no
19426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19427 LIBS=$ac_check_lib_save_LIBS
19429 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19430 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19431 if test $ac_cv_lib_svld_dlopen = yes; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_LIBDL 1
19435 _ACEOF
19437 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19438 else
19439 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19440 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19441 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444 ac_check_lib_save_LIBS=$LIBS
19445 LIBS="-ldld $LIBS"
19446 cat >conftest.$ac_ext <<_ACEOF
19447 #line $LINENO "configure"
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any gcc2 internal prototype to avoid an error. */
19455 #ifdef __cplusplus
19456 extern "C"
19457 #endif
19458 /* We use char because int might match the return type of a gcc2
19459 builtin and then its argument prototype would still apply. */
19460 char dld_link ();
19462 main ()
19464 dld_link ();
19466 return 0;
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_dld_dld_link=yes
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_dld_dld_link=no
19488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19489 LIBS=$ac_check_lib_save_LIBS
19491 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19492 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19493 if test $ac_cv_lib_dld_dld_link = yes; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_DLD 1
19497 _ACEOF
19499 LIBADD_DL="$LIBADD_DL -ldld"
19500 else
19501 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19502 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
19503 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 cat >conftest.$ac_ext <<_ACEOF
19507 #line $LINENO "configure"
19508 /* confdefs.h. */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513 /* System header to define __stub macros and hopefully few prototypes,
19514 which can conflict with char _dyld_func_lookup (); below.
19515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19516 <limits.h> exists even on freestanding compilers. */
19517 #ifdef __STDC__
19518 # include <limits.h>
19519 #else
19520 # include <assert.h>
19521 #endif
19522 /* Override any gcc2 internal prototype to avoid an error. */
19523 #ifdef __cplusplus
19524 extern "C"
19526 #endif
19527 /* We use char because int might match the return type of a gcc2
19528 builtin and then its argument prototype would still apply. */
19529 char _dyld_func_lookup ();
19530 /* The GNU C library defines this for functions which it implements
19531 to always fail with ENOSYS. Some functions are actually named
19532 something starting with __ and the normal name is an alias. */
19533 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
19534 choke me
19535 #else
19536 char (*f) () = _dyld_func_lookup;
19537 #endif
19538 #ifdef __cplusplus
19540 #endif
19543 main ()
19545 return f != _dyld_func_lookup;
19547 return 0;
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552 (eval $ac_link) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -s conftest$ac_exeext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_func__dyld_func_lookup=yes
19563 else
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_func__dyld_func_lookup=no
19569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19571 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19572 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
19573 if test $ac_cv_func__dyld_func_lookup = yes; then
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_DYLD 1
19577 _ACEOF
19589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19600 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19601 then
19602 lt_save_LIBS="$LIBS"
19603 LIBS="$LIBS $LIBADD_DL"
19605 for ac_func in dlerror
19607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19608 echo "$as_me:$LINENO: checking for $ac_func" >&5
19609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19610 if eval "test \"\${$as_ac_var+set}\" = set"; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 cat >conftest.$ac_ext <<_ACEOF
19614 #line $LINENO "configure"
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 /* System header to define __stub macros and hopefully few prototypes,
19621 which can conflict with char $ac_func (); below.
19622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19623 <limits.h> exists even on freestanding compilers. */
19624 #ifdef __STDC__
19625 # include <limits.h>
19626 #else
19627 # include <assert.h>
19628 #endif
19629 /* Override any gcc2 internal prototype to avoid an error. */
19630 #ifdef __cplusplus
19631 extern "C"
19633 #endif
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19636 char $ac_func ();
19637 /* The GNU C library defines this for functions which it implements
19638 to always fail with ENOSYS. Some functions are actually named
19639 something starting with __ and the normal name is an alias. */
19640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19641 choke me
19642 #else
19643 char (*f) () = $ac_func;
19644 #endif
19645 #ifdef __cplusplus
19647 #endif
19650 main ()
19652 return f != $ac_func;
19654 return 0;
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659 (eval $ac_link) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
19663 { ac_try='test -s conftest$ac_exeext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 eval "$as_ac_var=yes"
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 eval "$as_ac_var=no"
19676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19680 if test `eval echo '${'$as_ac_var'}'` = yes; then
19681 cat >>confdefs.h <<_ACEOF
19682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19683 _ACEOF
19686 done
19688 LIBS="$lt_save_LIBS"
19690 ac_ext=c
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19698 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
19699 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
19700 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703 ac_cv_sys_symbol_underscore=no
19704 cat > conftest.$ac_ext <<EOF
19705 void nm_test_func(){}
19706 int main(){nm_test_func;return 0;}
19708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19709 (eval $ac_compile) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; then
19713 # Now try to grab the symbols.
19714 ac_nlist=conftest.nm
19715 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
19716 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && test -s "$ac_nlist"; then
19720 # See whether the symbols have a leading underscore.
19721 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19722 ac_cv_sys_symbol_underscore=yes
19723 else
19724 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19726 else
19727 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19730 else
19731 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19733 else
19734 echo "configure: failed program was:" >&5
19735 cat conftest.c >&5
19737 rm -rf conftest*
19740 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
19741 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
19744 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
19745 if test x"$libltdl_cv_func_dlopen" = xyes ||
19746 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19747 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
19748 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
19749 if test "${libltdl_cv_need_uscore+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 libltdl_cv_need_uscore=unknown
19753 save_LIBS="$LIBS"
19754 LIBS="$LIBS $LIBADD_DL"
19755 if test "$cross_compiling" = yes; then :
19756 libltdl_cv_need_uscore=cross
19757 else
19758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19759 lt_status=$lt_dlunknown
19760 cat > conftest.$ac_ext <<EOF
19761 #line 19761 "configure"
19762 #include "confdefs.h"
19764 #if HAVE_DLFCN_H
19765 #include <dlfcn.h>
19766 #endif
19768 #include <stdio.h>
19770 #ifdef RTLD_GLOBAL
19771 # define LT_DLGLOBAL RTLD_GLOBAL
19772 #else
19773 # ifdef DL_GLOBAL
19774 # define LT_DLGLOBAL DL_GLOBAL
19775 # else
19776 # define LT_DLGLOBAL 0
19777 # endif
19778 #endif
19780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19781 find out it does not work in some platform. */
19782 #ifndef LT_DLLAZY_OR_NOW
19783 # ifdef RTLD_LAZY
19784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19785 # else
19786 # ifdef DL_LAZY
19787 # define LT_DLLAZY_OR_NOW DL_LAZY
19788 # else
19789 # ifdef RTLD_NOW
19790 # define LT_DLLAZY_OR_NOW RTLD_NOW
19791 # else
19792 # ifdef DL_NOW
19793 # define LT_DLLAZY_OR_NOW DL_NOW
19794 # else
19795 # define LT_DLLAZY_OR_NOW 0
19796 # endif
19797 # endif
19798 # endif
19799 # endif
19800 #endif
19802 #ifdef __cplusplus
19803 extern "C" void exit (int);
19804 #endif
19806 void fnord() { int i=42;}
19807 int main ()
19809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19810 int status = $lt_dlunknown;
19812 if (self)
19814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19816 /* dlclose (self); */
19819 exit (status);
19822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19823 (eval $ac_link) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19827 (./conftest; exit; ) 2>/dev/null
19828 lt_status=$?
19829 case x$lt_status in
19830 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19831 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19832 x$lt_unknown|x*) ;;
19833 esac
19834 else :
19835 # compilation failed
19839 rm -fr conftest*
19841 LIBS="$save_LIBS"
19844 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
19845 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
19849 if test x"$libltdl_cv_need_uscore" = xyes; then
19851 cat >>confdefs.h <<\_ACEOF
19852 #define NEED_USCORE 1
19853 _ACEOF
19858 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
19859 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
19860 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863 # PORTME does your system automatically load deplibs for dlopen?
19864 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19865 # For now, we just catch OSes we know something about -- in the
19866 # future, we'll try test this programmatically.
19867 libltdl_cv_sys_dlopen_deplibs=unknown
19868 case "$host_os" in
19869 aix3*|aix4.1.*|aix4.2.*)
19870 # Unknown whether this is true for these versions of AIX, but
19871 # we want this `case' here to explicitly catch those versions.
19872 libltdl_cv_sys_dlopen_deplibs=unknown
19874 aix[45]*)
19875 libltdl_cv_sys_dlopen_deplibs=yes
19877 darwin*)
19878 # Assuming the user has installed a libdl from somewhere, this is true
19879 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19880 libltdl_cv_sys_dlopen_deplibs=yes
19882 gnu*)
19883 libltdl_cv_sys_dlopen_deplibs=yes
19885 hpux10*|hpux11*)
19886 libltdl_cv_sys_dlopen_deplibs=yes
19888 irix[12345]*|irix6.[01]*)
19889 # Catch all versions of IRIX before 6.2, and indicate that we don't
19890 # know how it worked for any of those versions.
19891 libltdl_cv_sys_dlopen_deplibs=unknown
19893 irix*)
19894 # The case above catches anything before 6.2, and it's known that
19895 # at 6.2 and later dlopen does load deplibs.
19896 libltdl_cv_sys_dlopen_deplibs=yes
19898 linux*)
19899 libltdl_cv_sys_dlopen_deplibs=yes
19901 netbsd*)
19902 libltdl_cv_sys_dlopen_deplibs=yes
19904 openbsd*)
19905 libltdl_cv_sys_dlopen_deplibs=yes
19907 osf[1234]*)
19908 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19909 # it did *not* use an RPATH in a shared library to find objects the
19910 # library depends on, so we explictly say `no'.
19911 libltdl_cv_sys_dlopen_deplibs=no
19913 osf5.0|osf5.0a|osf5.1)
19914 # dlopen *does* load deplibs and with the right loader patch applied
19915 # it even uses RPATH in a shared library to search for shared objects
19916 # that the library depends on, but there's no easy way to know if that
19917 # patch is installed. Since this is the case, all we can really
19918 # say is unknown -- it depends on the patch being installed. If
19919 # it is, this changes to `yes'. Without it, it would be `no'.
19920 libltdl_cv_sys_dlopen_deplibs=unknown
19922 osf*)
19923 # the two cases above should catch all versions of osf <= 5.1. Read
19924 # the comments above for what we know about them.
19925 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19926 # is used to find them so we can finally say `yes'.
19927 libltdl_cv_sys_dlopen_deplibs=yes
19929 solaris*)
19930 libltdl_cv_sys_dlopen_deplibs=yes
19932 esac
19935 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
19936 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
19937 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
19939 cat >>confdefs.h <<\_ACEOF
19940 #define LTDL_DLOPEN_DEPLIBS 1
19941 _ACEOF
19946 for ac_header in argz.h
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19950 echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19957 else
19958 # Is the header compilable?
19959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19961 cat >conftest.$ac_ext <<_ACEOF
19962 #line $LINENO "configure"
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19969 #include <$ac_header>
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -s conftest.$ac_objext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_header_compiler=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_header_compiler=no
19990 rm -f conftest.$ac_objext conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19992 echo "${ECHO_T}$ac_header_compiler" >&6
19994 # Is the header present?
19995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19997 cat >conftest.$ac_ext <<_ACEOF
19998 #line $LINENO "configure"
19999 /* confdefs.h. */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 #include <$ac_header>
20005 _ACEOF
20006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } >/dev/null; then
20014 if test -s conftest.err; then
20015 ac_cpp_err=$ac_c_preproc_warn_flag
20016 else
20017 ac_cpp_err=
20019 else
20020 ac_cpp_err=yes
20022 if test -z "$ac_cpp_err"; then
20023 ac_header_preproc=yes
20024 else
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 ac_header_preproc=no
20030 rm -f conftest.err conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20032 echo "${ECHO_T}$ac_header_preproc" >&6
20034 # So? What about this header?
20035 case $ac_header_compiler:$ac_header_preproc in
20036 yes:no )
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042 cat <<\_ASBOX
20043 ## ------------------------------------ ##
20044 ## Report this to bug-autoconf@gnu.org. ##
20045 ## ------------------------------------ ##
20046 _ASBOX
20048 sed "s/^/$as_me: WARNING: /" >&2
20050 no:yes )
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058 cat <<\_ASBOX
20059 ## ------------------------------------ ##
20060 ## Report this to bug-autoconf@gnu.org. ##
20061 ## ------------------------------------ ##
20062 _ASBOX
20064 sed "s/^/$as_me: WARNING: /" >&2
20066 esac
20067 echo "$as_me:$LINENO: checking for $ac_header" >&5
20068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072 eval "$as_ac_Header=$ac_header_preproc"
20074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20079 cat >>confdefs.h <<_ACEOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20081 _ACEOF
20085 done
20088 echo "$as_me:$LINENO: checking for error_t" >&5
20089 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20090 if test "${ac_cv_type_error_t+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 cat >conftest.$ac_ext <<_ACEOF
20094 #line $LINENO "configure"
20095 /* confdefs.h. */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #if HAVE_ARGZ_H
20101 # include <argz.h>
20102 #endif
20105 main ()
20107 if ((error_t *) 0)
20108 return 0;
20109 if (sizeof (error_t))
20110 return 0;
20112 return 0;
20114 _ACEOF
20115 rm -f conftest.$ac_objext
20116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20117 (eval $ac_compile) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -s conftest.$ac_objext'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 ac_cv_type_error_t=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_type_error_t=no
20134 rm -f conftest.$ac_objext conftest.$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20137 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20138 if test $ac_cv_type_error_t = yes; then
20140 cat >>confdefs.h <<_ACEOF
20141 #define HAVE_ERROR_T 1
20142 _ACEOF
20145 else
20147 cat >>confdefs.h <<\_ACEOF
20148 #define error_t int
20149 _ACEOF
20159 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20162 echo "$as_me:$LINENO: checking for $ac_func" >&5
20163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20164 if eval "test \"\${$as_ac_var+set}\" = set"; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167 cat >conftest.$ac_ext <<_ACEOF
20168 #line $LINENO "configure"
20169 /* confdefs.h. */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 /* System header to define __stub macros and hopefully few prototypes,
20175 which can conflict with char $ac_func (); below.
20176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20177 <limits.h> exists even on freestanding compilers. */
20178 #ifdef __STDC__
20179 # include <limits.h>
20180 #else
20181 # include <assert.h>
20182 #endif
20183 /* Override any gcc2 internal prototype to avoid an error. */
20184 #ifdef __cplusplus
20185 extern "C"
20187 #endif
20188 /* We use char because int might match the return type of a gcc2
20189 builtin and then its argument prototype would still apply. */
20190 char $ac_func ();
20191 /* The GNU C library defines this for functions which it implements
20192 to always fail with ENOSYS. Some functions are actually named
20193 something starting with __ and the normal name is an alias. */
20194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20195 choke me
20196 #else
20197 char (*f) () = $ac_func;
20198 #endif
20199 #ifdef __cplusplus
20201 #endif
20204 main ()
20206 return f != $ac_func;
20208 return 0;
20210 _ACEOF
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20213 (eval $ac_link) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 eval "$as_ac_var=yes"
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 eval "$as_ac_var=no"
20230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20234 if test `eval echo '${'$as_ac_var'}'` = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20237 _ACEOF
20240 done
20269 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20270 stdio.h unistd.h
20272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20274 echo "$as_me:$LINENO: checking for $ac_header" >&5
20275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20281 else
20282 # Is the header compilable?
20283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20285 cat >conftest.$ac_ext <<_ACEOF
20286 #line $LINENO "configure"
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 $ac_includes_default
20293 #include <$ac_header>
20294 _ACEOF
20295 rm -f conftest.$ac_objext
20296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_header_compiler=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_header_compiler=no
20314 rm -f conftest.$ac_objext conftest.$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20316 echo "${ECHO_T}$ac_header_compiler" >&6
20318 # Is the header present?
20319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20321 cat >conftest.$ac_ext <<_ACEOF
20322 #line $LINENO "configure"
20323 /* confdefs.h. */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <$ac_header>
20329 _ACEOF
20330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null; then
20338 if test -s conftest.err; then
20339 ac_cpp_err=$ac_c_preproc_warn_flag
20340 else
20341 ac_cpp_err=
20343 else
20344 ac_cpp_err=yes
20346 if test -z "$ac_cpp_err"; then
20347 ac_header_preproc=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_header_preproc=no
20354 rm -f conftest.err conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356 echo "${ECHO_T}$ac_header_preproc" >&6
20358 # So? What about this header?
20359 case $ac_header_compiler:$ac_header_preproc in
20360 yes:no )
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20366 cat <<\_ASBOX
20367 ## ------------------------------------ ##
20368 ## Report this to bug-autoconf@gnu.org. ##
20369 ## ------------------------------------ ##
20370 _ASBOX
20372 sed "s/^/$as_me: WARNING: /" >&2
20374 no:yes )
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20382 cat <<\_ASBOX
20383 ## ------------------------------------ ##
20384 ## Report this to bug-autoconf@gnu.org. ##
20385 ## ------------------------------------ ##
20386 _ASBOX
20388 sed "s/^/$as_me: WARNING: /" >&2
20390 esac
20391 echo "$as_me:$LINENO: checking for $ac_header" >&5
20392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 else
20396 eval "$as_ac_Header=$ac_header_preproc"
20398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20403 cat >>confdefs.h <<_ACEOF
20404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20405 _ACEOF
20409 done
20415 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
20417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20419 echo "$as_me:$LINENO: checking for $ac_header" >&5
20420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20426 else
20427 # Is the header compilable?
20428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20431 #line $LINENO "configure"
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 $ac_includes_default
20438 #include <$ac_header>
20439 _ACEOF
20440 rm -f conftest.$ac_objext
20441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20442 (eval $ac_compile) 2>&5
20443 ac_status=$?
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -s conftest.$ac_objext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_header_compiler=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_header_compiler=no
20459 rm -f conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6
20463 # Is the header present?
20464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20466 cat >conftest.$ac_ext <<_ACEOF
20467 #line $LINENO "configure"
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <$ac_header>
20474 _ACEOF
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null; then
20483 if test -s conftest.err; then
20484 ac_cpp_err=$ac_c_preproc_warn_flag
20485 else
20486 ac_cpp_err=
20488 else
20489 ac_cpp_err=yes
20491 if test -z "$ac_cpp_err"; then
20492 ac_header_preproc=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_header_preproc=no
20499 rm -f conftest.err conftest.$ac_ext
20500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20501 echo "${ECHO_T}$ac_header_preproc" >&6
20503 # So? What about this header?
20504 case $ac_header_compiler:$ac_header_preproc in
20505 yes:no )
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20511 cat <<\_ASBOX
20512 ## ------------------------------------ ##
20513 ## Report this to bug-autoconf@gnu.org. ##
20514 ## ------------------------------------ ##
20515 _ASBOX
20517 sed "s/^/$as_me: WARNING: /" >&2
20519 no:yes )
20520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20527 cat <<\_ASBOX
20528 ## ------------------------------------ ##
20529 ## Report this to bug-autoconf@gnu.org. ##
20530 ## ------------------------------------ ##
20531 _ASBOX
20533 sed "s/^/$as_me: WARNING: /" >&2
20535 esac
20536 echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 eval "$as_ac_Header=$ac_header_preproc"
20543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20550 _ACEOF
20554 done
20558 for ac_header in string.h strings.h
20560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo "$as_me:$LINENO: checking for $ac_header" >&5
20563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20569 else
20570 # Is the header compilable?
20571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20573 cat >conftest.$ac_ext <<_ACEOF
20574 #line $LINENO "configure"
20575 /* confdefs.h. */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 $ac_includes_default
20581 #include <$ac_header>
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585 (eval $ac_compile) 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -s conftest.$ac_objext'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; }; then
20595 ac_header_compiler=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_header_compiler=no
20602 rm -f conftest.$ac_objext conftest.$ac_ext
20603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20604 echo "${ECHO_T}$ac_header_compiler" >&6
20606 # Is the header present?
20607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20609 cat >conftest.$ac_ext <<_ACEOF
20610 #line $LINENO "configure"
20611 /* confdefs.h. */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 #include <$ac_header>
20617 _ACEOF
20618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } >/dev/null; then
20626 if test -s conftest.err; then
20627 ac_cpp_err=$ac_c_preproc_warn_flag
20628 else
20629 ac_cpp_err=
20631 else
20632 ac_cpp_err=yes
20634 if test -z "$ac_cpp_err"; then
20635 ac_header_preproc=yes
20636 else
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_header_preproc=no
20642 rm -f conftest.err conftest.$ac_ext
20643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20644 echo "${ECHO_T}$ac_header_preproc" >&6
20646 # So? What about this header?
20647 case $ac_header_compiler:$ac_header_preproc in
20648 yes:no )
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20654 cat <<\_ASBOX
20655 ## ------------------------------------ ##
20656 ## Report this to bug-autoconf@gnu.org. ##
20657 ## ------------------------------------ ##
20658 _ASBOX
20660 sed "s/^/$as_me: WARNING: /" >&2
20662 no:yes )
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20670 cat <<\_ASBOX
20671 ## ------------------------------------ ##
20672 ## Report this to bug-autoconf@gnu.org. ##
20673 ## ------------------------------------ ##
20674 _ASBOX
20676 sed "s/^/$as_me: WARNING: /" >&2
20678 esac
20679 echo "$as_me:$LINENO: checking for $ac_header" >&5
20680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684 eval "$as_ac_Header=$ac_header_preproc"
20686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20693 _ACEOF
20694 break
20697 done
20702 for ac_func in strchr index
20704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705 echo "$as_me:$LINENO: checking for $ac_func" >&5
20706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_var+set}\" = set"; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710 cat >conftest.$ac_ext <<_ACEOF
20711 #line $LINENO "configure"
20712 /* confdefs.h. */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 /* System header to define __stub macros and hopefully few prototypes,
20718 which can conflict with char $ac_func (); below.
20719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20720 <limits.h> exists even on freestanding compilers. */
20721 #ifdef __STDC__
20722 # include <limits.h>
20723 #else
20724 # include <assert.h>
20725 #endif
20726 /* Override any gcc2 internal prototype to avoid an error. */
20727 #ifdef __cplusplus
20728 extern "C"
20730 #endif
20731 /* We use char because int might match the return type of a gcc2
20732 builtin and then its argument prototype would still apply. */
20733 char $ac_func ();
20734 /* The GNU C library defines this for functions which it implements
20735 to always fail with ENOSYS. Some functions are actually named
20736 something starting with __ and the normal name is an alias. */
20737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20738 choke me
20739 #else
20740 char (*f) () = $ac_func;
20741 #endif
20742 #ifdef __cplusplus
20744 #endif
20747 main ()
20749 return f != $ac_func;
20751 return 0;
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -s conftest$ac_exeext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 eval "$as_ac_var=yes"
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 eval "$as_ac_var=no"
20773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20777 if test `eval echo '${'$as_ac_var'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20780 _ACEOF
20781 break
20783 done
20787 for ac_func in strrchr rindex
20789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20790 echo "$as_me:$LINENO: checking for $ac_func" >&5
20791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20792 if eval "test \"\${$as_ac_var+set}\" = set"; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795 cat >conftest.$ac_ext <<_ACEOF
20796 #line $LINENO "configure"
20797 /* confdefs.h. */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 /* System header to define __stub macros and hopefully few prototypes,
20803 which can conflict with char $ac_func (); below.
20804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20805 <limits.h> exists even on freestanding compilers. */
20806 #ifdef __STDC__
20807 # include <limits.h>
20808 #else
20809 # include <assert.h>
20810 #endif
20811 /* Override any gcc2 internal prototype to avoid an error. */
20812 #ifdef __cplusplus
20813 extern "C"
20815 #endif
20816 /* We use char because int might match the return type of a gcc2
20817 builtin and then its argument prototype would still apply. */
20818 char $ac_func ();
20819 /* The GNU C library defines this for functions which it implements
20820 to always fail with ENOSYS. Some functions are actually named
20821 something starting with __ and the normal name is an alias. */
20822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20823 choke me
20824 #else
20825 char (*f) () = $ac_func;
20826 #endif
20827 #ifdef __cplusplus
20829 #endif
20832 main ()
20834 return f != $ac_func;
20836 return 0;
20838 _ACEOF
20839 rm -f conftest.$ac_objext conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841 (eval $ac_link) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -s conftest$ac_exeext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 eval "$as_ac_var=yes"
20852 else
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 eval "$as_ac_var=no"
20858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20862 if test `eval echo '${'$as_ac_var'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20865 _ACEOF
20866 break
20868 done
20872 for ac_func in memcpy bcopy
20874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20875 echo "$as_me:$LINENO: checking for $ac_func" >&5
20876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20877 if eval "test \"\${$as_ac_var+set}\" = set"; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880 cat >conftest.$ac_ext <<_ACEOF
20881 #line $LINENO "configure"
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 /* System header to define __stub macros and hopefully few prototypes,
20888 which can conflict with char $ac_func (); below.
20889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20890 <limits.h> exists even on freestanding compilers. */
20891 #ifdef __STDC__
20892 # include <limits.h>
20893 #else
20894 # include <assert.h>
20895 #endif
20896 /* Override any gcc2 internal prototype to avoid an error. */
20897 #ifdef __cplusplus
20898 extern "C"
20900 #endif
20901 /* We use char because int might match the return type of a gcc2
20902 builtin and then its argument prototype would still apply. */
20903 char $ac_func ();
20904 /* The GNU C library defines this for functions which it implements
20905 to always fail with ENOSYS. Some functions are actually named
20906 something starting with __ and the normal name is an alias. */
20907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20908 choke me
20909 #else
20910 char (*f) () = $ac_func;
20911 #endif
20912 #ifdef __cplusplus
20914 #endif
20917 main ()
20919 return f != $ac_func;
20921 return 0;
20923 _ACEOF
20924 rm -f conftest.$ac_objext conftest$ac_exeext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20926 (eval $ac_link) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -s conftest$ac_exeext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 eval "$as_ac_var=yes"
20937 else
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 eval "$as_ac_var=no"
20943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20947 if test `eval echo '${'$as_ac_var'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20950 _ACEOF
20951 break
20953 done
20957 for ac_func in memmove strcmp
20959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20960 echo "$as_me:$LINENO: checking for $ac_func" >&5
20961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20962 if eval "test \"\${$as_ac_var+set}\" = set"; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 #line $LINENO "configure"
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 /* System header to define __stub macros and hopefully few prototypes,
20973 which can conflict with char $ac_func (); below.
20974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975 <limits.h> exists even on freestanding compilers. */
20976 #ifdef __STDC__
20977 # include <limits.h>
20978 #else
20979 # include <assert.h>
20980 #endif
20981 /* Override any gcc2 internal prototype to avoid an error. */
20982 #ifdef __cplusplus
20983 extern "C"
20985 #endif
20986 /* We use char because int might match the return type of a gcc2
20987 builtin and then its argument prototype would still apply. */
20988 char $ac_func ();
20989 /* The GNU C library defines this for functions which it implements
20990 to always fail with ENOSYS. Some functions are actually named
20991 something starting with __ and the normal name is an alias. */
20992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20993 choke me
20994 #else
20995 char (*f) () = $ac_func;
20996 #endif
20997 #ifdef __cplusplus
20999 #endif
21002 main ()
21004 return f != $ac_func;
21006 return 0;
21008 _ACEOF
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21011 (eval $ac_link) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -s conftest$ac_exeext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 eval "$as_ac_var=yes"
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 eval "$as_ac_var=no"
21028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21032 if test `eval echo '${'$as_ac_var'}'` = yes; then
21033 cat >>confdefs.h <<_ACEOF
21034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 _ACEOF
21038 done
21043 for ac_func in closedir opendir readdir
21045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21046 echo "$as_me:$LINENO: checking for $ac_func" >&5
21047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21048 if eval "test \"\${$as_ac_var+set}\" = set"; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051 cat >conftest.$ac_ext <<_ACEOF
21052 #line $LINENO "configure"
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 /* System header to define __stub macros and hopefully few prototypes,
21059 which can conflict with char $ac_func (); below.
21060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21061 <limits.h> exists even on freestanding compilers. */
21062 #ifdef __STDC__
21063 # include <limits.h>
21064 #else
21065 # include <assert.h>
21066 #endif
21067 /* Override any gcc2 internal prototype to avoid an error. */
21068 #ifdef __cplusplus
21069 extern "C"
21071 #endif
21072 /* We use char because int might match the return type of a gcc2
21073 builtin and then its argument prototype would still apply. */
21074 char $ac_func ();
21075 /* The GNU C library defines this for functions which it implements
21076 to always fail with ENOSYS. Some functions are actually named
21077 something starting with __ and the normal name is an alias. */
21078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21079 choke me
21080 #else
21081 char (*f) () = $ac_func;
21082 #endif
21083 #ifdef __cplusplus
21085 #endif
21088 main ()
21090 return f != $ac_func;
21092 return 0;
21094 _ACEOF
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 eval "$as_ac_var=yes"
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 eval "$as_ac_var=no"
21114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21118 if test `eval echo '${'$as_ac_var'}'` = yes; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21121 _ACEOF
21124 done
21129 ## -------- ##
21130 ## Outputs. ##
21131 ## -------- ##
21132 ac_config_files="$ac_config_files Makefile"
21134 cat >confcache <<\_ACEOF
21135 # This file is a shell script that caches the results of configure
21136 # tests run on this system so they can be shared between configure
21137 # scripts and configure runs, see configure's option --config-cache.
21138 # It is not useful on other systems. If it contains results you don't
21139 # want to keep, you may remove or edit it.
21141 # config.status only pays attention to the cache file if you give it
21142 # the --recheck option to rerun configure.
21144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21146 # following values.
21148 _ACEOF
21150 # The following way of writing the cache mishandles newlines in values,
21151 # but we know of no workaround that is simple, portable, and efficient.
21152 # So, don't put newlines in cache variables' values.
21153 # Ultrix sh set writes to stderr and can't be redirected directly,
21154 # and sets the high bit in the cache file unless we assign to the vars.
21156 (set) 2>&1 |
21157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21158 *ac_space=\ *)
21159 # `set' does not quote correctly, so add quotes (double-quote
21160 # substitution turns \\\\ into \\, and sed turns \\ into \).
21161 sed -n \
21162 "s/'/'\\\\''/g;
21163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21166 # `set' quotes correctly as required by POSIX, so do not add quotes.
21167 sed -n \
21168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21170 esac;
21172 sed '
21173 t clear
21174 : clear
21175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21176 t end
21177 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21178 : end' >>confcache
21179 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21180 if test -w $cache_file; then
21181 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21182 cat confcache >$cache_file
21183 else
21184 echo "not updating unwritable cache $cache_file"
21187 rm -f confcache
21189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21190 # Let make expand exec_prefix.
21191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21195 # trailing colons and then remove the whole line if VPATH becomes empty
21196 # (actually we leave an empty line to preserve line numbers).
21197 if test "x$srcdir" = x.; then
21198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21199 s/:*\$(srcdir):*/:/;
21200 s/:*\${srcdir}:*/:/;
21201 s/:*@srcdir@:*/:/;
21202 s/^\([^=]*=[ ]*\):*/\1/;
21203 s/:*$//;
21204 s/^[^=]*=[ ]*$//;
21208 DEFS=-DHAVE_CONFIG_H
21210 ac_libobjs=
21211 ac_ltlibobjs=
21212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21213 # 1. Remove the extension, and $U if already installed.
21214 ac_i=`echo "$ac_i" |
21215 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21216 # 2. Add them.
21217 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21218 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21219 done
21220 LIBOBJS=$ac_libobjs
21222 LTLIBOBJS=$ac_ltlibobjs
21225 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21226 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21227 Usually this means the macro was only invoked conditionally." >&5
21228 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21229 Usually this means the macro was only invoked conditionally." >&2;}
21230 { (exit 1); exit 1; }; }
21232 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21233 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21234 Usually this means the macro was only invoked conditionally." >&5
21235 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21236 Usually this means the macro was only invoked conditionally." >&2;}
21237 { (exit 1); exit 1; }; }
21239 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21240 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21241 Usually this means the macro was only invoked conditionally." >&5
21242 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21243 Usually this means the macro was only invoked conditionally." >&2;}
21244 { (exit 1); exit 1; }; }
21246 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21247 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21248 Usually this means the macro was only invoked conditionally." >&5
21249 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21250 Usually this means the macro was only invoked conditionally." >&2;}
21251 { (exit 1); exit 1; }; }
21253 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21254 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21255 Usually this means the macro was only invoked conditionally." >&5
21256 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21257 Usually this means the macro was only invoked conditionally." >&2;}
21258 { (exit 1); exit 1; }; }
21260 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21261 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21262 Usually this means the macro was only invoked conditionally." >&5
21263 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21264 Usually this means the macro was only invoked conditionally." >&2;}
21265 { (exit 1); exit 1; }; }
21268 : ${CONFIG_STATUS=./config.status}
21269 ac_clean_files_save=$ac_clean_files
21270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21271 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21272 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21273 cat >$CONFIG_STATUS <<_ACEOF
21274 #! $SHELL
21275 # Generated by $as_me.
21276 # Run this file to recreate the current configuration.
21277 # Compiler output produced by configure, useful for debugging
21278 # configure, is in config.log if it exists.
21280 debug=false
21281 ac_cs_recheck=false
21282 ac_cs_silent=false
21283 SHELL=\${CONFIG_SHELL-$SHELL}
21284 _ACEOF
21286 cat >>$CONFIG_STATUS <<\_ACEOF
21287 ## --------------------- ##
21288 ## M4sh Initialization. ##
21289 ## --------------------- ##
21291 # Be Bourne compatible
21292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21293 emulate sh
21294 NULLCMD=:
21295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21296 # is contrary to our usage. Disable this feature.
21297 alias -g '${1+"$@"}'='"$@"'
21298 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21299 set -o posix
21302 # Support unset when possible.
21303 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21304 as_unset=unset
21305 else
21306 as_unset=false
21310 # Work around bugs in pre-3.0 UWIN ksh.
21311 $as_unset ENV MAIL MAILPATH
21312 PS1='$ '
21313 PS2='> '
21314 PS4='+ '
21316 # NLS nuisances.
21317 for as_var in \
21318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21320 LC_TELEPHONE LC_TIME
21322 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21323 eval $as_var=C; export $as_var
21324 else
21325 $as_unset $as_var
21327 done
21329 # Required to use basename.
21330 if expr a : '\(a\)' >/dev/null 2>&1; then
21331 as_expr=expr
21332 else
21333 as_expr=false
21336 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21337 as_basename=basename
21338 else
21339 as_basename=false
21343 # Name of the executable.
21344 as_me=`$as_basename "$0" ||
21345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21346 X"$0" : 'X\(//\)$' \| \
21347 X"$0" : 'X\(/\)$' \| \
21348 . : '\(.\)' 2>/dev/null ||
21349 echo X/"$0" |
21350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21351 /^X\/\(\/\/\)$/{ s//\1/; q; }
21352 /^X\/\(\/\).*/{ s//\1/; q; }
21353 s/.*/./; q'`
21356 # PATH needs CR, and LINENO needs CR and PATH.
21357 # Avoid depending upon Character Ranges.
21358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21361 as_cr_digits='0123456789'
21362 as_cr_alnum=$as_cr_Letters$as_cr_digits
21364 # The user is always right.
21365 if test "${PATH_SEPARATOR+set}" != set; then
21366 echo "#! /bin/sh" >conf$$.sh
21367 echo "exit 0" >>conf$$.sh
21368 chmod +x conf$$.sh
21369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21370 PATH_SEPARATOR=';'
21371 else
21372 PATH_SEPARATOR=:
21374 rm -f conf$$.sh
21378 as_lineno_1=$LINENO
21379 as_lineno_2=$LINENO
21380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21381 test "x$as_lineno_1" != "x$as_lineno_2" &&
21382 test "x$as_lineno_3" = "x$as_lineno_2" || {
21383 # Find who we are. Look in the path if we contain no path at all
21384 # relative or not.
21385 case $0 in
21386 *[\\/]* ) as_myself=$0 ;;
21387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21388 for as_dir in $PATH
21390 IFS=$as_save_IFS
21391 test -z "$as_dir" && as_dir=.
21392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21393 done
21396 esac
21397 # We did not find ourselves, most probably we were run as `sh COMMAND'
21398 # in which case we are not to be found in the path.
21399 if test "x$as_myself" = x; then
21400 as_myself=$0
21402 if test ! -f "$as_myself"; then
21403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21404 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21405 { (exit 1); exit 1; }; }
21407 case $CONFIG_SHELL in
21409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21410 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21412 IFS=$as_save_IFS
21413 test -z "$as_dir" && as_dir=.
21414 for as_base in sh bash ksh sh5; do
21415 case $as_dir in
21417 if ("$as_dir/$as_base" -c '
21418 as_lineno_1=$LINENO
21419 as_lineno_2=$LINENO
21420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21421 test "x$as_lineno_1" != "x$as_lineno_2" &&
21422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21425 CONFIG_SHELL=$as_dir/$as_base
21426 export CONFIG_SHELL
21427 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21428 fi;;
21429 esac
21430 done
21431 done
21433 esac
21435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21436 # uniformly replaced by the line number. The first 'sed' inserts a
21437 # line-number line before each line; the second 'sed' does the real
21438 # work. The second script uses 'N' to pair each line-number line
21439 # with the numbered line, and appends trailing '-' during
21440 # substitution so that $LINENO is not a special case at line end.
21441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21443 sed '=' <$as_myself |
21444 sed '
21446 s,$,-,
21447 : loop
21448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21449 t loop
21450 s,-$,,
21451 s,^['$as_cr_digits']*\n,,
21452 ' >$as_me.lineno &&
21453 chmod +x $as_me.lineno ||
21454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21455 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21456 { (exit 1); exit 1; }; }
21458 # Don't try to exec as it changes $[0], causing all sort of problems
21459 # (the dirname of $[0] is not the place where we might find the
21460 # original and so on. Autoconf is especially sensible to this).
21461 . ./$as_me.lineno
21462 # Exit status is that of the last command.
21463 exit
21467 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21468 *c*,-n*) ECHO_N= ECHO_C='
21469 ' ECHO_T=' ' ;;
21470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21472 esac
21474 if expr a : '\(a\)' >/dev/null 2>&1; then
21475 as_expr=expr
21476 else
21477 as_expr=false
21480 rm -f conf$$ conf$$.exe conf$$.file
21481 echo >conf$$.file
21482 if ln -s conf$$.file conf$$ 2>/dev/null; then
21483 # We could just check for DJGPP; but this test a) works b) is more generic
21484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21485 if test -f conf$$.exe; then
21486 # Don't use ln at all; we don't have any links
21487 as_ln_s='cp -p'
21488 else
21489 as_ln_s='ln -s'
21491 elif ln conf$$.file conf$$ 2>/dev/null; then
21492 as_ln_s=ln
21493 else
21494 as_ln_s='cp -p'
21496 rm -f conf$$ conf$$.exe conf$$.file
21498 if mkdir -p . 2>/dev/null; then
21499 as_mkdir_p=:
21500 else
21501 as_mkdir_p=false
21504 as_executable_p="test -f"
21506 # Sed expression to map a string onto a valid CPP name.
21507 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21509 # Sed expression to map a string onto a valid variable name.
21510 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21513 # IFS
21514 # We need space, tab and new line, in precisely that order.
21515 as_nl='
21517 IFS=" $as_nl"
21519 # CDPATH.
21520 $as_unset CDPATH
21522 exec 6>&1
21524 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21525 # report actual input values of CONFIG_FILES etc. instead of their
21526 # values after options handling. Logging --version etc. is OK.
21527 exec 5>>config.log
21529 echo
21530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21531 ## Running $as_me. ##
21532 _ASBOX
21533 } >&5
21534 cat >&5 <<_CSEOF
21536 This file was extended by libltdl $as_me 1.2, which was
21537 generated by GNU Autoconf 2.57. Invocation command line was
21539 CONFIG_FILES = $CONFIG_FILES
21540 CONFIG_HEADERS = $CONFIG_HEADERS
21541 CONFIG_LINKS = $CONFIG_LINKS
21542 CONFIG_COMMANDS = $CONFIG_COMMANDS
21543 $ $0 $@
21545 _CSEOF
21546 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21547 echo >&5
21548 _ACEOF
21550 # Files that config.status was made for.
21551 if test -n "$ac_config_files"; then
21552 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21555 if test -n "$ac_config_headers"; then
21556 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21559 if test -n "$ac_config_links"; then
21560 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21563 if test -n "$ac_config_commands"; then
21564 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21567 cat >>$CONFIG_STATUS <<\_ACEOF
21569 ac_cs_usage="\
21570 \`$as_me' instantiates files from templates according to the
21571 current configuration.
21573 Usage: $0 [OPTIONS] [FILE]...
21575 -h, --help print this help, then exit
21576 -V, --version print version number, then exit
21577 -q, --quiet do not print progress messages
21578 -d, --debug don't remove temporary files
21579 --recheck update $as_me by reconfiguring in the same conditions
21580 --file=FILE[:TEMPLATE]
21581 instantiate the configuration file FILE
21582 --header=FILE[:TEMPLATE]
21583 instantiate the configuration header FILE
21585 Configuration files:
21586 $config_files
21588 Configuration headers:
21589 $config_headers
21591 Configuration commands:
21592 $config_commands
21594 Report bugs to <bug-autoconf@gnu.org>."
21595 _ACEOF
21597 cat >>$CONFIG_STATUS <<_ACEOF
21598 ac_cs_version="\\
21599 libltdl config.status 1.2
21600 configured by $0, generated by GNU Autoconf 2.57,
21601 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21603 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21604 Free Software Foundation, Inc.
21605 This config.status script is free software; the Free Software Foundation
21606 gives unlimited permission to copy, distribute and modify it."
21607 srcdir=$srcdir
21608 INSTALL="$INSTALL"
21609 _ACEOF
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 # If no file are specified by the user, then we need to provide default
21613 # value. By we need to know if files were specified by the user.
21614 ac_need_defaults=:
21615 while test $# != 0
21617 case $1 in
21618 --*=*)
21619 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21620 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21621 ac_shift=:
21624 ac_option=$1
21625 ac_optarg=$2
21626 ac_shift=shift
21628 *) # This is not an option, so the user has probably given explicit
21629 # arguments.
21630 ac_option=$1
21631 ac_need_defaults=false;;
21632 esac
21634 case $ac_option in
21635 # Handling of the options.
21636 _ACEOF
21637 cat >>$CONFIG_STATUS <<\_ACEOF
21638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21639 ac_cs_recheck=: ;;
21640 --version | --vers* | -V )
21641 echo "$ac_cs_version"; exit 0 ;;
21642 --he | --h)
21643 # Conflict between --help and --header
21644 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21645 Try \`$0 --help' for more information." >&5
21646 echo "$as_me: error: ambiguous option: $1
21647 Try \`$0 --help' for more information." >&2;}
21648 { (exit 1); exit 1; }; };;
21649 --help | --hel | -h )
21650 echo "$ac_cs_usage"; exit 0 ;;
21651 --debug | --d* | -d )
21652 debug=: ;;
21653 --file | --fil | --fi | --f )
21654 $ac_shift
21655 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21656 ac_need_defaults=false;;
21657 --header | --heade | --head | --hea )
21658 $ac_shift
21659 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21660 ac_need_defaults=false;;
21661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21663 ac_cs_silent=: ;;
21665 # This is an error.
21666 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21667 Try \`$0 --help' for more information." >&5
21668 echo "$as_me: error: unrecognized option: $1
21669 Try \`$0 --help' for more information." >&2;}
21670 { (exit 1); exit 1; }; } ;;
21672 *) ac_config_targets="$ac_config_targets $1" ;;
21674 esac
21675 shift
21676 done
21678 ac_configure_extra_args=
21680 if $ac_cs_silent; then
21681 exec 6>/dev/null
21682 ac_configure_extra_args="$ac_configure_extra_args --silent"
21685 _ACEOF
21686 cat >>$CONFIG_STATUS <<_ACEOF
21687 if \$ac_cs_recheck; then
21688 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21689 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21692 _ACEOF
21694 cat >>$CONFIG_STATUS <<_ACEOF
21696 # INIT-COMMANDS section.
21699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21701 _ACEOF
21705 cat >>$CONFIG_STATUS <<\_ACEOF
21706 for ac_config_target in $ac_config_targets
21708 case "$ac_config_target" in
21709 # Handling of arguments.
21710 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21711 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21712 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
21713 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21714 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21715 { (exit 1); exit 1; }; };;
21716 esac
21717 done
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used. Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21729 # Have a temporary directory for convenience. Make it in the build tree
21730 # simply because there is no reason to put it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Create a temporary directory, and hook for its removal unless debugging.
21733 $debug ||
21735 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21736 trap '{ (exit 1); exit 1; }' 1 2 13 15
21739 # Create a (secure) tmp directory for tmp files.
21742 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21743 test -n "$tmp" && test -d "$tmp"
21744 } ||
21746 tmp=./confstat$$-$RANDOM
21747 (umask 077 && mkdir $tmp)
21748 } ||
21750 echo "$me: cannot create a temporary directory in ." >&2
21751 { (exit 1); exit 1; }
21754 _ACEOF
21756 cat >>$CONFIG_STATUS <<_ACEOF
21759 # CONFIG_FILES section.
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "\$CONFIG_FILES"; then
21765 # Protect against being on the right side of a sed subst in config.status.
21766 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21767 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21768 s,@SHELL@,$SHELL,;t t
21769 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21770 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21771 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21772 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21773 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21774 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21775 s,@exec_prefix@,$exec_prefix,;t t
21776 s,@prefix@,$prefix,;t t
21777 s,@program_transform_name@,$program_transform_name,;t t
21778 s,@bindir@,$bindir,;t t
21779 s,@sbindir@,$sbindir,;t t
21780 s,@libexecdir@,$libexecdir,;t t
21781 s,@datadir@,$datadir,;t t
21782 s,@sysconfdir@,$sysconfdir,;t t
21783 s,@sharedstatedir@,$sharedstatedir,;t t
21784 s,@localstatedir@,$localstatedir,;t t
21785 s,@libdir@,$libdir,;t t
21786 s,@includedir@,$includedir,;t t
21787 s,@oldincludedir@,$oldincludedir,;t t
21788 s,@infodir@,$infodir,;t t
21789 s,@mandir@,$mandir,;t t
21790 s,@build_alias@,$build_alias,;t t
21791 s,@host_alias@,$host_alias,;t t
21792 s,@target_alias@,$target_alias,;t t
21793 s,@DEFS@,$DEFS,;t t
21794 s,@ECHO_C@,$ECHO_C,;t t
21795 s,@ECHO_N@,$ECHO_N,;t t
21796 s,@ECHO_T@,$ECHO_T,;t t
21797 s,@LIBS@,$LIBS,;t t
21798 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21799 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21800 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21801 s,@CYGPATH_W@,$CYGPATH_W,;t t
21802 s,@PACKAGE@,$PACKAGE,;t t
21803 s,@VERSION@,$VERSION,;t t
21804 s,@ACLOCAL@,$ACLOCAL,;t t
21805 s,@AUTOCONF@,$AUTOCONF,;t t
21806 s,@AUTOMAKE@,$AUTOMAKE,;t t
21807 s,@AUTOHEADER@,$AUTOHEADER,;t t
21808 s,@MAKEINFO@,$MAKEINFO,;t t
21809 s,@AMTAR@,$AMTAR,;t t
21810 s,@install_sh@,$install_sh,;t t
21811 s,@STRIP@,$STRIP,;t t
21812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21813 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21814 s,@AWK@,$AWK,;t t
21815 s,@SET_MAKE@,$SET_MAKE,;t t
21816 s,@am__leading_dot@,$am__leading_dot,;t t
21817 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21818 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21819 s,@MAINT@,$MAINT,;t t
21820 s,@CC@,$CC,;t t
21821 s,@CFLAGS@,$CFLAGS,;t t
21822 s,@LDFLAGS@,$LDFLAGS,;t t
21823 s,@CPPFLAGS@,$CPPFLAGS,;t t
21824 s,@ac_ct_CC@,$ac_ct_CC,;t t
21825 s,@EXEEXT@,$EXEEXT,;t t
21826 s,@OBJEXT@,$OBJEXT,;t t
21827 s,@DEPDIR@,$DEPDIR,;t t
21828 s,@am__include@,$am__include,;t t
21829 s,@am__quote@,$am__quote,;t t
21830 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21831 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21832 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21833 s,@CCDEPMODE@,$CCDEPMODE,;t t
21834 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21835 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21836 s,@build@,$build,;t t
21837 s,@build_cpu@,$build_cpu,;t t
21838 s,@build_vendor@,$build_vendor,;t t
21839 s,@build_os@,$build_os,;t t
21840 s,@host@,$host,;t t
21841 s,@host_cpu@,$host_cpu,;t t
21842 s,@host_vendor@,$host_vendor,;t t
21843 s,@host_os@,$host_os,;t t
21844 s,@EGREP@,$EGREP,;t t
21845 s,@LN_S@,$LN_S,;t t
21846 s,@ECHO@,$ECHO,;t t
21847 s,@AR@,$AR,;t t
21848 s,@ac_ct_AR@,$ac_ct_AR,;t t
21849 s,@RANLIB@,$RANLIB,;t t
21850 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21851 s,@DLLTOOL@,$DLLTOOL,;t t
21852 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21853 s,@AS@,$AS,;t t
21854 s,@ac_ct_AS@,$ac_ct_AS,;t t
21855 s,@OBJDUMP@,$OBJDUMP,;t t
21856 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21857 s,@CPP@,$CPP,;t t
21858 s,@CXX@,$CXX,;t t
21859 s,@CXXFLAGS@,$CXXFLAGS,;t t
21860 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21861 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21862 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21863 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21864 s,@CXXCPP@,$CXXCPP,;t t
21865 s,@F77@,$F77,;t t
21866 s,@FFLAGS@,$FFLAGS,;t t
21867 s,@ac_ct_F77@,$ac_ct_F77,;t t
21868 s,@LIBTOOL@,$LIBTOOL,;t t
21869 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21870 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21871 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21872 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21873 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
21874 s,@LIBADD_DL@,$LIBADD_DL,;t t
21875 s,@LIBOBJS@,$LIBOBJS,;t t
21876 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21877 CEOF
21879 _ACEOF
21881 cat >>$CONFIG_STATUS <<\_ACEOF
21882 # Split the substitutions into bite-sized pieces for seds with
21883 # small command number limits, like on Digital OSF/1 and HP-UX.
21884 ac_max_sed_lines=48
21885 ac_sed_frag=1 # Number of current file.
21886 ac_beg=1 # First line for current file.
21887 ac_end=$ac_max_sed_lines # Line after last line for current file.
21888 ac_more_lines=:
21889 ac_sed_cmds=
21890 while $ac_more_lines; do
21891 if test $ac_beg -gt 1; then
21892 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21893 else
21894 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21896 if test ! -s $tmp/subs.frag; then
21897 ac_more_lines=false
21898 else
21899 # The purpose of the label and of the branching condition is to
21900 # speed up the sed processing (if there are no `@' at all, there
21901 # is no need to browse any of the substitutions).
21902 # These are the two extra sed commands mentioned above.
21903 (echo ':t
21904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21905 if test -z "$ac_sed_cmds"; then
21906 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21907 else
21908 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21910 ac_sed_frag=`expr $ac_sed_frag + 1`
21911 ac_beg=$ac_end
21912 ac_end=`expr $ac_end + $ac_max_sed_lines`
21914 done
21915 if test -z "$ac_sed_cmds"; then
21916 ac_sed_cmds=cat
21918 fi # test -n "$CONFIG_FILES"
21920 _ACEOF
21921 cat >>$CONFIG_STATUS <<\_ACEOF
21922 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21924 case $ac_file in
21925 - | *:- | *:-:* ) # input from stdin
21926 cat >$tmp/stdin
21927 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21929 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21931 * ) ac_file_in=$ac_file.in ;;
21932 esac
21934 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21935 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$ac_file" : 'X\(//\)[^/]' \| \
21938 X"$ac_file" : 'X\(//\)$' \| \
21939 X"$ac_file" : 'X\(/\)' \| \
21940 . : '\(.\)' 2>/dev/null ||
21941 echo X"$ac_file" |
21942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21944 /^X\(\/\/\)$/{ s//\1/; q; }
21945 /^X\(\/\).*/{ s//\1/; q; }
21946 s/.*/./; q'`
21947 { if $as_mkdir_p; then
21948 mkdir -p "$ac_dir"
21949 else
21950 as_dir="$ac_dir"
21951 as_dirs=
21952 while test ! -d "$as_dir"; do
21953 as_dirs="$as_dir $as_dirs"
21954 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21956 X"$as_dir" : 'X\(//\)[^/]' \| \
21957 X"$as_dir" : 'X\(//\)$' \| \
21958 X"$as_dir" : 'X\(/\)' \| \
21959 . : '\(.\)' 2>/dev/null ||
21960 echo X"$as_dir" |
21961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21963 /^X\(\/\/\)$/{ s//\1/; q; }
21964 /^X\(\/\).*/{ s//\1/; q; }
21965 s/.*/./; q'`
21966 done
21967 test ! -n "$as_dirs" || mkdir $as_dirs
21968 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21969 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21970 { (exit 1); exit 1; }; }; }
21972 ac_builddir=.
21974 if test "$ac_dir" != .; then
21975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21976 # A "../" for each directory in $ac_dir_suffix.
21977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21978 else
21979 ac_dir_suffix= ac_top_builddir=
21982 case $srcdir in
21983 .) # No --srcdir option. We are building in place.
21984 ac_srcdir=.
21985 if test -z "$ac_top_builddir"; then
21986 ac_top_srcdir=.
21987 else
21988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21989 fi ;;
21990 [\\/]* | ?:[\\/]* ) # Absolute path.
21991 ac_srcdir=$srcdir$ac_dir_suffix;
21992 ac_top_srcdir=$srcdir ;;
21993 *) # Relative path.
21994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21996 esac
21997 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21998 # absolute.
21999 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22000 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22001 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22002 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22005 case $INSTALL in
22006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22008 esac
22010 if test x"$ac_file" != x-; then
22011 { echo "$as_me:$LINENO: creating $ac_file" >&5
22012 echo "$as_me: creating $ac_file" >&6;}
22013 rm -f "$ac_file"
22015 # Let's still pretend it is `configure' which instantiates (i.e., don't
22016 # use $as_me), people would be surprised to read:
22017 # /* config.h. Generated by config.status. */
22018 if test x"$ac_file" = x-; then
22019 configure_input=
22020 else
22021 configure_input="$ac_file. "
22023 configure_input=$configure_input"Generated from `echo $ac_file_in |
22024 sed 's,.*/,,'` by configure."
22026 # First look for the input files in the build tree, otherwise in the
22027 # src tree.
22028 ac_file_inputs=`IFS=:
22029 for f in $ac_file_in; do
22030 case $f in
22031 -) echo $tmp/stdin ;;
22032 [\\/$]*)
22033 # Absolute (can't be DOS-style, as IFS=:)
22034 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22035 echo "$as_me: error: cannot find input file: $f" >&2;}
22036 { (exit 1); exit 1; }; }
22037 echo $f;;
22038 *) # Relative
22039 if test -f "$f"; then
22040 # Build tree
22041 echo $f
22042 elif test -f "$srcdir/$f"; then
22043 # Source tree
22044 echo $srcdir/$f
22045 else
22046 # /dev/null tree
22047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22048 echo "$as_me: error: cannot find input file: $f" >&2;}
22049 { (exit 1); exit 1; }; }
22050 fi;;
22051 esac
22052 done` || { (exit 1); exit 1; }
22053 _ACEOF
22054 cat >>$CONFIG_STATUS <<_ACEOF
22055 sed "$ac_vpsub
22056 $extrasub
22057 _ACEOF
22058 cat >>$CONFIG_STATUS <<\_ACEOF
22060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22061 s,@configure_input@,$configure_input,;t t
22062 s,@srcdir@,$ac_srcdir,;t t
22063 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22064 s,@top_srcdir@,$ac_top_srcdir,;t t
22065 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22066 s,@builddir@,$ac_builddir,;t t
22067 s,@abs_builddir@,$ac_abs_builddir,;t t
22068 s,@top_builddir@,$ac_top_builddir,;t t
22069 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22070 s,@INSTALL@,$ac_INSTALL,;t t
22071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22072 rm -f $tmp/stdin
22073 if test x"$ac_file" != x-; then
22074 mv $tmp/out $ac_file
22075 else
22076 cat $tmp/out
22077 rm -f $tmp/out
22080 done
22081 _ACEOF
22082 cat >>$CONFIG_STATUS <<\_ACEOF
22085 # CONFIG_HEADER section.
22088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22091 # ac_d sets the value in "#define NAME VALUE" lines.
22092 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22093 ac_dB='[ ].*$,\1#\2'
22094 ac_dC=' '
22095 ac_dD=',;t'
22096 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22097 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22098 ac_uB='$,\1#\2define\3'
22099 ac_uC=' '
22100 ac_uD=',;t'
22102 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22104 case $ac_file in
22105 - | *:- | *:-:* ) # input from stdin
22106 cat >$tmp/stdin
22107 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22109 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22111 * ) ac_file_in=$ac_file.in ;;
22112 esac
22114 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22115 echo "$as_me: creating $ac_file" >&6;}
22117 # First look for the input files in the build tree, otherwise in the
22118 # src tree.
22119 ac_file_inputs=`IFS=:
22120 for f in $ac_file_in; do
22121 case $f in
22122 -) echo $tmp/stdin ;;
22123 [\\/$]*)
22124 # Absolute (can't be DOS-style, as IFS=:)
22125 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22126 echo "$as_me: error: cannot find input file: $f" >&2;}
22127 { (exit 1); exit 1; }; }
22128 echo $f;;
22129 *) # Relative
22130 if test -f "$f"; then
22131 # Build tree
22132 echo $f
22133 elif test -f "$srcdir/$f"; then
22134 # Source tree
22135 echo $srcdir/$f
22136 else
22137 # /dev/null tree
22138 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22139 echo "$as_me: error: cannot find input file: $f" >&2;}
22140 { (exit 1); exit 1; }; }
22141 fi;;
22142 esac
22143 done` || { (exit 1); exit 1; }
22144 # Remove the trailing spaces.
22145 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22147 _ACEOF
22149 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22150 # `conftest.undefs', that substitutes the proper values into
22151 # config.h.in to produce config.h. The first handles `#define'
22152 # templates, and the second `#undef' templates.
22153 # And first: Protect against being on the right side of a sed subst in
22154 # config.status. Protect against being in an unquoted here document
22155 # in config.status.
22156 rm -f conftest.defines conftest.undefs
22157 # Using a here document instead of a string reduces the quoting nightmare.
22158 # Putting comments in sed scripts is not portable.
22160 # `end' is used to avoid that the second main sed command (meant for
22161 # 0-ary CPP macros) applies to n-ary macro definitions.
22162 # See the Autoconf documentation for `clear'.
22163 cat >confdef2sed.sed <<\_ACEOF
22164 s/[\\&,]/\\&/g
22165 s,[\\$`],\\&,g
22166 t clear
22167 : clear
22168 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22169 t end
22170 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22171 : end
22172 _ACEOF
22173 # If some macros were called several times there might be several times
22174 # the same #defines, which is useless. Nevertheless, we may not want to
22175 # sort them, since we want the *last* AC-DEFINE to be honored.
22176 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22177 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22178 rm -f confdef2sed.sed
22180 # This sed command replaces #undef with comments. This is necessary, for
22181 # example, in the case of _POSIX_SOURCE, which is predefined and required
22182 # on some systems where configure will not decide to define it.
22183 cat >>conftest.undefs <<\_ACEOF
22184 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22185 _ACEOF
22187 # Break up conftest.defines because some shells have a limit on the size
22188 # of here documents, and old seds have small limits too (100 cmds).
22189 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22190 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22191 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22192 echo ' :' >>$CONFIG_STATUS
22193 rm -f conftest.tail
22194 while grep . conftest.defines >/dev/null
22196 # Write a limited-size here document to $tmp/defines.sed.
22197 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22198 # Speed up: don't consider the non `#define' lines.
22199 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22200 # Work around the forget-to-reset-the-flag bug.
22201 echo 't clr' >>$CONFIG_STATUS
22202 echo ': clr' >>$CONFIG_STATUS
22203 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22204 echo 'CEOF
22205 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22206 rm -f $tmp/in
22207 mv $tmp/out $tmp/in
22208 ' >>$CONFIG_STATUS
22209 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22210 rm -f conftest.defines
22211 mv conftest.tail conftest.defines
22212 done
22213 rm -f conftest.defines
22214 echo ' fi # grep' >>$CONFIG_STATUS
22215 echo >>$CONFIG_STATUS
22217 # Break up conftest.undefs because some shells have a limit on the size
22218 # of here documents, and old seds have small limits too (100 cmds).
22219 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22220 rm -f conftest.tail
22221 while grep . conftest.undefs >/dev/null
22223 # Write a limited-size here document to $tmp/undefs.sed.
22224 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22225 # Speed up: don't consider the non `#undef'
22226 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22227 # Work around the forget-to-reset-the-flag bug.
22228 echo 't clr' >>$CONFIG_STATUS
22229 echo ': clr' >>$CONFIG_STATUS
22230 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22231 echo 'CEOF
22232 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22233 rm -f $tmp/in
22234 mv $tmp/out $tmp/in
22235 ' >>$CONFIG_STATUS
22236 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22237 rm -f conftest.undefs
22238 mv conftest.tail conftest.undefs
22239 done
22240 rm -f conftest.undefs
22242 cat >>$CONFIG_STATUS <<\_ACEOF
22243 # Let's still pretend it is `configure' which instantiates (i.e., don't
22244 # use $as_me), people would be surprised to read:
22245 # /* config.h. Generated by config.status. */
22246 if test x"$ac_file" = x-; then
22247 echo "/* Generated by configure. */" >$tmp/config.h
22248 else
22249 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22251 cat $tmp/in >>$tmp/config.h
22252 rm -f $tmp/in
22253 if test x"$ac_file" != x-; then
22254 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22255 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22256 echo "$as_me: $ac_file is unchanged" >&6;}
22257 else
22258 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X"$ac_file" : 'X\(//\)[^/]' \| \
22261 X"$ac_file" : 'X\(//\)$' \| \
22262 X"$ac_file" : 'X\(/\)' \| \
22263 . : '\(.\)' 2>/dev/null ||
22264 echo X"$ac_file" |
22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22267 /^X\(\/\/\)$/{ s//\1/; q; }
22268 /^X\(\/\).*/{ s//\1/; q; }
22269 s/.*/./; q'`
22270 { if $as_mkdir_p; then
22271 mkdir -p "$ac_dir"
22272 else
22273 as_dir="$ac_dir"
22274 as_dirs=
22275 while test ! -d "$as_dir"; do
22276 as_dirs="$as_dir $as_dirs"
22277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22279 X"$as_dir" : 'X\(//\)[^/]' \| \
22280 X"$as_dir" : 'X\(//\)$' \| \
22281 X"$as_dir" : 'X\(/\)' \| \
22282 . : '\(.\)' 2>/dev/null ||
22283 echo X"$as_dir" |
22284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22286 /^X\(\/\/\)$/{ s//\1/; q; }
22287 /^X\(\/\).*/{ s//\1/; q; }
22288 s/.*/./; q'`
22289 done
22290 test ! -n "$as_dirs" || mkdir $as_dirs
22291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22292 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22293 { (exit 1); exit 1; }; }; }
22295 rm -f $ac_file
22296 mv $tmp/config.h $ac_file
22298 else
22299 cat $tmp/config.h
22300 rm -f $tmp/config.h
22302 # Compute $ac_file's index in $config_headers.
22303 _am_stamp_count=1
22304 for _am_header in $config_headers :; do
22305 case $_am_header in
22306 $ac_file | $ac_file:* )
22307 break ;;
22309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22310 esac
22311 done
22312 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22313 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314 X$ac_file : 'X\(//\)[^/]' \| \
22315 X$ac_file : 'X\(//\)$' \| \
22316 X$ac_file : 'X\(/\)' \| \
22317 . : '\(.\)' 2>/dev/null ||
22318 echo X$ac_file |
22319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22321 /^X\(\/\/\)$/{ s//\1/; q; }
22322 /^X\(\/\).*/{ s//\1/; q; }
22323 s/.*/./; q'`/stamp-h$_am_stamp_count
22324 done
22325 _ACEOF
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22329 # CONFIG_COMMANDS section.
22331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22332 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22333 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22334 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336 X"$ac_dest" : 'X\(//\)[^/]' \| \
22337 X"$ac_dest" : 'X\(//\)$' \| \
22338 X"$ac_dest" : 'X\(/\)' \| \
22339 . : '\(.\)' 2>/dev/null ||
22340 echo X"$ac_dest" |
22341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22343 /^X\(\/\/\)$/{ s//\1/; q; }
22344 /^X\(\/\).*/{ s//\1/; q; }
22345 s/.*/./; q'`
22346 ac_builddir=.
22348 if test "$ac_dir" != .; then
22349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22350 # A "../" for each directory in $ac_dir_suffix.
22351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22352 else
22353 ac_dir_suffix= ac_top_builddir=
22356 case $srcdir in
22357 .) # No --srcdir option. We are building in place.
22358 ac_srcdir=.
22359 if test -z "$ac_top_builddir"; then
22360 ac_top_srcdir=.
22361 else
22362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22363 fi ;;
22364 [\\/]* | ?:[\\/]* ) # Absolute path.
22365 ac_srcdir=$srcdir$ac_dir_suffix;
22366 ac_top_srcdir=$srcdir ;;
22367 *) # Relative path.
22368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22370 esac
22371 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22372 # absolute.
22373 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22374 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22375 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22376 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22379 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22380 echo "$as_me: executing $ac_dest commands" >&6;}
22381 case $ac_dest in
22382 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22383 # Strip MF so we end up with the name of the file.
22384 mf=`echo "$mf" | sed -e 's/:.*$//'`
22385 # Check whether this is an Automake generated Makefile or not.
22386 # We used to match only the files named `Makefile.in', but
22387 # some people rename them; so instead we look at the file content.
22388 # Grep'ing the first line is not enough: some people post-process
22389 # each Makefile.in and add a new line on top of each file to say so.
22390 # So let's grep whole file.
22391 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22392 dirpart=`(dirname "$mf") 2>/dev/null ||
22393 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22394 X"$mf" : 'X\(//\)[^/]' \| \
22395 X"$mf" : 'X\(//\)$' \| \
22396 X"$mf" : 'X\(/\)' \| \
22397 . : '\(.\)' 2>/dev/null ||
22398 echo X"$mf" |
22399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22401 /^X\(\/\/\)$/{ s//\1/; q; }
22402 /^X\(\/\).*/{ s//\1/; q; }
22403 s/.*/./; q'`
22404 else
22405 continue
22407 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22408 # Extract the definition of DEP_FILES from the Makefile without
22409 # running `make'.
22410 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22411 test -z "$DEPDIR" && continue
22412 # When using ansi2knr, U may be empty or an underscore; expand it
22413 U=`sed -n -e '/^U = / s///p' < "$mf"`
22414 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22415 # We invoke sed twice because it is the simplest approach to
22416 # changing $(DEPDIR) to its actual value in the expansion.
22417 for file in `sed -n -e '
22418 /^DEP_FILES = .*\\\\$/ {
22419 s/^DEP_FILES = //
22420 :loop
22421 s/\\\\$//
22424 /\\\\$/ b loop
22427 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22429 # Make sure the directory exists.
22430 test -f "$dirpart/$file" && continue
22431 fdir=`(dirname "$file") 2>/dev/null ||
22432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22433 X"$file" : 'X\(//\)[^/]' \| \
22434 X"$file" : 'X\(//\)$' \| \
22435 X"$file" : 'X\(/\)' \| \
22436 . : '\(.\)' 2>/dev/null ||
22437 echo X"$file" |
22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22440 /^X\(\/\/\)$/{ s//\1/; q; }
22441 /^X\(\/\).*/{ s//\1/; q; }
22442 s/.*/./; q'`
22443 { if $as_mkdir_p; then
22444 mkdir -p $dirpart/$fdir
22445 else
22446 as_dir=$dirpart/$fdir
22447 as_dirs=
22448 while test ! -d "$as_dir"; do
22449 as_dirs="$as_dir $as_dirs"
22450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22452 X"$as_dir" : 'X\(//\)[^/]' \| \
22453 X"$as_dir" : 'X\(//\)$' \| \
22454 X"$as_dir" : 'X\(/\)' \| \
22455 . : '\(.\)' 2>/dev/null ||
22456 echo X"$as_dir" |
22457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22459 /^X\(\/\/\)$/{ s//\1/; q; }
22460 /^X\(\/\).*/{ s//\1/; q; }
22461 s/.*/./; q'`
22462 done
22463 test ! -n "$as_dirs" || mkdir $as_dirs
22464 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22465 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22466 { (exit 1); exit 1; }; }; }
22468 # echo "creating $dirpart/$file"
22469 echo '# dummy' > "$dirpart/$file"
22470 done
22471 done
22473 esac
22474 done
22475 _ACEOF
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22479 { (exit 0); exit 0; }
22480 _ACEOF
22481 chmod +x $CONFIG_STATUS
22482 ac_clean_files=$ac_clean_files_save
22485 # configure is writing to config.log, and then calls config.status.
22486 # config.status does its own redirection, appending to config.log.
22487 # Unfortunately, on DOS this fails, as config.log is still kept open
22488 # by configure, so config.status won't be able to write to it; its
22489 # output is simply discarded. So we exec the FD to /dev/null,
22490 # effectively closing config.log, so it can be properly (re)opened and
22491 # appended to by config.status. When coming back to configure, we
22492 # need to make the FD available again.
22493 if test "$no_create" != yes; then
22494 ac_cs_success=:
22495 ac_config_status_args=
22496 test "$silent" = yes &&
22497 ac_config_status_args="$ac_config_status_args --quiet"
22498 exec 5>/dev/null
22499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22500 exec 5>>config.log
22501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22502 # would make configure fail if this is the last instruction.
22503 $ac_cs_success || { (exit 1); exit 1; }