Install msysDTK-1.0.1
[msysgit.git] / share / libtool / libltdl / configure
blob820a64d5d6c3efcdc8622d2c70c95096d877388c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
43 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
48 done
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
89 chmod +x conftest.sh
90 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
95 rm -f conftest.sh
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
153 esac
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 as_mkdir_p=false
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
236 IFS=" $as_nl"
238 # CDPATH.
239 $as_unset CDPATH
243 # Check that we are running under the correct shell.
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 case X$ECHO in
247 X*--fallback-echo)
248 # Remove one level of quotation (which was required for Make).
249 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251 esac
253 echo=${ECHO-echo}
254 if test "X$1" = X--no-reexec; then
255 # Discard the --no-reexec flag, and continue.
256 shift
257 elif test "X$1" = X--fallback-echo; then
258 # Avoid inline document here, it may be left over
260 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
261 # Yippee, $echo works!
263 else
264 # Restart under the correct shell.
265 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 if test "X$1" = X--fallback-echo; then
269 # used as fallback echo
270 shift
271 cat <<EOF
274 exit 0
277 # The HP-UX ksh and POSIX shell print the target directory to stdout
278 # if CDPATH is set.
279 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281 if test -z "$ECHO"; then
282 if test "X${echo_test_string+set}" != Xset; then
283 # find a string as large as possible, as long as the shell can cope with it
284 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
285 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
286 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
287 echo_test_string="`eval $cmd`" &&
288 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
289 then
290 break
292 done
295 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
296 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
297 test "X$echo_testing_string" = "X$echo_test_string"; then
299 else
300 # The Solaris, AIX, and Digital Unix default echo programs unquote
301 # backslashes. This makes it impossible to quote backslashes using
302 # echo "$something" | sed 's/\\/\\\\/g'
304 # So, first we look for a working echo in the user's PATH.
306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
307 for dir in $PATH /usr/ucb; do
308 IFS="$lt_save_ifs"
309 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
310 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
311 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
312 test "X$echo_testing_string" = "X$echo_test_string"; then
313 echo="$dir/echo"
314 break
316 done
317 IFS="$lt_save_ifs"
319 if test "X$echo" = Xecho; then
320 # We didn't find a better echo, so look for alternatives.
321 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 # This shell has a builtin print -r that does the trick.
325 echo='print -r'
326 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
327 test "X$CONFIG_SHELL" != X/bin/ksh; then
328 # If we have ksh, try running configure again with it.
329 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
330 export ORIGINAL_CONFIG_SHELL
331 CONFIG_SHELL=/bin/ksh
332 export CONFIG_SHELL
333 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
334 else
335 # Try using printf.
336 echo='printf %s\n'
337 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
338 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
339 test "X$echo_testing_string" = "X$echo_test_string"; then
340 # Cool, printf works
342 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
343 test "X$echo_testing_string" = 'X\t' &&
344 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
347 export CONFIG_SHELL
348 SHELL="$CONFIG_SHELL"
349 export SHELL
350 echo="$CONFIG_SHELL $0 --fallback-echo"
351 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
352 test "X$echo_testing_string" = 'X\t' &&
353 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
354 test "X$echo_testing_string" = "X$echo_test_string"; then
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 else
357 # maybe with a smaller string...
358 prev=:
360 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
361 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
362 then
363 break
365 prev="$cmd"
366 done
368 if test "$prev" != 'sed 50q "$0"'; then
369 echo_test_string=`eval $prev`
370 export echo_test_string
371 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
372 else
373 # Oops. We lost completely, so just stick with echo.
374 echo=echo
382 # Copy echo and quote the copy suitably for passing to libtool from
383 # the Makefile, instead of quoting the original, which is used later.
384 ECHO=$echo
385 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
386 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
404 # Initializations.
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete. It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='libltdl'
421 PACKAGE_TARNAME='libltdl'
422 PACKAGE_VERSION='1.2'
423 PACKAGE_STRING='libltdl 1.2'
424 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
426 ac_unique_file="ltdl.c"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE 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'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
877 else
878 ac_srcdir_defaulted=no
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_F77_set=${F77+set}
938 ac_env_F77_value=$F77
939 ac_cv_env_F77_set=${F77+set}
940 ac_cv_env_F77_value=$F77
941 ac_env_FFLAGS_set=${FFLAGS+set}
942 ac_env_FFLAGS_value=$FFLAGS
943 ac_cv_env_FFLAGS_set=${FFLAGS+set}
944 ac_cv_env_FFLAGS_value=$FFLAGS
947 # Report the --help message.
949 if test "$ac_init_help" = "long"; then
950 # Omit some internal or obsolete options to make the list less imposing.
951 # This message is too long to be a string in the A/UX 3.1 sh.
952 cat <<_ACEOF
953 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
955 Usage: $0 [OPTION]... [VAR=VALUE]...
957 To assign environment variables (e.g., CC, CFLAGS...), specify them as
958 VAR=VALUE. See below for descriptions of some of the useful variables.
960 Defaults for the options are specified in brackets.
962 Configuration:
963 -h, --help display this help and exit
964 --help=short display options specific to this package
965 --help=recursive display the short help of all the included packages
966 -V, --version display version information and exit
967 -q, --quiet, --silent do not print \`checking...' messages
968 --cache-file=FILE cache test results in FILE [disabled]
969 -C, --config-cache alias for \`--cache-file=config.cache'
970 -n, --no-create do not create output files
971 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973 _ACEOF
975 cat <<_ACEOF
976 Installation directories:
977 --prefix=PREFIX install architecture-independent files in PREFIX
978 [$ac_default_prefix]
979 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
980 [PREFIX]
982 By default, \`make install' will install all the files in
983 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
984 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
985 for instance \`--prefix=\$HOME'.
987 For better control, use the options below.
989 Fine tuning of the installation directories:
990 --bindir=DIR user executables [EPREFIX/bin]
991 --sbindir=DIR system admin executables [EPREFIX/sbin]
992 --libexecdir=DIR program executables [EPREFIX/libexec]
993 --datadir=DIR read-only architecture-independent data [PREFIX/share]
994 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
995 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
996 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
997 --libdir=DIR object code libraries [EPREFIX/lib]
998 --includedir=DIR C header files [PREFIX/include]
999 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1000 --infodir=DIR info documentation [PREFIX/info]
1001 --mandir=DIR man documentation [PREFIX/man]
1002 _ACEOF
1004 cat <<\_ACEOF
1006 Program names:
1007 --program-prefix=PREFIX prepend PREFIX to installed program names
1008 --program-suffix=SUFFIX append SUFFIX to installed program names
1009 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1011 System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 _ACEOF
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of libltdl 1.2:";;
1020 esac
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking Speeds up one-time builds
1027 --enable-dependency-tracking Do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-ltdl-install install libltdl
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-auxdir=DIR path to autoconf auxiliary files
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1047 Some influential environment variables:
1048 CC C compiler command
1049 CFLAGS C compiler flags
1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051 nonstandard directory <lib dir>
1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053 headers in a nonstandard directory <include dir>
1054 CPP C preprocessor
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 CXXCPP C++ preprocessor
1058 F77 Fortran 77 compiler command
1059 FFLAGS Fortran 77 compiler flags
1061 Use these variables to override the choices made by `configure' or to help
1062 it to find libraries and programs with nonstandard names/locations.
1064 Report bugs to <bug-libtool@gnu.org>.
1065 _ACEOF
1068 if test "$ac_init_help" = "recursive"; then
1069 # If there are subdirs, report their specific --help.
1070 ac_popdir=`pwd`
1071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072 test -d $ac_dir || continue
1073 ac_builddir=.
1075 if test "$ac_dir" != .; then
1076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077 # A "../" for each directory in $ac_dir_suffix.
1078 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080 ac_dir_suffix= ac_top_builddir=
1083 case $srcdir in
1084 .) # No --srcdir option. We are building in place.
1085 ac_srcdir=.
1086 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=.
1088 else
1089 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090 fi ;;
1091 [\\/]* | ?:[\\/]* ) # Absolute path.
1092 ac_srcdir=$srcdir$ac_dir_suffix;
1093 ac_top_srcdir=$srcdir ;;
1094 *) # Relative path.
1095 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1099 # absolute.
1100 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1102 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1120 cd $ac_popdir
1121 done
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1126 cat <<\_ACEOF
1127 libltdl configure 1.2
1128 generated by GNU Autoconf 2.54
1130 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1131 Free Software Foundation, Inc.
1132 This configure script is free software; the Free Software Foundation
1133 gives unlimited permission to copy, distribute and modify it.
1134 _ACEOF
1135 exit 0
1137 exec 5>config.log
1138 cat >&5 <<_ACEOF
1139 This file contains any messages produced by compilers while
1140 running configure, to aid debugging if configure makes a mistake.
1142 It was created by libltdl $as_me 1.2, which was
1143 generated by GNU Autoconf 2.54. Invocation command line was
1145 $ $0 $@
1147 _ACEOF
1149 cat <<_ASUNAME
1150 ## --------- ##
1151 ## Platform. ##
1152 ## --------- ##
1154 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1155 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1156 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1157 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1158 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1161 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1164 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1165 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1166 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1167 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1168 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1169 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171 _ASUNAME
1173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1174 for as_dir in $PATH
1176 IFS=$as_save_IFS
1177 test -z "$as_dir" && as_dir=.
1178 echo "PATH: $as_dir"
1179 done
1181 } >&5
1183 cat >&5 <<_ACEOF
1186 ## ----------- ##
1187 ## Core tests. ##
1188 ## ----------- ##
1190 _ACEOF
1193 # Keep a trace of the command line.
1194 # Strip out --no-create and --no-recursion so they do not pile up.
1195 # Also quote any args containing shell meta-characters.
1196 ac_configure_args=
1197 ac_sep=
1198 for ac_arg
1200 case $ac_arg in
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n ) continue ;;
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1210 # Get rid of the leading space.
1211 ac_sep=" "
1212 done
1214 # When interrupted or exit'd, cleanup temporary files, and complete
1215 # config.log. We remove comments because anyway the quotes in there
1216 # would cause problems or look ugly.
1217 # WARNING: Be sure not to use single quotes in there, as some shells,
1218 # such as our DU 5.0 friend, will then `close' the trap.
1219 trap 'exit_status=$?
1220 # Save into config.log some information that might help in debugging.
1222 echo
1224 cat <<\_ASBOX
1225 ## ---------------- ##
1226 ## Cache variables. ##
1227 ## ---------------- ##
1228 _ASBOX
1229 echo
1230 # The following way of writing the cache mishandles newlines in values,
1232 (set) 2>&1 |
1233 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1234 *ac_space=\ *)
1235 sed -n \
1236 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1240 sed -n \
1241 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1243 esac;
1245 echo
1247 cat <<\_ASBOX
1248 ## ----------------- ##
1249 ## Output variables. ##
1250 ## ----------------- ##
1251 _ASBOX
1252 echo
1253 for ac_var in $ac_subst_vars
1255 eval ac_val=$`echo $ac_var`
1256 echo "$ac_var='"'"'$ac_val'"'"'"
1257 done | sort
1258 echo
1260 if test -n "$ac_subst_files"; then
1261 cat <<\_ASBOX
1262 ## ------------- ##
1263 ## Output files. ##
1264 ## ------------- ##
1265 _ASBOX
1266 echo
1267 for ac_var in $ac_subst_files
1269 eval ac_val=$`echo $ac_var`
1270 echo "$ac_var='"'"'$ac_val'"'"'"
1271 done | sort
1272 echo
1275 if test -s confdefs.h; then
1276 cat <<\_ASBOX
1277 ## ----------- ##
1278 ## confdefs.h. ##
1279 ## ----------- ##
1280 _ASBOX
1281 echo
1282 sed "/^$/d" confdefs.h | sort
1283 echo
1285 test "$ac_signal" != 0 &&
1286 echo "$as_me: caught signal $ac_signal"
1287 echo "$as_me: exit $exit_status"
1288 } >&5
1289 rm -f core core.* *.core &&
1290 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1291 exit $exit_status
1293 for ac_signal in 1 2 13 15; do
1294 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1295 done
1296 ac_signal=0
1298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1299 rm -rf conftest* confdefs.h
1300 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1301 echo >confdefs.h
1303 # Predefined preprocessor variables.
1305 cat >>confdefs.h <<_ACEOF
1306 #define PACKAGE_NAME "$PACKAGE_NAME"
1307 _ACEOF
1310 cat >>confdefs.h <<_ACEOF
1311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1312 _ACEOF
1315 cat >>confdefs.h <<_ACEOF
1316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1317 _ACEOF
1320 cat >>confdefs.h <<_ACEOF
1321 #define PACKAGE_STRING "$PACKAGE_STRING"
1322 _ACEOF
1325 cat >>confdefs.h <<_ACEOF
1326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1327 _ACEOF
1330 # Let the site file select an alternate cache file if it wants to.
1331 # Prefer explicitly selected file to automatically selected ones.
1332 if test -z "$CONFIG_SITE"; then
1333 if test "x$prefix" != xNONE; then
1334 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1335 else
1336 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1339 for ac_site_file in $CONFIG_SITE; do
1340 if test -r "$ac_site_file"; then
1341 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1342 echo "$as_me: loading site script $ac_site_file" >&6;}
1343 sed 's/^/| /' "$ac_site_file" >&5
1344 . "$ac_site_file"
1346 done
1348 if test -r "$cache_file"; then
1349 # Some versions of bash will fail to source /dev/null (special
1350 # files actually), so we avoid doing that.
1351 if test -f "$cache_file"; then
1352 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1353 echo "$as_me: loading cache $cache_file" >&6;}
1354 case $cache_file in
1355 [\\/]* | ?:[\\/]* ) . $cache_file;;
1356 *) . ./$cache_file;;
1357 esac
1359 else
1360 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1361 echo "$as_me: creating cache $cache_file" >&6;}
1362 >$cache_file
1365 # Check that the precious variables saved in the cache have kept the same
1366 # value.
1367 ac_cache_corrupted=false
1368 for ac_var in `(set) 2>&1 |
1369 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1370 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1371 eval ac_new_set=\$ac_env_${ac_var}_set
1372 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1373 eval ac_new_val="\$ac_env_${ac_var}_value"
1374 case $ac_old_set,$ac_new_set in
1375 set,)
1376 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1377 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1378 ac_cache_corrupted=: ;;
1379 ,set)
1380 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1381 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1382 ac_cache_corrupted=: ;;
1383 ,);;
1385 if test "x$ac_old_val" != "x$ac_new_val"; then
1386 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1387 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1388 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1389 echo "$as_me: former value: $ac_old_val" >&2;}
1390 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1391 echo "$as_me: current value: $ac_new_val" >&2;}
1392 ac_cache_corrupted=:
1393 fi;;
1394 esac
1395 # Pass precious variables to config.status.
1396 if test "$ac_new_set" = set; then
1397 case $ac_new_val in
1398 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1400 *) ac_arg=$ac_var=$ac_new_val ;;
1401 esac
1402 case " $ac_configure_args " in
1403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1404 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1405 esac
1407 done
1408 if $ac_cache_corrupted; then
1409 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1410 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1411 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1412 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1413 { (exit 1); exit 1; }; }
1416 ac_ext=c
1417 ac_cpp='$CPP $CPPFLAGS'
1418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1451 ## ------------------------------- ##
1452 ## Libltdl specific configuration. ##
1453 ## ------------------------------- ##
1455 # We shouldn't be using these internal macros of autoconf,
1456 # but CONFIG_AUX_DIR($with_auxdir) breaks automake.
1458 # Check whether --with-auxdir or --without-auxdir was given.
1459 if test "${with_auxdir+set}" = set; then
1460 withval="$with_auxdir"
1461 ac_aux_dir=
1462 for ac_dir in $with_auxdir; do
1463 if test -f $ac_dir/install-sh; then
1464 ac_aux_dir=$ac_dir
1465 ac_install_sh="$ac_aux_dir/install-sh -c"
1466 break
1467 elif test -f $ac_dir/install.sh; then
1468 ac_aux_dir=$ac_dir
1469 ac_install_sh="$ac_aux_dir/install.sh -c"
1470 break
1471 elif test -f $ac_dir/shtool; then
1472 ac_aux_dir=$ac_dir
1473 ac_install_sh="$ac_aux_dir/shtool install -c"
1474 break
1476 done
1477 if test -z "$ac_aux_dir"; then
1478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $with_auxdir" >&5
1479 echo "$as_me: error: cannot find install-sh or install.sh in $with_auxdir" >&2;}
1480 { (exit 1); exit 1; }; }
1482 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1486 else
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1515 if test -f ${srcdir}/ltmain.sh; then
1516 # if libltdl is libtoolized, it is assumed to be stand-alone and
1517 # installed unless the command line overrides it (tested above)
1518 enable_ltdl_install=yes
1519 else
1520 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1521 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1522 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1523 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1524 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1525 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1526 { (exit 1); exit 1; }; }
1531 ## ------------------------ ##
1532 ## Automake Initialisation. ##
1533 ## ------------------------ ##
1534 am__api_version="1.6"
1535 # Find a good install program. We prefer a C program (faster),
1536 # so one script is as good as another. But avoid the broken or
1537 # incompatible versions:
1538 # SysV /etc/install, /usr/sbin/install
1539 # SunOS /usr/etc/install
1540 # IRIX /sbin/install
1541 # AIX /bin/install
1542 # AmigaOS /C/install, which installs bootblocks on floppy discs
1543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1546 # ./install, which can be erroneously created by make from ./install.sh.
1547 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1548 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1549 if test -z "$INSTALL"; then
1550 if test "${ac_cv_path_install+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 # Account for people who put trailing slashes in PATH elements.
1559 case $as_dir/ in
1560 ./ | .// | /cC/* | \
1561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1562 /usr/ucb/* ) ;;
1564 # OSF1 and SCO ODT 3.0 have their own names for install.
1565 # Don't use installbsd from OSF since it installs stuff as root
1566 # by default.
1567 for ac_prog in ginstall scoinst install; do
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1570 if test $ac_prog = install &&
1571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572 # AIX install. It has an incompatible calling convention.
1574 elif test $ac_prog = install &&
1575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1576 # program-specific install script used by HP pwplus--don't use.
1578 else
1579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1580 break 3
1583 done
1584 done
1586 esac
1587 done
1591 if test "${ac_cv_path_install+set}" = set; then
1592 INSTALL=$ac_cv_path_install
1593 else
1594 # As a last resort, use the slow shell script. We don't cache a
1595 # path for INSTALL within a source directory, because that will
1596 # break other packages using the cache if that directory is
1597 # removed, or if the path is relative.
1598 INSTALL=$ac_install_sh
1601 echo "$as_me:$LINENO: result: $INSTALL" >&5
1602 echo "${ECHO_T}$INSTALL" >&6
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1613 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1614 # Just in case
1615 sleep 1
1616 echo timestamp > conftest.file
1617 # Do `set' in a subshell so we don't clobber the current shell's
1618 # arguments. Must try -L first in case configure is actually a
1619 # symlink; some systems play weird games with the mod time of symlinks
1620 # (eg FreeBSD returns the mod time of the symlink's containing
1621 # directory).
1622 if (
1623 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1624 if test "$*" = "X"; then
1625 # -L didn't work.
1626 set X `ls -t $srcdir/configure conftest.file`
1628 rm -f conftest.file
1629 if test "$*" != "X $srcdir/configure conftest.file" \
1630 && test "$*" != "X conftest.file $srcdir/configure"; then
1632 # If neither matched, then we have a broken ls. This can happen
1633 # if, for instance, CONFIG_SHELL is bash and it inherits a
1634 # broken ls alias from the environment. This has actually
1635 # happened. Such a system could not be considered "sane".
1636 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1637 alias in your environment" >&5
1638 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1639 alias in your environment" >&2;}
1640 { (exit 1); exit 1; }; }
1643 test "$2" = conftest.file
1645 then
1646 # Ok.
1648 else
1649 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1650 Check your system clock" >&5
1651 echo "$as_me: error: newly created file is older than distributed files!
1652 Check your system clock" >&2;}
1653 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: result: yes" >&5
1656 echo "${ECHO_T}yes" >&6
1657 test "$program_prefix" != NONE &&
1658 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1659 # Use a double $ so make ignores it.
1660 test "$program_suffix" != NONE &&
1661 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1662 # Double any \ or $. echo might interpret backslashes.
1663 # By default was `s,x,x', remove it if useless.
1664 cat <<\_ACEOF >conftest.sed
1665 s/[\\$]/&&/g;s/;s,x,x,$//
1666 _ACEOF
1667 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1668 rm conftest.sed
1671 # expand $ac_aux_dir to an absolute path
1672 am_aux_dir=`cd $ac_aux_dir && pwd`
1674 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675 # Use eval to expand $SHELL
1676 if eval "$MISSING --run true"; then
1677 am_missing_run="$MISSING --run "
1678 else
1679 am_missing_run=
1680 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1684 for ac_prog in gawk mawk nawk awk
1686 # Extract the first word of "$ac_prog", so it can be a program name with args.
1687 set dummy $ac_prog; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_AWK+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$AWK"; then
1694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_AWK="$ac_prog"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 AWK=$ac_cv_prog_AWK
1713 if test -n "$AWK"; then
1714 echo "$as_me:$LINENO: result: $AWK" >&5
1715 echo "${ECHO_T}$AWK" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1721 test -n "$AWK" && break
1722 done
1724 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1725 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1727 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 cat >conftest.make <<\_ACEOF
1731 all:
1732 @echo 'ac_maketemp="${MAKE}"'
1733 _ACEOF
1734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1735 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1736 if test -n "$ac_maketemp"; then
1737 eval ac_cv_prog_make_${ac_make}_set=yes
1738 else
1739 eval ac_cv_prog_make_${ac_make}_set=no
1741 rm -f conftest.make
1743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1744 echo "$as_me:$LINENO: result: yes" >&5
1745 echo "${ECHO_T}yes" >&6
1746 SET_MAKE=
1747 else
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 SET_MAKE="MAKE=${MAKE-make}"
1753 # test to see if srcdir already configured
1754 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755 test -f $srcdir/config.status; then
1756 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1761 # Define the identity of the package.
1762 PACKAGE=libltdl
1763 VERSION=1.2
1766 # Some tools Automake needs.
1768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1783 AMTAR=${AMTAR-"${am_missing_run}tar"}
1785 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1787 # Installed binaries are usually stripped using `strip' when the user
1788 # run `make install-strip'. However `strip' might not be the right
1789 # tool to use in cross-compilation environments, therefore Automake
1790 # will honor the `STRIP' environment variable to overrule this program.
1791 if test "$cross_compiling" != no; then
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}strip; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_STRIP+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$STRIP"; then
1801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1814 done
1815 done
1819 STRIP=$ac_cv_prog_STRIP
1820 if test -n "$STRIP"; then
1821 echo "$as_me:$LINENO: result: $STRIP" >&5
1822 echo "${ECHO_T}$STRIP" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$ac_cv_prog_STRIP"; then
1830 ac_ct_STRIP=$STRIP
1831 # Extract the first word of "strip", so it can be a program name with args.
1832 set dummy strip; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$ac_ct_STRIP"; then
1839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_STRIP="strip"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1855 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1859 if test -n "$ac_ct_STRIP"; then
1860 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1861 echo "${ECHO_T}$ac_ct_STRIP" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 STRIP=$ac_ct_STRIP
1868 else
1869 STRIP="$ac_cv_prog_STRIP"
1873 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1875 # We need awk for the "check" target. The system "awk" is bad on
1876 # some platforms.
1880 # Add the stamp file to the list of files AC keeps track of,
1881 # along with our hook.
1882 ac_config_headers="$ac_config_headers config.h:config-h.in"
1888 ## ------------------ ##
1889 ## C compiler checks. ##
1890 ## ------------------ ##
1891 ac_ext=c
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1918 done
1919 done
1923 CC=$ac_cv_prog_CC
1924 if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1927 else
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1933 if test -z "$ac_cv_prog_CC"; then
1934 ac_ct_CC=$CC
1935 # Extract the first word of "gcc", so it can be a program name with args.
1936 set dummy gcc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="gcc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1956 done
1957 done
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1970 CC=$ac_ct_CC
1971 else
1972 CC="$ac_cv_prog_CC"
1975 if test -z "$CC"; then
1976 if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1978 set dummy ${ac_tool_prefix}cc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1998 done
1999 done
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2007 else
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2013 if test -z "$ac_cv_prog_CC"; then
2014 ac_ct_CC=$CC
2015 # Extract the first word of "cc", so it can be a program name with args.
2016 set dummy cc; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_ac_ct_CC="cc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2036 done
2037 done
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6
2045 else
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2050 CC=$ac_ct_CC
2051 else
2052 CC="$ac_cv_prog_CC"
2056 if test -z "$CC"; then
2057 # Extract the first word of "cc", so it can be a program name with args.
2058 set dummy cc; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 else
2067 ac_prog_rejected=no
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2076 ac_prog_rejected=yes
2077 continue
2079 ac_cv_prog_CC="cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2086 if test $ac_prog_rejected = yes; then
2087 # We found a bogon in the path, so make sure we never use it.
2088 set dummy $ac_cv_prog_CC
2089 shift
2090 if test $# != 0; then
2091 # We chose a different compiler from the bogus one.
2092 # However, it has the same basename, so the bogon will be chosen
2093 # first if we set CC to just the basename; use the full file name.
2094 shift
2095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2100 CC=$ac_cv_prog_CC
2101 if test -n "$CC"; then
2102 echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6
2104 else
2105 echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2110 if test -z "$CC"; then
2111 if test -n "$ac_tool_prefix"; then
2112 for ac_prog in cl
2114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142 echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2144 else
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2149 test -n "$CC" && break
2150 done
2152 if test -z "$CC"; then
2153 ac_ct_CC=$CC
2154 for ac_prog in cl
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_ac_ct_CC="$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2177 done
2178 done
2182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183 if test -n "$ac_ct_CC"; then
2184 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185 echo "${ECHO_T}$ac_ct_CC" >&6
2186 else
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2191 test -n "$ac_ct_CC" && break
2192 done
2194 CC=$ac_ct_CC
2200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2201 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2202 { (exit 1); exit 1; }; }
2204 # Provide some information about the compiler.
2205 echo "$as_me:$LINENO:" \
2206 "checking for C compiler version" >&5
2207 ac_compiler=`set X $ac_compile; echo $2`
2208 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2209 (eval $ac_compiler --version </dev/null >&5) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2214 (eval $ac_compiler -v </dev/null >&5) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2219 (eval $ac_compiler -V </dev/null >&5) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2229 main ()
2233 return 0;
2235 _ACEOF
2236 ac_clean_files_save=$ac_clean_files
2237 ac_clean_files="$ac_clean_files a.out a.exe"
2238 # Try to create an executable without -o first, disregard a.out.
2239 # It will help us diagnose broken compilers, and finding out an intuition
2240 # of exeext.
2241 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2242 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2243 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2245 (eval $ac_link_default) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 # Find the output, starting from the most likely. This scheme is
2250 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2251 # resort.
2253 # Be careful to initialize this variable, since it used to be cached.
2254 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2255 ac_cv_exeext=
2256 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2257 test -f "$ac_file" || continue
2258 case $ac_file in
2259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2260 a.out ) # We found the default executable, but exeext='' is most
2261 # certainly right.
2262 break;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2265 export ac_cv_exeext
2266 break;;
2267 * ) break;;
2268 esac
2269 done
2270 else
2271 echo "$as_me: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2273 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2274 check \`config.log' for details." >&5
2275 echo "$as_me: error: C compiler cannot create executables
2276 check \`config.log' for details." >&2;}
2277 { (exit 77); exit 77; }; }
2280 ac_exeext=$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_file" >&5
2282 echo "${ECHO_T}$ac_file" >&6
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2287 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2289 # If not cross compiling, check that we can run a simple program.
2290 if test "$cross_compiling" != yes; then
2291 if { ac_try='./$ac_file'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 cross_compiling=no
2298 else
2299 if test "$cross_compiling" = maybe; then
2300 cross_compiling=yes
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2303 If you meant to cross compile, use \`--host'." >&5
2304 echo "$as_me: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'." >&2;}
2306 { (exit 1); exit 1; }; }
2310 echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6
2313 rm -f a.out a.exe conftest$ac_cv_exeext
2314 ac_clean_files=$ac_clean_files_save
2315 # Check the compiler produces executables we can run. If not, either
2316 # the compiler is broken, or we cross compile.
2317 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2319 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2320 echo "${ECHO_T}$cross_compiling" >&6
2322 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2325 (eval $ac_link) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2330 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2331 # work properly (i.e., refer to `conftest.exe'), while it won't with
2332 # `rm'.
2333 for ac_file in conftest.exe conftest conftest.*; do
2334 test -f "$ac_file" || continue
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2337 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2338 export ac_cv_exeext
2339 break;;
2340 * ) break;;
2341 esac
2342 done
2343 else
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2345 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2351 echo "${ECHO_T}$ac_cv_exeext" >&6
2353 rm -f conftest.$ac_ext
2354 EXEEXT=$ac_cv_exeext
2355 ac_exeext=$EXEEXT
2356 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2357 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2358 if test "${ac_cv_objext+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line $LINENO "configure"
2363 #include "confdefs.h"
2366 main ()
2370 return 0;
2372 _ACEOF
2373 rm -f conftest.o conftest.obj
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383 break;;
2384 esac
2385 done
2386 else
2387 echo "$as_me: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2390 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2391 { (exit 1); exit 1; }; }
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2396 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6
2398 OBJEXT=$ac_cv_objext
2399 ac_objext=$OBJEXT
2400 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2410 main ()
2412 #ifndef __GNUC__
2413 choke me
2414 #endif
2417 return 0;
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 ac_compiler_gnu=yes
2433 else
2434 echo "$as_me: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 ac_compiler_gnu=no
2438 rm -f conftest.$ac_objext conftest.$ac_ext
2439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2444 GCC=`test $ac_compiler_gnu = yes && echo yes`
2445 ac_test_CFLAGS=${CFLAGS+set}
2446 ac_save_CFLAGS=$CFLAGS
2447 CFLAGS="-g"
2448 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2449 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2450 if test "${ac_cv_prog_cc_g+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 #include "confdefs.h"
2458 main ()
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_cv_prog_cc_g=yes
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 ac_cv_prog_cc_g=no
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2491 CFLAGS="-g -O2"
2492 else
2493 CFLAGS="-g"
2495 else
2496 if test "$GCC" = yes; then
2497 CFLAGS="-O2"
2498 else
2499 CFLAGS=
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 ac_cv_prog_cc_stdc=no
2508 ac_save_CC=$CC
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 #include "confdefs.h"
2512 #include <stdarg.h>
2513 #include <stdio.h>
2514 #include <sys/types.h>
2515 #include <sys/stat.h>
2516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2517 struct buf { int x; };
2518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2519 static char *e (p, i)
2520 char **p;
2521 int i;
2523 return p[i];
2525 static char *f (char * (*g) (char **, int), char **p, ...)
2527 char *s;
2528 va_list v;
2529 va_start (v,p);
2530 s = g (p, va_arg (v,int));
2531 va_end (v);
2532 return s;
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2538 int argc;
2539 char **argv;
2541 main ()
2543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2545 return 0;
2547 _ACEOF
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX -qlanglvl=ansi
2551 # Ultrix and OSF/1 -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions -Aa -D_HPUX_SOURCE
2554 # SVR4 -Xc -D__EXTENSIONS__
2555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557 CC="$ac_save_CC $ac_arg"
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 ac_cv_prog_cc_stdc=$ac_arg
2571 break
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 rm -f conftest.$ac_objext
2577 done
2578 rm -f conftest.$ac_ext conftest.$ac_objext
2579 CC=$ac_save_CC
2583 case "x$ac_cv_prog_cc_stdc" in
2584 x|xno)
2585 echo "$as_me:$LINENO: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590 CC="$CC $ac_cv_prog_cc_stdc" ;;
2591 esac
2593 # Some people use a C++ compiler to compile C. Since we use `exit',
2594 # in C++ we need to declare it. In case someone uses the same compiler
2595 # for both compiling C and C++ we need to have the C++ compiler decide
2596 # the declaration of exit, since it's the most demanding environment.
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #ifndef __cplusplus
2599 choke me
2600 #endif
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 for ac_declaration in \
2616 '#include <stdlib.h>' \
2617 'extern "C" void std::exit (int) throw (); using std::exit;' \
2618 'extern "C" void std::exit (int); using std::exit;' \
2619 'extern "C" void exit (int) throw ();' \
2620 'extern "C" void exit (int);' \
2621 'void exit (int);'
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2626 #include <stdlib.h>
2627 $ac_declaration
2629 main ()
2631 exit (42);
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2652 continue
2654 rm -f conftest.$ac_objext conftest.$ac_ext
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2658 $ac_declaration
2660 main ()
2662 exit (42);
2664 return 0;
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 break
2680 else
2681 echo "$as_me: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2685 done
2686 rm -f conftest*
2687 if test -n "$ac_declaration"; then
2688 echo '#ifdef __cplusplus' >>confdefs.h
2689 echo $ac_declaration >>confdefs.h
2690 echo '#endif' >>confdefs.h
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 rm -f conftest.$ac_objext conftest.$ac_ext
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 rm -f .deps 2>/dev/null
2704 mkdir .deps 2>/dev/null
2705 if test -d .deps; then
2706 DEPDIR=.deps
2707 else
2708 # MS-DOS does not allow filenames that begin with a dot.
2709 DEPDIR=_deps
2711 rmdir .deps 2>/dev/null
2714 ac_config_commands="$ac_config_commands depfiles"
2717 am_make=${MAKE-make}
2718 cat > confinc << 'END'
2719 doit:
2720 @echo done
2722 # If we don't find an include directive, just comment out the code.
2723 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2724 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2725 am__include="#"
2726 am__quote=
2727 _am_result=none
2728 # First try GNU make style include.
2729 echo "include confinc" > confmf
2730 # We grep out `Entering directory' and `Leaving directory'
2731 # messages which can occur if `w' ends up in MAKEFLAGS.
2732 # In particular we don't look at `^make:' because GNU make might
2733 # be invoked under some other name (usually "gmake"), in which
2734 # case it prints its new name instead of `make'.
2735 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2736 am__include=include
2737 am__quote=
2738 _am_result=GNU
2740 # Now try BSD make style include.
2741 if test "$am__include" = "#"; then
2742 echo '.include "confinc"' > confmf
2743 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2744 am__include=.include
2745 am__quote="\""
2746 _am_result=BSD
2751 echo "$as_me:$LINENO: result: $_am_result" >&5
2752 echo "${ECHO_T}$_am_result" >&6
2753 rm -f confinc confmf
2755 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2756 if test "${enable_dependency_tracking+set}" = set; then
2757 enableval="$enable_dependency_tracking"
2760 if test "x$enable_dependency_tracking" != xno; then
2761 am_depcomp="$ac_aux_dir/depcomp"
2762 AMDEPBACKSLASH='\'
2766 if test "x$enable_dependency_tracking" != xno; then
2767 AMDEP_TRUE=
2768 AMDEP_FALSE='#'
2769 else
2770 AMDEP_TRUE='#'
2771 AMDEP_FALSE=
2777 depcc="$CC" am_compiler_list=
2779 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2780 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2781 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2785 # We make a subdir and do the tests there. Otherwise we can end up
2786 # making bogus files that we don't know about and never remove. For
2787 # instance it was reported that on HP-UX the gcc test will end up
2788 # making a dummy file named `D' -- because `-MD' means `put the output
2789 # in D'.
2790 mkdir conftest.dir
2791 # Copy depcomp to subdir because otherwise we won't find it if we're
2792 # using a relative directory.
2793 cp "$am_depcomp" conftest.dir
2794 cd conftest.dir
2796 am_cv_CC_dependencies_compiler_type=none
2797 if test "$am_compiler_list" = ""; then
2798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2800 for depmode in $am_compiler_list; do
2801 # We need to recreate these files for each test, as the compiler may
2802 # overwrite some of them when testing with obscure command lines.
2803 # This happens at least with the AIX C compiler.
2804 echo '#include "conftest.h"' > conftest.c
2805 echo 'int i;' > conftest.h
2806 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2808 case $depmode in
2809 nosideeffect)
2810 # after this tag, mechanisms are not by side-effect, so they'll
2811 # only be used when explicitly requested
2812 if test "x$enable_dependency_tracking" = xyes; then
2813 continue
2814 else
2815 break
2818 none) break ;;
2819 esac
2820 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2821 # mode. It turns out that the SunPro C++ compiler does not properly
2822 # handle `-M -o', and we need to detect this.
2823 if depmode=$depmode \
2824 source=conftest.c object=conftest.o \
2825 depfile=conftest.Po tmpdepfile=conftest.TPo \
2826 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2827 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2829 am_cv_CC_dependencies_compiler_type=$depmode
2830 break
2832 done
2834 cd ..
2835 rm -rf conftest.dir
2836 else
2837 am_cv_CC_dependencies_compiler_type=none
2841 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2842 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2847 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2849 if test "${ac_cv_c_const+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line $LINENO "configure"
2854 #include "confdefs.h"
2857 main ()
2859 /* FIXME: Include the comments suggested by Paul. */
2860 #ifndef __cplusplus
2861 /* Ultrix mips cc rejects this. */
2862 typedef int charset[2];
2863 const charset x;
2864 /* SunOS 4.1.1 cc rejects this. */
2865 char const *const *ccp;
2866 char **p;
2867 /* NEC SVR4.0.2 mips cc rejects this. */
2868 struct point {int x, y;};
2869 static struct point const zero = {0,0};
2870 /* AIX XL C 1.02.0.0 rejects this.
2871 It does not let you subtract one const X* pointer from another in
2872 an arm of an if-expression whose if-part is not a constant
2873 expression */
2874 const char *g = "string";
2875 ccp = &g + (g ? g-g : 0);
2876 /* HPUX 7.0 cc rejects these. */
2877 ++ccp;
2878 p = (char**) ccp;
2879 ccp = (char const *const *) p;
2880 { /* SCO 3.2v4 cc rejects this. */
2881 char *t;
2882 char const *s = 0 ? (char *) 0 : (char const *) 0;
2884 *t++ = 0;
2886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2887 int x[] = {25, 17};
2888 const int *foo = &x[0];
2889 ++foo;
2891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2892 typedef const int *iptr;
2893 iptr p = 0;
2894 ++p;
2896 { /* AIX XL C 1.02.0.0 rejects this saying
2897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2898 struct s { int j; const int *ap[3]; };
2899 struct s *b; b->j = 5;
2901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2902 const int foo = 10;
2904 #endif
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 ac_cv_c_const=yes
2923 else
2924 echo "$as_me: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 ac_cv_c_const=no
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2930 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2931 echo "${ECHO_T}$ac_cv_c_const" >&6
2932 if test $ac_cv_c_const = no; then
2934 cat >>confdefs.h <<\_ACEOF
2935 #define const
2936 _ACEOF
2940 echo "$as_me:$LINENO: checking for inline" >&5
2941 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2942 if test "${ac_cv_c_inline+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 ac_cv_c_inline=no
2946 for ac_kw in inline __inline__ __inline; do
2947 cat >conftest.$ac_ext <<_ACEOF
2948 #line $LINENO "configure"
2949 #include "confdefs.h"
2950 #ifndef __cplusplus
2951 typedef int foo_t;
2952 static $ac_kw foo_t static_foo () {return 0; }
2953 $ac_kw foo_t foo () {return 0; }
2954 #endif
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -s conftest.$ac_objext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 ac_cv_c_inline=$ac_kw; break
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 rm -f conftest.$ac_objext conftest.$ac_ext
2975 done
2978 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2979 echo "${ECHO_T}$ac_cv_c_inline" >&6
2980 case $ac_cv_c_inline in
2981 inline | yes) ;;
2983 cat >>confdefs.h <<\_ACEOF
2984 #define inline
2985 _ACEOF
2987 *) cat >>confdefs.h <<_ACEOF
2988 #define inline $ac_cv_c_inline
2989 _ACEOF
2991 esac
2995 ## ----------------------- ##
2996 ## Libtool initialisation. ##
2997 ## ----------------------- ##
3000 # Check whether --enable-shared or --disable-shared was given.
3001 if test "${enable_shared+set}" = set; then
3002 enableval="$enable_shared"
3003 p=${PACKAGE-default}
3004 case $enableval in
3005 yes) enable_shared=yes ;;
3006 no) enable_shared=no ;;
3008 enable_shared=no
3009 # Look at the argument we got. We use all the common list separators.
3010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3011 for pkg in $enableval; do
3012 IFS="$lt_save_ifs"
3013 if test "X$pkg" = "X$p"; then
3014 enable_shared=yes
3016 done
3017 IFS="$lt_save_ifs"
3019 esac
3020 else
3021 enable_shared=yes
3024 # Check whether --enable-static or --disable-static was given.
3025 if test "${enable_static+set}" = set; then
3026 enableval="$enable_static"
3027 p=${PACKAGE-default}
3028 case $enableval in
3029 yes) enable_static=yes ;;
3030 no) enable_static=no ;;
3032 enable_static=no
3033 # Look at the argument we got. We use all the common list separators.
3034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3035 for pkg in $enableval; do
3036 IFS="$lt_save_ifs"
3037 if test "X$pkg" = "X$p"; then
3038 enable_static=yes
3040 done
3041 IFS="$lt_save_ifs"
3043 esac
3044 else
3045 enable_static=yes
3048 # Check whether --enable-fast-install or --disable-fast-install was given.
3049 if test "${enable_fast_install+set}" = set; then
3050 enableval="$enable_fast_install"
3051 p=${PACKAGE-default}
3052 case $enableval in
3053 yes) enable_fast_install=yes ;;
3054 no) enable_fast_install=no ;;
3056 enable_fast_install=no
3057 # Look at the argument we got. We use all the common list separators.
3058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3059 for pkg in $enableval; do
3060 IFS="$lt_save_ifs"
3061 if test "X$pkg" = "X$p"; then
3062 enable_fast_install=yes
3064 done
3065 IFS="$lt_save_ifs"
3067 esac
3068 else
3069 enable_fast_install=yes
3072 # Make sure we can run config.sub.
3073 $ac_config_sub sun4 >/dev/null 2>&1 ||
3074 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3075 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3076 { (exit 1); exit 1; }; }
3078 echo "$as_me:$LINENO: checking build system type" >&5
3079 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3080 if test "${ac_cv_build+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 ac_cv_build_alias=$build_alias
3084 test -z "$ac_cv_build_alias" &&
3085 ac_cv_build_alias=`$ac_config_guess`
3086 test -z "$ac_cv_build_alias" &&
3087 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3088 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3089 { (exit 1); exit 1; }; }
3090 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3091 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3092 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3093 { (exit 1); exit 1; }; }
3096 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3097 echo "${ECHO_T}$ac_cv_build" >&6
3098 build=$ac_cv_build
3099 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3100 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3101 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3104 echo "$as_me:$LINENO: checking host system type" >&5
3105 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3106 if test "${ac_cv_host+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 ac_cv_host_alias=$host_alias
3110 test -z "$ac_cv_host_alias" &&
3111 ac_cv_host_alias=$ac_cv_build_alias
3112 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3113 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3114 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3115 { (exit 1); exit 1; }; }
3118 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3119 echo "${ECHO_T}$ac_cv_host" >&6
3120 host=$ac_cv_host
3121 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3122 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3123 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3126 echo "$as_me:$LINENO: checking for egrep" >&5
3127 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3128 if test "${ac_cv_prog_egrep+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3132 then ac_cv_prog_egrep='grep -E'
3133 else ac_cv_prog_egrep='egrep'
3136 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3137 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3138 EGREP=$ac_cv_prog_egrep
3142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3143 if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146 else
3147 with_gnu_ld=no
3149 ac_prog=ld
3150 if test "$GCC" = yes; then
3151 # Check if gcc -print-prog-name=ld gives a path.
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
3161 case $ac_prog in
3162 # Accept absolute paths.
3163 [\\/]* | ?:[\\/]*)
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3180 esac
3181 elif test "$with_gnu_ld" = yes; then
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184 else
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188 if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -z "$LD"; then
3192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3193 for ac_dir in $PATH; do
3194 IFS="$lt_save_ifs"
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3202 *GNU* | *'with BFD'*)
3203 test "$with_gnu_ld" != no && break
3206 test "$with_gnu_ld" != yes && break
3208 esac
3210 done
3211 IFS="$lt_save_ifs"
3212 else
3213 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3217 LD="$lt_cv_path_LD"
3218 if test -n "$LD"; then
3219 echo "$as_me:$LINENO: result: $LD" >&5
3220 echo "${ECHO_T}$LD" >&6
3221 else
3222 echo "$as_me:$LINENO: result: no" >&5
3223 echo "${ECHO_T}no" >&6
3225 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3226 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3227 { (exit 1); exit 1; }; }
3228 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3229 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3230 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3234 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
3235 lt_cv_prog_gnu_ld=yes
3236 else
3237 lt_cv_prog_gnu_ld=no
3240 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3241 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3242 with_gnu_ld=$lt_cv_prog_gnu_ld
3245 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3246 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3247 if test "${lt_cv_ld_reload_flag+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 lt_cv_ld_reload_flag='-r'
3252 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3253 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3254 reload_flag=$lt_cv_ld_reload_flag
3255 case $reload_flag in
3256 "" | " "*) ;;
3257 *) reload_flag=" $reload_flag" ;;
3258 esac
3259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3261 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3262 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3263 if test "${lt_cv_path_NM+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 if test -n "$NM"; then
3267 # Let the user override the test.
3268 lt_cv_path_NM="$NM"
3269 else
3270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3271 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3272 IFS="$lt_save_ifs"
3273 test -z "$ac_dir" && ac_dir=.
3274 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3276 # Check to see if the nm accepts a BSD-compat flag.
3277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3278 # nm: unknown option "B" ignored
3279 # Tru64's nm complains that /dev/null is an invalid object file
3280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3281 */dev/null* | *'Invalid file or object type'*)
3282 lt_cv_path_NM="$tmp_nm -B"
3283 break
3286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3287 */dev/null*)
3288 lt_cv_path_NM="$tmp_nm -p"
3289 break
3292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3293 continue # so that we can try to find one that supports BSD flags
3295 esac
3296 esac
3298 done
3299 IFS="$lt_save_ifs"
3300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3303 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3304 echo "${ECHO_T}$lt_cv_path_NM" >&6
3305 NM="$lt_cv_path_NM"
3307 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3308 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3309 if test "${lt_cv_path_SED+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 # Loop through the user's path and test for sed and gsed.
3313 # Then use that list of sed's as ones to test for truncation.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for lt_ac_prog in sed gsed; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3322 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3324 done
3325 done
3326 done
3327 lt_ac_max=0
3328 lt_ac_count=0
3329 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3330 # along with /bin/sed that truncates output.
3331 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3332 test ! -f $lt_ac_sed && break
3333 cat /dev/null > conftest.in
3334 lt_ac_count=0
3335 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3336 # Check for GNU sed and select it if it is found.
3337 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3338 lt_cv_path_SED=$lt_ac_sed
3339 break
3341 while true; do
3342 cat conftest.in conftest.in >conftest.tmp
3343 mv conftest.tmp conftest.in
3344 cp conftest.in conftest.nl
3345 echo >>conftest.nl
3346 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3347 cmp -s conftest.out conftest.nl || break
3348 # 10000 chars as input seems more than enough
3349 test $lt_ac_count -gt 10 && break
3350 lt_ac_count=`expr $lt_ac_count + 1`
3351 if test $lt_ac_count -gt $lt_ac_max; then
3352 lt_ac_max=$lt_ac_count
3353 lt_cv_path_SED=$lt_ac_sed
3355 done
3356 done
3357 SED=$lt_cv_path_SED
3361 echo "$as_me:$LINENO: result: $SED" >&5
3362 echo "${ECHO_T}$SED" >&6
3364 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3365 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3366 LN_S=$as_ln_s
3367 if test "$LN_S" = "ln -s"; then
3368 echo "$as_me:$LINENO: result: yes" >&5
3369 echo "${ECHO_T}yes" >&6
3370 else
3371 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3372 echo "${ECHO_T}no, using $LN_S" >&6
3375 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3376 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3377 if test "${lt_cv_deplibs_check_method+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 lt_cv_file_magic_cmd='$MAGIC_CMD'
3381 lt_cv_file_magic_test_file=
3382 lt_cv_deplibs_check_method='unknown'
3383 # Need to set the preceding variable on all platforms that support
3384 # interlibrary dependencies.
3385 # 'none' -- dependencies not supported.
3386 # `unknown' -- same as none, but documents that we really don't know.
3387 # 'pass_all' -- all dependencies passed with no checks.
3388 # 'test_compile' -- check by making test program.
3389 # 'file_magic [[regex]]' -- check by looking for files in library path
3390 # which responds to the $file_magic_cmd with a given extended regex.
3391 # If you have `file' or equivalent on your system and you're not sure
3392 # whether `pass_all' will *always* work, you probably want this one.
3394 case $host_os in
3395 aix4* | aix5*)
3396 lt_cv_deplibs_check_method=pass_all
3399 beos*)
3400 lt_cv_deplibs_check_method=pass_all
3403 bsdi4*)
3404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3405 lt_cv_file_magic_cmd='/usr/bin/file -L'
3406 lt_cv_file_magic_test_file=/shlib/libc.so
3409 cygwin* | mingw* | pw32*)
3410 # win32_libid is a shell function defined in ltmain.sh
3411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3412 lt_cv_file_magic_cmd='win32_libid'
3415 darwin* | rhapsody*)
3416 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3417 lt_cv_file_magic_cmd='/usr/bin/file -L'
3418 case "$host_os" in
3419 rhapsody* | darwin1.[012])
3420 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3422 *) # Darwin 1.3 on
3423 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3425 esac
3428 freebsd*)
3429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3430 case $host_cpu in
3431 i*86 )
3432 # Not sure whether the presence of OpenBSD here was a mistake.
3433 # Let's accept both of them until this is cleared up.
3434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3435 lt_cv_file_magic_cmd=/usr/bin/file
3436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3438 esac
3439 else
3440 lt_cv_deplibs_check_method=pass_all
3444 gnu*)
3445 lt_cv_deplibs_check_method=pass_all
3448 hpux10.20* | hpux11*)
3449 lt_cv_file_magic_cmd=/usr/bin/file
3450 if test "$host_cpu" = ia64; then
3451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3453 else
3454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3455 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3459 irix5* | irix6* | nonstopux*)
3460 case $host_os in
3461 irix5* | nonstopux*)
3462 # this will be overridden with pass_all, but let us keep it just in case
3463 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3466 case $LD in
3467 *-32|*"-32 ") libmagic=32-bit;;
3468 *-n32|*"-n32 ") libmagic=N32;;
3469 *-64|*"-64 ") libmagic=64-bit;;
3470 *) libmagic=never-match;;
3471 esac
3472 # this will be overridden with pass_all, but let us keep it just in case
3473 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3475 esac
3476 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3477 lt_cv_deplibs_check_method=pass_all
3480 # This must be Linux ELF.
3481 linux*)
3482 case $host_cpu in
3483 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3484 lt_cv_deplibs_check_method=pass_all ;;
3486 # glibc up to 2.1.1 does not perform some relocations on ARM
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3488 esac
3489 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3492 netbsd*)
3493 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3495 else
3496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3500 newos6*)
3501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3502 lt_cv_file_magic_cmd=/usr/bin/file
3503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3506 nto-qnx)
3507 lt_cv_deplibs_check_method=unknown
3510 openbsd*)
3511 lt_cv_file_magic_cmd=/usr/bin/file
3512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3515 else
3516 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3520 osf3* | osf4* | osf5*)
3521 # this will be overridden with pass_all, but let us keep it just in case
3522 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3523 lt_cv_file_magic_test_file=/shlib/libc.so
3524 lt_cv_deplibs_check_method=pass_all
3527 sco3.2v5*)
3528 lt_cv_deplibs_check_method=pass_all
3531 solaris*)
3532 lt_cv_deplibs_check_method=pass_all
3533 lt_cv_file_magic_test_file=/lib/libc.so
3536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3537 case $host_vendor in
3538 motorola)
3539 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]'
3540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3542 ncr)
3543 lt_cv_deplibs_check_method=pass_all
3545 sequent)
3546 lt_cv_file_magic_cmd='/bin/file'
3547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3549 sni)
3550 lt_cv_file_magic_cmd='/bin/file'
3551 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3552 lt_cv_file_magic_test_file=/lib/libc.so
3554 siemens)
3555 lt_cv_deplibs_check_method=pass_all
3557 esac
3560 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3561 lt_cv_deplibs_check_method=pass_all
3563 esac
3566 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3567 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3568 file_magic_cmd=$lt_cv_file_magic_cmd
3569 deplibs_check_method=$lt_cv_deplibs_check_method
3570 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3575 # If no C compiler was specified, use CC.
3576 LTCC=${LTCC-"$CC"}
3578 # Allow CC to be a program name with arguments.
3579 set dummy $CC
3580 compiler="$2"
3582 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3583 if test "${enable_libtool_lock+set}" = set; then
3584 enableval="$enable_libtool_lock"
3587 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3589 # Some flags need to be propagated to the compiler or linker for good
3590 # libtool support.
3591 case $host in
3592 ia64-*-hpux*)
3593 # Find out which ABI we are using.
3594 echo 'int i;' > conftest.$ac_ext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; then
3600 case `/usr/bin/file conftest.$ac_objext` in
3601 *ELF-32*)
3602 HPUX_IA64_MODE="32"
3604 *ELF-64*)
3605 HPUX_IA64_MODE="64"
3607 esac
3609 rm -rf conftest*
3611 *-*-irix6*)
3612 # Find out which ABI we are using.
3613 echo '#line 3613 "configure"' > conftest.$ac_ext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; then
3619 case `/usr/bin/file conftest.$ac_objext` in
3620 *32-bit*)
3621 LD="${LD-ld} -32"
3623 *N32*)
3624 LD="${LD-ld} -n32"
3626 *64-bit*)
3627 LD="${LD-ld} -64"
3629 esac
3631 rm -rf conftest*
3634 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3635 # Find out which ABI we are using.
3636 echo 'int i;' > conftest.$ac_ext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 case "`/usr/bin/file conftest.o`" in
3643 *32-bit*)
3644 case $host in
3645 x86_64-*linux*)
3646 LD="${LD-ld} -m elf_i386"
3648 ppc64-*linux*)
3649 LD="${LD-ld} -m elf32ppclinux"
3651 s390x-*linux*)
3652 LD="${LD-ld} -m elf_s390"
3654 sparc64-*linux*)
3655 LD="${LD-ld} -m elf32_sparc"
3657 esac
3659 *64-bit*)
3660 case $host in
3661 x86_64-*linux*)
3662 LD="${LD-ld} -m elf_x86_64"
3664 ppc*-*linux*|powerpc*-*linux*)
3665 LD="${LD-ld} -m elf64ppc"
3667 s390*-*linux*)
3668 LD="${LD-ld} -m elf64_s390"
3670 sparc*-*linux*)
3671 LD="${LD-ld} -m elf64_sparc"
3673 esac
3675 esac
3677 rm -rf conftest*
3680 *-*-sco3.2v5*)
3681 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3682 SAVE_CFLAGS="$CFLAGS"
3683 CFLAGS="$CFLAGS -belf"
3684 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3685 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3686 if test "${lt_cv_cc_needs_belf+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3697 #include "confdefs.h"
3700 main ()
3704 return 0;
3706 _ACEOF
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709 (eval $ac_link) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest$ac_exeext'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 lt_cv_cc_needs_belf=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 lt_cv_cc_needs_belf=no
3725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3734 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3735 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3736 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3737 CFLAGS="$SAVE_CFLAGS"
3740 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 if test -n "$DLLTOOL"; then
3750 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3768 DLLTOOL=$ac_cv_prog_DLLTOOL
3769 if test -n "$DLLTOOL"; then
3770 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3771 echo "${ECHO_T}$DLLTOOL" >&6
3772 else
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3778 if test -z "$ac_cv_prog_DLLTOOL"; then
3779 ac_ct_DLLTOOL=$DLLTOOL
3780 # Extract the first word of "dlltool", so it can be a program name with args.
3781 set dummy dlltool; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -n "$ac_ct_DLLTOOL"; then
3788 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3804 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3807 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3808 if test -n "$ac_ct_DLLTOOL"; then
3809 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3810 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3816 DLLTOOL=$ac_ct_DLLTOOL
3817 else
3818 DLLTOOL="$ac_cv_prog_DLLTOOL"
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}as; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_AS+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 if test -n "$AS"; then
3830 ac_cv_prog_AS="$AS" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_AS="${ac_tool_prefix}as"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3843 done
3844 done
3848 AS=$ac_cv_prog_AS
3849 if test -n "$AS"; then
3850 echo "$as_me:$LINENO: result: $AS" >&5
3851 echo "${ECHO_T}$AS" >&6
3852 else
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3858 if test -z "$ac_cv_prog_AS"; then
3859 ac_ct_AS=$AS
3860 # Extract the first word of "as", so it can be a program name with args.
3861 set dummy as; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 if test -n "$ac_ct_AS"; then
3868 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_AS="as"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3884 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3887 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3888 if test -n "$ac_ct_AS"; then
3889 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3890 echo "${ECHO_T}$ac_ct_AS" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 AS=$ac_ct_AS
3897 else
3898 AS="$ac_cv_prog_AS"
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 if test -n "$OBJDUMP"; then
3910 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3923 done
3924 done
3928 OBJDUMP=$ac_cv_prog_OBJDUMP
3929 if test -n "$OBJDUMP"; then
3930 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3931 echo "${ECHO_T}$OBJDUMP" >&6
3932 else
3933 echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3938 if test -z "$ac_cv_prog_OBJDUMP"; then
3939 ac_ct_OBJDUMP=$OBJDUMP
3940 # Extract the first word of "objdump", so it can be a program name with args.
3941 set dummy objdump; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 if test -n "$ac_ct_OBJDUMP"; then
3948 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3964 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3967 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3968 if test -n "$ac_ct_OBJDUMP"; then
3969 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3970 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3976 OBJDUMP=$ac_ct_OBJDUMP
3977 else
3978 OBJDUMP="$ac_cv_prog_OBJDUMP"
3983 esac
3985 need_locks="$enable_libtool_lock"
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3997 CPP=
3999 if test -z "$CPP"; then
4000 if test "${ac_cv_prog_CPP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 # Double quotes because CPP needs to be expanded
4004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4006 ac_preproc_ok=false
4007 for ac_c_preproc_warn_flag in '' yes
4009 # Use a header file that comes with gcc, so configuring glibc
4010 # with a fresh cross-compiler works.
4011 # On the NeXT, cc -E runs the code through the compiler's parser,
4012 # not just through cpp. "Syntax error" is here to catch this case.
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 #include "confdefs.h"
4016 #include <assert.h>
4017 Syntax error
4018 _ACEOF
4019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } >/dev/null; then
4027 if test -s conftest.err; then
4028 ac_cpp_err=$ac_c_preproc_warn_flag
4029 else
4030 ac_cpp_err=
4032 else
4033 ac_cpp_err=yes
4035 if test -z "$ac_cpp_err"; then
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4040 # Broken: fails on valid input.
4041 continue
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether non-existent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4048 #line $LINENO "configure"
4049 #include "confdefs.h"
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_c_preproc_warn_flag
4062 else
4063 ac_cpp_err=
4065 else
4066 ac_cpp_err=yes
4068 if test -z "$ac_cpp_err"; then
4069 # Broken: success on invalid input.
4070 continue
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4074 # Passes both tests.
4075 ac_preproc_ok=:
4076 break
4078 rm -f conftest.err conftest.$ac_ext
4080 done
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.err conftest.$ac_ext
4083 if $ac_preproc_ok; then
4084 break
4087 done
4088 ac_cv_prog_CPP=$CPP
4091 CPP=$ac_cv_prog_CPP
4092 else
4093 ac_cv_prog_CPP=$CPP
4095 echo "$as_me:$LINENO: result: $CPP" >&5
4096 echo "${ECHO_T}$CPP" >&6
4097 ac_preproc_ok=false
4098 for ac_c_preproc_warn_flag in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 #line $LINENO "configure"
4106 #include "confdefs.h"
4107 #include <assert.h>
4108 Syntax error
4109 _ACEOF
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 else
4121 ac_cpp_err=
4123 else
4124 ac_cpp_err=yes
4126 if test -z "$ac_cpp_err"; then
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 # Broken: fails on valid input.
4132 continue
4134 rm -f conftest.err conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether non-existent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line $LINENO "configure"
4140 #include "confdefs.h"
4141 #include <ac_nonexistent.h>
4142 _ACEOF
4143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } >/dev/null; then
4151 if test -s conftest.err; then
4152 ac_cpp_err=$ac_c_preproc_warn_flag
4153 else
4154 ac_cpp_err=
4156 else
4157 ac_cpp_err=yes
4159 if test -z "$ac_cpp_err"; then
4160 # Broken: success on invalid input.
4161 continue
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4169 rm -f conftest.err conftest.$ac_ext
4171 done
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.$ac_ext
4174 if $ac_preproc_ok; then
4176 else
4177 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4178 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4179 { (exit 1); exit 1; }; }
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4190 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4191 if test "${ac_cv_header_stdc+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 #line $LINENO "configure"
4196 #include "confdefs.h"
4197 #include <stdlib.h>
4198 #include <stdarg.h>
4199 #include <string.h>
4200 #include <float.h>
4202 _ACEOF
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 else
4214 ac_cpp_err=
4216 else
4217 ac_cpp_err=yes
4219 if test -z "$ac_cpp_err"; then
4220 ac_cv_header_stdc=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4226 rm -f conftest.err conftest.$ac_ext
4228 if test $ac_cv_header_stdc = yes; then
4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230 cat >conftest.$ac_ext <<_ACEOF
4231 #line $LINENO "configure"
4232 #include "confdefs.h"
4233 #include <string.h>
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "memchr" >/dev/null 2>&1; then
4239 else
4240 ac_cv_header_stdc=no
4242 rm -f conftest*
4246 if test $ac_cv_header_stdc = yes; then
4247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4250 #include "confdefs.h"
4251 #include <stdlib.h>
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "free" >/dev/null 2>&1; then
4257 else
4258 ac_cv_header_stdc=no
4260 rm -f conftest*
4264 if test $ac_cv_header_stdc = yes; then
4265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4266 if test "$cross_compiling" = yes; then
4268 else
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line $LINENO "configure"
4271 #include "confdefs.h"
4272 #include <ctype.h>
4273 #if ((' ' & 0x0FF) == 0x020)
4274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4276 #else
4277 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4278 || ('j' <= (c) && (c) <= 'r') \
4279 || ('s' <= (c) && (c) <= 'z'))
4280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4281 #endif
4283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4285 main ()
4287 int i;
4288 for (i = 0; i < 256; i++)
4289 if (XOR (islower (i), ISLOWER (i))
4290 || toupper (i) != TOUPPER (i))
4291 exit(2);
4292 exit (0);
4294 _ACEOF
4295 rm -f conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4307 else
4308 echo "$as_me: program exited with status $ac_status" >&5
4309 echo "$as_me: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4311 ( exit $ac_status )
4312 ac_cv_header_stdc=no
4314 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4320 if test $ac_cv_header_stdc = yes; then
4322 cat >>confdefs.h <<\_ACEOF
4323 #define STDC_HEADERS 1
4324 _ACEOF
4328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4339 inttypes.h stdint.h unistd.h
4341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 #line $LINENO "configure"
4349 #include "confdefs.h"
4350 $ac_includes_default
4352 #include <$ac_header>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 eval "$as_ac_Header=yes"
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 eval "$as_ac_Header=no"
4372 rm -f conftest.$ac_objext conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377 cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379 _ACEOF
4383 done
4387 for ac_header in dlfcn.h
4389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4391 echo "$as_me:$LINENO: checking for $ac_header" >&5
4392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4398 else
4399 # Is the header compilable?
4400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 #include "confdefs.h"
4405 $ac_includes_default
4406 #include <$ac_header>
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_header_compiler=yes
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 ac_header_compiler=no
4426 rm -f conftest.$ac_objext conftest.$ac_ext
4427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4428 echo "${ECHO_T}$ac_header_compiler" >&6
4430 # Is the header present?
4431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line $LINENO "configure"
4435 #include "confdefs.h"
4436 #include <$ac_header>
4437 _ACEOF
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } >/dev/null; then
4446 if test -s conftest.err; then
4447 ac_cpp_err=$ac_c_preproc_warn_flag
4448 else
4449 ac_cpp_err=
4451 else
4452 ac_cpp_err=yes
4454 if test -z "$ac_cpp_err"; then
4455 ac_header_preproc=yes
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4459 ac_header_preproc=no
4461 rm -f conftest.err conftest.$ac_ext
4462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4463 echo "${ECHO_T}$ac_header_preproc" >&6
4465 # So? What about this header?
4466 case $ac_header_compiler:$ac_header_preproc in
4467 yes:no )
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4472 no:yes )
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4479 esac
4480 echo "$as_me:$LINENO: checking for $ac_header" >&5
4481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 eval "$as_ac_Header=$ac_header_preproc"
4487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4492 cat >>confdefs.h <<_ACEOF
4493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4494 _ACEOF
4498 done
4500 ac_ext=cc
4501 ac_cpp='$CXXCPP $CPPFLAGS'
4502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4505 if test -n "$ac_tool_prefix"; then
4506 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_CXX+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 if test -n "$CXX"; then
4516 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4534 CXX=$ac_cv_prog_CXX
4535 if test -n "$CXX"; then
4536 echo "$as_me:$LINENO: result: $CXX" >&5
4537 echo "${ECHO_T}$CXX" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4543 test -n "$CXX" && break
4544 done
4546 if test -z "$CXX"; then
4547 ac_ct_CXX=$CXX
4548 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4550 # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy $ac_prog; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test -n "$ac_ct_CXX"; then
4558 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_ac_ct_CXX="$ac_prog"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577 if test -n "$ac_ct_CXX"; then
4578 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579 echo "${ECHO_T}$ac_ct_CXX" >&6
4580 else
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4585 test -n "$ac_ct_CXX" && break
4586 done
4587 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4589 CXX=$ac_ct_CXX
4593 # Provide some information about the compiler.
4594 echo "$as_me:$LINENO:" \
4595 "checking for C++ compiler version" >&5
4596 ac_compiler=`set X $ac_compile; echo $2`
4597 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4598 (eval $ac_compiler --version </dev/null >&5) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }
4602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4603 (eval $ac_compiler -v </dev/null >&5) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }
4607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4608 (eval $ac_compiler -V </dev/null >&5) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }
4613 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4614 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4615 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4620 #include "confdefs.h"
4623 main ()
4625 #ifndef __GNUC__
4626 choke me
4627 #endif
4630 return 0;
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_compiler_gnu=yes
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4649 ac_compiler_gnu=no
4651 rm -f conftest.$ac_objext conftest.$ac_ext
4652 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4655 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4656 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4657 GXX=`test $ac_compiler_gnu = yes && echo yes`
4658 ac_test_CXXFLAGS=${CXXFLAGS+set}
4659 ac_save_CXXFLAGS=$CXXFLAGS
4660 CXXFLAGS="-g"
4661 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4662 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4663 if test "${ac_cv_prog_cxx_g+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4668 #include "confdefs.h"
4671 main ()
4675 return 0;
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_prog_cxx_g=yes
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 ac_cv_prog_cxx_g=no
4696 rm -f conftest.$ac_objext conftest.$ac_ext
4698 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4699 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4700 if test "$ac_test_CXXFLAGS" = set; then
4701 CXXFLAGS=$ac_save_CXXFLAGS
4702 elif test $ac_cv_prog_cxx_g = yes; then
4703 if test "$GXX" = yes; then
4704 CXXFLAGS="-g -O2"
4705 else
4706 CXXFLAGS="-g"
4708 else
4709 if test "$GXX" = yes; then
4710 CXXFLAGS="-O2"
4711 else
4712 CXXFLAGS=
4715 for ac_declaration in \
4717 '#include <stdlib.h>' \
4718 'extern "C" void std::exit (int) throw (); using std::exit;' \
4719 'extern "C" void std::exit (int); using std::exit;' \
4720 'extern "C" void exit (int) throw ();' \
4721 'extern "C" void exit (int);' \
4722 'void exit (int);'
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line $LINENO "configure"
4726 #include "confdefs.h"
4727 #include <stdlib.h>
4728 $ac_declaration
4730 main ()
4732 exit (42);
4734 return 0;
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 continue
4755 rm -f conftest.$ac_objext conftest.$ac_ext
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4758 #include "confdefs.h"
4759 $ac_declaration
4761 main ()
4763 exit (42);
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 break
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 rm -f conftest.$ac_objext conftest.$ac_ext
4786 done
4787 rm -f conftest*
4788 if test -n "$ac_declaration"; then
4789 echo '#ifdef __cplusplus' >>confdefs.h
4790 echo $ac_declaration >>confdefs.h
4791 echo '#endif' >>confdefs.h
4794 ac_ext=cc
4795 ac_cpp='$CXXCPP $CPPFLAGS'
4796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800 depcc="$CXX" am_compiler_list=
4802 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4803 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4804 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4808 # We make a subdir and do the tests there. Otherwise we can end up
4809 # making bogus files that we don't know about and never remove. For
4810 # instance it was reported that on HP-UX the gcc test will end up
4811 # making a dummy file named `D' -- because `-MD' means `put the output
4812 # in D'.
4813 mkdir conftest.dir
4814 # Copy depcomp to subdir because otherwise we won't find it if we're
4815 # using a relative directory.
4816 cp "$am_depcomp" conftest.dir
4817 cd conftest.dir
4819 am_cv_CXX_dependencies_compiler_type=none
4820 if test "$am_compiler_list" = ""; then
4821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4823 for depmode in $am_compiler_list; do
4824 # We need to recreate these files for each test, as the compiler may
4825 # overwrite some of them when testing with obscure command lines.
4826 # This happens at least with the AIX C compiler.
4827 echo '#include "conftest.h"' > conftest.c
4828 echo 'int i;' > conftest.h
4829 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4831 case $depmode in
4832 nosideeffect)
4833 # after this tag, mechanisms are not by side-effect, so they'll
4834 # only be used when explicitly requested
4835 if test "x$enable_dependency_tracking" = xyes; then
4836 continue
4837 else
4838 break
4841 none) break ;;
4842 esac
4843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4844 # mode. It turns out that the SunPro C++ compiler does not properly
4845 # handle `-M -o', and we need to detect this.
4846 if depmode=$depmode \
4847 source=conftest.c object=conftest.o \
4848 depfile=conftest.Po tmpdepfile=conftest.TPo \
4849 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4850 grep conftest.h conftest.Po > /dev/null 2>&1 &&
4851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852 am_cv_CXX_dependencies_compiler_type=$depmode
4853 break
4855 done
4857 cd ..
4858 rm -rf conftest.dir
4859 else
4860 am_cv_CXX_dependencies_compiler_type=none
4864 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4865 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4866 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4869 ac_ext=cc
4870 ac_cpp='$CXXCPP $CPPFLAGS'
4871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4874 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4875 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4876 if test -z "$CXXCPP"; then
4877 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 # Double quotes because CXXCPP needs to be expanded
4881 for CXXCPP in "$CXX -E" "/lib/cpp"
4883 ac_preproc_ok=false
4884 for ac_cxx_preproc_warn_flag in '' yes
4886 # Use a header file that comes with gcc, so configuring glibc
4887 # with a fresh cross-compiler works.
4888 # On the NeXT, cc -E runs the code through the compiler's parser,
4889 # not just through cpp. "Syntax error" is here to catch this case.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4892 #include "confdefs.h"
4893 #include <assert.h>
4894 Syntax error
4895 _ACEOF
4896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null; then
4904 if test -s conftest.err; then
4905 ac_cpp_err=$ac_cxx_preproc_warn_flag
4906 else
4907 ac_cpp_err=
4909 else
4910 ac_cpp_err=yes
4912 if test -z "$ac_cpp_err"; then
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 # Broken: fails on valid input.
4918 continue
4920 rm -f conftest.err conftest.$ac_ext
4922 # OK, works on sane cases. Now check whether non-existent headers
4923 # can be detected and how.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 #include "confdefs.h"
4927 #include <ac_nonexistent.h>
4928 _ACEOF
4929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null; then
4937 if test -s conftest.err; then
4938 ac_cpp_err=$ac_cxx_preproc_warn_flag
4939 else
4940 ac_cpp_err=
4942 else
4943 ac_cpp_err=yes
4945 if test -z "$ac_cpp_err"; then
4946 # Broken: success on invalid input.
4947 continue
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4951 # Passes both tests.
4952 ac_preproc_ok=:
4953 break
4955 rm -f conftest.err conftest.$ac_ext
4957 done
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then
4961 break
4964 done
4965 ac_cv_prog_CXXCPP=$CXXCPP
4968 CXXCPP=$ac_cv_prog_CXXCPP
4969 else
4970 ac_cv_prog_CXXCPP=$CXXCPP
4972 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4973 echo "${ECHO_T}$CXXCPP" >&6
4974 ac_preproc_ok=false
4975 for ac_cxx_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 #include "confdefs.h"
4984 #include <assert.h>
4985 Syntax error
4986 _ACEOF
4987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
4997 else
4998 ac_cpp_err=
5000 else
5001 ac_cpp_err=yes
5003 if test -z "$ac_cpp_err"; then
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 # Broken: fails on valid input.
5009 continue
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether non-existent headers
5014 # can be detected and how.
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null; then
5028 if test -s conftest.err; then
5029 ac_cpp_err=$ac_cxx_preproc_warn_flag
5030 else
5031 ac_cpp_err=
5033 else
5034 ac_cpp_err=yes
5036 if test -z "$ac_cpp_err"; then
5037 # Broken: success on invalid input.
5038 continue
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 # Passes both tests.
5043 ac_preproc_ok=:
5044 break
5046 rm -f conftest.err conftest.$ac_ext
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5053 else
5054 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
5055 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
5056 { (exit 1); exit 1; }; }
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
5066 ac_ext=f
5067 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5068 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5070 if test -n "$ac_tool_prefix"; then
5071 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_prog_F77+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 if test -n "$F77"; then
5081 ac_cv_prog_F77="$F77" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5094 done
5095 done
5099 F77=$ac_cv_prog_F77
5100 if test -n "$F77"; then
5101 echo "$as_me:$LINENO: result: $F77" >&5
5102 echo "${ECHO_T}$F77" >&6
5103 else
5104 echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5108 test -n "$F77" && break
5109 done
5111 if test -z "$F77"; then
5112 ac_ct_F77=$F77
5113 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 echo "$as_me:$LINENO: checking for $ac_word" >&5
5118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5119 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 if test -n "$ac_ct_F77"; then
5123 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_ac_ct_F77="$ac_prog"
5133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5136 done
5137 done
5141 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5142 if test -n "$ac_ct_F77"; then
5143 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5144 echo "${ECHO_T}$ac_ct_F77" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5150 test -n "$ac_ct_F77" && break
5151 done
5153 F77=$ac_ct_F77
5157 # Provide some information about the compiler.
5158 echo "$as_me:5158:" \
5159 "checking for Fortran 77 compiler version" >&5
5160 ac_compiler=`set X $ac_compile; echo $2`
5161 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5162 (eval $ac_compiler --version </dev/null >&5) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }
5166 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5167 (eval $ac_compiler -v </dev/null >&5) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }
5171 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5172 (eval $ac_compiler -V </dev/null >&5) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }
5177 # If we don't use `.F' as extension, the preprocessor is not run on the
5178 # input file.
5179 ac_save_ext=$ac_ext
5180 ac_ext=F
5181 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5182 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5183 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 cat >conftest.$ac_ext <<_ACEOF
5187 program main
5188 #ifndef __GNUC__
5189 choke me
5190 #endif
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_compiler_gnu=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 ac_compiler_gnu=no
5212 rm -f conftest.$ac_objext conftest.$ac_ext
5213 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5216 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5217 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5218 ac_ext=$ac_save_ext
5219 G77=`test $ac_compiler_gnu = yes && echo yes`
5220 ac_test_FFLAGS=${FFLAGS+set}
5221 ac_save_FFLAGS=$FFLAGS
5222 FFLAGS=
5223 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5224 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5225 if test "${ac_cv_prog_f77_g+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 FFLAGS=-g
5229 cat >conftest.$ac_ext <<_ACEOF
5230 program main
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_cv_prog_f77_g=yes
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 ac_cv_prog_f77_g=no
5252 rm -f conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5256 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5257 if test "$ac_test_FFLAGS" = set; then
5258 FFLAGS=$ac_save_FFLAGS
5259 elif test $ac_cv_prog_f77_g = yes; then
5260 if test "$G77" = yes; then
5261 FFLAGS="-g -O2"
5262 else
5263 FFLAGS="-g"
5265 else
5266 if test "$G77" = yes; then
5267 FFLAGS="-O2"
5268 else
5269 FFLAGS=
5272 ac_ext=c
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5282 # find the maximum length of command line arguments
5283 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5284 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5289 testring="ABCD"
5291 case $build_os in
5292 msdosdjgpp*)
5293 # On DJGPP, this test can blow up pretty badly due to problems in libc
5294 # (any single argument exceeding 2000 bytes causes a buffer overrun
5295 # during glob expansion). Even if it were fixed, the result of this
5296 # check would be larger than it should be.
5297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5300 gnu*)
5301 # Under GNU Hurd, this test is not required because there is
5302 # no limit to the length of command line arguments.
5303 # Libtool will interpret -1 as no limit whatsoever
5304 lt_cv_sys_max_cmd_len=-1;
5307 cygwin* | mingw*)
5308 # On Win9x/ME, this test blows up -- it succeeds, but takes
5309 # about 5 minutes as the teststring grows exponentially.
5310 # Worse, since 9x/ME are not pre-emptively multitasking,
5311 # you end up with a "frozen" computer, even though with patience
5312 # the test eventually succeeds (with a max line length of 256k).
5313 # Instead, let's just punt: use the minimum linelength reported by
5314 # all of the supported platforms: 8192 (on NT/2K/XP).
5315 lt_cv_sys_max_cmd_len=8192;
5319 # If test is not a shell built-in, we'll probably end up computing a
5320 # maximum length that is only half of the actual maximum length, but
5321 # we can't tell.
5322 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5323 = "XX$testring") >/dev/null 2>&1 &&
5324 new_result=`expr "X$testring" : ".*" 2>&1` &&
5325 lt_cv_sys_max_cmd_len=$new_result &&
5326 test $i != 17 # 1/2 MB should be enough
5328 i=`expr $i + 1`
5329 testring=$testring$testring
5330 done
5331 testring=
5332 # Add a significant safety factor because C++ compilers can tack on massive
5333 # amounts of additional arguments before passing them to the linker.
5334 # It appears as though 1/2 is a usable value.
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5337 esac
5341 if test -n $lt_cv_sys_max_cmd_len ; then
5342 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5343 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5344 else
5345 echo "$as_me:$LINENO: result: none" >&5
5346 echo "${ECHO_T}none" >&6
5352 # Check for command to grab the raw symbol name followed by C symbol from nm.
5353 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5354 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5355 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5359 # These are sane defaults that work on at least a few old systems.
5360 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5362 # Character class describing NM global symbol codes.
5363 symcode='[BCDEGRST]'
5365 # Regexp to match symbols that can be accessed directly from C.
5366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5368 # Transform the above into a raw symbol and a C symbol.
5369 symxfrm='\1 \2\3 \3'
5371 # Transform an extracted symbol line into a proper C declaration
5372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5374 # Transform an extracted symbol line into symbol name and symbol address
5375 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'"
5377 # Define system-specific variables.
5378 case $host_os in
5379 aix*)
5380 symcode='[BCDT]'
5382 cygwin* | mingw* | pw32*)
5383 symcode='[ABCDGISTW]'
5385 hpux*) # Its linker distinguishes data from code symbols
5386 if test "$host_cpu" = ia64; then
5387 symcode='[ABCDEGRST]'
5389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5390 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'"
5392 irix* | nonstopux*)
5393 symcode='[BCDEGRST]'
5395 osf*)
5396 symcode='[BCDEGQRST]'
5398 solaris* | sysv5*)
5399 symcode='[BDT]'
5401 sysv4)
5402 symcode='[DFNSTU]'
5404 esac
5406 # Handle CRLF in mingw tool chain
5407 opt_cr=
5408 case $build_os in
5409 mingw*)
5410 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5412 esac
5414 # If we're using GNU nm, then use its standard symbol codes.
5415 case `$NM -V 2>&1` in
5416 *GNU* | *'with BFD'*)
5417 symcode='[ABCDGISTW]' ;;
5418 esac
5420 # Try without a prefix undercore, then with it.
5421 for ac_symprfx in "" "_"; do
5423 # Write the raw and C identifiers.
5424 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5426 # Check to see that the pipe works correctly.
5427 pipe_works=no
5429 rm -f conftest*
5430 cat > conftest.$ac_ext <<EOF
5431 #ifdef __cplusplus
5432 extern "C" {
5433 #endif
5434 char nm_test_var;
5435 void nm_test_func(){}
5436 #ifdef __cplusplus
5438 #endif
5439 int main(){nm_test_var='a';nm_test_func();return(0);}
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; then
5447 # Now try to grab the symbols.
5448 nlist=conftest.nm
5449 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5450 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && test -s "$nlist"; then
5454 # Try sorting and uniquifying the output.
5455 if sort "$nlist" | uniq > "$nlist"T; then
5456 mv -f "$nlist"T "$nlist"
5457 else
5458 rm -f "$nlist"T
5461 # Make sure that we snagged all the symbols we need.
5462 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5463 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5464 cat <<EOF > conftest.$ac_ext
5465 #ifdef __cplusplus
5466 extern "C" {
5467 #endif
5470 # Now generate the symbol file.
5471 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5473 cat <<EOF >> conftest.$ac_ext
5474 #if defined (__STDC__) && __STDC__
5475 # define lt_ptr_t void *
5476 #else
5477 # define lt_ptr_t char *
5478 # define const
5479 #endif
5481 /* The mapping between symbol names and symbols. */
5482 const struct {
5483 const char *name;
5484 lt_ptr_t address;
5486 lt_preloaded_symbols[] =
5489 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5490 cat <<\EOF >> conftest.$ac_ext
5491 {0, (lt_ptr_t) 0}
5494 #ifdef __cplusplus
5496 #endif
5498 # Now try linking the two files.
5499 mv conftest.$ac_objext conftstm.$ac_objext
5500 lt_save_LIBS="$LIBS"
5501 lt_save_CFLAGS="$CFLAGS"
5502 LIBS="conftstm.$ac_objext"
5503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5509 pipe_works=yes
5511 LIBS="$lt_save_LIBS"
5512 CFLAGS="$lt_save_CFLAGS"
5513 else
5514 echo "cannot find nm_test_func in $nlist" >&5
5516 else
5517 echo "cannot find nm_test_var in $nlist" >&5
5519 else
5520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5522 else
5523 echo "$progname: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5526 rm -f conftest* conftst*
5528 # Do not use the global_symbol_pipe unless it works.
5529 if test "$pipe_works" = yes; then
5530 break
5531 else
5532 lt_cv_sys_global_symbol_pipe=
5534 done
5538 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5539 lt_cv_sys_global_symbol_to_cdecl=
5541 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5542 echo "$as_me:$LINENO: result: failed" >&5
5543 echo "${ECHO_T}failed" >&6
5544 else
5545 echo "$as_me:$LINENO: result: ok" >&5
5546 echo "${ECHO_T}ok" >&6
5549 echo "$as_me:$LINENO: checking for objdir" >&5
5550 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5551 if test "${lt_cv_objdir+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 rm -f .libs 2>/dev/null
5555 mkdir .libs 2>/dev/null
5556 if test -d .libs; then
5557 lt_cv_objdir=.libs
5558 else
5559 # MS-DOS does not allow filenames that begin with a dot.
5560 lt_cv_objdir=_libs
5562 rmdir .libs 2>/dev/null
5564 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5565 echo "${ECHO_T}$lt_cv_objdir" >&6
5566 objdir=$lt_cv_objdir
5572 case $host_os in
5573 aix3*)
5574 # AIX sometimes has problems with the GCC collect2 program. For some
5575 # reason, if we set the COLLECT_NAMES environment variable, the problems
5576 # vanish in a puff of smoke.
5577 if test "X${COLLECT_NAMES+set}" != Xset; then
5578 COLLECT_NAMES=
5579 export COLLECT_NAMES
5582 esac
5584 # Sed substitution that helps us do robust quoting. It backslashifies
5585 # metacharacters that are still active within double-quoted strings.
5586 Xsed='sed -e s/^X//'
5587 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5589 # Same as above, but do not quote variable references.
5590 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5592 # Sed substitution to delay expansion of an escaped shell variable in a
5593 # double_quote_subst'ed string.
5594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5596 # Sed substitution to avoid accidental globbing in evaled expressions
5597 no_glob_subst='s/\*/\\\*/g'
5599 # Constants:
5600 rm="rm -f"
5602 # Global variables:
5603 default_ofile=libtool
5604 can_build_shared=yes
5606 # All known linkers require a `.a' archive for static linking (except M$VC,
5607 # which needs '.lib').
5608 libext=a
5609 ltmain="$ac_aux_dir/ltmain.sh"
5610 ofile="$default_ofile"
5611 with_gnu_ld="$lt_cv_prog_gnu_ld"
5613 if test -n "$ac_tool_prefix"; then
5614 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5615 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_prog_RANLIB+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 if test -n "$RANLIB"; then
5622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5640 RANLIB=$ac_cv_prog_RANLIB
5641 if test -n "$RANLIB"; then
5642 echo "$as_me:$LINENO: result: $RANLIB" >&5
5643 echo "${ECHO_T}$RANLIB" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5650 if test -z "$ac_cv_prog_RANLIB"; then
5651 ac_ct_RANLIB=$RANLIB
5652 # Extract the first word of "ranlib", so it can be a program name with args.
5653 set dummy ranlib; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 if test -n "$ac_ct_RANLIB"; then
5660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_ac_ct_RANLIB="ranlib"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5676 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5680 if test -n "$ac_ct_RANLIB"; then
5681 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5682 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5683 else
5684 echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6
5688 RANLIB=$ac_ct_RANLIB
5689 else
5690 RANLIB="$ac_cv_prog_RANLIB"
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}strip; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_prog_STRIP+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 if test -n "$STRIP"; then
5702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5720 STRIP=$ac_cv_prog_STRIP
5721 if test -n "$STRIP"; then
5722 echo "$as_me:$LINENO: result: $STRIP" >&5
5723 echo "${ECHO_T}$STRIP" >&6
5724 else
5725 echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6
5730 if test -z "$ac_cv_prog_STRIP"; then
5731 ac_ct_STRIP=$STRIP
5732 # Extract the first word of "strip", so it can be a program name with args.
5733 set dummy strip; ac_word=$2
5734 echo "$as_me:$LINENO: checking for $ac_word" >&5
5735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 if test -n "$ac_ct_STRIP"; then
5740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_ac_ct_STRIP="strip"
5750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5753 done
5754 done
5756 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5760 if test -n "$ac_ct_STRIP"; then
5761 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5762 echo "${ECHO_T}$ac_ct_STRIP" >&6
5763 else
5764 echo "$as_me:$LINENO: result: no" >&5
5765 echo "${ECHO_T}no" >&6
5768 STRIP=$ac_ct_STRIP
5769 else
5770 STRIP="$ac_cv_prog_STRIP"
5774 old_CC="$CC"
5775 old_CFLAGS="$CFLAGS"
5777 # Set sane defaults for various variables
5778 test -z "$AR" && AR=ar
5779 test -z "$AR_FLAGS" && AR_FLAGS=cru
5780 test -z "$AS" && AS=as
5781 test -z "$CC" && CC=cc
5782 test -z "$LTCC" && LTCC=$CC
5783 test -z "$DLLTOOL" && DLLTOOL=dlltool
5784 test -z "$LD" && LD=ld
5785 test -z "$LN_S" && LN_S="ln -s"
5786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5787 test -z "$NM" && NM=nm
5788 test -z "$SED" && SED=sed
5789 test -z "$OBJDUMP" && OBJDUMP=objdump
5790 test -z "$RANLIB" && RANLIB=:
5791 test -z "$STRIP" && STRIP=:
5792 test -z "$ac_objext" && ac_objext=o
5794 # Determine commands to create old-style static archives.
5795 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5796 old_postinstall_cmds='chmod 644 $oldlib'
5797 old_postuninstall_cmds=
5799 if test -n "$RANLIB"; then
5800 case $host_os in
5801 openbsd*)
5802 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5805 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5807 esac
5808 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5811 # Only perform the check for file, if the check method requires it
5812 case $deplibs_check_method in
5813 file_magic*)
5814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5815 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5816 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 case $MAGIC_CMD in
5821 [\\/*] | ?:[\\/]*)
5822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5825 lt_save_MAGIC_CMD="$MAGIC_CMD"
5826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5828 for ac_dir in $ac_dummy; do
5829 IFS="$lt_save_ifs"
5830 test -z "$ac_dir" && ac_dir=.
5831 if test -f $ac_dir/${ac_tool_prefix}file; then
5832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5833 if test -n "$file_magic_test_file"; then
5834 case $deplibs_check_method in
5835 "file_magic "*)
5836 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5839 $EGREP "$file_magic_regex" > /dev/null; then
5841 else
5842 cat <<EOF 1>&2
5844 *** Warning: the command libtool uses to detect shared libraries,
5845 *** $file_magic_cmd, produces output that libtool cannot recognize.
5846 *** The result is that libtool may fail to recognize shared libraries
5847 *** as such. This will affect the creation of libtool libraries that
5848 *** depend on shared libraries, but programs linked with such libtool
5849 *** libraries will work regardless of this problem. Nevertheless, you
5850 *** may want to report the problem to your system manager and/or to
5851 *** bug-libtool@gnu.org
5854 fi ;;
5855 esac
5857 break
5859 done
5860 IFS="$lt_save_ifs"
5861 MAGIC_CMD="$lt_save_MAGIC_CMD"
5863 esac
5866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5867 if test -n "$MAGIC_CMD"; then
5868 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5869 echo "${ECHO_T}$MAGIC_CMD" >&6
5870 else
5871 echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5875 if test -z "$lt_cv_path_MAGIC_CMD"; then
5876 if test -n "$ac_tool_prefix"; then
5877 echo "$as_me:$LINENO: checking for file" >&5
5878 echo $ECHO_N "checking for file... $ECHO_C" >&6
5879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 case $MAGIC_CMD in
5883 [\\/*] | ?:[\\/]*)
5884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5887 lt_save_MAGIC_CMD="$MAGIC_CMD"
5888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5890 for ac_dir in $ac_dummy; do
5891 IFS="$lt_save_ifs"
5892 test -z "$ac_dir" && ac_dir=.
5893 if test -f $ac_dir/file; then
5894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5895 if test -n "$file_magic_test_file"; then
5896 case $deplibs_check_method in
5897 "file_magic "*)
5898 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5901 $EGREP "$file_magic_regex" > /dev/null; then
5903 else
5904 cat <<EOF 1>&2
5906 *** Warning: the command libtool uses to detect shared libraries,
5907 *** $file_magic_cmd, produces output that libtool cannot recognize.
5908 *** The result is that libtool may fail to recognize shared libraries
5909 *** as such. This will affect the creation of libtool libraries that
5910 *** depend on shared libraries, but programs linked with such libtool
5911 *** libraries will work regardless of this problem. Nevertheless, you
5912 *** may want to report the problem to your system manager and/or to
5913 *** bug-libtool@gnu.org
5916 fi ;;
5917 esac
5919 break
5921 done
5922 IFS="$lt_save_ifs"
5923 MAGIC_CMD="$lt_save_MAGIC_CMD"
5925 esac
5928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5929 if test -n "$MAGIC_CMD"; then
5930 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5931 echo "${ECHO_T}$MAGIC_CMD" >&6
5932 else
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5937 else
5938 MAGIC_CMD=:
5944 esac
5946 enable_dlopen=no
5947 enable_win32_dll=yes
5949 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5950 if test "${enable_libtool_lock+set}" = set; then
5951 enableval="$enable_libtool_lock"
5954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5957 # Check whether --with-pic or --without-pic was given.
5958 if test "${with_pic+set}" = set; then
5959 withval="$with_pic"
5960 pic_mode="$withval"
5961 else
5962 pic_mode=default
5964 test -z "$pic_mode" && pic_mode=default
5966 # Use C for the default configuration in the libtool script
5967 tagname=
5968 lt_save_CC="$CC"
5969 ac_ext=c
5970 ac_cpp='$CPP $CPPFLAGS'
5971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 # Source file extension for C test sources.
5977 ac_ext=c
5979 # Object file extension for compiled C test sources.
5980 objext=o
5981 objext=$objext
5983 # Code to be used in simple compile tests
5984 lt_simple_compile_test_code="int some_variable = 0;\n"
5986 # Code to be used in simple link tests
5987 lt_simple_link_test_code='int main(){return(0);}\n'
5990 # If no C compiler was specified, use CC.
5991 LTCC=${LTCC-"$CC"}
5993 # Allow CC to be a program name with arguments.
5994 set dummy $CC
5995 compiler="$2"
5999 # Check for any special shared library compilation flags.
6001 lt_prog_cc_shlib=
6002 if test "$GCC" = no; then
6003 case $host_os in
6004 sco3.2v5*)
6005 lt_prog_cc_shlib='-belf'
6007 esac
6009 if test -n "$lt_prog_cc_shlib"; then
6010 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6011 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6012 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6013 else
6014 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6015 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6016 lt_cv_prog_cc_can_build_shared=no
6022 # Check to make sure the static flag actually works.
6024 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6025 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6026 if test "${lt_prog_compiler_static_works+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 lt_prog_compiler_static_works=no
6030 save_LDFLAGS="$LDFLAGS"
6031 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6032 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6034 # The compiler can only warn and ignore the option if not recognized
6035 # So say no if there are warnings
6036 if test -s conftest.err; then
6037 # Append any errors to the config.log.
6038 cat conftest.err 1>&5
6039 else
6040 lt_prog_compiler_static_works=yes
6043 $rm conftest*
6044 LDFLAGS="$save_LDFLAGS"
6047 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6048 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6050 if test x"$lt_prog_compiler_static_works" = xyes; then
6052 else
6053 lt_prog_compiler_static=
6059 lt_prog_compiler_no_builtin_flag=
6061 if test "$GCC" = yes; then
6062 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6064 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6065 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 lt_cv_prog_compiler_rtti_exceptions=no
6070 ac_outfile=conftest.$ac_objext
6071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6072 lt_compiler_flag="-fno-rtti -fno-exceptions"
6073 # Insert the option either (1) after the last *FLAGS variable, or
6074 # (2) before a word containing "conftest.", or (3) at the end.
6075 # Note that $ac_compile itself does not contain backslashes and begins
6076 # with a dollar sign (not a hyphen), so the echo should work correctly.
6077 # The option is referenced via a variable to avoid confusing sed.
6078 lt_compile=`echo "$ac_compile" | sed \
6079 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
6080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6081 -e 's:$: $lt_compiler_flag:'`
6082 (eval echo "\"\$as_me:6082: $lt_compile\"" >&5)
6083 (eval "$lt_compile" 2>conftest.err)
6084 ac_status=$?
6085 cat conftest.err >&5
6086 echo "$as_me:6086: \$? = $ac_status" >&5
6087 if (exit $ac_status) && test -s "$ac_outfile"; then
6088 # The compiler can only warn and ignore the option if not recognized
6089 # So say no if there are warnings
6090 if test ! -s conftest.err; then
6091 lt_cv_prog_compiler_rtti_exceptions=yes
6094 $rm conftest*
6097 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6098 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6102 else
6108 lt_prog_compiler_wl=
6109 lt_prog_compiler_pic=
6110 lt_prog_compiler_static=
6112 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6113 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6115 if test "$GCC" = yes; then
6116 lt_prog_compiler_wl='-Wl,'
6117 lt_prog_compiler_static='-static'
6119 case $host_os in
6120 aix*)
6121 # All AIX code is PIC.
6122 if test "$host_cpu" = ia64; then
6123 # AIX 5 now supports IA64 processor
6124 lt_prog_compiler_static='-Bstatic'
6128 amigaos*)
6129 # FIXME: we need at least 68020 code to build shared libraries, but
6130 # adding the `-m68020' flag to GCC prevents building anything better,
6131 # like `-m68040'.
6132 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6135 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6136 # PIC is the default for these OSes.
6139 mingw* | pw32* | os2*)
6140 # This hack is so that the source file can tell whether it is being
6141 # built for inclusion in a dll (and should export symbols for example).
6142 lt_prog_compiler_pic='-DDLL_EXPORT'
6145 darwin* | rhapsody*)
6146 # PIC is the default on this platform
6147 # Common symbols not allowed in MH_DYLIB files
6148 lt_prog_compiler_pic='-fno-common'
6151 msdosdjgpp*)
6152 # Just because we use GCC doesn't mean we suddenly get shared libraries
6153 # on systems that don't support them.
6154 lt_prog_compiler_can_build_shared=no
6155 enable_shared=no
6158 sysv4*MP*)
6159 if test -d /usr/nec; then
6160 lt_prog_compiler_pic=-Kconform_pic
6164 hpux*)
6165 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
6166 if test "$host_cpu" != ia64; then
6167 lt_prog_compiler_pic='-fPIC'
6172 lt_prog_compiler_pic='-fPIC'
6174 esac
6175 else
6176 # PORTME Check for flag to pass linker flags through the system compiler.
6177 case $host_os in
6178 aix*)
6179 lt_prog_compiler_wl='-Wl,'
6180 if test "$host_cpu" = ia64; then
6181 # AIX 5 now supports IA64 processor
6182 lt_prog_compiler_static='-Bstatic'
6183 else
6184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6188 mingw* | pw32* | os2*)
6189 # This hack is so that the source file can tell whether it is being
6190 # built for inclusion in a dll (and should export symbols for example).
6191 lt_prog_compiler_pic='-DDLL_EXPORT'
6194 hpux9* | hpux10* | hpux11*)
6195 lt_prog_compiler_wl='-Wl,'
6196 if test "$host_cpu" != ia64; then
6197 lt_prog_compiler_pic='+Z'
6199 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6200 lt_prog_compiler_static='${wl}-a ${wl}archive'
6203 irix5* | irix6* | nonstopux*)
6204 lt_prog_compiler_wl='-Wl,'
6205 # PIC (with -KPIC) is the default.
6206 lt_prog_compiler_static='-non_shared'
6209 newsos6)
6210 lt_prog_compiler_pic='-KPIC'
6211 lt_prog_compiler_static='-Bstatic'
6214 osf3* | osf4* | osf5*)
6215 lt_prog_compiler_wl='-Wl,'
6216 # All OSF/1 code is PIC.
6217 lt_prog_compiler_static='-non_shared'
6220 sco3.2v5*)
6221 lt_prog_compiler_pic='-Kpic'
6222 lt_prog_compiler_static='-dn'
6225 solaris*)
6226 lt_prog_compiler_wl='-Wl,'
6227 lt_prog_compiler_pic='-KPIC'
6228 lt_prog_compiler_static='-Bstatic'
6231 sunos4*)
6232 lt_prog_compiler_wl='-Qoption ld '
6233 lt_prog_compiler_pic='-PIC'
6234 lt_prog_compiler_static='-Bstatic'
6237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6238 lt_prog_compiler_wl='-Wl,'
6239 lt_prog_compiler_pic='-KPIC'
6240 lt_prog_compiler_static='-Bstatic'
6243 sysv4*MP*)
6244 if test -d /usr/nec ;then
6245 lt_prog_compiler_pic='-Kconform_pic'
6246 lt_prog_compiler_static='-Bstatic'
6250 uts4*)
6251 lt_prog_compiler_pic='-pic'
6252 lt_prog_compiler_static='-Bstatic'
6256 lt_prog_compiler_can_build_shared=no
6258 esac
6261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6262 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6265 # Check to make sure the PIC flag actually works.
6267 if test -n "$lt_prog_compiler_pic"; then
6268 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6269 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6270 if test "${lt_prog_compiler_pic_works+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 lt_prog_compiler_pic_works=no
6274 ac_outfile=conftest.$ac_objext
6275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6277 # Insert the option either (1) after the last *FLAGS variable, or
6278 # (2) before a word containing "conftest.", or (3) at the end.
6279 # Note that $ac_compile itself does not contain backslashes and begins
6280 # with a dollar sign (not a hyphen), so the echo should work correctly.
6281 # The option is referenced via a variable to avoid confusing sed.
6282 lt_compile=`echo "$ac_compile" | sed \
6283 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
6284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6285 -e 's:$: $lt_compiler_flag:'`
6286 (eval echo "\"\$as_me:6286: $lt_compile\"" >&5)
6287 (eval "$lt_compile" 2>conftest.err)
6288 ac_status=$?
6289 cat conftest.err >&5
6290 echo "$as_me:6290: \$? = $ac_status" >&5
6291 if (exit $ac_status) && test -s "$ac_outfile"; then
6292 # The compiler can only warn and ignore the option if not recognized
6293 # So say no if there are warnings
6294 if test ! -s conftest.err; then
6295 lt_prog_compiler_pic_works=yes
6298 $rm conftest*
6301 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6302 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6304 if test x"$lt_prog_compiler_pic_works" = xyes; then
6305 case $lt_prog_compiler_pic in
6306 "" | " "*) ;;
6307 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6308 esac
6309 else
6310 lt_prog_compiler_pic=
6311 lt_prog_compiler_can_build_shared=no
6315 case "$host_os" in
6316 # For platforms which do not support PIC, -DPIC is meaningless:
6317 *djgpp*)
6318 lt_prog_compiler_pic=
6321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6323 esac
6325 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6326 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6327 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 lt_cv_prog_compiler_c_o=no
6331 $rm -r conftest 2>/dev/null
6332 mkdir conftest
6333 cd conftest
6334 mkdir out
6335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6337 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6338 # that will create temporary files in the current directory regardless of
6339 # the output directory. Thus, making CWD read-only will cause this test
6340 # to fail, enabling locking or at least warning the user not to do parallel
6341 # builds.
6342 chmod -w .
6344 lt_compiler_flag="-o out/conftest2.$ac_objext"
6345 # Insert the option either (1) after the last *FLAGS variable, or
6346 # (2) before a word containing "conftest.", or (3) at the end.
6347 # Note that $ac_compile itself does not contain backslashes and begins
6348 # with a dollar sign (not a hyphen), so the echo should work correctly.
6349 lt_compile=`echo "$ac_compile" | sed \
6350 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
6351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6352 -e 's:$: $lt_compiler_flag:'`
6353 (eval echo "\"\$as_me:6353: $lt_compile\"" >&5)
6354 (eval "$lt_compile" 2>out/conftest.err)
6355 ac_status=$?
6356 cat out/conftest.err >&5
6357 echo "$as_me:6357: \$? = $ac_status" >&5
6358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6359 then
6360 # The compiler can only warn and ignore the option if not recognized
6361 # So say no if there are warnings
6362 if test ! -s out/conftest.err; then
6363 lt_cv_prog_compiler_c_o=yes
6366 chmod u+w .
6367 $rm conftest* out/*
6368 rmdir out
6369 cd ..
6370 rmdir conftest
6371 $rm conftest*
6374 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6375 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6378 hard_links="nottested"
6379 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6380 # do not overwrite the value of need_locks provided by the user
6381 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6382 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6383 hard_links=yes
6384 $rm conftest*
6385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6386 touch conftest.a
6387 ln conftest.a conftest.b 2>&5 || hard_links=no
6388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6389 echo "$as_me:$LINENO: result: $hard_links" >&5
6390 echo "${ECHO_T}$hard_links" >&6
6391 if test "$hard_links" = no; then
6392 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6393 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6394 need_locks=warn
6396 else
6397 need_locks=no
6400 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6401 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6403 runpath_var=
6404 allow_undefined_flag=
6405 enable_shared_with_static_runtimes=no
6406 archive_cmds=
6407 archive_cmds_need_lc=
6408 archive_expsym_cmds=
6409 old_archive_From_new_cmds=
6410 old_archive_from_expsyms_cmds=
6411 export_dynamic_flag_spec=
6412 whole_archive_flag_spec=
6413 thread_safe_flag_spec=
6414 hardcode_libdir_flag_spec=
6415 hardcode_libdir_separator=
6416 hardcode_direct=no
6417 hardcode_minus_L=no
6418 hardcode_shlibpath_var=unsupported
6419 link_all_deplibs=unknown
6420 always_export_symbols=no
6421 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6422 # include_expsyms should be a list of space-separated symbols to be *always*
6423 # included in the symbol list
6424 include_expsyms=
6425 # exclude_expsyms can be an extended regexp of symbols to exclude
6426 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6427 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6428 # as well as any symbol that contains `d'.
6429 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6430 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6431 # platforms (ab)use it in PIC code, but their linkers get confused if
6432 # the symbol is explicitly referenced. Since portable code cannot
6433 # rely on this symbol name, it's probably fine to never include it in
6434 # preloaded symbol tables.
6435 extract_expsyms_cmds=
6437 case $host_os in
6438 cygwin* | mingw* | pw32*)
6439 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6440 # When not using gcc, we currently assume that we are using
6441 # Microsoft Visual C++.
6442 if test "$GCC" != yes; then
6443 with_gnu_ld=no
6446 openbsd*)
6447 with_gnu_ld=no
6449 esac
6451 ld_shlibs=yes
6452 if test "$with_gnu_ld" = yes; then
6453 # If archive_cmds runs LD, not CC, wlarc should be empty
6454 wlarc='${wl}'
6456 # See if GNU ld supports shared libraries.
6457 case $host_os in
6458 aix3* | aix4* | aix5*)
6459 # On AIX/PPC, the GNU linker is very broken
6460 if test "$host_cpu" != ia64; then
6461 ld_shlibs=no
6462 cat <<EOF 1>&2
6464 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6465 *** to be unable to reliably create shared libraries on AIX.
6466 *** Therefore, libtool is disabling shared libraries support. If you
6467 *** really care for shared libraries, you may want to modify your PATH
6468 *** so that a non-GNU linker is found, and then restart.
6474 amigaos*)
6475 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)'
6476 hardcode_libdir_flag_spec='-L$libdir'
6477 hardcode_minus_L=yes
6479 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6480 # that the semantics of dynamic libraries on AmigaOS, at least up
6481 # to version 4, is to share data among multiple programs linked
6482 # with the same dynamic library. Since this doesn't match the
6483 # behavior of shared libraries on other platforms, we can't use
6484 # them.
6485 ld_shlibs=no
6488 beos*)
6489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6490 allow_undefined_flag=unsupported
6491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6492 # support --undefined. This deserves some investigation. FIXME
6493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6494 else
6495 ld_shlibs=no
6499 cygwin* | mingw* | pw32*)
6500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6501 # as there is no search path for DLLs.
6502 hardcode_libdir_flag_spec='-L$libdir'
6503 allow_undefined_flag=unsupported
6504 always_export_symbols=no
6505 enable_shared_with_static_runtimes=yes
6507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
6510 else
6511 ld_shlibs=no
6515 netbsd*)
6516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6518 wlarc=
6519 else
6520 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6521 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6525 solaris* | sysv5*)
6526 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6527 ld_shlibs=no
6528 cat <<EOF 1>&2
6530 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6531 *** create shared libraries on Solaris systems. Therefore, libtool
6532 *** is disabling shared libraries support. We urge you to upgrade GNU
6533 *** binutils to release 2.9.1 or newer. Another option is to modify
6534 *** your PATH or compiler configuration so that the native linker is
6535 *** used, and then restart.
6538 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6541 else
6542 ld_shlibs=no
6546 sunos4*)
6547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6548 wlarc=
6549 hardcode_direct=yes
6550 hardcode_shlibpath_var=no
6554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6557 else
6558 ld_shlibs=no
6561 esac
6563 if test "$ld_shlibs" = yes; then
6564 runpath_var=LD_RUN_PATH
6565 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6566 export_dynamic_flag_spec='${wl}--export-dynamic'
6567 # ancient GNU ld didn't support --whole-archive et. al.
6568 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6569 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6570 else
6571 whole_archive_flag_spec=
6574 else
6575 # PORTME fill in a description of your system's linker (not GNU ld)
6576 case $host_os in
6577 aix3*)
6578 allow_undefined_flag=unsupported
6579 always_export_symbols=yes
6580 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'
6581 # Note: this linker hardcodes the directories in LIBPATH if there
6582 # are no directories specified by -L.
6583 hardcode_minus_L=yes
6584 if test "$GCC" = yes && test -z "$link_static_flag"; then
6585 # Neither direct hardcoding nor static linking is supported with a
6586 # broken collect2.
6587 hardcode_direct=unsupported
6591 aix4* | aix5*)
6592 if test "$host_cpu" = ia64; then
6593 # On IA64, the linker does run time linking by default, so we don't
6594 # have to do anything special.
6595 aix_use_runtimelinking=no
6596 exp_sym_flag='-Bexport'
6597 no_entry_flag=""
6598 else
6599 # If we're using GNU nm, then we don't want the "-C" option.
6600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6602 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'
6603 else
6604 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'
6606 aix_use_runtimelinking=no
6608 # Test if we are trying to use run time linking or normal
6609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6610 # need to do runtime linking.
6611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6612 for ld_flag in $LDFLAGS; do
6613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6614 aix_use_runtimelinking=yes
6615 break
6617 done
6618 esac
6620 exp_sym_flag='-bexport'
6621 no_entry_flag='-bnoentry'
6624 # When large executables or shared objects are built, AIX ld can
6625 # have problems creating the table of contents. If linking a library
6626 # or program results in "error TOC overflow" add -mminimal-toc to
6627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6630 archive_cmds=''
6631 hardcode_direct=yes
6632 hardcode_libdir_separator=':'
6633 link_all_deplibs=yes
6635 if test "$GCC" = yes; then
6636 case $host_os in aix4.012|aix4.012.*)
6637 # We only want to do this on AIX 4.2 and lower, the check
6638 # below for broken collect2 doesn't work under 4.3+
6639 collect2name=`${CC} -print-prog-name=collect2`
6640 if test -f "$collect2name" && \
6641 strings "$collect2name" | grep resolve_lib_name >/dev/null
6642 then
6643 # We have reworked collect2
6644 hardcode_direct=yes
6645 else
6646 # We have old collect2
6647 hardcode_direct=unsupported
6648 # It fails to find uninstalled libraries when the uninstalled
6649 # path is not listed in the libpath. Setting hardcode_minus_L
6650 # to unsupported forces relinking
6651 hardcode_minus_L=yes
6652 hardcode_libdir_flag_spec='-L$libdir'
6653 hardcode_libdir_separator=
6655 esac
6656 shared_flag='-shared'
6657 else
6658 # not using gcc
6659 if test "$host_cpu" = ia64; then
6660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6661 # chokes on -Wl,-G. The following line is correct:
6662 shared_flag='-G'
6663 else
6664 if test "$aix_use_runtimelinking" = yes; then
6665 shared_flag='${wl}-G'
6666 else
6667 shared_flag='${wl}-bM:SRE'
6672 # It seems that -bexpall does not export symbols beginning with
6673 # underscore (_), so it is better to generate a list of symbols to export.
6674 always_export_symbols=yes
6675 if test "$aix_use_runtimelinking" = yes; then
6676 # Warning - without using the other runtime loading flags (-brtl),
6677 # -berok will link without error, but may produce a broken library.
6678 allow_undefined_flag='-berok'
6679 # Determine the default libpath from the value encoded in an empty executable.
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6685 main ()
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -s conftest$ac_exeext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6707 # Check for a 64-bit object if we didn't find anything.
6708 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; }
6709 }'`; fi
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6718 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"
6719 else
6720 if test "$host_cpu" = ia64; then
6721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6722 allow_undefined_flag="-z nodefs"
6723 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"
6724 else
6725 # Determine the default libpath from the value encoded in an empty executable.
6726 cat >conftest.$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6728 #include "confdefs.h"
6731 main ()
6735 return 0;
6737 _ACEOF
6738 rm -f conftest.$ac_objext conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -s conftest$ac_exeext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6753 # Check for a 64-bit object if we didn't find anything.
6754 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; }
6755 }'`; fi
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6764 # Warning - without using the other run time loading flags,
6765 # -berok will link without error, but may produce a broken library.
6766 no_undefined_flag=' ${wl}-bernotok'
6767 allow_undefined_flag=' ${wl}-berok'
6768 # -bexpall does not export symbols beginning with underscore (_)
6769 always_export_symbols=yes
6770 # Exported symbols can be pulled into shared objects from archives
6771 whole_archive_flag_spec=' '
6772 archive_cmds_need_lc=yes
6773 # This is similar to how AIX traditionally builds it's shared libraries.
6774 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'
6779 amigaos*)
6780 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)'
6781 hardcode_libdir_flag_spec='-L$libdir'
6782 hardcode_minus_L=yes
6783 # see comment about different semantics on the GNU ld section
6784 ld_shlibs=no
6787 bsdi4*)
6788 export_dynamic_flag_spec=-rdynamic
6791 cygwin* | mingw* | pw32*)
6792 # When not using gcc, we currently assume that we are using
6793 # Microsoft Visual C++.
6794 # hardcode_libdir_flag_spec is actually meaningless, as there is
6795 # no search path for DLLs.
6796 hardcode_libdir_flag_spec=' '
6797 allow_undefined_flag=unsupported
6798 # Tell ltmain to make .lib files, not .a files.
6799 libext=lib
6800 # FIXME: Setting linknames here is a bad hack.
6801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6802 # The linker will automatically build a .lib file if we build a DLL.
6803 old_archive_From_new_cmds='true'
6804 # FIXME: Should let the user specify the lib program.
6805 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6806 fix_srcfile_path='`cygpath -w "$srcfile"`'
6807 enable_shared_with_static_runtimes=yes
6810 darwin* | rhapsody*)
6811 case "$host_os" in
6812 rhapsody* | darwin1.[012])
6813 allow_undefined_flag='-undefined suppress'
6815 *) # Darwin 1.3 on
6816 allow_undefined_flag='-flat_namespace -undefined suppress'
6818 esac
6820 # FIXME: Relying on posixy $() will cause problems for
6821 # cross-compilation, but unfortunately the echo tests do not
6822 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6823 # `"' quotes if we put them in here... so don't!
6824 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6825 # We need to add '_' to the symbols in $export_symbols first
6826 #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
6827 hardcode_direct=yes
6828 hardcode_shlibpath_var=no
6829 whole_archive_flag_spec='-all_load $convenience'
6832 dgux*)
6833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834 hardcode_libdir_flag_spec='-L$libdir'
6835 hardcode_shlibpath_var=no
6838 freebsd1*)
6839 ld_shlibs=no
6842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6843 # support. Future versions do this automatically, but an explicit c++rt0.o
6844 # does not break anything, and helps significantly (at the cost of a little
6845 # extra space).
6846 freebsd2.2*)
6847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6848 hardcode_libdir_flag_spec='-R$libdir'
6849 hardcode_direct=yes
6850 hardcode_shlibpath_var=no
6853 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6854 freebsd2*)
6855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6856 hardcode_direct=yes
6857 hardcode_minus_L=yes
6858 hardcode_shlibpath_var=no
6861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6862 freebsd*)
6863 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6864 hardcode_libdir_flag_spec='-R$libdir'
6865 hardcode_direct=yes
6866 hardcode_shlibpath_var=no
6869 hpux9* | hpux10* | hpux11*)
6870 if test "$GCC" = yes; then
6871 case $host_os in
6872 hpux9*)
6873 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'
6876 if test "$host_cpu" = ia64; then
6877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6878 else
6879 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6882 esac
6883 else
6884 case $host_os in
6885 hpux9*)
6886 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'
6889 if test "$host_cpu" = ia64; then
6890 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6891 else
6892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6895 esac
6897 if test "$host_cpu" = ia64; then
6898 hardcode_libdir_flag_spec='-L$libdir'
6899 hardcode_direct=no
6900 hardcode_shlibpath_var=no
6901 else
6902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6903 hardcode_libdir_separator=:
6904 hardcode_direct=yes
6906 # hardcode_minus_L: Not really in the search PATH,
6907 # but as the default location of the library.
6908 hardcode_minus_L=yes
6909 export_dynamic_flag_spec='${wl}-E'
6912 irix5* | irix6* | nonstopux*)
6913 if test "$GCC" = yes; then
6914 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'
6915 else
6916 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'
6918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6919 hardcode_libdir_separator=:
6920 link_all_deplibs=yes
6923 netbsd*)
6924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6926 else
6927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6929 hardcode_libdir_flag_spec='-R$libdir'
6930 hardcode_direct=yes
6931 hardcode_shlibpath_var=no
6934 newsos6)
6935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936 hardcode_direct=yes
6937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6938 hardcode_libdir_separator=:
6939 hardcode_shlibpath_var=no
6942 openbsd*)
6943 hardcode_direct=yes
6944 hardcode_shlibpath_var=no
6945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6948 export_dynamic_flag_spec='${wl}-E'
6949 else
6950 case $host_os in
6951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6953 hardcode_libdir_flag_spec='-R$libdir'
6956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6959 esac
6963 os2*)
6964 hardcode_libdir_flag_spec='-L$libdir'
6965 hardcode_minus_L=yes
6966 allow_undefined_flag=unsupported
6967 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'
6968 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6971 osf3*)
6972 if test "$GCC" = yes; then
6973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6974 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'
6975 else
6976 allow_undefined_flag=' -expect_unresolved \*'
6977 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'
6979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6980 hardcode_libdir_separator=:
6983 osf4* | osf5*) # as osf3* with the addition of -msym flag
6984 if test "$GCC" = yes; then
6985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6986 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'
6987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6988 else
6989 allow_undefined_flag=' -expect_unresolved \*'
6990 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'
6991 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6992 $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'
6994 # Both c and cxx compiler support -rpath directly
6995 hardcode_libdir_flag_spec='-rpath $libdir'
6997 hardcode_libdir_separator=:
7000 sco3.2v5*)
7001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7002 hardcode_shlibpath_var=no
7003 export_dynamic_flag_spec='${wl}-Bexport'
7004 runpath_var=LD_RUN_PATH
7005 hardcode_runpath_var=yes
7008 solaris*)
7009 no_undefined_flag=' -z text'
7010 if test "$GCC" = yes; then
7011 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7013 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7014 else
7015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7016 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7019 hardcode_libdir_flag_spec='-R$libdir'
7020 hardcode_shlibpath_var=no
7021 case $host_os in
7022 solaris2.[0-5] | solaris2.[0-5].*) ;;
7023 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7025 esac
7026 link_all_deplibs=yes
7029 sunos4*)
7030 if test "x$host_vendor" = xsequent; then
7031 # Use $CC to link under sequent, because it throws in some extra .o
7032 # files that make .init and .fini sections work.
7033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7034 else
7035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7037 hardcode_libdir_flag_spec='-L$libdir'
7038 hardcode_direct=yes
7039 hardcode_minus_L=yes
7040 hardcode_shlibpath_var=no
7043 sysv4)
7044 case $host_vendor in
7045 sni)
7046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7047 hardcode_direct=yes # is this really true???
7049 siemens)
7050 ## LD is ld it makes a PLAMLIB
7051 ## CC just makes a GrossModule.
7052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7053 reload_cmds='$CC -r -o $output$reload_objs'
7054 hardcode_direct=no
7056 motorola)
7057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7060 esac
7061 runpath_var='LD_RUN_PATH'
7062 hardcode_shlibpath_var=no
7065 sysv4.3*)
7066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7067 hardcode_shlibpath_var=no
7068 export_dynamic_flag_spec='-Bexport'
7071 sysv4*MP*)
7072 if test -d /usr/nec; then
7073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7074 hardcode_shlibpath_var=no
7075 runpath_var=LD_RUN_PATH
7076 hardcode_runpath_var=yes
7077 ld_shlibs=yes
7081 sysv4.2uw2*)
7082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_direct=yes
7084 hardcode_minus_L=no
7085 hardcode_shlibpath_var=no
7086 hardcode_runpath_var=yes
7087 runpath_var=LD_RUN_PATH
7090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7091 no_undefined_flag='${wl}-z ${wl}text'
7092 if test "$GCC" = yes; then
7093 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7094 else
7095 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7097 runpath_var='LD_RUN_PATH'
7098 hardcode_shlibpath_var=no
7101 sysv5*)
7102 no_undefined_flag=' -z text'
7103 # $CC -shared without GNU ld will not create a library from C++
7104 # object files and a static libstdc++, better avoid it by now
7105 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7106 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7108 hardcode_libdir_flag_spec=
7109 hardcode_shlibpath_var=no
7110 runpath_var='LD_RUN_PATH'
7113 uts4*)
7114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7115 hardcode_libdir_flag_spec='-L$libdir'
7116 hardcode_shlibpath_var=no
7120 ld_shlibs=no
7122 esac
7125 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7126 echo "${ECHO_T}$ld_shlibs" >&6
7127 test "$ld_shlibs" = no && can_build_shared=no
7129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7130 if test "$GCC" = yes; then
7131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7135 # Do we need to explicitly link libc?
7137 archive_cmds_need_lc=yes
7138 if test "$enable_shared" = yes && test "$GCC" = yes; then
7139 case $archive_cmds in
7140 *'~'*)
7141 # FIXME: we may have to deal with multi-command sequences.
7143 '$CC '*)
7144 # Test whether the compiler implicitly links with -lc since on some
7145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7146 # to ld, don't add -lc before -lgcc.
7147 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7148 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7149 $rm conftest*
7150 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } 2>conftest.err; then
7157 soname=conftest
7158 lib=conftest
7159 libobjs=conftest.$ac_objext
7160 deplibs=
7161 wl=$lt_prog_compiler_wl
7162 compiler_flags=-v
7163 linker_flags=-v
7164 verstring=
7165 output_objdir=.
7166 libname=conftest
7167 lt_save_allow_undefined_flag=$allow_undefined_flag
7168 allow_undefined_flag=
7169 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7170 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }
7174 then
7175 archive_cmds_need_lc=no
7176 else
7177 archive_cmds_need_lc=yes
7179 allow_undefined_flag=$lt_save_allow_undefined_flag
7180 else
7181 cat conftest.err 1>&5
7183 $rm conftest*
7184 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7185 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7187 esac
7190 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7191 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7192 hardcode_action=
7193 if test -n "$hardcode_libdir_flag_spec" || \
7194 test -n "$runpath_var "; then
7196 # We can hardcode non-existant directories.
7197 if test "$hardcode_direct" != no &&
7198 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7199 # have to relink, otherwise we might link with an installed library
7200 # when we should be linking with a yet-to-be-installed one
7201 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7202 test "$hardcode_minus_L" != no; then
7203 # Linking always hardcodes the temporary library directory.
7204 hardcode_action=relink
7205 else
7206 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7207 hardcode_action=immediate
7209 else
7210 # We cannot hardcode anything, or else we can only hardcode existing
7211 # directories.
7212 hardcode_action=unsupported
7214 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7215 echo "${ECHO_T}$hardcode_action" >&6
7217 if test "$hardcode_action" = relink; then
7218 # Fast installation is not supported
7219 enable_fast_install=no
7220 elif test "$shlibpath_overrides_runpath" = yes ||
7221 test "$enable_shared" = no; then
7222 # Fast installation is not necessary
7223 enable_fast_install=needless
7226 striplib=
7227 old_striplib=
7228 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7229 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7230 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7231 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7232 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7233 echo "$as_me:$LINENO: result: yes" >&5
7234 echo "${ECHO_T}yes" >&6
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7240 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7242 library_names_spec=
7243 libname_spec='lib$name'
7244 soname_spec=
7245 postinstall_cmds=
7246 postuninstall_cmds=
7247 finish_cmds=
7248 finish_eval=
7249 shlibpath_var=
7250 shlibpath_overrides_runpath=unknown
7251 version_type=none
7252 dynamic_linker="$host_os ld.so"
7253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7254 if test "$GCC" = yes; then
7255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
7256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7257 # if the path contains ";" then we assume it to be the separator
7258 # otherwise default to the standard path separator (i.e. ":") - it is
7259 # assumed that no part of a normal pathname contains ";" but that should
7260 # okay in the real world where ";" in dirpaths is itself problematic.
7261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7262 else
7263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7265 else
7266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7268 need_lib_prefix=unknown
7269 hardcode_into_libs=no
7271 # when you set need_version to no, make sure it does not cause -set_version
7272 # flags to be left without arguments
7273 need_version=unknown
7275 case $host_os in
7276 aix3*)
7277 version_type=linux
7278 library_names_spec='${libname}${release}.so$versuffix $libname.a'
7279 shlibpath_var=LIBPATH
7281 # AIX 3 has no versioning support, so we append a major version to the name.
7282 soname_spec='${libname}${release}.so$major'
7285 aix4* | aix5*)
7286 version_type=linux
7287 need_lib_prefix=no
7288 need_version=no
7289 hardcode_into_libs=yes
7290 if test "$host_cpu" = ia64; then
7291 # AIX 5 supports IA64
7292 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7293 shlibpath_var=LD_LIBRARY_PATH
7294 else
7295 # With GCC up to 2.95.x, collect2 would create an import file
7296 # for dependence libraries. The import file would start with
7297 # the line `#! .'. This would cause the generated library to
7298 # depend on `.', always an invalid library. This was fixed in
7299 # development snapshots of GCC prior to 3.0.
7300 case $host_os in
7301 aix4 | aix4.[01] | aix4.[01].*)
7302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7303 echo ' yes '
7304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7306 else
7307 can_build_shared=no
7310 esac
7311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7312 # soname into executable. Probably we can add versioning support to
7313 # collect2, so additional links can be useful in future.
7314 if test "$aix_use_runtimelinking" = yes; then
7315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7316 # instead of lib<name>.a to let people know that these are not
7317 # typical AIX shared libraries.
7318 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7319 else
7320 # We preserve .a as extension for shared libraries through AIX4.2
7321 # and later when we are not doing run time linking.
7322 library_names_spec='${libname}${release}.a $libname.a'
7323 soname_spec='${libname}${release}.so$major'
7325 shlibpath_var=LIBPATH
7329 amigaos*)
7330 library_names_spec='$libname.ixlibrary $libname.a'
7331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7332 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'
7335 beos*)
7336 library_names_spec='${libname}.so'
7337 dynamic_linker="$host_os ld.so"
7338 shlibpath_var=LIBRARY_PATH
7341 bsdi4*)
7342 version_type=linux
7343 need_version=no
7344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7345 soname_spec='${libname}${release}.so$major'
7346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7347 shlibpath_var=LD_LIBRARY_PATH
7348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7350 # the default ld.so.conf also contains /usr/contrib/lib and
7351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7352 # libtool to hard-code these into programs
7355 cygwin* | mingw* | pw32*)
7356 version_type=windows
7357 need_version=no
7358 need_lib_prefix=no
7360 case $GCC,$host_os in
7361 yes,cygwin* | yes,mingw* | yes,pw32*)
7362 library_names_spec='$libname.dll.a'
7363 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7364 postinstall_cmds='base_file=`basename \${file}`~
7365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7366 dldir=$destdir/`dirname \$dlpath`~
7367 test -d \$dldir || mkdir -p \$dldir~
7368 $install_prog $dir/$dlname \$dldir/$dlname'
7369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7370 dlpath=$dir/\$dldll~
7371 $rm \$dlpath'
7372 shlibpath_overrides_runpath=yes
7374 case $host_os in
7375 cygwin*)
7376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7377 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7378 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7380 mingw*)
7381 # MinGW DLLs use traditional 'lib' prefix
7382 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
7384 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7385 # It is most probably a Windows format PATH printed by
7386 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7387 # path with ; separators, and with drive letters. We can handle the
7388 # drive letters (cygwin fileutils understands them), so leave them,
7389 # especially as we might pass files found there to a mingw objdump,
7390 # which wouldn't understand a cygwinified path. Ahh.
7391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
7392 else
7393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
7396 pw32*)
7397 # pw32 DLLs use 'pw' prefix rather than 'lib'
7398 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7400 esac
7404 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7406 esac
7407 dynamic_linker='Win32 ld.exe'
7408 # FIXME: first we should search . and the directory the executable is in
7409 shlibpath_var=PATH
7412 darwin* | rhapsody*)
7413 dynamic_linker="$host_os dyld"
7414 version_type=darwin
7415 need_lib_prefix=no
7416 need_version=no
7417 # FIXME: Relying on posixy $() will cause problems for
7418 # cross-compilation, but unfortunately the echo tests do not
7419 # yet detect zsh echo's removal of \ escapes.
7420 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7421 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7422 shlibpath_overrides_runpath=yes
7423 shlibpath_var=DYLD_LIBRARY_PATH
7426 dgux*)
7427 version_type=linux
7428 need_lib_prefix=no
7429 need_version=no
7430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7431 soname_spec='${libname}${release}.so$major'
7432 shlibpath_var=LD_LIBRARY_PATH
7435 freebsd1*)
7436 dynamic_linker=no
7439 freebsd*)
7440 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7441 version_type=freebsd-$objformat
7442 case $version_type in
7443 freebsd-elf*)
7444 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7445 need_version=no
7446 need_lib_prefix=no
7448 freebsd-*)
7449 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7450 need_version=yes
7452 esac
7453 shlibpath_var=LD_LIBRARY_PATH
7454 case $host_os in
7455 freebsd2*)
7456 shlibpath_overrides_runpath=yes
7458 freebsd3.01* | freebsdelf3.01*)
7459 shlibpath_overrides_runpath=yes
7460 hardcode_into_libs=yes
7462 *) # from 3.2 on
7463 shlibpath_overrides_runpath=no
7464 hardcode_into_libs=yes
7466 esac
7469 gnu*)
7470 version_type=linux
7471 need_lib_prefix=no
7472 need_version=no
7473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7474 soname_spec='${libname}${release}.so$major'
7475 shlibpath_var=LD_LIBRARY_PATH
7476 hardcode_into_libs=yes
7479 hpux9* | hpux10* | hpux11*)
7480 # Give a soname corresponding to the major version so that dld.sl refuses to
7481 # link against other versions.
7482 version_type=sunos
7483 need_lib_prefix=no
7484 need_version=no
7485 if test "$host_cpu" = ia64; then
7486 hardcode_into_libs=yes
7487 dynamic_linker="$host_os dld.so"
7488 shlibpath_var=LD_LIBRARY_PATH
7489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7490 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7491 soname_spec='${libname}${release}.so$major'
7492 if test "X$HPUX_IA64_MODE" = X32; then
7493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7494 else
7495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7498 else
7499 dynamic_linker="$host_os dld.sl"
7500 shlibpath_var=SHLIB_PATH
7501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7502 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7503 soname_spec='${libname}${release}.sl$major'
7505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7506 postinstall_cmds='chmod 555 $lib'
7509 irix5* | irix6* | nonstopux*)
7510 case $host_os in
7511 nonstopux*) version_type=nonstopux ;;
7512 *) version_type=irix ;;
7513 esac
7514 need_lib_prefix=no
7515 need_version=no
7516 soname_spec='${libname}${release}.so$major'
7517 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7518 case $host_os in
7519 irix5* | nonstopux*)
7520 libsuff= shlibsuff=
7523 case $LD in # libtool.m4 will add one of these switches to LD
7524 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7525 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7526 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7527 *) libsuff= shlibsuff= libmagic=never-match;;
7528 esac
7530 esac
7531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7532 shlibpath_overrides_runpath=no
7533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7537 # No shared lib support for Linux oldld, aout, or coff.
7538 linux*oldld* | linux*aout* | linux*coff*)
7539 dynamic_linker=no
7542 # This must be Linux ELF.
7543 linux*)
7544 version_type=linux
7545 need_lib_prefix=no
7546 need_version=no
7547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7548 soname_spec='${libname}${release}.so$major'
7549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7550 shlibpath_var=LD_LIBRARY_PATH
7551 shlibpath_overrides_runpath=no
7552 # This implies no fast_install, which is unacceptable.
7553 # Some rework will be needed to allow for fast_install
7554 # before this can be enabled.
7555 hardcode_into_libs=yes
7557 # We used to test for /lib/ld.so.1 and disable shared libraries on
7558 # powerpc, because MkLinux only supported shared libraries with the
7559 # GNU dynamic linker. Since this was broken with cross compilers,
7560 # most powerpc-linux boxes support dynamic linking these days and
7561 # people can always --disable-shared, the test was removed, and we
7562 # assume the GNU/Linux dynamic linker is in use.
7563 dynamic_linker='GNU/Linux ld.so'
7566 netbsd*)
7567 version_type=sunos
7568 need_lib_prefix=no
7569 need_version=no
7570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7571 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7573 dynamic_linker='NetBSD (a.out) ld.so'
7574 else
7575 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7576 soname_spec='${libname}${release}.so$major'
7577 dynamic_linker='NetBSD ld.elf_so'
7579 shlibpath_var=LD_LIBRARY_PATH
7580 shlibpath_overrides_runpath=yes
7581 hardcode_into_libs=yes
7584 newsos6)
7585 version_type=linux
7586 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7587 shlibpath_var=LD_LIBRARY_PATH
7588 shlibpath_overrides_runpath=yes
7591 nto-qnx)
7592 version_type=linux
7593 need_lib_prefix=no
7594 need_version=no
7595 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7596 soname_spec='${libname}${release}.so$major'
7597 shlibpath_var=LD_LIBRARY_PATH
7598 shlibpath_overrides_runpath=yes
7601 openbsd*)
7602 version_type=sunos
7603 need_lib_prefix=no
7604 need_version=no
7605 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7607 shlibpath_var=LD_LIBRARY_PATH
7608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7609 case $host_os in
7610 openbsd2.[89] | openbsd2.[89].*)
7611 shlibpath_overrides_runpath=no
7614 shlibpath_overrides_runpath=yes
7616 esac
7617 else
7618 shlibpath_overrides_runpath=yes
7622 os2*)
7623 libname_spec='$name'
7624 need_lib_prefix=no
7625 library_names_spec='$libname.dll $libname.a'
7626 dynamic_linker='OS/2 ld.exe'
7627 shlibpath_var=LIBPATH
7630 osf3* | osf4* | osf5*)
7631 version_type=osf
7632 need_lib_prefix=no
7633 need_version=no
7634 soname_spec='${libname}${release}.so$major'
7635 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7636 shlibpath_var=LD_LIBRARY_PATH
7637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7641 sco3.2v5*)
7642 version_type=osf
7643 soname_spec='${libname}${release}.so$major'
7644 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7645 shlibpath_var=LD_LIBRARY_PATH
7648 solaris*)
7649 version_type=linux
7650 need_lib_prefix=no
7651 need_version=no
7652 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7653 soname_spec='${libname}${release}.so$major'
7654 shlibpath_var=LD_LIBRARY_PATH
7655 shlibpath_overrides_runpath=yes
7656 hardcode_into_libs=yes
7657 # ldd complains unless libraries are executable
7658 postinstall_cmds='chmod +x $lib'
7661 sunos4*)
7662 version_type=sunos
7663 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7665 shlibpath_var=LD_LIBRARY_PATH
7666 shlibpath_overrides_runpath=yes
7667 if test "$with_gnu_ld" = yes; then
7668 need_lib_prefix=no
7670 need_version=yes
7673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7674 version_type=linux
7675 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7676 soname_spec='${libname}${release}.so$major'
7677 shlibpath_var=LD_LIBRARY_PATH
7678 case $host_vendor in
7679 sni)
7680 shlibpath_overrides_runpath=no
7681 need_lib_prefix=no
7682 export_dynamic_flag_spec='${wl}-Blargedynsym'
7683 runpath_var=LD_RUN_PATH
7685 siemens)
7686 need_lib_prefix=no
7688 motorola)
7689 need_lib_prefix=no
7690 need_version=no
7691 shlibpath_overrides_runpath=no
7692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7694 esac
7697 sysv4*MP*)
7698 if test -d /usr/nec ;then
7699 version_type=linux
7700 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7701 soname_spec='$libname.so.$major'
7702 shlibpath_var=LD_LIBRARY_PATH
7706 uts4*)
7707 version_type=linux
7708 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7709 soname_spec='${libname}${release}.so$major'
7710 shlibpath_var=LD_LIBRARY_PATH
7714 dynamic_linker=no
7716 esac
7717 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7718 echo "${ECHO_T}$dynamic_linker" >&6
7719 test "$dynamic_linker" = no && can_build_shared=no
7721 if test "x$enable_dlopen" != xyes; then
7722 enable_dlopen=unknown
7723 enable_dlopen_self=unknown
7724 enable_dlopen_self_static=unknown
7725 else
7726 lt_cv_dlopen=no
7727 lt_cv_dlopen_libs=
7729 case $host_os in
7730 beos*)
7731 lt_cv_dlopen="load_add_on"
7732 lt_cv_dlopen_libs=
7733 lt_cv_dlopen_self=yes
7736 mingw* | pw32*)
7737 lt_cv_dlopen="LoadLibrary"
7738 lt_cv_dlopen_libs=
7741 cygwin*)
7742 lt_cv_dlopen="dlopen"
7743 lt_cv_dlopen_libs=
7747 echo "$as_me:$LINENO: checking for shl_load" >&5
7748 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7749 if test "${ac_cv_func_shl_load+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 #include "confdefs.h"
7755 /* System header to define __stub macros and hopefully few prototypes,
7756 which can conflict with char shl_load (); below. */
7757 #include <assert.h>
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char shl_load ();
7765 char (*f) ();
7768 main ()
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7774 choke me
7775 #else
7776 f = shl_load;
7777 #endif
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_func_shl_load=yes
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7799 ac_cv_func_shl_load=no
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7803 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7804 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7805 if test $ac_cv_func_shl_load = yes; then
7806 lt_cv_dlopen="shl_load"
7807 else
7808 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7809 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7810 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-ldld $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 #ifdef __cplusplus
7821 extern "C"
7822 #endif
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7825 char shl_load ();
7827 main ()
7829 shl_load ();
7831 return 0;
7833 _ACEOF
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7836 (eval $ac_link) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_lib_dld_shl_load=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_cv_lib_dld_shl_load=no
7852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 LIBS=$ac_check_lib_save_LIBS
7855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7857 if test $ac_cv_lib_dld_shl_load = yes; then
7858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7859 else
7860 echo "$as_me:$LINENO: checking for dlopen" >&5
7861 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7862 if test "${ac_cv_func_dlopen+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 #include "confdefs.h"
7868 /* System header to define __stub macros and hopefully few prototypes,
7869 which can conflict with char dlopen (); below. */
7870 #include <assert.h>
7871 /* Override any gcc2 internal prototype to avoid an error. */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7877 char dlopen ();
7878 char (*f) ();
7881 main ()
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7887 choke me
7888 #else
7889 f = dlopen;
7890 #endif
7893 return 0;
7895 _ACEOF
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898 (eval $ac_link) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -s conftest$ac_exeext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_func_dlopen=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7912 ac_cv_func_dlopen=no
7914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7917 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7918 if test $ac_cv_func_dlopen = yes; then
7919 lt_cv_dlopen="dlopen"
7920 else
7921 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7922 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-ldl $LIBS"
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 #ifdef __cplusplus
7934 extern "C"
7935 #endif
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938 char dlopen ();
7940 main ()
7942 dlopen ();
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 ac_cv_lib_dl_dlopen=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963 ac_cv_lib_dl_dlopen=no
7965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7970 if test $ac_cv_lib_dl_dlopen = yes; then
7971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7972 else
7973 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7974 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-lsvld $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line $LINENO "configure"
7982 #include "confdefs.h"
7984 /* Override any gcc2 internal prototype to avoid an error. */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990 char dlopen ();
7992 main ()
7994 dlopen ();
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_cv_lib_svld_dlopen=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 ac_cv_lib_svld_dlopen=no
8017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8018 LIBS=$ac_check_lib_save_LIBS
8020 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8021 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8022 if test $ac_cv_lib_svld_dlopen = yes; then
8023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8024 else
8025 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-ldld $LIBS"
8032 cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8034 #include "confdefs.h"
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 #ifdef __cplusplus
8038 extern "C"
8039 #endif
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8042 char dld_link ();
8044 main ()
8046 dld_link ();
8048 return 0;
8050 _ACEOF
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053 (eval $ac_link) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -s conftest$ac_exeext'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 ac_cv_lib_dld_dld_link=yes
8064 else
8065 echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 ac_cv_lib_dld_dld_link=no
8069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8074 if test $ac_cv_lib_dld_dld_link = yes; then
8075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8094 esac
8096 if test "x$lt_cv_dlopen" != xno; then
8097 enable_dlopen=yes
8098 else
8099 enable_dlopen=no
8102 case $lt_cv_dlopen in
8103 dlopen)
8104 save_CPPFLAGS="$CPPFLAGS"
8105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8107 save_LDFLAGS="$LDFLAGS"
8108 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8110 save_LIBS="$LIBS"
8111 LIBS="$lt_cv_dlopen_libs $LIBS"
8113 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8114 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8115 if test "${lt_cv_dlopen_self+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 if test "$cross_compiling" = yes; then :
8119 lt_cv_dlopen_self=cross
8120 else
8121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8122 lt_status=$lt_dlunknown
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8124 "configure"
8125 #include "confdefs.h"
8127 #if HAVE_DLFCN_H
8128 #include <dlfcn.h>
8129 #endif
8131 #include <stdio.h>
8133 #ifdef RTLD_GLOBAL
8134 # define LT_DLGLOBAL RTLD_GLOBAL
8135 #else
8136 # ifdef DL_GLOBAL
8137 # define LT_DLGLOBAL DL_GLOBAL
8138 # else
8139 # define LT_DLGLOBAL 0
8140 # endif
8141 #endif
8143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8144 find out it does not work in some platform. */
8145 #ifndef LT_DLLAZY_OR_NOW
8146 # ifdef RTLD_LAZY
8147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8148 # else
8149 # ifdef DL_LAZY
8150 # define LT_DLLAZY_OR_NOW DL_LAZY
8151 # else
8152 # ifdef RTLD_NOW
8153 # define LT_DLLAZY_OR_NOW RTLD_NOW
8154 # else
8155 # ifdef DL_NOW
8156 # define LT_DLLAZY_OR_NOW DL_NOW
8157 # else
8158 # define LT_DLLAZY_OR_NOW 0
8159 # endif
8160 # endif
8161 # endif
8162 # endif
8163 #endif
8165 #ifdef __cplusplus
8166 extern "C" void exit (int);
8167 #endif
8169 void fnord() { int i=42;}
8170 int main ()
8172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8173 int status = $lt_dlunknown;
8175 if (self)
8177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8179 /* dlclose (self); */
8182 exit (status);
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8190 (./conftest; exit; ) 2>/dev/null
8191 lt_status=$?
8192 case x$lt_status in
8193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8195 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8196 esac
8197 else :
8198 # compilation failed
8199 lt_cv_dlopen_self=no
8202 rm -fr conftest*
8206 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8207 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8209 if test "x$lt_cv_dlopen_self" = xyes; then
8210 LDFLAGS="$LDFLAGS $link_static_flag"
8211 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8212 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8213 if test "${lt_cv_dlopen_self_static+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 if test "$cross_compiling" = yes; then :
8217 lt_cv_dlopen_self_static=cross
8218 else
8219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8220 lt_status=$lt_dlunknown
8221 cat > conftest.$ac_ext <<EOF
8222 #line 8222 "configure"
8223 #include "confdefs.h"
8225 #if HAVE_DLFCN_H
8226 #include <dlfcn.h>
8227 #endif
8229 #include <stdio.h>
8231 #ifdef RTLD_GLOBAL
8232 # define LT_DLGLOBAL RTLD_GLOBAL
8233 #else
8234 # ifdef DL_GLOBAL
8235 # define LT_DLGLOBAL DL_GLOBAL
8236 # else
8237 # define LT_DLGLOBAL 0
8238 # endif
8239 #endif
8241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8242 find out it does not work in some platform. */
8243 #ifndef LT_DLLAZY_OR_NOW
8244 # ifdef RTLD_LAZY
8245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8246 # else
8247 # ifdef DL_LAZY
8248 # define LT_DLLAZY_OR_NOW DL_LAZY
8249 # else
8250 # ifdef RTLD_NOW
8251 # define LT_DLLAZY_OR_NOW RTLD_NOW
8252 # else
8253 # ifdef DL_NOW
8254 # define LT_DLLAZY_OR_NOW DL_NOW
8255 # else
8256 # define LT_DLLAZY_OR_NOW 0
8257 # endif
8258 # endif
8259 # endif
8260 # endif
8261 #endif
8263 #ifdef __cplusplus
8264 extern "C" void exit (int);
8265 #endif
8267 void fnord() { int i=42;}
8268 int main ()
8270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8271 int status = $lt_dlunknown;
8273 if (self)
8275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8277 /* dlclose (self); */
8280 exit (status);
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8288 (./conftest; exit; ) 2>/dev/null
8289 lt_status=$?
8290 case x$lt_status in
8291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8293 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8294 esac
8295 else :
8296 # compilation failed
8297 lt_cv_dlopen_self_static=no
8300 rm -fr conftest*
8304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8305 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8308 CPPFLAGS="$save_CPPFLAGS"
8309 LDFLAGS="$save_LDFLAGS"
8310 LIBS="$save_LIBS"
8312 esac
8314 case $lt_cv_dlopen_self in
8315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8316 *) enable_dlopen_self=unknown ;;
8317 esac
8319 case $lt_cv_dlopen_self_static in
8320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8321 *) enable_dlopen_self_static=unknown ;;
8322 esac
8326 # Report which librarie types wil actually be built
8327 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8328 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8329 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8330 echo "${ECHO_T}$can_build_shared" >&6
8332 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8333 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8334 test "$can_build_shared" = "no" && enable_shared=no
8336 # On AIX, shared libraries and static libraries use the same namespace, and
8337 # are all built from PIC.
8338 case "$host_os" in
8339 aix3*)
8340 test "$enable_shared" = yes && enable_static=no
8341 if test -n "$RANLIB"; then
8342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8343 postinstall_cmds='$RANLIB $lib'
8347 aix4*)
8348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8349 test "$enable_shared" = yes && enable_static=no
8352 esac
8353 echo "$as_me:$LINENO: result: $enable_shared" >&5
8354 echo "${ECHO_T}$enable_shared" >&6
8356 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8358 # Make sure either enable_shared or enable_static is yes.
8359 test "$enable_shared" = yes || enable_static=yes
8360 echo "$as_me:$LINENO: result: $enable_static" >&5
8361 echo "${ECHO_T}$enable_static" >&6
8363 # The else clause should only fire when bootstrapping the
8364 # libtool distribution, otherwise you forgot to ship ltmain.sh
8365 # with your package, and you will get complaints that there are
8366 # no rules to generate ltmain.sh.
8367 if test -f "$ltmain"; then
8368 # Now quote all the things that may contain metacharacters while being
8369 # careful not to overquote the AC_SUBSTed values. We take copies of the
8370 # variables and quote the copies for generation of the libtool script.
8371 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8372 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8373 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8374 deplibs_check_method reload_flag reload_cmds need_locks \
8375 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8376 lt_cv_sys_global_symbol_to_c_name_address \
8377 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8378 old_postinstall_cmds old_postuninstall_cmds \
8379 compiler \
8380 CC \
8381 LD \
8382 lt_prog_compiler_wl \
8383 lt_prog_compiler_pic \
8384 lt_prog_compiler_static \
8385 lt_prog_compiler_no_builtin_flag \
8386 export_dynamic_flag_spec \
8387 thread_safe_flag_spec \
8388 whole_archive_flag_spec \
8389 enable_shared_with_static_runtimes \
8390 old_archive_cmds \
8391 old_archive_from_new_cmds \
8392 predep_objects \
8393 postdep_objects \
8394 predeps \
8395 postdeps \
8396 compiler_lib_search_path \
8397 archive_cmds \
8398 archive_expsym_cmds \
8399 postinstall_cmds \
8400 postuninstall_cmds \
8401 old_archive_from_expsyms_cmds \
8402 allow_undefined_flag \
8403 no_undefined_flag \
8404 export_symbols_cmds \
8405 hardcode_libdir_flag_spec \
8406 hardcode_libdir_separator \
8407 lt_cv_prog_compiler_c_o \
8408 exclude_expsyms \
8409 include_expsyms; do
8411 case $var in
8412 old_archive_cmds | \
8413 old_archive_from_new_cmds | \
8414 archive_cmds | \
8415 archive_expsym_cmds | \
8416 old_archive_from_expsyms_cmds | \
8417 export_symbols_cmds | \
8418 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8419 postinstall_cmds | postuninstall_cmds | \
8420 old_postinstall_cmds | old_postuninstall_cmds | \
8421 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8422 # Double-quote double-evaled strings.
8423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8428 esac
8429 done
8431 case $lt_echo in
8432 *'\$0 --fallback-echo"')
8433 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8435 esac
8437 cfgfile="${ofile}T"
8438 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8439 $rm -f "$cfgfile"
8440 { echo "$as_me:$LINENO: creating $ofile" >&5
8441 echo "$as_me: creating $ofile" >&6;}
8443 cat <<__EOF__ >> "$cfgfile"
8444 #! $SHELL
8446 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8447 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8448 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8450 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8451 # Free Software Foundation, Inc.
8453 # This file is part of GNU Libtool:
8454 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8456 # This program is free software; you can redistribute it and/or modify
8457 # it under the terms of the GNU General Public License as published by
8458 # the Free Software Foundation; either version 2 of the License, or
8459 # (at your option) any later version.
8461 # This program is distributed in the hope that it will be useful, but
8462 # WITHOUT ANY WARRANTY; without even the implied warranty of
8463 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8464 # General Public License for more details.
8466 # You should have received a copy of the GNU General Public License
8467 # along with this program; if not, write to the Free Software
8468 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8470 # As a special exception to the GNU General Public License, if you
8471 # distribute this file as part of a program that contains a
8472 # configuration script generated by Autoconf, you may include it under
8473 # the same distribution terms that you use for the rest of that program.
8475 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8476 Xsed="sed -e s/^X//"
8478 # The HP-UX ksh and POSIX shell print the target directory to stdout
8479 # if CDPATH is set.
8480 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8482 # The names of the tagged configurations supported by this script.
8483 available_tags=
8485 # ### BEGIN LIBTOOL CONFIG
8487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8489 # Shell to use when invoking shell scripts.
8490 SHELL=$lt_SHELL
8492 # Whether or not to build shared libraries.
8493 build_libtool_libs=$enable_shared
8495 # Whether or not to build static libraries.
8496 build_old_libs=$enable_static
8498 # Whether or not to add -lc for building shared libraries.
8499 build_libtool_need_lc=$archive_cmds_need_lc
8501 # Whether or not to disallow shared libs when runtime libs are static
8502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8504 # Whether or not to optimize for fast installation.
8505 fast_install=$enable_fast_install
8507 # The host system.
8508 host_alias=$host_alias
8509 host=$host
8511 # An echo program that does not interpret backslashes.
8512 echo=$lt_echo
8514 # The archiver.
8515 AR=$lt_AR
8516 AR_FLAGS=$lt_AR_FLAGS
8518 # A C compiler.
8519 LTCC=$lt_LTCC
8521 # A language-specific compiler.
8522 CC=$lt_compiler
8524 # Is the compiler the GNU C compiler?
8525 with_gcc=$GCC
8527 # An ERE matcher.
8528 EGREP=$lt_EGREP
8530 # The linker used to build libraries.
8531 LD=$lt_LD
8533 # Whether we need hard or soft links.
8534 LN_S=$lt_LN_S
8536 # A BSD-compatible nm program.
8537 NM=$lt_NM
8539 # A sed program that does not truncate output.
8540 SED=$lt_SED
8542 # A symbol stripping program
8543 STRIP=$STRIP
8545 # Used to examine libraries when file_magic_cmd begins "file"
8546 MAGIC_CMD=$MAGIC_CMD
8548 # Used on cygwin: DLL creation program.
8549 DLLTOOL="$DLLTOOL"
8551 # Used on cygwin: object dumper.
8552 OBJDUMP="$OBJDUMP"
8554 # Used on cygwin: assembler.
8555 AS="$AS"
8557 # The name of the directory that contains temporary libtool files.
8558 objdir=$objdir
8560 # How to create reloadable object files.
8561 reload_flag=$lt_reload_flag
8562 reload_cmds=$lt_reload_cmds
8564 # How to pass a linker flag through the compiler.
8565 wl=$lt_lt_prog_compiler_wl
8567 # Object file suffix (normally "o").
8568 objext="$ac_objext"
8570 # Old archive suffix (normally "a").
8571 libext="$libext"
8573 # Executable file suffix (normally "").
8574 exeext="$exeext"
8576 # Additional compiler flags for building library objects.
8577 pic_flag=$lt_lt_prog_compiler_pic
8578 pic_mode=$pic_mode
8580 # What is the maximum length of a command?
8581 max_cmd_len=$lt_cv_sys_max_cmd_len
8583 # Does compiler simultaneously support -c and -o options?
8584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8586 # Must we lock files when doing compilation ?
8587 need_locks=$lt_need_locks
8589 # Do we need the lib prefix for modules?
8590 need_lib_prefix=$need_lib_prefix
8592 # Do we need a version for libraries?
8593 need_version=$need_version
8595 # Whether dlopen is supported.
8596 dlopen_support=$enable_dlopen
8598 # Whether dlopen of programs is supported.
8599 dlopen_self=$enable_dlopen_self
8601 # Whether dlopen of statically linked programs is supported.
8602 dlopen_self_static=$enable_dlopen_self_static
8604 # Compiler flag to prevent dynamic linking.
8605 link_static_flag=$lt_lt_prog_compiler_static
8607 # Compiler flag to turn off builtin functions.
8608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8610 # Compiler flag to allow reflexive dlopens.
8611 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8613 # Compiler flag to generate shared objects directly from archives.
8614 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8616 # Compiler flag to generate thread-safe objects.
8617 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8619 # Library versioning type.
8620 version_type=$version_type
8622 # Format of library name prefix.
8623 libname_spec=$lt_libname_spec
8625 # List of archive names. First name is the real one, the rest are links.
8626 # The last name is the one that the linker finds with -lNAME.
8627 library_names_spec=$lt_library_names_spec
8629 # The coded name of the library, if different from the real name.
8630 soname_spec=$lt_soname_spec
8632 # Commands used to build and install an old-style archive.
8633 RANLIB=$lt_RANLIB
8634 old_archive_cmds=$lt_old_archive_cmds
8635 old_postinstall_cmds=$lt_old_postinstall_cmds
8636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8638 # Create an old-style archive from a shared archive.
8639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8641 # Create a temporary old-style archive to link instead of a shared archive.
8642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8644 # Commands used to build and install a shared archive.
8645 archive_cmds=$lt_archive_cmds
8646 archive_expsym_cmds=$lt_archive_expsym_cmds
8647 postinstall_cmds=$lt_postinstall_cmds
8648 postuninstall_cmds=$lt_postuninstall_cmds
8650 # Commands to strip libraries.
8651 old_striplib=$lt_old_striplib
8652 striplib=$lt_striplib
8654 # Dependencies to place before the objects being linked to create a
8655 # shared library.
8656 predep_objects=$lt_predep_objects
8658 # Dependencies to place after the objects being linked to create a
8659 # shared library.
8660 postdep_objects=$lt_postdep_objects
8662 # Dependencies to place before the objects being linked to create a
8663 # shared library.
8664 predeps=$lt_predeps
8666 # Dependencies to place after the objects being linked to create a
8667 # shared library.
8668 postdeps=$lt_postdeps
8670 # The library search path used internally by the compiler when linking
8671 # a shared library.
8672 compiler_lib_search_path=$lt_compiler_lib_search_path
8674 # Method to check whether dependent libraries are shared objects.
8675 deplibs_check_method=$lt_deplibs_check_method
8677 # Command to use when deplibs_check_method == file_magic.
8678 file_magic_cmd=$lt_file_magic_cmd
8680 # Flag that allows shared libraries with undefined symbols to be built.
8681 allow_undefined_flag=$lt_allow_undefined_flag
8683 # Flag that forces no undefined symbols.
8684 no_undefined_flag=$lt_no_undefined_flag
8686 # Commands used to finish a libtool library installation in a directory.
8687 finish_cmds=$lt_finish_cmds
8689 # Same as above, but a single script fragment to be evaled but not shown.
8690 finish_eval=$lt_finish_eval
8692 # Take the output of nm and produce a listing of raw symbols and C names.
8693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8695 # Transform the output of nm in a proper C declaration
8696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8698 # Transform the output of nm in a C name address pair
8699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8701 # This is the shared library runtime path variable.
8702 runpath_var=$runpath_var
8704 # This is the shared library path variable.
8705 shlibpath_var=$shlibpath_var
8707 # Is shlibpath searched before the hard-coded library search path?
8708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8710 # How to hardcode a shared library path into an executable.
8711 hardcode_action=$hardcode_action
8713 # Whether we should hardcode library paths into libraries.
8714 hardcode_into_libs=$hardcode_into_libs
8716 # Flag to hardcode \$libdir into a binary during linking.
8717 # This must work even if \$libdir does not exist.
8718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8720 # Whether we need a single -rpath flag with a separated argument.
8721 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8723 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8724 # resulting binary.
8725 hardcode_direct=$hardcode_direct
8727 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8728 # resulting binary.
8729 hardcode_minus_L=$hardcode_minus_L
8731 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8732 # the resulting binary.
8733 hardcode_shlibpath_var=$hardcode_shlibpath_var
8735 # Variables whose values should be saved in libtool wrapper scripts and
8736 # restored at relink time.
8737 variables_saved_for_relink="$variables_saved_for_relink"
8739 # Whether libtool must link a program against all its dependency libraries.
8740 link_all_deplibs=$link_all_deplibs
8742 # Compile-time system search path for libraries
8743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8745 # Run-time system search path for libraries
8746 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8748 # Fix the shell variable \$srcfile for the compiler.
8749 fix_srcfile_path="$fix_srcfile_path"
8751 # Set to yes if exported symbols are required.
8752 always_export_symbols=$always_export_symbols
8754 # The commands to list exported symbols.
8755 export_symbols_cmds=$lt_export_symbols_cmds
8757 # The commands to extract the exported symbol list from a shared archive.
8758 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8760 # Symbols that should not be listed in the preloaded symbols.
8761 exclude_expsyms=$lt_exclude_expsyms
8763 # Symbols that must always be exported.
8764 include_expsyms=$lt_include_expsyms
8766 # ### END LIBTOOL CONFIG
8768 __EOF__
8771 case $host_os in
8772 aix3*)
8773 cat <<\EOF >> "$cfgfile"
8775 # AIX sometimes has problems with the GCC collect2 program. For some
8776 # reason, if we set the COLLECT_NAMES environment variable, the problems
8777 # vanish in a puff of smoke.
8778 if test "X${COLLECT_NAMES+set}" != Xset; then
8779 COLLECT_NAMES=
8780 export COLLECT_NAMES
8784 esac
8786 # We use sed instead of cat because bash on DJGPP gets confused if
8787 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8788 # text mode, it properly converts lines to CR/LF. This bash problem
8789 # is reportedly fixed, but why not run on old versions too?
8790 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8792 mv -f "$cfgfile" "$ofile" || \
8793 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8794 chmod +x "$ofile"
8796 else
8797 # If there is no Makefile yet, we rely on a make rule to execute
8798 # `config.status --recheck' to rerun these tests and create the
8799 # libtool script then.
8800 test -f Makefile && make "$ltmain"
8804 ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8810 CC="$lt_save_CC"
8813 # Check whether --with-tags or --without-tags was given.
8814 if test "${with_tags+set}" = set; then
8815 withval="$with_tags"
8816 tagnames="$withval"
8819 if test -f "$ltmain" && test -n "$tagnames"; then
8820 if test ! -f "${ofile}"; then
8821 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8822 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8825 if test -z "$LTCC"; then
8826 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8827 if test -z "$LTCC"; then
8828 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8829 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8830 else
8831 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8832 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8836 # Extract list of available tagged configurations in $ofile.
8837 # Note that this assumes the entire list is on one line.
8838 available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8841 for tagname in $tagnames; do
8842 IFS="$lt_save_ifs"
8843 # Check whether tagname contains only valid characters
8844 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8845 "") ;;
8846 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8847 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8848 { (exit 1); exit 1; }; }
8850 esac
8852 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8853 then
8854 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8855 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8856 { (exit 1); exit 1; }; }
8859 # Update the list of available tags.
8860 if test -n "$tagname"; then
8861 echo appending configuration tag \"$tagname\" to $ofile
8863 case $tagname in
8864 CXX)
8865 ac_ext=cc
8866 ac_cpp='$CXXCPP $CPPFLAGS'
8867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8874 archive_cmds_need_lc_CXX=no
8875 allow_undefined_flag_CXX=
8876 always_export_symbols_CXX=no
8877 archive_expsym_cmds_CXX=
8878 export_dynamic_flag_spec_CXX=
8879 hardcode_direct_CXX=no
8880 hardcode_libdir_flag_spec_CXX=
8881 hardcode_libdir_separator_CXX=
8882 hardcode_minus_L_CXX=no
8883 link_all_deplibs_CXX=unknown
8884 old_archive_cmds_CXX=$old_archive_cmds
8885 no_undefined_flag_CXX=
8886 whole_archive_flag_spec_CXX=
8887 enable_shared_with_static_runtimes_CXX=no
8889 # Dependencies to place before and after the object being linked:
8890 predep_objects_CXX=
8891 postdep_objects_CXX=
8892 predeps_CXX=
8893 postdeps_CXX=
8894 compiler_lib_search_path_CXX=
8896 # Source file extension for C test sources.
8897 ac_ext=cc
8899 # Object file extension for compiled C test sources.
8900 objext=o
8901 objext_CXX=$objext
8903 # Code to be used in simple compile tests
8904 lt_simple_compile_test_code="int some_variable = 0;\n"
8906 # Code to be used in simple link tests
8907 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8909 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8911 # If no C compiler was specified, use CC.
8912 LTCC=${LTCC-"$CC"}
8914 # Allow CC to be a program name with arguments.
8915 set dummy $CC
8916 compiler="$2"
8919 # Allow CC to be a program name with arguments.
8920 lt_save_CC="$CC"
8921 CC=${CXX-"c++"}
8922 set dummy $CC
8923 compiler="$2"
8924 compiler_CXX=$CC
8925 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8927 # We don't want -fno-exception wen compiling C++ code, so set the
8928 # no_builtin_flag separately
8929 if test "$GXX" = yes; then
8930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8931 else
8932 lt_prog_compiler_no_builtin_flag_CXX=
8935 if test "$GXX" = yes; then
8936 # Set up default GNU C++ configuration
8938 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8939 # archiving commands below assume that GNU ld is being used.
8940 if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
8941 grep 'GNU ld' > /dev/null; then
8942 with_gnu_ld=yes
8944 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945 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'
8947 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8950 # If archive_cmds runs LD, not CC, wlarc should be empty
8951 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8952 # investigate it a little bit more. (MM)
8953 wlarc='${wl}'
8955 # ancient GNU ld didn't support --whole-archive et. al.
8956 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8957 grep 'no-whole-archive' > /dev/null; then
8958 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8959 else
8960 whole_archive_flag_spec_CXX=
8962 else
8963 with_gnu_ld=no
8964 wlarc=
8966 # A generic and very simple default shared library creation
8967 # command for GNU C++ for the case where it uses the native
8968 # linker, instead of GNU ld. If possible, this setting should
8969 # overridden to take advantage of the native linker features on
8970 # the platform it is being used on.
8971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8974 # Commands to make compiler produce verbose output that lists
8975 # what "hidden" libraries, object files and flags are used when
8976 # linking a shared library.
8977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8979 else
8980 GXX=no
8981 with_gnu_ld=no
8982 wlarc=
8985 # PORTME: fill in a description of your system's C++ link characteristics
8986 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8988 ld_shlibs_CXX=yes
8989 case $host_os in
8990 aix3*)
8991 # FIXME: insert proper C++ library support
8992 ld_shlibs_CXX=no
8994 aix4* | aix5*)
8995 if test "$host_cpu" = ia64; then
8996 # On IA64, the linker does run time linking by default, so we don't
8997 # have to do anything special.
8998 aix_use_runtimelinking=no
8999 exp_sym_flag='-Bexport'
9000 no_entry_flag=""
9001 else
9002 aix_use_runtimelinking=no
9004 # Test if we are trying to use run time linking or normal
9005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9006 # need to do runtime linking.
9007 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9008 for ld_flag in $LDFLAGS; do
9009 case $ld_flag in
9010 *-brtl*)
9011 aix_use_runtimelinking=yes
9012 break
9014 esac
9015 done
9016 esac
9018 exp_sym_flag='-bexport'
9019 no_entry_flag='-bnoentry'
9022 # When large executables or shared objects are built, AIX ld can
9023 # have problems creating the table of contents. If linking a library
9024 # or program results in "error TOC overflow" add -mminimal-toc to
9025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9028 archive_cmds_CXX=''
9029 hardcode_direct_CXX=yes
9030 hardcode_libdir_separator_CXX=':'
9031 link_all_deplibs_CXX=yes
9033 if test "$GXX" = yes; then
9034 case $host_os in aix4.012|aix4.012.*)
9035 # We only want to do this on AIX 4.2 and lower, the check
9036 # below for broken collect2 doesn't work under 4.3+
9037 collect2name=`${CC} -print-prog-name=collect2`
9038 if test -f "$collect2name" && \
9039 strings "$collect2name" | grep resolve_lib_name >/dev/null
9040 then
9041 # We have reworked collect2
9042 hardcode_direct_CXX=yes
9043 else
9044 # We have old collect2
9045 hardcode_direct_CXX=unsupported
9046 # It fails to find uninstalled libraries when the uninstalled
9047 # path is not listed in the libpath. Setting hardcode_minus_L
9048 # to unsupported forces relinking
9049 hardcode_minus_L_CXX=yes
9050 hardcode_libdir_flag_spec_CXX='-L$libdir'
9051 hardcode_libdir_separator_CXX=
9053 esac
9054 shared_flag='-shared'
9055 else
9056 # not using gcc
9057 if test "$host_cpu" = ia64; then
9058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9059 # chokes on -Wl,-G. The following line is correct:
9060 shared_flag='-G'
9061 else
9062 if test "$aix_use_runtimelinking" = yes; then
9063 shared_flag='${wl}-G'
9064 else
9065 shared_flag='${wl}-bM:SRE'
9070 # It seems that -bexpall does not export symbols beginning with
9071 # underscore (_), so it is better to generate a list of symbols to export.
9072 always_export_symbols_CXX=yes
9073 if test "$aix_use_runtimelinking" = yes; then
9074 # Warning - without using the other runtime loading flags (-brtl),
9075 # -berok will link without error, but may produce a broken library.
9076 allow_undefined_flag_CXX='-berok'
9077 # Determine the default libpath from the value encoded in an empty executable.
9078 cat >conftest.$ac_ext <<_ACEOF
9079 #line $LINENO "configure"
9080 #include "confdefs.h"
9083 main ()
9087 return 0;
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9105 # Check for a 64-bit object if we didn't find anything.
9106 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; }
9107 }'`; fi
9108 else
9109 echo "$as_me: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9115 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9117 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"
9118 else
9119 if test "$host_cpu" = ia64; then
9120 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9121 allow_undefined_flag_CXX="-z nodefs"
9122 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"
9123 else
9124 # Determine the default libpath from the value encoded in an empty executable.
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line $LINENO "configure"
9127 #include "confdefs.h"
9130 main ()
9134 return 0;
9136 _ACEOF
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 (eval $ac_try) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9152 # Check for a 64-bit object if we didn't find anything.
9153 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; }
9154 }'`; fi
9155 else
9156 echo "$as_me: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9163 # Warning - without using the other run time loading flags,
9164 # -berok will link without error, but may produce a broken library.
9165 no_undefined_flag_CXX=' ${wl}-bernotok'
9166 allow_undefined_flag_CXX=' ${wl}-berok'
9167 # -bexpall does not export symbols beginning with underscore (_)
9168 always_export_symbols_CXX=yes
9169 # Exported symbols can be pulled into shared objects from archives
9170 whole_archive_flag_spec_CXX=' '
9171 archive_cmds_need_lc_CXX=yes
9172 # This is similar to how AIX traditionally builds it's shared libraries.
9173 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'
9176 postinstall_cmds='dlpath=`sh 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
9177 dldir=$destdir/`dirname \$dlpath`~
9178 test -d \$dldir || mkdir -p \$dldir~
9179 $install_prog .libs/$dlname \$dldir/$dlname'
9180 postuninstall_cmds='dldll=`sh 2>&1 -c '\''. $file; echo \$dlname'\''`~
9181 dlpath=$dir/\$dldll~
9182 $rm \$dlpath'
9183 shlibpath_overrides_runpath=yes
9185 chorus*)
9186 case $cc_basename in
9188 # FIXME: insert proper C++ library support
9189 ld_shlibs_CXX=no
9191 esac
9194 cygwin* | mingw* | pw32*)
9195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9196 # as there is no search path for DLLs.
9197 hardcode_libdir_flag_spec_CXX='-L$libdir'
9198 allow_undefined_flag_CXX=unsupported
9199 always_export_symbols_CXX=no
9200 enable_shared_with_static_runtimes_CXX=yes
9202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9203 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'
9204 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
9205 else
9206 ld_shlibs_CXX=no
9210 dgux*)
9211 case $cc_basename in
9212 ec++)
9213 # FIXME: insert proper C++ library support
9214 ld_shlibs_CXX=no
9216 ghcx)
9217 # Green Hills C++ Compiler
9218 # FIXME: insert proper C++ library support
9219 ld_shlibs_CXX=no
9222 # FIXME: insert proper C++ library support
9223 ld_shlibs_CXX=no
9225 esac
9227 freebsd12*)
9228 # C++ shared libraries reported to be fairly broken before switch to ELF
9229 ld_shlibs_CXX=no
9231 freebsd-elf*)
9232 archive_cmds_need_lc_CXX=no
9234 freebsd*)
9235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9236 # conventions
9237 ld_shlibs_CXX=yes
9239 gnu*)
9241 hpux*)
9242 if test $with_gnu_ld = no; then
9243 if test "$host_cpu" = ia64; then
9244 hardcode_libdir_flag_spec_CXX='-L$libdir'
9245 else
9246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9247 hardcode_libdir_separator_CXX=:
9248 export_dynamic_flag_spec_CXX='${wl}-E'
9251 if test "$host_cpu" = ia64; then
9252 hardcode_direct_CXX=no
9253 hardcode_shlibpath_var_CXX=no
9254 else
9255 hardcode_direct_CXX=yes
9257 hardcode_minus_L_CXX=yes # Not in the search PATH,
9258 # but as the default
9259 # location of the library.
9261 case $cc_basename in
9263 # FIXME: insert proper C++ library support
9264 ld_shlibs_CXX=no
9266 aCC)
9267 case $host_os in
9268 hpux9*)
9269 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'
9272 if test "$host_cpu" = ia64; then
9273 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9274 else
9275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9278 esac
9279 # Commands to make compiler produce verbose output that lists
9280 # what "hidden" libraries, object files and flags are used when
9281 # linking a shared library.
9283 # There doesn't appear to be a way to prevent this compiler from
9284 # explicitly linking system object files so we need to strip them
9285 # from the output so that they don't get included in the library
9286 # dependencies.
9287 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'
9290 if test "$GXX" = yes; then
9291 if test $with_gnu_ld = no; then
9292 case $host_os in
9293 hpux9*)
9294 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'
9297 if test "$host_cpu" = ia64; then
9298 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9299 else
9300 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'
9303 esac
9305 else
9306 # FIXME: insert proper C++ library support
9307 ld_shlibs_CXX=no
9310 esac
9312 irix5* | irix6*)
9313 case $cc_basename in
9315 # SGI C++
9316 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'
9318 # Archives containing C++ object files must be created using
9319 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9320 # necessary to make sure instantiated templates are included
9321 # in the archive.
9322 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9325 if test "$GXX" = yes; then
9326 if test "$with_gnu_ld" = no; then
9327 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'
9328 else
9329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
9332 link_all_deplibs_CXX=yes
9334 esac
9335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9336 hardcode_libdir_separator_CXX=:
9338 linux*)
9339 case $cc_basename in
9340 KCC)
9341 # Kuck and Associates, Inc. (KAI) C++ Compiler
9343 # KCC will only create a shared library if the output file
9344 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9345 # to its proper name (with version) after linking.
9346 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9347 archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9349 # Commands to make compiler produce verbose output that lists
9350 # what "hidden" libraries, object files and flags are used when
9351 # linking a shared library.
9353 # There doesn't appear to be a way to prevent this compiler from
9354 # explicitly linking system object files so we need to strip them
9355 # from the output so that they don't get included in the library
9356 # dependencies.
9357 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | grep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9359 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9362 # Archives containing C++ object files must be created using
9363 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9364 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9366 cxx)
9367 # Compaq C++
9368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 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'
9371 runpath_var=LD_RUN_PATH
9372 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9373 hardcode_libdir_separator_CXX=:
9375 # Commands to make compiler produce verbose output that lists
9376 # what "hidden" libraries, object files and flags are used when
9377 # linking a shared library.
9379 # There doesn't appear to be a way to prevent this compiler from
9380 # explicitly linking system object files so we need to strip them
9381 # from the output so that they don't get included in the library
9382 # dependencies.
9383 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'
9385 esac
9387 lynxos*)
9388 # FIXME: insert proper C++ library support
9389 ld_shlibs_CXX=no
9391 m88k*)
9392 # FIXME: insert proper C++ library support
9393 ld_shlibs_CXX=no
9395 mvs*)
9396 case $cc_basename in
9397 cxx)
9398 # FIXME: insert proper C++ library support
9399 ld_shlibs_CXX=no
9402 # FIXME: insert proper C++ library support
9403 ld_shlibs_CXX=no
9405 esac
9407 netbsd*)
9408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9409 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9410 wlarc=
9411 hardcode_libdir_flag_spec_CXX='-R$libdir'
9412 hardcode_direct_CXX=yes
9413 hardcode_shlibpath_var_CXX=no
9415 # Workaround some broken pre-1.5 toolchains
9416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | sed -e "s:-lgcc -lc -lgcc::"'
9418 osf3*)
9419 case $cc_basename in
9420 KCC)
9421 # Kuck and Associates, Inc. (KAI) C++ Compiler
9423 # KCC will only create a shared library if the output file
9424 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9425 # to its proper name (with version) after linking.
9426 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9429 hardcode_libdir_separator_CXX=:
9431 # Archives containing C++ object files must be created using
9432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9436 RCC)
9437 # Rational C++ 2.4.1
9438 # FIXME: insert proper C++ library support
9439 ld_shlibs_CXX=no
9441 cxx)
9442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9443 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'
9445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9446 hardcode_libdir_separator_CXX=:
9448 # Commands to make compiler produce verbose output that lists
9449 # what "hidden" libraries, object files and flags are used when
9450 # linking a shared library.
9452 # There doesn't appear to be a way to prevent this compiler from
9453 # explicitly linking system object files so we need to strip them
9454 # from the output so that they don't get included in the library
9455 # dependencies.
9456 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'
9459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9461 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'
9463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9464 hardcode_libdir_separator_CXX=:
9466 # Commands to make compiler produce verbose output that lists
9467 # what "hidden" libraries, object files and flags are used when
9468 # linking a shared library.
9469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9471 else
9472 # FIXME: insert proper C++ library support
9473 ld_shlibs_CXX=no
9476 esac
9478 osf4* | osf5*)
9479 case $cc_basename in
9480 KCC)
9481 # Kuck and Associates, Inc. (KAI) C++ Compiler
9483 # KCC will only create a shared library if the output file
9484 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9485 # to its proper name (with version) after linking.
9486 archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9489 hardcode_libdir_separator_CXX=:
9491 # Archives containing C++ object files must be created using
9492 # the KAI C++ compiler.
9493 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9495 RCC)
9496 # Rational C++ 2.4.1
9497 # FIXME: insert proper C++ library support
9498 ld_shlibs_CXX=no
9500 cxx)
9501 allow_undefined_flag_CXX=' -expect_unresolved \*'
9502 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'
9503 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
9504 echo "-hidden">> $lib.exp~
9505 $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~
9506 $rm $lib.exp'
9508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9509 hardcode_libdir_separator_CXX=:
9511 # Commands to make compiler produce verbose output that lists
9512 # what "hidden" libraries, object files and flags are used when
9513 # linking a shared library.
9515 # There doesn't appear to be a way to prevent this compiler from
9516 # explicitly linking system object files so we need to strip them
9517 # from the output so that they don't get included in the library
9518 # dependencies.
9519 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'
9522 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9524 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'
9526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator_CXX=:
9529 # Commands to make compiler produce verbose output that lists
9530 # what "hidden" libraries, object files and flags are used when
9531 # linking a shared library.
9532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9534 else
9535 # FIXME: insert proper C++ library support
9536 ld_shlibs_CXX=no
9539 esac
9541 psos*)
9542 # FIXME: insert proper C++ library support
9543 ld_shlibs_CXX=no
9545 sco*)
9546 archive_cmds_need_lc_CXX=no
9547 case $cc_basename in
9549 # FIXME: insert proper C++ library support
9550 ld_shlibs_CXX=no
9553 # FIXME: insert proper C++ library support
9554 ld_shlibs_CXX=no
9556 esac
9558 sunos4*)
9559 case $cc_basename in
9561 # Sun C++ 4.x
9562 # FIXME: insert proper C++ library support
9563 ld_shlibs_CXX=no
9565 lcc)
9566 # Lucid
9567 # FIXME: insert proper C++ library support
9568 ld_shlibs_CXX=no
9571 # FIXME: insert proper C++ library support
9572 ld_shlibs_CXX=no
9574 esac
9576 solaris*)
9577 case $cc_basename in
9579 # Sun C++ 4.2, 5.x and Centerline C++
9580 no_undefined_flag_CXX=' -zdefs'
9581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9582 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9583 $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'
9585 hardcode_libdir_flag_spec_CXX='-R$libdir'
9586 hardcode_shlibpath_var_CXX=no
9587 case $host_os in
9588 solaris2.0-5 | solaris2.0-5.*) ;;
9590 # The C++ compiler is used as linker so we must use $wl
9591 # flag to pass the commands to the underlying system
9592 # linker.
9593 # Supported since Solaris 2.6 (maybe 2.5.1?)
9594 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9596 esac
9597 link_all_deplibs_CXX=yes
9599 # Commands to make compiler produce verbose output that lists
9600 # what "hidden" libraries, object files and flags are used when
9601 # linking a shared library.
9603 # There doesn't appear to be a way to prevent this compiler from
9604 # explicitly linking system object files so we need to strip them
9605 # from the output so that they don't get included in the library
9606 # dependencies.
9607 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'
9609 # Archives containing C++ object files must be created using
9610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9611 # necessary to make sure instantiated templates are included
9612 # in the archive.
9613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9615 gcx)
9616 # Green Hills C++ Compiler
9617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9619 # The C++ compiler must be used to create the archive.
9620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9623 # GNU C++ compiler with Solaris linker
9624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9626 if $CC --version | grep -v '^2\.7' > /dev/null; then
9627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9631 # Commands to make compiler produce verbose output that lists
9632 # what "hidden" libraries, object files and flags are used when
9633 # linking a shared library.
9634 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9635 else
9636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9637 # platform.
9638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
9639 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
9642 # Commands to make compiler produce verbose output that lists
9643 # what "hidden" libraries, object files and flags are used when
9644 # linking a shared library.
9645 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9651 esac
9653 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9654 archive_cmds_need_lc_CXX=no
9656 tandem*)
9657 case $cc_basename in
9658 NCC)
9659 # NonStop-UX NCC 3.20
9660 # FIXME: insert proper C++ library support
9661 ld_shlibs_CXX=no
9664 # FIXME: insert proper C++ library support
9665 ld_shlibs_CXX=no
9667 esac
9669 vxworks*)
9670 # FIXME: insert proper C++ library support
9671 ld_shlibs_CXX=no
9674 # FIXME: insert proper C++ library support
9675 ld_shlibs_CXX=no
9677 esac
9678 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9679 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9680 test "$ld_shlibs_CXX" = no && can_build_shared=no
9682 GCC_CXX="$GXX"
9683 LD_CXX="$LD"
9686 cat > conftest.$ac_ext <<EOF
9687 class Foo
9689 public:
9690 Foo (void) { a = 0; }
9691 private:
9692 int a;
9696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697 (eval $ac_compile) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; then
9701 # Parse the compiler output and extract the necessary
9702 # objects, libraries and library flags.
9704 # Sentinel used to keep track of whether or not we are before
9705 # the conftest object file.
9706 pre_test_object_deps_done=no
9708 # The `*' in the case matches for architectures that use `case' in
9709 # $output_verbose_cmd can trigger glob expansion during the loop
9710 # eval without this substitution.
9711 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9713 for p in `eval $output_verbose_link_cmd`; do
9714 case $p in
9716 -L* | -R* | -l*)
9717 # Some compilers place space between "-{L,R}" and the path.
9718 # Remove the space.
9719 if test $p = "-L" \
9720 || test $p = "-R"; then
9721 prev=$p
9722 continue
9723 else
9724 prev=
9727 if test "$pre_test_object_deps_done" = no; then
9728 case $p in
9729 -L* | -R*)
9730 # Internal compiler library paths should come after those
9731 # provided the user. The postdeps already come after the
9732 # user supplied libs so there is no need to process them.
9733 if test -z "$compiler_lib_search_path_CXX"; then
9734 compiler_lib_search_path_CXX="${prev}${p}"
9735 else
9736 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9739 # The "-l" case would never come before the object being
9740 # linked, so don't bother handling this case.
9741 esac
9742 else
9743 if test -z "$postdeps_CXX"; then
9744 postdeps_CXX="${prev}${p}"
9745 else
9746 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9751 *.$objext)
9752 # This assumes that the test object file only shows up
9753 # once in the compiler output.
9754 if test "$p" = "conftest.$objext"; then
9755 pre_test_object_deps_done=yes
9756 continue
9759 if test "$pre_test_object_deps_done" = no; then
9760 if test -z "$predep_objects_CXX"; then
9761 predep_objects_CXX="$p"
9762 else
9763 predep_objects_CXX="$predep_objects_CXX $p"
9765 else
9766 if test -z "$postdep_objects_CXX"; then
9767 postdep_objects_CXX="$p"
9768 else
9769 postdep_objects_CXX="$postdep_objects_CXX $p"
9774 *) ;; # Ignore the rest.
9776 esac
9777 done
9779 # Clean up.
9780 rm -f a.out a.exe
9781 else
9782 echo "libtool.m4: error: problem compiling CXX test program"
9785 $rm -f confest.$objext
9787 case " $postdeps_CXX " in
9788 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9789 *) archive_cmds_need_lc_CXX=yes ;;
9790 esac
9792 lt_prog_compiler_wl_CXX=
9793 lt_prog_compiler_pic_CXX=
9794 lt_prog_compiler_static_CXX=
9796 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9797 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9799 # C++ specific cases for pic, static, wl, etc.
9800 if test "$GXX" = yes; then
9801 lt_prog_compiler_wl_CXX='-Wl,'
9802 lt_prog_compiler_static_CXX='-static'
9804 case $host_os in
9805 aix*)
9806 # All AIX code is PIC.
9807 if test "$host_cpu" = ia64; then
9808 # AIX 5 now supports IA64 processor
9809 lt_prog_compiler_static_CXX='-Bstatic'
9812 amigaos*)
9813 # FIXME: we need at least 68020 code to build shared libraries, but
9814 # adding the `-m68020' flag to GCC prevents building anything better,
9815 # like `-m68040'.
9816 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9818 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9819 # PIC is the default for these OSes.
9821 mingw* | os2* | pw32*)
9822 # This hack is so that the source file can tell whether it is being
9823 # built for inclusion in a dll (and should export symbols for example).
9824 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9826 darwin* | rhapsody*)
9827 # PIC is the default on this platform
9828 # Common symbols not allowed in MH_DYLIB files
9829 lt_prog_compiler_pic_CXX='-fno-common'
9831 *djgpp*)
9832 # DJGPP does not support shared libraries at all
9833 lt_prog_compiler_pic_CXX=
9835 sysv4*MP*)
9836 if test -d /usr/nec; then
9837 lt_prog_compiler_pic_CXX=-Kconform_pic
9840 hpux*)
9841 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9842 if test "$host_cpu" != ia64; then
9843 lt_prog_compiler_pic_CXX='-fPIC'
9847 lt_prog_compiler_pic_CXX='-fPIC'
9849 esac
9850 else
9851 case $host_os in
9852 aix4* | aix5*)
9853 # All AIX code is PIC.
9854 if test "$host_cpu" = ia64; then
9855 # AIX 5 now supports IA64 processor
9856 lt_prog_compiler_static_CXX='-Bstatic'
9857 else
9858 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9861 chorus*)
9862 case $cc_basename in
9863 cxch68)
9864 # Green Hills C++ Compiler
9865 # _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"
9867 esac
9869 dgux*)
9870 case $cc_basename in
9871 ec++)
9872 lt_prog_compiler_pic_CXX='-KPIC'
9874 ghcx)
9875 # Green Hills C++ Compiler
9876 lt_prog_compiler_pic_CXX='-pic'
9880 esac
9882 freebsd*)
9883 # FreeBSD uses GNU C++
9885 hpux9* | hpux10* | hpux11*)
9886 case $cc_basename in
9888 lt_prog_compiler_wl_CXX='-Wl,'
9889 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9890 if test "$host_cpu" != ia64; then
9891 lt_prog_compiler_pic_CXX='+Z'
9894 aCC)
9895 lt_prog_compiler_wl_CXX='-Wl,'
9896 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9897 if test "$host_cpu" != ia64; then
9898 lt_prog_compiler_pic_CXX='+Z'
9903 esac
9905 irix5* | irix6* | nonstopux*)
9906 case $cc_basename in
9908 lt_prog_compiler_wl_CXX='-Wl,'
9909 lt_prog_compiler_static_CXX='-non_shared'
9910 # CC pic flag -KPIC is the default.
9914 esac
9916 linux*)
9917 case $cc_basename in
9918 KCC)
9919 # KAI C++ Compiler
9920 lt_prog_compiler_wl_CXX='--backend -Wl,'
9921 lt_prog_compiler_pic_CXX='-fPIC'
9923 cxx)
9924 # Compaq C++
9925 # Make sure the PIC flag is empty. It appears that all Alpha
9926 # Linux and Compaq Tru64 Unix objects are PIC.
9927 lt_prog_compiler_pic_CXX=
9928 lt_prog_compiler_static_CXX='-non_shared'
9932 esac
9934 lynxos*)
9936 m88k*)
9938 mvs*)
9939 case $cc_basename in
9940 cxx)
9941 lt_prog_compiler_pic_CXX='-W c,exportall'
9945 esac
9947 netbsd*)
9949 osf3* | osf4* | osf5*)
9950 case $cc_basename in
9951 KCC)
9952 lt_prog_compiler_wl_CXX='--backend -Wl,'
9954 RCC)
9955 # Rational C++ 2.4.1
9956 lt_prog_compiler_pic_CXX='-pic'
9958 cxx)
9959 # Digital/Compaq C++
9960 lt_prog_compiler_wl_CXX='-Wl,'
9961 # Make sure the PIC flag is empty. It appears that all Alpha
9962 # Linux and Compaq Tru64 Unix objects are PIC.
9963 lt_prog_compiler_pic_CXX=
9964 lt_prog_compiler_static_CXX='-non_shared'
9968 esac
9970 psos*)
9972 sco*)
9973 case $cc_basename in
9975 lt_prog_compiler_pic_CXX='-fPIC'
9979 esac
9981 solaris*)
9982 case $cc_basename in
9984 # Sun C++ 4.2, 5.x and Centerline C++
9985 lt_prog_compiler_pic_CXX='-KPIC'
9986 lt_prog_compiler_static_CXX='-Bstatic'
9987 lt_prog_compiler_wl_CXX='-Qoption ld '
9989 gcx)
9990 # Green Hills C++ Compiler
9991 lt_prog_compiler_pic_CXX='-PIC'
9995 esac
9997 sunos4*)
9998 case $cc_basename in
10000 # Sun C++ 4.x
10001 lt_prog_compiler_pic_CXX='-pic'
10002 lt_prog_compiler_static_CXX='-Bstatic'
10004 lcc)
10005 # Lucid
10006 lt_prog_compiler_pic_CXX='-pic'
10010 esac
10012 tandem*)
10013 case $cc_basename in
10014 NCC)
10015 # NonStop-UX NCC 3.20
10016 lt_prog_compiler_pic_CXX='-KPIC'
10020 esac
10022 unixware*)
10024 vxworks*)
10027 lt_prog_compiler_can_build_shared_CXX=no
10029 esac
10032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10033 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10036 # Check to make sure the PIC flag actually works.
10038 if test -n "$lt_prog_compiler_pic_CXX"; then
10039 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10040 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10041 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 lt_prog_compiler_pic_works_CXX=no
10045 ac_outfile=conftest.$ac_objext
10046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10047 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10048 # Insert the option either (1) after the last *FLAGS variable, or
10049 # (2) before a word containing "conftest.", or (3) at the end.
10050 # Note that $ac_compile itself does not contain backslashes and begins
10051 # with a dollar sign (not a hyphen), so the echo should work correctly.
10052 # The option is referenced via a variable to avoid confusing sed.
10053 lt_compile=`echo "$ac_compile" | sed \
10054 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
10055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056 -e 's:$: $lt_compiler_flag:'`
10057 (eval echo "\"\$as_me:10057: $lt_compile\"" >&5)
10058 (eval "$lt_compile" 2>conftest.err)
10059 ac_status=$?
10060 cat conftest.err >&5
10061 echo "$as_me:10061: \$? = $ac_status" >&5
10062 if (exit $ac_status) && test -s "$ac_outfile"; then
10063 # The compiler can only warn and ignore the option if not recognized
10064 # So say no if there are warnings
10065 if test ! -s conftest.err; then
10066 lt_prog_compiler_pic_works_CXX=yes
10069 $rm conftest*
10072 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10073 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10075 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10076 case $lt_prog_compiler_pic_CXX in
10077 "" | " "*) ;;
10078 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10079 esac
10080 else
10081 lt_prog_compiler_pic_CXX=
10082 lt_prog_compiler_can_build_shared_CXX=no
10086 case "$host_os" in
10087 # For platforms which do not support PIC, -DPIC is meaningless:
10088 *djgpp*)
10089 lt_prog_compiler_pic_CXX=
10092 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10094 esac
10096 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10098 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101 lt_cv_prog_compiler_c_o_CXX=no
10102 $rm -r conftest 2>/dev/null
10103 mkdir conftest
10104 cd conftest
10105 mkdir out
10106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10108 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10109 # that will create temporary files in the current directory regardless of
10110 # the output directory. Thus, making CWD read-only will cause this test
10111 # to fail, enabling locking or at least warning the user not to do parallel
10112 # builds.
10113 chmod -w .
10115 lt_compiler_flag="-o out/conftest2.$ac_objext"
10116 # Insert the option either (1) after the last *FLAGS variable, or
10117 # (2) before a word containing "conftest.", or (3) at the end.
10118 # Note that $ac_compile itself does not contain backslashes and begins
10119 # with a dollar sign (not a hyphen), so the echo should work correctly.
10120 lt_compile=`echo "$ac_compile" | sed \
10121 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
10122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123 -e 's:$: $lt_compiler_flag:'`
10124 (eval echo "\"\$as_me:10124: $lt_compile\"" >&5)
10125 (eval "$lt_compile" 2>out/conftest.err)
10126 ac_status=$?
10127 cat out/conftest.err >&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10130 then
10131 # The compiler can only warn and ignore the option if not recognized
10132 # So say no if there are warnings
10133 if test ! -s out/conftest.err; then
10134 lt_cv_prog_compiler_c_o_CXX=yes
10137 chmod u+w .
10138 $rm conftest* out/*
10139 rmdir out
10140 cd ..
10141 rmdir conftest
10142 $rm conftest*
10145 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10146 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10149 hard_links="nottested"
10150 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10151 # do not overwrite the value of need_locks provided by the user
10152 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10153 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10154 hard_links=yes
10155 $rm conftest*
10156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10157 touch conftest.a
10158 ln conftest.a conftest.b 2>&5 || hard_links=no
10159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10160 echo "$as_me:$LINENO: result: $hard_links" >&5
10161 echo "${ECHO_T}$hard_links" >&6
10162 if test "$hard_links" = no; then
10163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10164 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10165 need_locks=warn
10167 else
10168 need_locks=no
10171 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10172 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10174 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10175 case $host_os in
10176 aix4* | aix5*)
10177 # If we're using GNU nm, then we don't want the "-C" option.
10178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10180 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'
10181 else
10182 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'
10185 pw32*)
10186 export_symbols_cmds_CXX="$ltdll_cmds"
10189 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10191 esac
10193 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10194 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10195 test "$ld_shlibs_CXX" = no && can_build_shared=no
10197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10198 if test "$GCC" = yes; then
10199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10203 # Do we need to explicitly link libc?
10205 archive_cmds_need_lc_CXX=yes
10206 if test "$enable_shared" = yes && test "$GCC" = yes; then
10207 case $archive_cmds_CXX in
10208 *'~'*)
10209 # FIXME: we may have to deal with multi-command sequences.
10211 '$CC '*)
10212 # Test whether the compiler implicitly links with -lc since on some
10213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10214 # to ld, don't add -lc before -lgcc.
10215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10217 $rm conftest*
10218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } 2>conftest.err; then
10225 soname=conftest
10226 lib=conftest
10227 libobjs=conftest.$ac_objext
10228 deplibs=
10229 wl=$lt_prog_compiler_wl_CXX
10230 compiler_flags=-v
10231 linker_flags=-v
10232 verstring=
10233 output_objdir=.
10234 libname=conftest
10235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10236 allow_undefined_flag_CXX=
10237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10238 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }
10242 then
10243 archive_cmds_need_lc_CXX=no
10244 else
10245 archive_cmds_need_lc_CXX=yes
10247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10248 else
10249 cat conftest.err 1>&5
10251 $rm conftest*
10252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10253 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10255 esac
10258 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10259 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10260 hardcode_action_CXX=
10261 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10262 test -n "$runpath_var CXX"; then
10264 # We can hardcode non-existant directories.
10265 if test "$hardcode_direct_CXX" != no &&
10266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10267 # have to relink, otherwise we might link with an installed library
10268 # when we should be linking with a yet-to-be-installed one
10269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10270 test "$hardcode_minus_L_CXX" != no; then
10271 # Linking always hardcodes the temporary library directory.
10272 hardcode_action_CXX=relink
10273 else
10274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10275 hardcode_action_CXX=immediate
10277 else
10278 # We cannot hardcode anything, or else we can only hardcode existing
10279 # directories.
10280 hardcode_action_CXX=unsupported
10282 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10283 echo "${ECHO_T}$hardcode_action_CXX" >&6
10285 if test "$hardcode_action_CXX" = relink; then
10286 # Fast installation is not supported
10287 enable_fast_install=no
10288 elif test "$shlibpath_overrides_runpath" = yes ||
10289 test "$enable_shared" = no; then
10290 # Fast installation is not necessary
10291 enable_fast_install=needless
10294 striplib=
10295 old_striplib=
10296 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10297 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10298 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10301 echo "$as_me:$LINENO: result: yes" >&5
10302 echo "${ECHO_T}yes" >&6
10303 else
10304 echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6
10308 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10309 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10310 library_names_spec=
10311 libname_spec='lib$name'
10312 soname_spec=
10313 postinstall_cmds=
10314 postuninstall_cmds=
10315 finish_cmds=
10316 finish_eval=
10317 shlibpath_var=
10318 shlibpath_overrides_runpath=unknown
10319 version_type=none
10320 dynamic_linker="$host_os ld.so"
10321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10322 if test "$GCC" = yes; then
10323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
10324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10325 # if the path contains ";" then we assume it to be the separator
10326 # otherwise default to the standard path separator (i.e. ":") - it is
10327 # assumed that no part of a normal pathname contains ";" but that should
10328 # okay in the real world where ";" in dirpaths is itself problematic.
10329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10330 else
10331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10333 else
10334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10336 need_lib_prefix=unknown
10337 hardcode_into_libs=no
10339 # when you set need_version to no, make sure it does not cause -set_version
10340 # flags to be left without arguments
10341 need_version=unknown
10343 case $host_os in
10344 aix3*)
10345 version_type=linux
10346 library_names_spec='${libname}${release}.so$versuffix $libname.a'
10347 shlibpath_var=LIBPATH
10349 # AIX 3 has no versioning support, so we append a major version to the name.
10350 soname_spec='${libname}${release}.so$major'
10353 aix4* | aix5*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 hardcode_into_libs=yes
10358 if test "$host_cpu" = ia64; then
10359 # AIX 5 supports IA64
10360 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 else
10363 # With GCC up to 2.95.x, collect2 would create an import file
10364 # for dependence libraries. The import file would start with
10365 # the line `#! .'. This would cause the generated library to
10366 # depend on `.', always an invalid library. This was fixed in
10367 # development snapshots of GCC prior to 3.0.
10368 case $host_os in
10369 aix4 | aix4.[01] | aix4.[01].*)
10370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10371 echo ' yes '
10372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10374 else
10375 can_build_shared=no
10378 esac
10379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10380 # soname into executable. Probably we can add versioning support to
10381 # collect2, so additional links can be useful in future.
10382 if test "$aix_use_runtimelinking" = yes; then
10383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10384 # instead of lib<name>.a to let people know that these are not
10385 # typical AIX shared libraries.
10386 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10387 else
10388 # We preserve .a as extension for shared libraries through AIX4.2
10389 # and later when we are not doing run time linking.
10390 library_names_spec='${libname}${release}.a $libname.a'
10391 soname_spec='${libname}${release}.so$major'
10393 shlibpath_var=LIBPATH
10397 amigaos*)
10398 library_names_spec='$libname.ixlibrary $libname.a'
10399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10400 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'
10403 beos*)
10404 library_names_spec='${libname}.so'
10405 dynamic_linker="$host_os ld.so"
10406 shlibpath_var=LIBRARY_PATH
10409 bsdi4*)
10410 version_type=linux
10411 need_version=no
10412 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10413 soname_spec='${libname}${release}.so$major'
10414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10415 shlibpath_var=LD_LIBRARY_PATH
10416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10418 # the default ld.so.conf also contains /usr/contrib/lib and
10419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10420 # libtool to hard-code these into programs
10423 cygwin* | mingw* | pw32*)
10424 version_type=windows
10425 need_version=no
10426 need_lib_prefix=no
10428 case $GCC,$host_os in
10429 yes,cygwin* | yes,mingw* | yes,pw32*)
10430 library_names_spec='$libname.dll.a'
10431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10432 postinstall_cmds='base_file=`basename \${file}`~
10433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10434 dldir=$destdir/`dirname \$dlpath`~
10435 test -d \$dldir || mkdir -p \$dldir~
10436 $install_prog $dir/$dlname \$dldir/$dlname'
10437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10438 dlpath=$dir/\$dldll~
10439 $rm \$dlpath'
10440 shlibpath_overrides_runpath=yes
10442 case $host_os in
10443 cygwin*)
10444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10446 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10448 mingw*)
10449 # MinGW DLLs use traditional 'lib' prefix
10450 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
10452 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10453 # It is most probably a Windows format PATH printed by
10454 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10455 # path with ; separators, and with drive letters. We can handle the
10456 # drive letters (cygwin fileutils understands them), so leave them,
10457 # especially as we might pass files found there to a mingw objdump,
10458 # which wouldn't understand a cygwinified path. Ahh.
10459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
10460 else
10461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
10464 pw32*)
10465 # pw32 DLLs use 'pw' prefix rather than 'lib'
10466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10468 esac
10472 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10474 esac
10475 dynamic_linker='Win32 ld.exe'
10476 # FIXME: first we should search . and the directory the executable is in
10477 shlibpath_var=PATH
10480 darwin* | rhapsody*)
10481 dynamic_linker="$host_os dyld"
10482 version_type=darwin
10483 need_lib_prefix=no
10484 need_version=no
10485 # FIXME: Relying on posixy $() will cause problems for
10486 # cross-compilation, but unfortunately the echo tests do not
10487 # yet detect zsh echo's removal of \ escapes.
10488 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10489 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10490 shlibpath_overrides_runpath=yes
10491 shlibpath_var=DYLD_LIBRARY_PATH
10494 dgux*)
10495 version_type=linux
10496 need_lib_prefix=no
10497 need_version=no
10498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10499 soname_spec='${libname}${release}.so$major'
10500 shlibpath_var=LD_LIBRARY_PATH
10503 freebsd1*)
10504 dynamic_linker=no
10507 freebsd*)
10508 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10509 version_type=freebsd-$objformat
10510 case $version_type in
10511 freebsd-elf*)
10512 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10513 need_version=no
10514 need_lib_prefix=no
10516 freebsd-*)
10517 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10518 need_version=yes
10520 esac
10521 shlibpath_var=LD_LIBRARY_PATH
10522 case $host_os in
10523 freebsd2*)
10524 shlibpath_overrides_runpath=yes
10526 freebsd3.01* | freebsdelf3.01*)
10527 shlibpath_overrides_runpath=yes
10528 hardcode_into_libs=yes
10530 *) # from 3.2 on
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10534 esac
10537 gnu*)
10538 version_type=linux
10539 need_lib_prefix=no
10540 need_version=no
10541 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10542 soname_spec='${libname}${release}.so$major'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 hardcode_into_libs=yes
10547 hpux9* | hpux10* | hpux11*)
10548 # Give a soname corresponding to the major version so that dld.sl refuses to
10549 # link against other versions.
10550 version_type=sunos
10551 need_lib_prefix=no
10552 need_version=no
10553 if test "$host_cpu" = ia64; then
10554 hardcode_into_libs=yes
10555 dynamic_linker="$host_os dld.so"
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10558 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10559 soname_spec='${libname}${release}.so$major'
10560 if test "X$HPUX_IA64_MODE" = X32; then
10561 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10562 else
10563 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10566 else
10567 dynamic_linker="$host_os dld.sl"
10568 shlibpath_var=SHLIB_PATH
10569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10570 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
10571 soname_spec='${libname}${release}.sl$major'
10573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10574 postinstall_cmds='chmod 555 $lib'
10577 irix5* | irix6* | nonstopux*)
10578 case $host_os in
10579 nonstopux*) version_type=nonstopux ;;
10580 *) version_type=irix ;;
10581 esac
10582 need_lib_prefix=no
10583 need_version=no
10584 soname_spec='${libname}${release}.so$major'
10585 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
10586 case $host_os in
10587 irix5* | nonstopux*)
10588 libsuff= shlibsuff=
10591 case $LD in # libtool.m4 will add one of these switches to LD
10592 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
10593 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
10594 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
10595 *) libsuff= shlibsuff= libmagic=never-match;;
10596 esac
10598 esac
10599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10600 shlibpath_overrides_runpath=no
10601 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10602 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10605 # No shared lib support for Linux oldld, aout, or coff.
10606 linux*oldld* | linux*aout* | linux*coff*)
10607 dynamic_linker=no
10610 # This must be Linux ELF.
10611 linux*)
10612 version_type=linux
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10616 soname_spec='${libname}${release}.so$major'
10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=no
10620 # This implies no fast_install, which is unacceptable.
10621 # Some rework will be needed to allow for fast_install
10622 # before this can be enabled.
10623 hardcode_into_libs=yes
10625 # We used to test for /lib/ld.so.1 and disable shared libraries on
10626 # powerpc, because MkLinux only supported shared libraries with the
10627 # GNU dynamic linker. Since this was broken with cross compilers,
10628 # most powerpc-linux boxes support dynamic linking these days and
10629 # people can always --disable-shared, the test was removed, and we
10630 # assume the GNU/Linux dynamic linker is in use.
10631 dynamic_linker='GNU/Linux ld.so'
10634 netbsd*)
10635 version_type=sunos
10636 need_lib_prefix=no
10637 need_version=no
10638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10639 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641 dynamic_linker='NetBSD (a.out) ld.so'
10642 else
10643 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
10644 soname_spec='${libname}${release}.so$major'
10645 dynamic_linker='NetBSD ld.elf_so'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 hardcode_into_libs=yes
10652 newsos6)
10653 version_type=linux
10654 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10659 nto-qnx)
10660 version_type=linux
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10664 soname_spec='${libname}${release}.so$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=yes
10669 openbsd*)
10670 version_type=sunos
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10677 case $host_os in
10678 openbsd2.[89] | openbsd2.[89].*)
10679 shlibpath_overrides_runpath=no
10682 shlibpath_overrides_runpath=yes
10684 esac
10685 else
10686 shlibpath_overrides_runpath=yes
10690 os2*)
10691 libname_spec='$name'
10692 need_lib_prefix=no
10693 library_names_spec='$libname.dll $libname.a'
10694 dynamic_linker='OS/2 ld.exe'
10695 shlibpath_var=LIBPATH
10698 osf3* | osf4* | osf5*)
10699 version_type=osf
10700 need_lib_prefix=no
10701 need_version=no
10702 soname_spec='${libname}${release}.so$major'
10703 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10709 sco3.2v5*)
10710 version_type=osf
10711 soname_spec='${libname}${release}.so$major'
10712 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10713 shlibpath_var=LD_LIBRARY_PATH
10716 solaris*)
10717 version_type=linux
10718 need_lib_prefix=no
10719 need_version=no
10720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10721 soname_spec='${libname}${release}.so$major'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10725 # ldd complains unless libraries are executable
10726 postinstall_cmds='chmod +x $lib'
10729 sunos4*)
10730 version_type=sunos
10731 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
10732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 if test "$with_gnu_ld" = yes; then
10736 need_lib_prefix=no
10738 need_version=yes
10741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10742 version_type=linux
10743 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10744 soname_spec='${libname}${release}.so$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 case $host_vendor in
10747 sni)
10748 shlibpath_overrides_runpath=no
10749 need_lib_prefix=no
10750 export_dynamic_flag_spec='${wl}-Blargedynsym'
10751 runpath_var=LD_RUN_PATH
10753 siemens)
10754 need_lib_prefix=no
10756 motorola)
10757 need_lib_prefix=no
10758 need_version=no
10759 shlibpath_overrides_runpath=no
10760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10762 esac
10765 sysv4*MP*)
10766 if test -d /usr/nec ;then
10767 version_type=linux
10768 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
10769 soname_spec='$libname.so.$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10774 uts4*)
10775 version_type=linux
10776 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10777 soname_spec='${libname}${release}.so$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10782 dynamic_linker=no
10784 esac
10785 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10786 echo "${ECHO_T}$dynamic_linker" >&6
10787 test "$dynamic_linker" = no && can_build_shared=no
10789 if test "x$enable_dlopen" != xyes; then
10790 enable_dlopen=unknown
10791 enable_dlopen_self=unknown
10792 enable_dlopen_self_static=unknown
10793 else
10794 lt_cv_dlopen=no
10795 lt_cv_dlopen_libs=
10797 case $host_os in
10798 beos*)
10799 lt_cv_dlopen="load_add_on"
10800 lt_cv_dlopen_libs=
10801 lt_cv_dlopen_self=yes
10804 mingw* | pw32*)
10805 lt_cv_dlopen="LoadLibrary"
10806 lt_cv_dlopen_libs=
10809 cygwin*)
10810 lt_cv_dlopen="dlopen"
10811 lt_cv_dlopen_libs=
10815 echo "$as_me:$LINENO: checking for shl_load" >&5
10816 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10817 if test "${ac_cv_func_shl_load+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 cat >conftest.$ac_ext <<_ACEOF
10821 #line $LINENO "configure"
10822 #include "confdefs.h"
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char shl_load (); below. */
10825 #include <assert.h>
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 /* We use char because int might match the return type of a gcc2
10831 builtin and then its argument prototype would still apply. */
10832 char shl_load ();
10833 char (*f) ();
10836 main ()
10838 /* The GNU C library defines this for functions which it implements
10839 to always fail with ENOSYS. Some functions are actually named
10840 something starting with __ and the normal name is an alias. */
10841 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10842 choke me
10843 #else
10844 f = shl_load;
10845 #endif
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -s conftest$ac_exeext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_func_shl_load=yes
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 ac_cv_func_shl_load=no
10869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10873 if test $ac_cv_func_shl_load = yes; then
10874 lt_cv_dlopen="shl_load"
10875 else
10876 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 ac_check_lib_save_LIBS=$LIBS
10882 LIBS="-ldld $LIBS"
10883 cat >conftest.$ac_ext <<_ACEOF
10884 #line $LINENO "configure"
10885 #include "confdefs.h"
10887 /* Override any gcc2 internal prototype to avoid an error. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 /* We use char because int might match the return type of a gcc2
10892 builtin and then its argument prototype would still apply. */
10893 char shl_load ();
10895 main ()
10897 shl_load ();
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10904 (eval $ac_link) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_cv_lib_dld_shl_load=yes
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10918 ac_cv_lib_dld_shl_load=no
10920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10924 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10925 if test $ac_cv_lib_dld_shl_load = yes; then
10926 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10927 else
10928 echo "$as_me:$LINENO: checking for dlopen" >&5
10929 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10930 if test "${ac_cv_func_dlopen+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 #include "confdefs.h"
10936 /* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char dlopen (); below. */
10938 #include <assert.h>
10939 /* Override any gcc2 internal prototype to avoid an error. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10945 char dlopen ();
10946 char (*f) ();
10949 main ()
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10955 choke me
10956 #else
10957 f = dlopen;
10958 #endif
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_func_dlopen=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 ac_cv_func_dlopen=no
10982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10985 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10986 if test $ac_cv_func_dlopen = yes; then
10987 lt_cv_dlopen="dlopen"
10988 else
10989 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-ldl $LIBS"
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
10998 #include "confdefs.h"
11000 /* Override any gcc2 internal prototype to avoid an error. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 /* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006 char dlopen ();
11008 main ()
11010 dlopen ();
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -s conftest$ac_exeext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_lib_dl_dlopen=yes
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 ac_cv_lib_dl_dlopen=no
11033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11038 if test $ac_cv_lib_dl_dlopen = yes; then
11039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11040 else
11041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-lsvld $LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11052 /* Override any gcc2 internal prototype to avoid an error. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char dlopen ();
11060 main ()
11062 dlopen ();
11064 return 0;
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069 (eval $ac_link) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_lib_svld_dlopen=yes
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 ac_cv_lib_svld_dlopen=no
11085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11089 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11090 if test $ac_cv_lib_svld_dlopen = yes; then
11091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11092 else
11093 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11094 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11095 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 ac_check_lib_save_LIBS=$LIBS
11099 LIBS="-ldld $LIBS"
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11104 /* Override any gcc2 internal prototype to avoid an error. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char dld_link ();
11112 main ()
11114 dld_link ();
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_lib_dld_dld_link=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11135 ac_cv_lib_dld_dld_link=no
11137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11138 LIBS=$ac_check_lib_save_LIBS
11140 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11141 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11142 if test $ac_cv_lib_dld_dld_link = yes; then
11143 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11162 esac
11164 if test "x$lt_cv_dlopen" != xno; then
11165 enable_dlopen=yes
11166 else
11167 enable_dlopen=no
11170 case $lt_cv_dlopen in
11171 dlopen)
11172 save_CPPFLAGS="$CPPFLAGS"
11173 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11175 save_LDFLAGS="$LDFLAGS"
11176 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11178 save_LIBS="$LIBS"
11179 LIBS="$lt_cv_dlopen_libs $LIBS"
11181 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11182 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11183 if test "${lt_cv_dlopen_self+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 if test "$cross_compiling" = yes; then :
11187 lt_cv_dlopen_self=cross
11188 else
11189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11190 lt_status=$lt_dlunknown
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11195 #if HAVE_DLFCN_H
11196 #include <dlfcn.h>
11197 #endif
11199 #include <stdio.h>
11201 #ifdef RTLD_GLOBAL
11202 # define LT_DLGLOBAL RTLD_GLOBAL
11203 #else
11204 # ifdef DL_GLOBAL
11205 # define LT_DLGLOBAL DL_GLOBAL
11206 # else
11207 # define LT_DLGLOBAL 0
11208 # endif
11209 #endif
11211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11212 find out it does not work in some platform. */
11213 #ifndef LT_DLLAZY_OR_NOW
11214 # ifdef RTLD_LAZY
11215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # else
11217 # ifdef DL_LAZY
11218 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # else
11220 # ifdef RTLD_NOW
11221 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # else
11223 # ifdef DL_NOW
11224 # define LT_DLLAZY_OR_NOW DL_NOW
11225 # else
11226 # define LT_DLLAZY_OR_NOW 0
11227 # endif
11228 # endif
11229 # endif
11230 # endif
11231 #endif
11233 #ifdef __cplusplus
11234 extern "C" void exit (int);
11235 #endif
11237 void fnord() { int i=42;}
11238 int main ()
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11243 if (self)
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11247 /* dlclose (self); */
11250 exit (status);
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254 (eval $ac_link) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11258 (./conftest; exit; ) 2>/dev/null
11259 lt_status=$?
11260 case x$lt_status in
11261 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11262 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11263 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11264 esac
11265 else :
11266 # compilation failed
11267 lt_cv_dlopen_self=no
11270 rm -fr conftest*
11274 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11275 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11277 if test "x$lt_cv_dlopen_self" = xyes; then
11278 LDFLAGS="$LDFLAGS $link_static_flag"
11279 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11280 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11281 if test "${lt_cv_dlopen_self_static+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 if test "$cross_compiling" = yes; then :
11285 lt_cv_dlopen_self_static=cross
11286 else
11287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11288 lt_status=$lt_dlunknown
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11290 "configure"
11291 #include "confdefs.h"
11293 #if HAVE_DLFCN_H
11294 #include <dlfcn.h>
11295 #endif
11297 #include <stdio.h>
11299 #ifdef RTLD_GLOBAL
11300 # define LT_DLGLOBAL RTLD_GLOBAL
11301 #else
11302 # ifdef DL_GLOBAL
11303 # define LT_DLGLOBAL DL_GLOBAL
11304 # else
11305 # define LT_DLGLOBAL 0
11306 # endif
11307 #endif
11309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11310 find out it does not work in some platform. */
11311 #ifndef LT_DLLAZY_OR_NOW
11312 # ifdef RTLD_LAZY
11313 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11314 # else
11315 # ifdef DL_LAZY
11316 # define LT_DLLAZY_OR_NOW DL_LAZY
11317 # else
11318 # ifdef RTLD_NOW
11319 # define LT_DLLAZY_OR_NOW RTLD_NOW
11320 # else
11321 # ifdef DL_NOW
11322 # define LT_DLLAZY_OR_NOW DL_NOW
11323 # else
11324 # define LT_DLLAZY_OR_NOW 0
11325 # endif
11326 # endif
11327 # endif
11328 # endif
11329 #endif
11331 #ifdef __cplusplus
11332 extern "C" void exit (int);
11333 #endif
11335 void fnord() { int i=42;}
11336 int main ()
11338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11339 int status = $lt_dlunknown;
11341 if (self)
11343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11345 /* dlclose (self); */
11348 exit (status);
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11356 (./conftest; exit; ) 2>/dev/null
11357 lt_status=$?
11358 case x$lt_status in
11359 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11360 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11361 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11362 esac
11363 else :
11364 # compilation failed
11365 lt_cv_dlopen_self_static=no
11368 rm -fr conftest*
11372 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11373 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11376 CPPFLAGS="$save_CPPFLAGS"
11377 LDFLAGS="$save_LDFLAGS"
11378 LIBS="$save_LIBS"
11380 esac
11382 case $lt_cv_dlopen_self in
11383 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11384 *) enable_dlopen_self=unknown ;;
11385 esac
11387 case $lt_cv_dlopen_self_static in
11388 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11389 *) enable_dlopen_self_static=unknown ;;
11390 esac
11394 # The else clause should only fire when bootstrapping the
11395 # libtool distribution, otherwise you forgot to ship ltmain.sh
11396 # with your package, and you will get complaints that there are
11397 # no rules to generate ltmain.sh.
11398 if test -f "$ltmain"; then
11399 # Now quote all the things that may contain metacharacters while being
11400 # careful not to overquote the AC_SUBSTed values. We take copies of the
11401 # variables and quote the copies for generation of the libtool script.
11402 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11403 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11404 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11405 deplibs_check_method reload_flag reload_cmds need_locks \
11406 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11407 lt_cv_sys_global_symbol_to_c_name_address \
11408 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11409 old_postinstall_cmds old_postuninstall_cmds \
11410 compiler_CXX \
11411 CC_CXX \
11412 LD_CXX \
11413 lt_prog_compiler_wl_CXX \
11414 lt_prog_compiler_pic_CXX \
11415 lt_prog_compiler_static_CXX \
11416 lt_prog_compiler_no_builtin_flag_CXX \
11417 export_dynamic_flag_spec_CXX \
11418 thread_safe_flag_spec_CXX \
11419 whole_archive_flag_spec_CXX \
11420 enable_shared_with_static_runtimes_CXX \
11421 old_archive_cmds_CXX \
11422 old_archive_from_new_cmds_CXX \
11423 predep_objects_CXX \
11424 postdep_objects_CXX \
11425 predeps_CXX \
11426 postdeps_CXX \
11427 compiler_lib_search_path_CXX \
11428 archive_cmds_CXX \
11429 archive_expsym_cmds_CXX \
11430 postinstall_cmds_CXX \
11431 postuninstall_cmds_CXX \
11432 old_archive_from_expsyms_cmds_CXX \
11433 allow_undefined_flag_CXX \
11434 no_undefined_flag_CXX \
11435 export_symbols_cmds_CXX \
11436 hardcode_libdir_flag_spec_CXX \
11437 hardcode_libdir_separator_CXX \
11438 lt_cv_prog_compiler_c_o_CXX \
11439 exclude_expsyms_CXX \
11440 include_expsyms_CXX; do
11442 case $var in
11443 old_archive_cmds_CXX | \
11444 old_archive_from_new_cmds_CXX | \
11445 archive_cmds_CXX | \
11446 archive_expsym_cmds_CXX | \
11447 old_archive_from_expsyms_cmds_CXX | \
11448 export_symbols_cmds_CXX | \
11449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11450 postinstall_cmds | postuninstall_cmds | \
11451 old_postinstall_cmds | old_postuninstall_cmds | \
11452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11453 # Double-quote double-evaled strings.
11454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11459 esac
11460 done
11462 case $lt_echo in
11463 *'\$0 --fallback-echo"')
11464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11466 esac
11468 cfgfile="$ofile"
11470 cat <<__EOF__ >> "$cfgfile"
11471 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11475 # Shell to use when invoking shell scripts.
11476 SHELL=$lt_SHELL
11478 # Whether or not to build shared libraries.
11479 build_libtool_libs=$enable_shared
11481 # Whether or not to build static libraries.
11482 build_old_libs=$enable_static
11484 # Whether or not to add -lc for building shared libraries.
11485 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11487 # Whether or not to disallow shared libs when runtime libs are static
11488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11490 # Whether or not to optimize for fast installation.
11491 fast_install=$enable_fast_install
11493 # The host system.
11494 host_alias=$host_alias
11495 host=$host
11497 # An echo program that does not interpret backslashes.
11498 echo=$lt_echo
11500 # The archiver.
11501 AR=$lt_AR
11502 AR_FLAGS=$lt_AR_FLAGS
11504 # A C compiler.
11505 LTCC=$lt_LTCC
11507 # A language-specific compiler.
11508 CC=$lt_compiler_CXX
11510 # Is the compiler the GNU C compiler?
11511 with_gcc=$GCC_CXX
11513 # An ERE matcher.
11514 EGREP=$lt_EGREP
11516 # The linker used to build libraries.
11517 LD=$lt_LD_CXX
11519 # Whether we need hard or soft links.
11520 LN_S=$lt_LN_S
11522 # A BSD-compatible nm program.
11523 NM=$lt_NM
11525 # A sed program that does not truncate output.
11526 SED=$lt_SED
11528 # A symbol stripping program
11529 STRIP=$STRIP
11531 # Used to examine libraries when file_magic_cmd begins "file"
11532 MAGIC_CMD=$MAGIC_CMD
11534 # Used on cygwin: DLL creation program.
11535 DLLTOOL="$DLLTOOL"
11537 # Used on cygwin: object dumper.
11538 OBJDUMP="$OBJDUMP"
11540 # Used on cygwin: assembler.
11541 AS="$AS"
11543 # The name of the directory that contains temporary libtool files.
11544 objdir=$objdir
11546 # How to create reloadable object files.
11547 reload_flag=$lt_reload_flag
11548 reload_cmds=$lt_reload_cmds
11550 # How to pass a linker flag through the compiler.
11551 wl=$lt_lt_prog_compiler_wl_CXX
11553 # Object file suffix (normally "o").
11554 objext="$ac_objext"
11556 # Old archive suffix (normally "a").
11557 libext="$libext"
11559 # Executable file suffix (normally "").
11560 exeext="$exeext"
11562 # Additional compiler flags for building library objects.
11563 pic_flag=$lt_lt_prog_compiler_pic_CXX
11564 pic_mode=$pic_mode
11566 # What is the maximum length of a command?
11567 max_cmd_len=$lt_cv_sys_max_cmd_len
11569 # Does compiler simultaneously support -c and -o options?
11570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11572 # Must we lock files when doing compilation ?
11573 need_locks=$lt_need_locks
11575 # Do we need the lib prefix for modules?
11576 need_lib_prefix=$need_lib_prefix
11578 # Do we need a version for libraries?
11579 need_version=$need_version
11581 # Whether dlopen is supported.
11582 dlopen_support=$enable_dlopen
11584 # Whether dlopen of programs is supported.
11585 dlopen_self=$enable_dlopen_self
11587 # Whether dlopen of statically linked programs is supported.
11588 dlopen_self_static=$enable_dlopen_self_static
11590 # Compiler flag to prevent dynamic linking.
11591 link_static_flag=$lt_lt_prog_compiler_static_CXX
11593 # Compiler flag to turn off builtin functions.
11594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11596 # Compiler flag to allow reflexive dlopens.
11597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11599 # Compiler flag to generate shared objects directly from archives.
11600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11602 # Compiler flag to generate thread-safe objects.
11603 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11605 # Library versioning type.
11606 version_type=$version_type
11608 # Format of library name prefix.
11609 libname_spec=$lt_libname_spec
11611 # List of archive names. First name is the real one, the rest are links.
11612 # The last name is the one that the linker finds with -lNAME.
11613 library_names_spec=$lt_library_names_spec
11615 # The coded name of the library, if different from the real name.
11616 soname_spec=$lt_soname_spec
11618 # Commands used to build and install an old-style archive.
11619 RANLIB=$lt_RANLIB
11620 old_archive_cmds=$lt_old_archive_cmds_CXX
11621 old_postinstall_cmds=$lt_old_postinstall_cmds
11622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11624 # Create an old-style archive from a shared archive.
11625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11627 # Create a temporary old-style archive to link instead of a shared archive.
11628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11630 # Commands used to build and install a shared archive.
11631 archive_cmds=$lt_archive_cmds_CXX
11632 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11633 postinstall_cmds=$lt_postinstall_cmds
11634 postuninstall_cmds=$lt_postuninstall_cmds
11636 # Commands to strip libraries.
11637 old_striplib=$lt_old_striplib
11638 striplib=$lt_striplib
11640 # Dependencies to place before the objects being linked to create a
11641 # shared library.
11642 predep_objects=$lt_predep_objects_CXX
11644 # Dependencies to place after the objects being linked to create a
11645 # shared library.
11646 postdep_objects=$lt_postdep_objects_CXX
11648 # Dependencies to place before the objects being linked to create a
11649 # shared library.
11650 predeps=$lt_predeps_CXX
11652 # Dependencies to place after the objects being linked to create a
11653 # shared library.
11654 postdeps=$lt_postdeps_CXX
11656 # The library search path used internally by the compiler when linking
11657 # a shared library.
11658 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11660 # Method to check whether dependent libraries are shared objects.
11661 deplibs_check_method=$lt_deplibs_check_method
11663 # Command to use when deplibs_check_method == file_magic.
11664 file_magic_cmd=$lt_file_magic_cmd
11666 # Flag that allows shared libraries with undefined symbols to be built.
11667 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11669 # Flag that forces no undefined symbols.
11670 no_undefined_flag=$lt_no_undefined_flag_CXX
11672 # Commands used to finish a libtool library installation in a directory.
11673 finish_cmds=$lt_finish_cmds
11675 # Same as above, but a single script fragment to be evaled but not shown.
11676 finish_eval=$lt_finish_eval
11678 # Take the output of nm and produce a listing of raw symbols and C names.
11679 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11681 # Transform the output of nm in a proper C declaration
11682 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11684 # Transform the output of nm in a C name address pair
11685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11687 # This is the shared library runtime path variable.
11688 runpath_var=$runpath_var
11690 # This is the shared library path variable.
11691 shlibpath_var=$shlibpath_var
11693 # Is shlibpath searched before the hard-coded library search path?
11694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11696 # How to hardcode a shared library path into an executable.
11697 hardcode_action=$hardcode_action_CXX
11699 # Whether we should hardcode library paths into libraries.
11700 hardcode_into_libs=$hardcode_into_libs
11702 # Flag to hardcode \$libdir into a binary during linking.
11703 # This must work even if \$libdir does not exist.
11704 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11706 # Whether we need a single -rpath flag with a separated argument.
11707 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11709 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
11710 # resulting binary.
11711 hardcode_direct=$hardcode_direct_CXX
11713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11714 # resulting binary.
11715 hardcode_minus_L=$hardcode_minus_L_CXX
11717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11718 # the resulting binary.
11719 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11721 # Variables whose values should be saved in libtool wrapper scripts and
11722 # restored at relink time.
11723 variables_saved_for_relink="$variables_saved_for_relink"
11725 # Whether libtool must link a program against all its dependency libraries.
11726 link_all_deplibs=$link_all_deplibs_CXX
11728 # Compile-time system search path for libraries
11729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11731 # Run-time system search path for libraries
11732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11734 # Fix the shell variable \$srcfile for the compiler.
11735 fix_srcfile_path="$fix_srcfile_path_CXX"
11737 # Set to yes if exported symbols are required.
11738 always_export_symbols=$always_export_symbols_CXX
11740 # The commands to list exported symbols.
11741 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11743 # The commands to extract the exported symbol list from a shared archive.
11744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11746 # Symbols that should not be listed in the preloaded symbols.
11747 exclude_expsyms=$lt_exclude_expsyms_CXX
11749 # Symbols that must always be exported.
11750 include_expsyms=$lt_include_expsyms_CXX
11752 # ### END LIBTOOL TAG CONFIG: $tagname
11754 __EOF__
11757 else
11758 # If there is no Makefile yet, we rely on a make rule to execute
11759 # `config.status --recheck' to rerun these tests and create the
11760 # libtool script then.
11761 test -f Makefile && make "$ltmain"
11765 ac_ext=c
11766 ac_cpp='$CPP $CPPFLAGS'
11767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771 CC="$lt_save_CC"
11775 F77)
11777 ac_ext=f
11778 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11779 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11783 archive_cmds_need_lc_F77=no
11784 allow_undefined_flag_F77=
11785 always_export_symbols_F77=no
11786 archive_expsym_cmds_F77=
11787 export_dynamic_flag_spec_F77=
11788 hardcode_direct_F77=no
11789 hardcode_libdir_flag_spec_F77=
11790 hardcode_libdir_separator_F77=
11791 hardcode_minus_L_F77=no
11792 link_all_deplibs_F77=unknown
11793 old_archive_cmds_F77=$old_archive_cmds
11794 no_undefined_flag_F77=
11795 whole_archive_flag_spec_F77=
11796 enable_shared_with_static_runtimes_F77=no
11798 # Source file extension for f77 test sources.
11799 ac_ext=f
11801 # Object file extension for compiled f77 test sources.
11802 objext=o
11803 objext_F77=$objext
11805 # Code to be used in simple compile tests
11806 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
11808 # Code to be used in simple link tests
11809 lt_simple_link_test_code=" program t\n end\n"
11811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11813 # If no C compiler was specified, use CC.
11814 LTCC=${LTCC-"$CC"}
11816 # Allow CC to be a program name with arguments.
11817 set dummy $CC
11818 compiler="$2"
11821 # Allow CC to be a program name with arguments.
11822 lt_save_CC="$CC"
11823 CC=${F77-"f77"}
11824 set dummy $CC
11825 compiler="$2"
11826 compiler_F77=$CC
11827 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11829 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11830 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11831 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11832 echo "${ECHO_T}$can_build_shared" >&6
11834 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11835 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11836 test "$can_build_shared" = "no" && enable_shared=no
11838 # On AIX, shared libraries and static libraries use the same namespace, and
11839 # are all built from PIC.
11840 case "$host_os" in
11841 aix3*)
11842 test "$enable_shared" = yes && enable_static=no
11843 if test -n "$RANLIB"; then
11844 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11845 postinstall_cmds='$RANLIB $lib'
11848 aix4*)
11849 test "$enable_shared" = yes && enable_static=no
11851 esac
11852 echo "$as_me:$LINENO: result: $enable_shared" >&5
11853 echo "${ECHO_T}$enable_shared" >&6
11855 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11856 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11857 # Make sure either enable_shared or enable_static is yes.
11858 test "$enable_shared" = yes || enable_static=yes
11859 echo "$as_me:$LINENO: result: $enable_static" >&5
11860 echo "${ECHO_T}$enable_static" >&6
11862 test "$ld_shlibs_F77" = no && can_build_shared=no
11864 GCC_F77="$G77"
11865 LD_F77="$LD"
11867 lt_prog_compiler_wl_F77=
11868 lt_prog_compiler_pic_F77=
11869 lt_prog_compiler_static_F77=
11871 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11872 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11874 if test "$GCC" = yes; then
11875 lt_prog_compiler_wl_F77='-Wl,'
11876 lt_prog_compiler_static_F77='-static'
11878 case $host_os in
11879 aix*)
11880 # All AIX code is PIC.
11881 if test "$host_cpu" = ia64; then
11882 # AIX 5 now supports IA64 processor
11883 lt_prog_compiler_static_F77='-Bstatic'
11887 amigaos*)
11888 # FIXME: we need at least 68020 code to build shared libraries, but
11889 # adding the `-m68020' flag to GCC prevents building anything better,
11890 # like `-m68040'.
11891 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
11894 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11895 # PIC is the default for these OSes.
11898 mingw* | pw32* | os2*)
11899 # This hack is so that the source file can tell whether it is being
11900 # built for inclusion in a dll (and should export symbols for example).
11901 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11904 darwin* | rhapsody*)
11905 # PIC is the default on this platform
11906 # Common symbols not allowed in MH_DYLIB files
11907 lt_prog_compiler_pic_F77='-fno-common'
11910 msdosdjgpp*)
11911 # Just because we use GCC doesn't mean we suddenly get shared libraries
11912 # on systems that don't support them.
11913 lt_prog_compiler_can_build_shared_F77=no
11914 enable_shared=no
11917 sysv4*MP*)
11918 if test -d /usr/nec; then
11919 lt_prog_compiler_pic_F77=-Kconform_pic
11923 hpux*)
11924 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11925 if test "$host_cpu" != ia64; then
11926 lt_prog_compiler_pic_F77='-fPIC'
11931 lt_prog_compiler_pic_F77='-fPIC'
11933 esac
11934 else
11935 # PORTME Check for flag to pass linker flags through the system compiler.
11936 case $host_os in
11937 aix*)
11938 lt_prog_compiler_wl_F77='-Wl,'
11939 if test "$host_cpu" = ia64; then
11940 # AIX 5 now supports IA64 processor
11941 lt_prog_compiler_static_F77='-Bstatic'
11942 else
11943 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
11947 mingw* | pw32* | os2*)
11948 # This hack is so that the source file can tell whether it is being
11949 # built for inclusion in a dll (and should export symbols for example).
11950 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11953 hpux9* | hpux10* | hpux11*)
11954 lt_prog_compiler_wl_F77='-Wl,'
11955 if test "$host_cpu" != ia64; then
11956 lt_prog_compiler_pic_F77='+Z'
11958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11959 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
11962 irix5* | irix6* | nonstopux*)
11963 lt_prog_compiler_wl_F77='-Wl,'
11964 # PIC (with -KPIC) is the default.
11965 lt_prog_compiler_static_F77='-non_shared'
11968 newsos6)
11969 lt_prog_compiler_pic_F77='-KPIC'
11970 lt_prog_compiler_static_F77='-Bstatic'
11973 osf3* | osf4* | osf5*)
11974 lt_prog_compiler_wl_F77='-Wl,'
11975 # All OSF/1 code is PIC.
11976 lt_prog_compiler_static_F77='-non_shared'
11979 sco3.2v5*)
11980 lt_prog_compiler_pic_F77='-Kpic'
11981 lt_prog_compiler_static_F77='-dn'
11984 solaris*)
11985 lt_prog_compiler_wl_F77='-Wl,'
11986 lt_prog_compiler_pic_F77='-KPIC'
11987 lt_prog_compiler_static_F77='-Bstatic'
11990 sunos4*)
11991 lt_prog_compiler_wl_F77='-Qoption ld '
11992 lt_prog_compiler_pic_F77='-PIC'
11993 lt_prog_compiler_static_F77='-Bstatic'
11996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11997 lt_prog_compiler_wl_F77='-Wl,'
11998 lt_prog_compiler_pic_F77='-KPIC'
11999 lt_prog_compiler_static_F77='-Bstatic'
12002 sysv4*MP*)
12003 if test -d /usr/nec ;then
12004 lt_prog_compiler_pic_F77='-Kconform_pic'
12005 lt_prog_compiler_static_F77='-Bstatic'
12009 uts4*)
12010 lt_prog_compiler_pic_F77='-pic'
12011 lt_prog_compiler_static_F77='-Bstatic'
12015 lt_prog_compiler_can_build_shared_F77=no
12017 esac
12020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12021 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12024 # Check to make sure the PIC flag actually works.
12026 if test -n "$lt_prog_compiler_pic_F77"; then
12027 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12028 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12029 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032 lt_prog_compiler_pic_works_F77=no
12033 ac_outfile=conftest.$ac_objext
12034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12035 lt_compiler_flag="$lt_prog_compiler_pic_F77 -DPIC"
12036 # Insert the option either (1) after the last *FLAGS variable, or
12037 # (2) before a word containing "conftest.", or (3) at the end.
12038 # Note that $ac_compile itself does not contain backslashes and begins
12039 # with a dollar sign (not a hyphen), so the echo should work correctly.
12040 # The option is referenced via a variable to avoid confusing sed.
12041 lt_compile=`echo "$ac_compile" | sed \
12042 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
12043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12044 -e 's:$: $lt_compiler_flag:'`
12045 (eval echo "\"\$as_me:12045: $lt_compile\"" >&5)
12046 (eval "$lt_compile" 2>conftest.err)
12047 ac_status=$?
12048 cat conftest.err >&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 if (exit $ac_status) && test -s "$ac_outfile"; then
12051 # The compiler can only warn and ignore the option if not recognized
12052 # So say no if there are warnings
12053 if test ! -s conftest.err; then
12054 lt_prog_compiler_pic_works_F77=yes
12057 $rm conftest*
12060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12061 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12063 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12064 case $lt_prog_compiler_pic_F77 in
12065 "" | " "*) ;;
12066 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12067 esac
12068 else
12069 lt_prog_compiler_pic_F77=
12070 lt_prog_compiler_can_build_shared_F77=no
12074 case "$host_os" in
12075 # For platforms which do not support PIC, -DPIC is meaningless:
12076 *djgpp*)
12077 lt_prog_compiler_pic_F77=
12080 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77 -DPIC"
12082 esac
12084 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12086 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 lt_cv_prog_compiler_c_o_F77=no
12090 $rm -r conftest 2>/dev/null
12091 mkdir conftest
12092 cd conftest
12093 mkdir out
12094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12096 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12097 # that will create temporary files in the current directory regardless of
12098 # the output directory. Thus, making CWD read-only will cause this test
12099 # to fail, enabling locking or at least warning the user not to do parallel
12100 # builds.
12101 chmod -w .
12103 lt_compiler_flag="-o out/conftest2.$ac_objext"
12104 # Insert the option either (1) after the last *FLAGS variable, or
12105 # (2) before a word containing "conftest.", or (3) at the end.
12106 # Note that $ac_compile itself does not contain backslashes and begins
12107 # with a dollar sign (not a hyphen), so the echo should work correctly.
12108 lt_compile=`echo "$ac_compile" | sed \
12109 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
12110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111 -e 's:$: $lt_compiler_flag:'`
12112 (eval echo "\"\$as_me:12112: $lt_compile\"" >&5)
12113 (eval "$lt_compile" 2>out/conftest.err)
12114 ac_status=$?
12115 cat out/conftest.err >&5
12116 echo "$as_me:12116: \$? = $ac_status" >&5
12117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12118 then
12119 # The compiler can only warn and ignore the option if not recognized
12120 # So say no if there are warnings
12121 if test ! -s out/conftest.err; then
12122 lt_cv_prog_compiler_c_o_F77=yes
12125 chmod u+w .
12126 $rm conftest* out/*
12127 rmdir out
12128 cd ..
12129 rmdir conftest
12130 $rm conftest*
12133 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12134 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12137 hard_links="nottested"
12138 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12139 # do not overwrite the value of need_locks provided by the user
12140 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12141 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12142 hard_links=yes
12143 $rm conftest*
12144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12145 touch conftest.a
12146 ln conftest.a conftest.b 2>&5 || hard_links=no
12147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12148 echo "$as_me:$LINENO: result: $hard_links" >&5
12149 echo "${ECHO_T}$hard_links" >&6
12150 if test "$hard_links" = no; then
12151 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12152 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12153 need_locks=warn
12155 else
12156 need_locks=no
12159 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12162 runpath_var=
12163 allow_undefined_flag_F77=
12164 enable_shared_with_static_runtimes_F77=no
12165 archive_cmds_F77=
12166 archive_cmds_need_lc_F77=
12167 archive_expsym_cmds_F77=
12168 old_archive_From_new_cmds_F77=
12169 old_archive_from_expsyms_cmds_F77=
12170 export_dynamic_flag_spec_F77=
12171 whole_archive_flag_spec_F77=
12172 thread_safe_flag_spec_F77=
12173 hardcode_libdir_flag_spec_F77=
12174 hardcode_libdir_separator_F77=
12175 hardcode_direct_F77=no
12176 hardcode_minus_L_F77=no
12177 hardcode_shlibpath_var_F77=unsupported
12178 link_all_deplibs_F77=unknown
12179 always_export_symbols_F77=no
12180 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
12181 # include_expsyms should be a list of space-separated symbols to be *always*
12182 # included in the symbol list
12183 include_expsyms_F77=
12184 # exclude_expsyms can be an extended regexp of symbols to exclude
12185 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12186 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12187 # as well as any symbol that contains `d'.
12188 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12189 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12190 # platforms (ab)use it in PIC code, but their linkers get confused if
12191 # the symbol is explicitly referenced. Since portable code cannot
12192 # rely on this symbol name, it's probably fine to never include it in
12193 # preloaded symbol tables.
12194 extract_expsyms_cmds=
12196 case $host_os in
12197 cygwin* | mingw* | pw32*)
12198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12199 # When not using gcc, we currently assume that we are using
12200 # Microsoft Visual C++.
12201 if test "$GCC" != yes; then
12202 with_gnu_ld=no
12205 openbsd*)
12206 with_gnu_ld=no
12208 esac
12210 ld_shlibs_F77=yes
12211 if test "$with_gnu_ld" = yes; then
12212 # If archive_cmds runs LD, not CC, wlarc should be empty
12213 wlarc='${wl}'
12215 # See if GNU ld supports shared libraries.
12216 case $host_os in
12217 aix3* | aix4* | aix5*)
12218 # On AIX/PPC, the GNU linker is very broken
12219 if test "$host_cpu" != ia64; then
12220 ld_shlibs_F77=no
12221 cat <<EOF 1>&2
12223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12224 *** to be unable to reliably create shared libraries on AIX.
12225 *** Therefore, libtool is disabling shared libraries support. If you
12226 *** really care for shared libraries, you may want to modify your PATH
12227 *** so that a non-GNU linker is found, and then restart.
12233 amigaos*)
12234 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)'
12235 hardcode_libdir_flag_spec_F77='-L$libdir'
12236 hardcode_minus_L_F77=yes
12238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12239 # that the semantics of dynamic libraries on AmigaOS, at least up
12240 # to version 4, is to share data among multiple programs linked
12241 # with the same dynamic library. Since this doesn't match the
12242 # behavior of shared libraries on other platforms, we can't use
12243 # them.
12244 ld_shlibs_F77=no
12247 beos*)
12248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag_F77=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 else
12254 ld_shlibs_F77=no
12258 cygwin* | mingw* | pw32*)
12259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec_F77='-L$libdir'
12262 allow_undefined_flag_F77=unsupported
12263 always_export_symbols_F77=no
12264 enable_shared_with_static_runtimes_F77=yes
12266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12267 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12268 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
12269 else
12270 ld_shlibs=no
12274 netbsd*)
12275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12276 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12277 wlarc=
12278 else
12279 archive_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 archive_expsym_cmds_F77='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12284 solaris* | sysv5*)
12285 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12286 ld_shlibs_F77=no
12287 cat <<EOF 1>&2
12289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12290 *** create shared libraries on Solaris systems. Therefore, libtool
12291 *** is disabling shared libraries support. We urge you to upgrade GNU
12292 *** binutils to release 2.9.1 or newer. Another option is to modify
12293 *** your PATH or compiler configuration so that the native linker is
12294 *** used, and then restart.
12297 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12300 else
12301 ld_shlibs_F77=no
12305 sunos4*)
12306 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12307 wlarc=
12308 hardcode_direct_F77=yes
12309 hardcode_shlibpath_var_F77=no
12313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12316 else
12317 ld_shlibs_F77=no
12320 esac
12322 if test "$ld_shlibs_F77" = yes; then
12323 runpath_var=LD_RUN_PATH
12324 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12325 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12326 # ancient GNU ld didn't support --whole-archive et. al.
12327 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12328 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12329 else
12330 whole_archive_flag_spec_F77=
12333 else
12334 # PORTME fill in a description of your system's linker (not GNU ld)
12335 case $host_os in
12336 aix3*)
12337 allow_undefined_flag_F77=unsupported
12338 always_export_symbols_F77=yes
12339 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'
12340 # Note: this linker hardcodes the directories in LIBPATH if there
12341 # are no directories specified by -L.
12342 hardcode_minus_L_F77=yes
12343 if test "$GCC" = yes && test -z "$link_static_flag"; then
12344 # Neither direct hardcoding nor static linking is supported with a
12345 # broken collect2.
12346 hardcode_direct_F77=unsupported
12350 aix4* | aix5*)
12351 if test "$host_cpu" = ia64; then
12352 # On IA64, the linker does run time linking by default, so we don't
12353 # have to do anything special.
12354 aix_use_runtimelinking=no
12355 exp_sym_flag='-Bexport'
12356 no_entry_flag=""
12357 else
12358 # If we're using GNU nm, then we don't want the "-C" option.
12359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12361 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'
12362 else
12363 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'
12365 aix_use_runtimelinking=no
12367 # Test if we are trying to use run time linking or normal
12368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12369 # need to do runtime linking.
12370 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12371 for ld_flag in $LDFLAGS; do
12372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12373 aix_use_runtimelinking=yes
12374 break
12376 done
12377 esac
12379 exp_sym_flag='-bexport'
12380 no_entry_flag='-bnoentry'
12383 # When large executables or shared objects are built, AIX ld can
12384 # have problems creating the table of contents. If linking a library
12385 # or program results in "error TOC overflow" add -mminimal-toc to
12386 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12387 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12389 archive_cmds_F77=''
12390 hardcode_direct_F77=yes
12391 hardcode_libdir_separator_F77=':'
12392 link_all_deplibs_F77=yes
12394 if test "$GCC" = yes; then
12395 case $host_os in aix4.012|aix4.012.*)
12396 # We only want to do this on AIX 4.2 and lower, the check
12397 # below for broken collect2 doesn't work under 4.3+
12398 collect2name=`${CC} -print-prog-name=collect2`
12399 if test -f "$collect2name" && \
12400 strings "$collect2name" | grep resolve_lib_name >/dev/null
12401 then
12402 # We have reworked collect2
12403 hardcode_direct_F77=yes
12404 else
12405 # We have old collect2
12406 hardcode_direct_F77=unsupported
12407 # It fails to find uninstalled libraries when the uninstalled
12408 # path is not listed in the libpath. Setting hardcode_minus_L
12409 # to unsupported forces relinking
12410 hardcode_minus_L_F77=yes
12411 hardcode_libdir_flag_spec_F77='-L$libdir'
12412 hardcode_libdir_separator_F77=
12414 esac
12415 shared_flag='-shared'
12416 else
12417 # not using gcc
12418 if test "$host_cpu" = ia64; then
12419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12420 # chokes on -Wl,-G. The following line is correct:
12421 shared_flag='-G'
12422 else
12423 if test "$aix_use_runtimelinking" = yes; then
12424 shared_flag='${wl}-G'
12425 else
12426 shared_flag='${wl}-bM:SRE'
12431 # It seems that -bexpall does not export symbols beginning with
12432 # underscore (_), so it is better to generate a list of symbols to export.
12433 always_export_symbols_F77=yes
12434 if test "$aix_use_runtimelinking" = yes; then
12435 # Warning - without using the other runtime loading flags (-brtl),
12436 # -berok will link without error, but may produce a broken library.
12437 allow_undefined_flag_F77='-berok'
12438 # Determine the default libpath from the value encoded in an empty executable.
12439 cat >conftest.$ac_ext <<_ACEOF
12440 program main
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -s conftest$ac_exeext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12459 # Check for a 64-bit object if we didn't find anything.
12460 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; }
12461 }'`; fi
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12469 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12470 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"
12471 else
12472 if test "$host_cpu" = ia64; then
12473 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12474 allow_undefined_flag_F77="-z nodefs"
12475 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"
12476 else
12477 # Determine the default libpath from the value encoded in an empty executable.
12478 cat >conftest.$ac_ext <<_ACEOF
12479 program main
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485 (eval $ac_link) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12498 # Check for a 64-bit object if we didn't find anything.
12499 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; }
12500 }'`; fi
12501 else
12502 echo "$as_me: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12508 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12509 # Warning - without using the other run time loading flags,
12510 # -berok will link without error, but may produce a broken library.
12511 no_undefined_flag_F77=' ${wl}-bernotok'
12512 allow_undefined_flag_F77=' ${wl}-berok'
12513 # -bexpall does not export symbols beginning with underscore (_)
12514 always_export_symbols_F77=yes
12515 # Exported symbols can be pulled into shared objects from archives
12516 whole_archive_flag_spec_F77=' '
12517 archive_cmds_need_lc_F77=yes
12518 # This is similar to how AIX traditionally builds it's shared libraries.
12519 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'
12524 amigaos*)
12525 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)'
12526 hardcode_libdir_flag_spec_F77='-L$libdir'
12527 hardcode_minus_L_F77=yes
12528 # see comment about different semantics on the GNU ld section
12529 ld_shlibs_F77=no
12532 bsdi4*)
12533 export_dynamic_flag_spec_F77=-rdynamic
12536 cygwin* | mingw* | pw32*)
12537 # When not using gcc, we currently assume that we are using
12538 # Microsoft Visual C++.
12539 # hardcode_libdir_flag_spec is actually meaningless, as there is
12540 # no search path for DLLs.
12541 hardcode_libdir_flag_spec_F77=' '
12542 allow_undefined_flag_F77=unsupported
12543 # Tell ltmain to make .lib files, not .a files.
12544 libext=lib
12545 # FIXME: Setting linknames here is a bad hack.
12546 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12547 # The linker will automatically build a .lib file if we build a DLL.
12548 old_archive_From_new_cmds_F77='true'
12549 # FIXME: Should let the user specify the lib program.
12550 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12551 fix_srcfile_path='`cygpath -w "$srcfile"`'
12552 enable_shared_with_static_runtimes_F77=yes
12555 darwin* | rhapsody*)
12556 case "$host_os" in
12557 rhapsody* | darwin1.[012])
12558 allow_undefined_flag_F77='-undefined suppress'
12560 *) # Darwin 1.3 on
12561 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12563 esac
12565 # FIXME: Relying on posixy $() will cause problems for
12566 # cross-compilation, but unfortunately the echo tests do not
12567 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12568 # `"' quotes if we put them in here... so don't!
12569 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
12570 # We need to add '_' to the symbols in $export_symbols first
12571 #_LT_AC_TAGVAR(archive_expsym_cmds, F77)="$_LT_AC_TAGVAR(archive_cmds, F77)"' && strip -s $export_symbols'
12572 hardcode_direct_F77=yes
12573 hardcode_shlibpath_var_F77=no
12574 whole_archive_flag_spec_F77='-all_load $convenience'
12577 dgux*)
12578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579 hardcode_libdir_flag_spec_F77='-L$libdir'
12580 hardcode_shlibpath_var_F77=no
12583 freebsd1*)
12584 ld_shlibs_F77=no
12587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12588 # support. Future versions do this automatically, but an explicit c++rt0.o
12589 # does not break anything, and helps significantly (at the cost of a little
12590 # extra space).
12591 freebsd2.2*)
12592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12593 hardcode_libdir_flag_spec_F77='-R$libdir'
12594 hardcode_direct_F77=yes
12595 hardcode_shlibpath_var_F77=no
12598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12599 freebsd2*)
12600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12601 hardcode_direct_F77=yes
12602 hardcode_minus_L_F77=yes
12603 hardcode_shlibpath_var_F77=no
12606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12607 freebsd*)
12608 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12609 hardcode_libdir_flag_spec_F77='-R$libdir'
12610 hardcode_direct_F77=yes
12611 hardcode_shlibpath_var_F77=no
12614 hpux9* | hpux10* | hpux11*)
12615 if test "$GCC" = yes; then
12616 case $host_os in
12617 hpux9*)
12618 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'
12621 if test "$host_cpu" = ia64; then
12622 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 else
12624 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12627 esac
12628 else
12629 case $host_os in
12630 hpux9*)
12631 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'
12634 if test "$host_cpu" = ia64; then
12635 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12636 else
12637 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12640 esac
12642 if test "$host_cpu" = ia64; then
12643 hardcode_libdir_flag_spec_F77='-L$libdir'
12644 hardcode_direct_F77=no
12645 hardcode_shlibpath_var_F77=no
12646 else
12647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12648 hardcode_libdir_separator_F77=:
12649 hardcode_direct_F77=yes
12651 # hardcode_minus_L: Not really in the search PATH,
12652 # but as the default location of the library.
12653 hardcode_minus_L_F77=yes
12654 export_dynamic_flag_spec_F77='${wl}-E'
12657 irix5* | irix6* | nonstopux*)
12658 if test "$GCC" = yes; then
12659 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'
12660 else
12661 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'
12663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12664 hardcode_libdir_separator_F77=:
12665 link_all_deplibs_F77=yes
12668 netbsd*)
12669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12670 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12671 else
12672 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12674 hardcode_libdir_flag_spec_F77='-R$libdir'
12675 hardcode_direct_F77=yes
12676 hardcode_shlibpath_var_F77=no
12679 newsos6)
12680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12681 hardcode_direct_F77=yes
12682 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12683 hardcode_libdir_separator_F77=:
12684 hardcode_shlibpath_var_F77=no
12687 openbsd*)
12688 hardcode_direct_F77=yes
12689 hardcode_shlibpath_var_F77=no
12690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12693 export_dynamic_flag_spec_F77='${wl}-E'
12694 else
12695 case $host_os in
12696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12698 hardcode_libdir_flag_spec_F77='-R$libdir'
12701 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12702 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12704 esac
12708 os2*)
12709 hardcode_libdir_flag_spec_F77='-L$libdir'
12710 hardcode_minus_L_F77=yes
12711 allow_undefined_flag_F77=unsupported
12712 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'
12713 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12716 osf3*)
12717 if test "$GCC" = yes; then
12718 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12719 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'
12720 else
12721 allow_undefined_flag_F77=' -expect_unresolved \*'
12722 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'
12724 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12725 hardcode_libdir_separator_F77=:
12728 osf4* | osf5*) # as osf3* with the addition of -msym flag
12729 if test "$GCC" = yes; then
12730 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12731 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'
12732 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12733 else
12734 allow_undefined_flag_F77=' -expect_unresolved \*'
12735 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'
12736 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12737 $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'
12739 # Both c and cxx compiler support -rpath directly
12740 hardcode_libdir_flag_spec_F77='-rpath $libdir'
12742 hardcode_libdir_separator_F77=:
12745 sco3.2v5*)
12746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12747 hardcode_shlibpath_var_F77=no
12748 export_dynamic_flag_spec_F77='${wl}-Bexport'
12749 runpath_var=LD_RUN_PATH
12750 hardcode_runpath_var=yes
12753 solaris*)
12754 no_undefined_flag_F77=' -z text'
12755 if test "$GCC" = yes; then
12756 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12759 else
12760 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12761 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12764 hardcode_libdir_flag_spec_F77='-R$libdir'
12765 hardcode_shlibpath_var_F77=no
12766 case $host_os in
12767 solaris2.[0-5] | solaris2.[0-5].*) ;;
12768 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12769 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
12770 esac
12771 link_all_deplibs_F77=yes
12774 sunos4*)
12775 if test "x$host_vendor" = xsequent; then
12776 # Use $CC to link under sequent, because it throws in some extra .o
12777 # files that make .init and .fini sections work.
12778 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12779 else
12780 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12782 hardcode_libdir_flag_spec_F77='-L$libdir'
12783 hardcode_direct_F77=yes
12784 hardcode_minus_L_F77=yes
12785 hardcode_shlibpath_var_F77=no
12788 sysv4)
12789 case $host_vendor in
12790 sni)
12791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12792 hardcode_direct_F77=yes # is this really true???
12794 siemens)
12795 ## LD is ld it makes a PLAMLIB
12796 ## CC just makes a GrossModule.
12797 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12798 reload_cmds_F77='$CC -r -o $output$reload_objs'
12799 hardcode_direct_F77=no
12801 motorola)
12802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
12805 esac
12806 runpath_var='LD_RUN_PATH'
12807 hardcode_shlibpath_var_F77=no
12810 sysv4.3*)
12811 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12812 hardcode_shlibpath_var_F77=no
12813 export_dynamic_flag_spec_F77='-Bexport'
12816 sysv4*MP*)
12817 if test -d /usr/nec; then
12818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12819 hardcode_shlibpath_var_F77=no
12820 runpath_var=LD_RUN_PATH
12821 hardcode_runpath_var=yes
12822 ld_shlibs_F77=yes
12826 sysv4.2uw2*)
12827 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12828 hardcode_direct_F77=yes
12829 hardcode_minus_L_F77=no
12830 hardcode_shlibpath_var_F77=no
12831 hardcode_runpath_var=yes
12832 runpath_var=LD_RUN_PATH
12835 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12836 no_undefined_flag_F77='${wl}-z ${wl}text'
12837 if test "$GCC" = yes; then
12838 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12839 else
12840 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12842 runpath_var='LD_RUN_PATH'
12843 hardcode_shlibpath_var_F77=no
12846 sysv5*)
12847 no_undefined_flag_F77=' -z text'
12848 # $CC -shared without GNU ld will not create a library from C++
12849 # object files and a static libstdc++, better avoid it by now
12850 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12852 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12853 hardcode_libdir_flag_spec_F77=
12854 hardcode_shlibpath_var_F77=no
12855 runpath_var='LD_RUN_PATH'
12858 uts4*)
12859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_libdir_flag_spec_F77='-L$libdir'
12861 hardcode_shlibpath_var_F77=no
12865 ld_shlibs_F77=no
12867 esac
12870 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
12871 echo "${ECHO_T}$ld_shlibs_F77" >&6
12872 test "$ld_shlibs_F77" = no && can_build_shared=no
12874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12875 if test "$GCC" = yes; then
12876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12880 # Do we need to explicitly link libc?
12882 archive_cmds_need_lc_F77=yes
12883 if test "$enable_shared" = yes && test "$GCC" = yes; then
12884 case $archive_cmds_F77 in
12885 *'~'*)
12886 # FIXME: we may have to deal with multi-command sequences.
12888 '$CC '*)
12889 # Test whether the compiler implicitly links with -lc since on some
12890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12891 # to ld, don't add -lc before -lgcc.
12892 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12894 $rm conftest*
12895 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12898 (eval $ac_compile) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } 2>conftest.err; then
12902 soname=conftest
12903 lib=conftest
12904 libobjs=conftest.$ac_objext
12905 deplibs=
12906 wl=$lt_prog_compiler_wl_F77
12907 compiler_flags=-v
12908 linker_flags=-v
12909 verstring=
12910 output_objdir=.
12911 libname=conftest
12912 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
12913 allow_undefined_flag_F77=
12914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12915 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }
12919 then
12920 archive_cmds_need_lc_F77=no
12921 else
12922 archive_cmds_need_lc_F77=yes
12924 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
12925 else
12926 cat conftest.err 1>&5
12928 $rm conftest*
12929 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
12930 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
12932 esac
12935 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12936 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12937 hardcode_action_F77=
12938 if test -n "$hardcode_libdir_flag_spec_F77" || \
12939 test -n "$runpath_var F77"; then
12941 # We can hardcode non-existant directories.
12942 if test "$hardcode_direct_F77" != no &&
12943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12944 # have to relink, otherwise we might link with an installed library
12945 # when we should be linking with a yet-to-be-installed one
12946 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
12947 test "$hardcode_minus_L_F77" != no; then
12948 # Linking always hardcodes the temporary library directory.
12949 hardcode_action_F77=relink
12950 else
12951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12952 hardcode_action_F77=immediate
12954 else
12955 # We cannot hardcode anything, or else we can only hardcode existing
12956 # directories.
12957 hardcode_action_F77=unsupported
12959 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
12960 echo "${ECHO_T}$hardcode_action_F77" >&6
12962 if test "$hardcode_action_F77" = relink; then
12963 # Fast installation is not supported
12964 enable_fast_install=no
12965 elif test "$shlibpath_overrides_runpath" = yes ||
12966 test "$enable_shared" = no; then
12967 # Fast installation is not necessary
12968 enable_fast_install=needless
12971 striplib=
12972 old_striplib=
12973 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12974 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12975 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12977 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12978 echo "$as_me:$LINENO: result: yes" >&5
12979 echo "${ECHO_T}yes" >&6
12980 else
12981 echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6
12985 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12986 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12987 library_names_spec=
12988 libname_spec='lib$name'
12989 soname_spec=
12990 postinstall_cmds=
12991 postuninstall_cmds=
12992 finish_cmds=
12993 finish_eval=
12994 shlibpath_var=
12995 shlibpath_overrides_runpath=unknown
12996 version_type=none
12997 dynamic_linker="$host_os ld.so"
12998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12999 if test "$GCC" = yes; then
13000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
13001 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13002 # if the path contains ";" then we assume it to be the separator
13003 # otherwise default to the standard path separator (i.e. ":") - it is
13004 # assumed that no part of a normal pathname contains ";" but that should
13005 # okay in the real world where ";" in dirpaths is itself problematic.
13006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13007 else
13008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13010 else
13011 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13013 need_lib_prefix=unknown
13014 hardcode_into_libs=no
13016 # when you set need_version to no, make sure it does not cause -set_version
13017 # flags to be left without arguments
13018 need_version=unknown
13020 case $host_os in
13021 aix3*)
13022 version_type=linux
13023 library_names_spec='${libname}${release}.so$versuffix $libname.a'
13024 shlibpath_var=LIBPATH
13026 # AIX 3 has no versioning support, so we append a major version to the name.
13027 soname_spec='${libname}${release}.so$major'
13030 aix4* | aix5*)
13031 version_type=linux
13032 need_lib_prefix=no
13033 need_version=no
13034 hardcode_into_libs=yes
13035 if test "$host_cpu" = ia64; then
13036 # AIX 5 supports IA64
13037 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 else
13040 # With GCC up to 2.95.x, collect2 would create an import file
13041 # for dependence libraries. The import file would start with
13042 # the line `#! .'. This would cause the generated library to
13043 # depend on `.', always an invalid library. This was fixed in
13044 # development snapshots of GCC prior to 3.0.
13045 case $host_os in
13046 aix4 | aix4.[01] | aix4.[01].*)
13047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13048 echo ' yes '
13049 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13051 else
13052 can_build_shared=no
13055 esac
13056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13057 # soname into executable. Probably we can add versioning support to
13058 # collect2, so additional links can be useful in future.
13059 if test "$aix_use_runtimelinking" = yes; then
13060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13061 # instead of lib<name>.a to let people know that these are not
13062 # typical AIX shared libraries.
13063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13064 else
13065 # We preserve .a as extension for shared libraries through AIX4.2
13066 # and later when we are not doing run time linking.
13067 library_names_spec='${libname}${release}.a $libname.a'
13068 soname_spec='${libname}${release}.so$major'
13070 shlibpath_var=LIBPATH
13074 amigaos*)
13075 library_names_spec='$libname.ixlibrary $libname.a'
13076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13077 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'
13080 beos*)
13081 library_names_spec='${libname}.so'
13082 dynamic_linker="$host_os ld.so"
13083 shlibpath_var=LIBRARY_PATH
13086 bsdi4*)
13087 version_type=linux
13088 need_version=no
13089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13090 soname_spec='${libname}${release}.so$major'
13091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13095 # the default ld.so.conf also contains /usr/contrib/lib and
13096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13097 # libtool to hard-code these into programs
13100 cygwin* | mingw* | pw32*)
13101 version_type=windows
13102 need_version=no
13103 need_lib_prefix=no
13105 case $GCC,$host_os in
13106 yes,cygwin* | yes,mingw* | yes,pw32*)
13107 library_names_spec='$libname.dll.a'
13108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13109 postinstall_cmds='base_file=`basename \${file}`~
13110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13111 dldir=$destdir/`dirname \$dlpath`~
13112 test -d \$dldir || mkdir -p \$dldir~
13113 $install_prog $dir/$dlname \$dldir/$dlname'
13114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13115 dlpath=$dir/\$dldll~
13116 $rm \$dlpath'
13117 shlibpath_overrides_runpath=yes
13119 case $host_os in
13120 cygwin*)
13121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13122 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13123 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13125 mingw*)
13126 # MinGW DLLs use traditional 'lib' prefix
13127 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
13128 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
13129 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13130 # It is most probably a Windows format PATH printed by
13131 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13132 # path with ; separators, and with drive letters. We can handle the
13133 # drive letters (cygwin fileutils understands them), so leave them,
13134 # especially as we might pass files found there to a mingw objdump,
13135 # which wouldn't understand a cygwinified path. Ahh.
13136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
13137 else
13138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
13141 pw32*)
13142 # pw32 DLLs use 'pw' prefix rather than 'lib'
13143 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
13145 esac
13149 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
13151 esac
13152 dynamic_linker='Win32 ld.exe'
13153 # FIXME: first we should search . and the directory the executable is in
13154 shlibpath_var=PATH
13157 darwin* | rhapsody*)
13158 dynamic_linker="$host_os dyld"
13159 version_type=darwin
13160 need_lib_prefix=no
13161 need_version=no
13162 # FIXME: Relying on posixy $() will cause problems for
13163 # cross-compilation, but unfortunately the echo tests do not
13164 # yet detect zsh echo's removal of \ escapes.
13165 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
13166 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
13167 shlibpath_overrides_runpath=yes
13168 shlibpath_var=DYLD_LIBRARY_PATH
13171 dgux*)
13172 version_type=linux
13173 need_lib_prefix=no
13174 need_version=no
13175 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13176 soname_spec='${libname}${release}.so$major'
13177 shlibpath_var=LD_LIBRARY_PATH
13180 freebsd1*)
13181 dynamic_linker=no
13184 freebsd*)
13185 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13186 version_type=freebsd-$objformat
13187 case $version_type in
13188 freebsd-elf*)
13189 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
13190 need_version=no
13191 need_lib_prefix=no
13193 freebsd-*)
13194 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
13195 need_version=yes
13197 esac
13198 shlibpath_var=LD_LIBRARY_PATH
13199 case $host_os in
13200 freebsd2*)
13201 shlibpath_overrides_runpath=yes
13203 freebsd3.01* | freebsdelf3.01*)
13204 shlibpath_overrides_runpath=yes
13205 hardcode_into_libs=yes
13207 *) # from 3.2 on
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13211 esac
13214 gnu*)
13215 version_type=linux
13216 need_lib_prefix=no
13217 need_version=no
13218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
13219 soname_spec='${libname}${release}.so$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 hardcode_into_libs=yes
13224 hpux9* | hpux10* | hpux11*)
13225 # Give a soname corresponding to the major version so that dld.sl refuses to
13226 # link against other versions.
13227 version_type=sunos
13228 need_lib_prefix=no
13229 need_version=no
13230 if test "$host_cpu" = ia64; then
13231 hardcode_into_libs=yes
13232 dynamic_linker="$host_os dld.so"
13233 shlibpath_var=LD_LIBRARY_PATH
13234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13236 soname_spec='${libname}${release}.so$major'
13237 if test "X$HPUX_IA64_MODE" = X32; then
13238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13239 else
13240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13243 else
13244 dynamic_linker="$host_os dld.sl"
13245 shlibpath_var=SHLIB_PATH
13246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
13248 soname_spec='${libname}${release}.sl$major'
13250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13251 postinstall_cmds='chmod 555 $lib'
13254 irix5* | irix6* | nonstopux*)
13255 case $host_os in
13256 nonstopux*) version_type=nonstopux ;;
13257 *) version_type=irix ;;
13258 esac
13259 need_lib_prefix=no
13260 need_version=no
13261 soname_spec='${libname}${release}.so$major'
13262 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
13263 case $host_os in
13264 irix5* | nonstopux*)
13265 libsuff= shlibsuff=
13268 case $LD in # libtool.m4 will add one of these switches to LD
13269 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
13270 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
13271 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
13272 *) libsuff= shlibsuff= libmagic=never-match;;
13273 esac
13275 esac
13276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13277 shlibpath_overrides_runpath=no
13278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13282 # No shared lib support for Linux oldld, aout, or coff.
13283 linux*oldld* | linux*aout* | linux*coff*)
13284 dynamic_linker=no
13287 # This must be Linux ELF.
13288 linux*)
13289 version_type=linux
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13293 soname_spec='${libname}${release}.so$major'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 shlibpath_overrides_runpath=no
13297 # This implies no fast_install, which is unacceptable.
13298 # Some rework will be needed to allow for fast_install
13299 # before this can be enabled.
13300 hardcode_into_libs=yes
13302 # We used to test for /lib/ld.so.1 and disable shared libraries on
13303 # powerpc, because MkLinux only supported shared libraries with the
13304 # GNU dynamic linker. Since this was broken with cross compilers,
13305 # most powerpc-linux boxes support dynamic linking these days and
13306 # people can always --disable-shared, the test was removed, and we
13307 # assume the GNU/Linux dynamic linker is in use.
13308 dynamic_linker='GNU/Linux ld.so'
13311 netbsd*)
13312 version_type=sunos
13313 need_lib_prefix=no
13314 need_version=no
13315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13316 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13318 dynamic_linker='NetBSD (a.out) ld.so'
13319 else
13320 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
13321 soname_spec='${libname}${release}.so$major'
13322 dynamic_linker='NetBSD ld.elf_so'
13324 shlibpath_var=LD_LIBRARY_PATH
13325 shlibpath_overrides_runpath=yes
13326 hardcode_into_libs=yes
13329 newsos6)
13330 version_type=linux
13331 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13332 shlibpath_var=LD_LIBRARY_PATH
13333 shlibpath_overrides_runpath=yes
13336 nto-qnx)
13337 version_type=linux
13338 need_lib_prefix=no
13339 need_version=no
13340 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13341 soname_spec='${libname}${release}.so$major'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=yes
13346 openbsd*)
13347 version_type=sunos
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13354 case $host_os in
13355 openbsd2.[89] | openbsd2.[89].*)
13356 shlibpath_overrides_runpath=no
13359 shlibpath_overrides_runpath=yes
13361 esac
13362 else
13363 shlibpath_overrides_runpath=yes
13367 os2*)
13368 libname_spec='$name'
13369 need_lib_prefix=no
13370 library_names_spec='$libname.dll $libname.a'
13371 dynamic_linker='OS/2 ld.exe'
13372 shlibpath_var=LIBPATH
13375 osf3* | osf4* | osf5*)
13376 version_type=osf
13377 need_lib_prefix=no
13378 need_version=no
13379 soname_spec='${libname}${release}.so$major'
13380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13386 sco3.2v5*)
13387 version_type=osf
13388 soname_spec='${libname}${release}.so$major'
13389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13390 shlibpath_var=LD_LIBRARY_PATH
13393 solaris*)
13394 version_type=linux
13395 need_lib_prefix=no
13396 need_version=no
13397 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13398 soname_spec='${libname}${release}.so$major'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13401 hardcode_into_libs=yes
13402 # ldd complains unless libraries are executable
13403 postinstall_cmds='chmod +x $lib'
13406 sunos4*)
13407 version_type=sunos
13408 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
13409 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 shlibpath_overrides_runpath=yes
13412 if test "$with_gnu_ld" = yes; then
13413 need_lib_prefix=no
13415 need_version=yes
13418 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13419 version_type=linux
13420 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13421 soname_spec='${libname}${release}.so$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 case $host_vendor in
13424 sni)
13425 shlibpath_overrides_runpath=no
13426 need_lib_prefix=no
13427 export_dynamic_flag_spec='${wl}-Blargedynsym'
13428 runpath_var=LD_RUN_PATH
13430 siemens)
13431 need_lib_prefix=no
13433 motorola)
13434 need_lib_prefix=no
13435 need_version=no
13436 shlibpath_overrides_runpath=no
13437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13439 esac
13442 sysv4*MP*)
13443 if test -d /usr/nec ;then
13444 version_type=linux
13445 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
13446 soname_spec='$libname.so.$major'
13447 shlibpath_var=LD_LIBRARY_PATH
13451 uts4*)
13452 version_type=linux
13453 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
13454 soname_spec='${libname}${release}.so$major'
13455 shlibpath_var=LD_LIBRARY_PATH
13459 dynamic_linker=no
13461 esac
13462 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13463 echo "${ECHO_T}$dynamic_linker" >&6
13464 test "$dynamic_linker" = no && can_build_shared=no
13467 # The else clause should only fire when bootstrapping the
13468 # libtool distribution, otherwise you forgot to ship ltmain.sh
13469 # with your package, and you will get complaints that there are
13470 # no rules to generate ltmain.sh.
13471 if test -f "$ltmain"; then
13472 # Now quote all the things that may contain metacharacters while being
13473 # careful not to overquote the AC_SUBSTed values. We take copies of the
13474 # variables and quote the copies for generation of the libtool script.
13475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13478 deplibs_check_method reload_flag reload_cmds need_locks \
13479 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13480 lt_cv_sys_global_symbol_to_c_name_address \
13481 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13482 old_postinstall_cmds old_postuninstall_cmds \
13483 compiler_F77 \
13484 CC_F77 \
13485 LD_F77 \
13486 lt_prog_compiler_wl_F77 \
13487 lt_prog_compiler_pic_F77 \
13488 lt_prog_compiler_static_F77 \
13489 lt_prog_compiler_no_builtin_flag_F77 \
13490 export_dynamic_flag_spec_F77 \
13491 thread_safe_flag_spec_F77 \
13492 whole_archive_flag_spec_F77 \
13493 enable_shared_with_static_runtimes_F77 \
13494 old_archive_cmds_F77 \
13495 old_archive_from_new_cmds_F77 \
13496 predep_objects_F77 \
13497 postdep_objects_F77 \
13498 predeps_F77 \
13499 postdeps_F77 \
13500 compiler_lib_search_path_F77 \
13501 archive_cmds_F77 \
13502 archive_expsym_cmds_F77 \
13503 postinstall_cmds_F77 \
13504 postuninstall_cmds_F77 \
13505 old_archive_from_expsyms_cmds_F77 \
13506 allow_undefined_flag_F77 \
13507 no_undefined_flag_F77 \
13508 export_symbols_cmds_F77 \
13509 hardcode_libdir_flag_spec_F77 \
13510 hardcode_libdir_separator_F77 \
13511 lt_cv_prog_compiler_c_o_F77 \
13512 exclude_expsyms_F77 \
13513 include_expsyms_F77; do
13515 case $var in
13516 old_archive_cmds_F77 | \
13517 old_archive_from_new_cmds_F77 | \
13518 archive_cmds_F77 | \
13519 archive_expsym_cmds_F77 | \
13520 old_archive_from_expsyms_cmds_F77 | \
13521 export_symbols_cmds_F77 | \
13522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13523 postinstall_cmds | postuninstall_cmds | \
13524 old_postinstall_cmds | old_postuninstall_cmds | \
13525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13526 # Double-quote double-evaled strings.
13527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13532 esac
13533 done
13535 case $lt_echo in
13536 *'\$0 --fallback-echo"')
13537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13539 esac
13541 cfgfile="$ofile"
13543 cat <<__EOF__ >> "$cfgfile"
13544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13548 # Shell to use when invoking shell scripts.
13549 SHELL=$lt_SHELL
13551 # Whether or not to build shared libraries.
13552 build_libtool_libs=$enable_shared
13554 # Whether or not to build static libraries.
13555 build_old_libs=$enable_static
13557 # Whether or not to add -lc for building shared libraries.
13558 build_libtool_need_lc=$archive_cmds_need_lc_F77
13560 # Whether or not to disallow shared libs when runtime libs are static
13561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
13563 # Whether or not to optimize for fast installation.
13564 fast_install=$enable_fast_install
13566 # The host system.
13567 host_alias=$host_alias
13568 host=$host
13570 # An echo program that does not interpret backslashes.
13571 echo=$lt_echo
13573 # The archiver.
13574 AR=$lt_AR
13575 AR_FLAGS=$lt_AR_FLAGS
13577 # A C compiler.
13578 LTCC=$lt_LTCC
13580 # A language-specific compiler.
13581 CC=$lt_compiler_F77
13583 # Is the compiler the GNU C compiler?
13584 with_gcc=$GCC_F77
13586 # An ERE matcher.
13587 EGREP=$lt_EGREP
13589 # The linker used to build libraries.
13590 LD=$lt_LD_F77
13592 # Whether we need hard or soft links.
13593 LN_S=$lt_LN_S
13595 # A BSD-compatible nm program.
13596 NM=$lt_NM
13598 # A sed program that does not truncate output.
13599 SED=$lt_SED
13601 # A symbol stripping program
13602 STRIP=$STRIP
13604 # Used to examine libraries when file_magic_cmd begins "file"
13605 MAGIC_CMD=$MAGIC_CMD
13607 # Used on cygwin: DLL creation program.
13608 DLLTOOL="$DLLTOOL"
13610 # Used on cygwin: object dumper.
13611 OBJDUMP="$OBJDUMP"
13613 # Used on cygwin: assembler.
13614 AS="$AS"
13616 # The name of the directory that contains temporary libtool files.
13617 objdir=$objdir
13619 # How to create reloadable object files.
13620 reload_flag=$lt_reload_flag
13621 reload_cmds=$lt_reload_cmds
13623 # How to pass a linker flag through the compiler.
13624 wl=$lt_lt_prog_compiler_wl_F77
13626 # Object file suffix (normally "o").
13627 objext="$ac_objext"
13629 # Old archive suffix (normally "a").
13630 libext="$libext"
13632 # Executable file suffix (normally "").
13633 exeext="$exeext"
13635 # Additional compiler flags for building library objects.
13636 pic_flag=$lt_lt_prog_compiler_pic_F77
13637 pic_mode=$pic_mode
13639 # What is the maximum length of a command?
13640 max_cmd_len=$lt_cv_sys_max_cmd_len
13642 # Does compiler simultaneously support -c and -o options?
13643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13645 # Must we lock files when doing compilation ?
13646 need_locks=$lt_need_locks
13648 # Do we need the lib prefix for modules?
13649 need_lib_prefix=$need_lib_prefix
13651 # Do we need a version for libraries?
13652 need_version=$need_version
13654 # Whether dlopen is supported.
13655 dlopen_support=$enable_dlopen
13657 # Whether dlopen of programs is supported.
13658 dlopen_self=$enable_dlopen_self
13660 # Whether dlopen of statically linked programs is supported.
13661 dlopen_self_static=$enable_dlopen_self_static
13663 # Compiler flag to prevent dynamic linking.
13664 link_static_flag=$lt_lt_prog_compiler_static_F77
13666 # Compiler flag to turn off builtin functions.
13667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
13669 # Compiler flag to allow reflexive dlopens.
13670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
13672 # Compiler flag to generate shared objects directly from archives.
13673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
13675 # Compiler flag to generate thread-safe objects.
13676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
13678 # Library versioning type.
13679 version_type=$version_type
13681 # Format of library name prefix.
13682 libname_spec=$lt_libname_spec
13684 # List of archive names. First name is the real one, the rest are links.
13685 # The last name is the one that the linker finds with -lNAME.
13686 library_names_spec=$lt_library_names_spec
13688 # The coded name of the library, if different from the real name.
13689 soname_spec=$lt_soname_spec
13691 # Commands used to build and install an old-style archive.
13692 RANLIB=$lt_RANLIB
13693 old_archive_cmds=$lt_old_archive_cmds_F77
13694 old_postinstall_cmds=$lt_old_postinstall_cmds
13695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13697 # Create an old-style archive from a shared archive.
13698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
13700 # Create a temporary old-style archive to link instead of a shared archive.
13701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
13703 # Commands used to build and install a shared archive.
13704 archive_cmds=$lt_archive_cmds_F77
13705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
13706 postinstall_cmds=$lt_postinstall_cmds
13707 postuninstall_cmds=$lt_postuninstall_cmds
13709 # Commands to strip libraries.
13710 old_striplib=$lt_old_striplib
13711 striplib=$lt_striplib
13713 # Dependencies to place before the objects being linked to create a
13714 # shared library.
13715 predep_objects=$lt_predep_objects_F77
13717 # Dependencies to place after the objects being linked to create a
13718 # shared library.
13719 postdep_objects=$lt_postdep_objects_F77
13721 # Dependencies to place before the objects being linked to create a
13722 # shared library.
13723 predeps=$lt_predeps_F77
13725 # Dependencies to place after the objects being linked to create a
13726 # shared library.
13727 postdeps=$lt_postdeps_F77
13729 # The library search path used internally by the compiler when linking
13730 # a shared library.
13731 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
13733 # Method to check whether dependent libraries are shared objects.
13734 deplibs_check_method=$lt_deplibs_check_method
13736 # Command to use when deplibs_check_method == file_magic.
13737 file_magic_cmd=$lt_file_magic_cmd
13739 # Flag that allows shared libraries with undefined symbols to be built.
13740 allow_undefined_flag=$lt_allow_undefined_flag_F77
13742 # Flag that forces no undefined symbols.
13743 no_undefined_flag=$lt_no_undefined_flag_F77
13745 # Commands used to finish a libtool library installation in a directory.
13746 finish_cmds=$lt_finish_cmds
13748 # Same as above, but a single script fragment to be evaled but not shown.
13749 finish_eval=$lt_finish_eval
13751 # Take the output of nm and produce a listing of raw symbols and C names.
13752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13754 # Transform the output of nm in a proper C declaration
13755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13757 # Transform the output of nm in a C name address pair
13758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13760 # This is the shared library runtime path variable.
13761 runpath_var=$runpath_var
13763 # This is the shared library path variable.
13764 shlibpath_var=$shlibpath_var
13766 # Is shlibpath searched before the hard-coded library search path?
13767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13769 # How to hardcode a shared library path into an executable.
13770 hardcode_action=$hardcode_action_F77
13772 # Whether we should hardcode library paths into libraries.
13773 hardcode_into_libs=$hardcode_into_libs
13775 # Flag to hardcode \$libdir into a binary during linking.
13776 # This must work even if \$libdir does not exist.
13777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
13779 # Whether we need a single -rpath flag with a separated argument.
13780 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
13782 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
13783 # resulting binary.
13784 hardcode_direct=$hardcode_direct_F77
13786 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13787 # resulting binary.
13788 hardcode_minus_L=$hardcode_minus_L_F77
13790 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13791 # the resulting binary.
13792 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
13794 # Variables whose values should be saved in libtool wrapper scripts and
13795 # restored at relink time.
13796 variables_saved_for_relink="$variables_saved_for_relink"
13798 # Whether libtool must link a program against all its dependency libraries.
13799 link_all_deplibs=$link_all_deplibs_F77
13801 # Compile-time system search path for libraries
13802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13804 # Run-time system search path for libraries
13805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13807 # Fix the shell variable \$srcfile for the compiler.
13808 fix_srcfile_path="$fix_srcfile_path_F77"
13810 # Set to yes if exported symbols are required.
13811 always_export_symbols=$always_export_symbols_F77
13813 # The commands to list exported symbols.
13814 export_symbols_cmds=$lt_export_symbols_cmds_F77
13816 # The commands to extract the exported symbol list from a shared archive.
13817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13819 # Symbols that should not be listed in the preloaded symbols.
13820 exclude_expsyms=$lt_exclude_expsyms_F77
13822 # Symbols that must always be exported.
13823 include_expsyms=$lt_include_expsyms_F77
13825 # ### END LIBTOOL TAG CONFIG: $tagname
13827 __EOF__
13830 else
13831 # If there is no Makefile yet, we rely on a make rule to execute
13832 # `config.status --recheck' to rerun these tests and create the
13833 # libtool script then.
13834 test -f Makefile && make "$ltmain"
13838 ac_ext=c
13839 ac_cpp='$CPP $CPPFLAGS'
13840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13844 CC="$lt_save_CC"
13848 GCJ)
13852 # Source file extension for C test sources.
13853 ac_ext=java
13855 # Object file extension for compiled C test sources.
13856 objext=o
13857 objext_GCJ=$objext
13859 # Code to be used in simple compile tests
13860 lt_simple_compile_test_code="class foo {}\n"
13862 # Code to be used in simple link tests
13863 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
13865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13867 # If no C compiler was specified, use CC.
13868 LTCC=${LTCC-"$CC"}
13870 # Allow CC to be a program name with arguments.
13871 set dummy $CC
13872 compiler="$2"
13875 # Allow CC to be a program name with arguments.
13876 lt_save_CC="$CC"
13877 CC=${GCJ-"gcj"}
13878 set dummy $CC
13879 compiler="$2"
13880 compiler_GCJ=$CC
13882 # GCJ did not exist at the time GCC didn't implicitly link libc in.
13883 archive_cmds_need_lc_GCJ=no
13886 lt_prog_compiler_no_builtin_flag_GCJ=
13888 if test "$GCC" = yes; then
13889 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
13891 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13892 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13893 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 lt_cv_prog_compiler_rtti_exceptions=no
13897 ac_outfile=conftest.$ac_objext
13898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13899 lt_compiler_flag="-fno-rtti -fno-exceptions"
13900 # Insert the option either (1) after the last *FLAGS variable, or
13901 # (2) before a word containing "conftest.", or (3) at the end.
13902 # Note that $ac_compile itself does not contain backslashes and begins
13903 # with a dollar sign (not a hyphen), so the echo should work correctly.
13904 # The option is referenced via a variable to avoid confusing sed.
13905 lt_compile=`echo "$ac_compile" | sed \
13906 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
13907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13908 -e 's:$: $lt_compiler_flag:'`
13909 (eval echo "\"\$as_me:13909: $lt_compile\"" >&5)
13910 (eval "$lt_compile" 2>conftest.err)
13911 ac_status=$?
13912 cat conftest.err >&5
13913 echo "$as_me:13913: \$? = $ac_status" >&5
13914 if (exit $ac_status) && test -s "$ac_outfile"; then
13915 # The compiler can only warn and ignore the option if not recognized
13916 # So say no if there are warnings
13917 if test ! -s conftest.err; then
13918 lt_cv_prog_compiler_rtti_exceptions=yes
13921 $rm conftest*
13924 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13925 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13927 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13928 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
13929 else
13935 lt_prog_compiler_wl_GCJ=
13936 lt_prog_compiler_pic_GCJ=
13937 lt_prog_compiler_static_GCJ=
13939 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13940 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13942 if test "$GCC" = yes; then
13943 lt_prog_compiler_wl_GCJ='-Wl,'
13944 lt_prog_compiler_static_GCJ='-static'
13946 case $host_os in
13947 aix*)
13948 # All AIX code is PIC.
13949 if test "$host_cpu" = ia64; then
13950 # AIX 5 now supports IA64 processor
13951 lt_prog_compiler_static_GCJ='-Bstatic'
13955 amigaos*)
13956 # FIXME: we need at least 68020 code to build shared libraries, but
13957 # adding the `-m68020' flag to GCC prevents building anything better,
13958 # like `-m68040'.
13959 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
13962 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13963 # PIC is the default for these OSes.
13966 mingw* | pw32* | os2*)
13967 # This hack is so that the source file can tell whether it is being
13968 # built for inclusion in a dll (and should export symbols for example).
13969 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13972 darwin* | rhapsody*)
13973 # PIC is the default on this platform
13974 # Common symbols not allowed in MH_DYLIB files
13975 lt_prog_compiler_pic_GCJ='-fno-common'
13978 msdosdjgpp*)
13979 # Just because we use GCC doesn't mean we suddenly get shared libraries
13980 # on systems that don't support them.
13981 lt_prog_compiler_can_build_shared_GCJ=no
13982 enable_shared=no
13985 sysv4*MP*)
13986 if test -d /usr/nec; then
13987 lt_prog_compiler_pic_GCJ=-Kconform_pic
13991 hpux*)
13992 # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
13993 if test "$host_cpu" != ia64; then
13994 lt_prog_compiler_pic_GCJ='-fPIC'
13999 lt_prog_compiler_pic_GCJ='-fPIC'
14001 esac
14002 else
14003 # PORTME Check for flag to pass linker flags through the system compiler.
14004 case $host_os in
14005 aix*)
14006 lt_prog_compiler_wl_GCJ='-Wl,'
14007 if test "$host_cpu" = ia64; then
14008 # AIX 5 now supports IA64 processor
14009 lt_prog_compiler_static_GCJ='-Bstatic'
14010 else
14011 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14015 mingw* | pw32* | os2*)
14016 # This hack is so that the source file can tell whether it is being
14017 # built for inclusion in a dll (and should export symbols for example).
14018 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14021 hpux9* | hpux10* | hpux11*)
14022 lt_prog_compiler_wl_GCJ='-Wl,'
14023 if test "$host_cpu" != ia64; then
14024 lt_prog_compiler_pic_GCJ='+Z'
14026 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14027 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14030 irix5* | irix6* | nonstopux*)
14031 lt_prog_compiler_wl_GCJ='-Wl,'
14032 # PIC (with -KPIC) is the default.
14033 lt_prog_compiler_static_GCJ='-non_shared'
14036 newsos6)
14037 lt_prog_compiler_pic_GCJ='-KPIC'
14038 lt_prog_compiler_static_GCJ='-Bstatic'
14041 osf3* | osf4* | osf5*)
14042 lt_prog_compiler_wl_GCJ='-Wl,'
14043 # All OSF/1 code is PIC.
14044 lt_prog_compiler_static_GCJ='-non_shared'
14047 sco3.2v5*)
14048 lt_prog_compiler_pic_GCJ='-Kpic'
14049 lt_prog_compiler_static_GCJ='-dn'
14052 solaris*)
14053 lt_prog_compiler_wl_GCJ='-Wl,'
14054 lt_prog_compiler_pic_GCJ='-KPIC'
14055 lt_prog_compiler_static_GCJ='-Bstatic'
14058 sunos4*)
14059 lt_prog_compiler_wl_GCJ='-Qoption ld '
14060 lt_prog_compiler_pic_GCJ='-PIC'
14061 lt_prog_compiler_static_GCJ='-Bstatic'
14064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14065 lt_prog_compiler_wl_GCJ='-Wl,'
14066 lt_prog_compiler_pic_GCJ='-KPIC'
14067 lt_prog_compiler_static_GCJ='-Bstatic'
14070 sysv4*MP*)
14071 if test -d /usr/nec ;then
14072 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14073 lt_prog_compiler_static_GCJ='-Bstatic'
14077 uts4*)
14078 lt_prog_compiler_pic_GCJ='-pic'
14079 lt_prog_compiler_static_GCJ='-Bstatic'
14083 lt_prog_compiler_can_build_shared_GCJ=no
14085 esac
14088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14089 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14092 # Check to make sure the PIC flag actually works.
14094 if test -n "$lt_prog_compiler_pic_GCJ"; then
14095 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14096 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14097 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 lt_prog_compiler_pic_works_GCJ=no
14101 ac_outfile=conftest.$ac_objext
14102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14103 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14104 # Insert the option either (1) after the last *FLAGS variable, or
14105 # (2) before a word containing "conftest.", or (3) at the end.
14106 # Note that $ac_compile itself does not contain backslashes and begins
14107 # with a dollar sign (not a hyphen), so the echo should work correctly.
14108 # The option is referenced via a variable to avoid confusing sed.
14109 lt_compile=`echo "$ac_compile" | sed \
14110 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
14111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14112 -e 's:$: $lt_compiler_flag:'`
14113 (eval echo "\"\$as_me:14113: $lt_compile\"" >&5)
14114 (eval "$lt_compile" 2>conftest.err)
14115 ac_status=$?
14116 cat conftest.err >&5
14117 echo "$as_me:14117: \$? = $ac_status" >&5
14118 if (exit $ac_status) && test -s "$ac_outfile"; then
14119 # The compiler can only warn and ignore the option if not recognized
14120 # So say no if there are warnings
14121 if test ! -s conftest.err; then
14122 lt_prog_compiler_pic_works_GCJ=yes
14125 $rm conftest*
14128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14129 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14131 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14132 case $lt_prog_compiler_pic_GCJ in
14133 "" | " "*) ;;
14134 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14135 esac
14136 else
14137 lt_prog_compiler_pic_GCJ=
14138 lt_prog_compiler_can_build_shared_GCJ=no
14142 case "$host_os" in
14143 # For platforms which do not support PIC, -DPIC is meaningless:
14144 *djgpp*)
14145 lt_prog_compiler_pic_GCJ=
14148 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14150 esac
14152 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157 lt_cv_prog_compiler_c_o_GCJ=no
14158 $rm -r conftest 2>/dev/null
14159 mkdir conftest
14160 cd conftest
14161 mkdir out
14162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14164 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14165 # that will create temporary files in the current directory regardless of
14166 # the output directory. Thus, making CWD read-only will cause this test
14167 # to fail, enabling locking or at least warning the user not to do parallel
14168 # builds.
14169 chmod -w .
14171 lt_compiler_flag="-o out/conftest2.$ac_objext"
14172 # Insert the option either (1) after the last *FLAGS variable, or
14173 # (2) before a word containing "conftest.", or (3) at the end.
14174 # Note that $ac_compile itself does not contain backslashes and begins
14175 # with a dollar sign (not a hyphen), so the echo should work correctly.
14176 lt_compile=`echo "$ac_compile" | sed \
14177 -e 's:.*FLAGS\}\? :&$lt_compiler_flag :; t' \
14178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14179 -e 's:$: $lt_compiler_flag:'`
14180 (eval echo "\"\$as_me:14180: $lt_compile\"" >&5)
14181 (eval "$lt_compile" 2>out/conftest.err)
14182 ac_status=$?
14183 cat out/conftest.err >&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14186 then
14187 # The compiler can only warn and ignore the option if not recognized
14188 # So say no if there are warnings
14189 if test ! -s out/conftest.err; then
14190 lt_cv_prog_compiler_c_o_GCJ=yes
14193 chmod u+w .
14194 $rm conftest* out/*
14195 rmdir out
14196 cd ..
14197 rmdir conftest
14198 $rm conftest*
14201 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14205 hard_links="nottested"
14206 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14207 # do not overwrite the value of need_locks provided by the user
14208 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14210 hard_links=yes
14211 $rm conftest*
14212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14213 touch conftest.a
14214 ln conftest.a conftest.b 2>&5 || hard_links=no
14215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14216 echo "$as_me:$LINENO: result: $hard_links" >&5
14217 echo "${ECHO_T}$hard_links" >&6
14218 if test "$hard_links" = no; then
14219 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14221 need_locks=warn
14223 else
14224 need_locks=no
14227 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14228 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14230 runpath_var=
14231 allow_undefined_flag_GCJ=
14232 enable_shared_with_static_runtimes_GCJ=no
14233 archive_cmds_GCJ=
14234 archive_cmds_need_lc_GCJ=
14235 archive_expsym_cmds_GCJ=
14236 old_archive_From_new_cmds_GCJ=
14237 old_archive_from_expsyms_cmds_GCJ=
14238 export_dynamic_flag_spec_GCJ=
14239 whole_archive_flag_spec_GCJ=
14240 thread_safe_flag_spec_GCJ=
14241 hardcode_libdir_flag_spec_GCJ=
14242 hardcode_libdir_separator_GCJ=
14243 hardcode_direct_GCJ=no
14244 hardcode_minus_L_GCJ=no
14245 hardcode_shlibpath_var_GCJ=unsupported
14246 link_all_deplibs_GCJ=unknown
14247 always_export_symbols_GCJ=no
14248 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
14249 # include_expsyms should be a list of space-separated symbols to be *always*
14250 # included in the symbol list
14251 include_expsyms_GCJ=
14252 # exclude_expsyms can be an extended regexp of symbols to exclude
14253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14255 # as well as any symbol that contains `d'.
14256 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14258 # platforms (ab)use it in PIC code, but their linkers get confused if
14259 # the symbol is explicitly referenced. Since portable code cannot
14260 # rely on this symbol name, it's probably fine to never include it in
14261 # preloaded symbol tables.
14262 extract_expsyms_cmds=
14264 case $host_os in
14265 cygwin* | mingw* | pw32*)
14266 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14267 # When not using gcc, we currently assume that we are using
14268 # Microsoft Visual C++.
14269 if test "$GCC" != yes; then
14270 with_gnu_ld=no
14273 openbsd*)
14274 with_gnu_ld=no
14276 esac
14278 ld_shlibs_GCJ=yes
14279 if test "$with_gnu_ld" = yes; then
14280 # If archive_cmds runs LD, not CC, wlarc should be empty
14281 wlarc='${wl}'
14283 # See if GNU ld supports shared libraries.
14284 case $host_os in
14285 aix3* | aix4* | aix5*)
14286 # On AIX/PPC, the GNU linker is very broken
14287 if test "$host_cpu" != ia64; then
14288 ld_shlibs_GCJ=no
14289 cat <<EOF 1>&2
14291 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14292 *** to be unable to reliably create shared libraries on AIX.
14293 *** Therefore, libtool is disabling shared libraries support. If you
14294 *** really care for shared libraries, you may want to modify your PATH
14295 *** so that a non-GNU linker is found, and then restart.
14301 amigaos*)
14302 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)'
14303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14304 hardcode_minus_L_GCJ=yes
14306 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14307 # that the semantics of dynamic libraries on AmigaOS, at least up
14308 # to version 4, is to share data among multiple programs linked
14309 # with the same dynamic library. Since this doesn't match the
14310 # behavior of shared libraries on other platforms, we can't use
14311 # them.
14312 ld_shlibs_GCJ=no
14315 beos*)
14316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317 allow_undefined_flag_GCJ=unsupported
14318 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14319 # support --undefined. This deserves some investigation. FIXME
14320 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14321 else
14322 ld_shlibs_GCJ=no
14326 cygwin* | mingw* | pw32*)
14327 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14328 # as there is no search path for DLLs.
14329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14330 allow_undefined_flag_GCJ=unsupported
14331 always_export_symbols_GCJ=no
14332 enable_shared_with_static_runtimes_GCJ=yes
14334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14336 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-retain-symbols-file $wl$export_symbols ${wl}--out-implib,$lib'
14337 else
14338 ld_shlibs=no
14342 netbsd*)
14343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14344 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14345 wlarc=
14346 else
14347 archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348 archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14352 solaris* | sysv5*)
14353 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14354 ld_shlibs_GCJ=no
14355 cat <<EOF 1>&2
14357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14358 *** create shared libraries on Solaris systems. Therefore, libtool
14359 *** is disabling shared libraries support. We urge you to upgrade GNU
14360 *** binutils to release 2.9.1 or newer. Another option is to modify
14361 *** your PATH or compiler configuration so that the native linker is
14362 *** used, and then restart.
14365 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14366 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14367 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14368 else
14369 ld_shlibs_GCJ=no
14373 sunos4*)
14374 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14375 wlarc=
14376 hardcode_direct_GCJ=yes
14377 hardcode_shlibpath_var_GCJ=no
14381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14384 else
14385 ld_shlibs_GCJ=no
14388 esac
14390 if test "$ld_shlibs_GCJ" = yes; then
14391 runpath_var=LD_RUN_PATH
14392 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14393 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14394 # ancient GNU ld didn't support --whole-archive et. al.
14395 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14396 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14397 else
14398 whole_archive_flag_spec_GCJ=
14401 else
14402 # PORTME fill in a description of your system's linker (not GNU ld)
14403 case $host_os in
14404 aix3*)
14405 allow_undefined_flag_GCJ=unsupported
14406 always_export_symbols_GCJ=yes
14407 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'
14408 # Note: this linker hardcodes the directories in LIBPATH if there
14409 # are no directories specified by -L.
14410 hardcode_minus_L_GCJ=yes
14411 if test "$GCC" = yes && test -z "$link_static_flag"; then
14412 # Neither direct hardcoding nor static linking is supported with a
14413 # broken collect2.
14414 hardcode_direct_GCJ=unsupported
14418 aix4* | aix5*)
14419 if test "$host_cpu" = ia64; then
14420 # On IA64, the linker does run time linking by default, so we don't
14421 # have to do anything special.
14422 aix_use_runtimelinking=no
14423 exp_sym_flag='-Bexport'
14424 no_entry_flag=""
14425 else
14426 # If we're using GNU nm, then we don't want the "-C" option.
14427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14428 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14429 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'
14430 else
14431 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'
14433 aix_use_runtimelinking=no
14435 # Test if we are trying to use run time linking or normal
14436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14437 # need to do runtime linking.
14438 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14439 for ld_flag in $LDFLAGS; do
14440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14441 aix_use_runtimelinking=yes
14442 break
14444 done
14445 esac
14447 exp_sym_flag='-bexport'
14448 no_entry_flag='-bnoentry'
14451 # When large executables or shared objects are built, AIX ld can
14452 # have problems creating the table of contents. If linking a library
14453 # or program results in "error TOC overflow" add -mminimal-toc to
14454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14457 archive_cmds_GCJ=''
14458 hardcode_direct_GCJ=yes
14459 hardcode_libdir_separator_GCJ=':'
14460 link_all_deplibs_GCJ=yes
14462 if test "$GCC" = yes; then
14463 case $host_os in aix4.012|aix4.012.*)
14464 # We only want to do this on AIX 4.2 and lower, the check
14465 # below for broken collect2 doesn't work under 4.3+
14466 collect2name=`${CC} -print-prog-name=collect2`
14467 if test -f "$collect2name" && \
14468 strings "$collect2name" | grep resolve_lib_name >/dev/null
14469 then
14470 # We have reworked collect2
14471 hardcode_direct_GCJ=yes
14472 else
14473 # We have old collect2
14474 hardcode_direct_GCJ=unsupported
14475 # It fails to find uninstalled libraries when the uninstalled
14476 # path is not listed in the libpath. Setting hardcode_minus_L
14477 # to unsupported forces relinking
14478 hardcode_minus_L_GCJ=yes
14479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14480 hardcode_libdir_separator_GCJ=
14482 esac
14483 shared_flag='-shared'
14484 else
14485 # not using gcc
14486 if test "$host_cpu" = ia64; then
14487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14488 # chokes on -Wl,-G. The following line is correct:
14489 shared_flag='-G'
14490 else
14491 if test "$aix_use_runtimelinking" = yes; then
14492 shared_flag='${wl}-G'
14493 else
14494 shared_flag='${wl}-bM:SRE'
14499 # It seems that -bexpall does not export symbols beginning with
14500 # underscore (_), so it is better to generate a list of symbols to export.
14501 always_export_symbols_GCJ=yes
14502 if test "$aix_use_runtimelinking" = yes; then
14503 # Warning - without using the other runtime loading flags (-brtl),
14504 # -berok will link without error, but may produce a broken library.
14505 allow_undefined_flag_GCJ='-berok'
14506 # Determine the default libpath from the value encoded in an empty executable.
14507 cat >conftest.$ac_ext <<_ACEOF
14508 #line $LINENO "configure"
14509 #include "confdefs.h"
14512 main ()
14516 return 0;
14518 _ACEOF
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14534 # Check for a 64-bit object if we didn't find anything.
14535 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; }
14536 }'`; fi
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14544 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14545 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"
14546 else
14547 if test "$host_cpu" = ia64; then
14548 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14549 allow_undefined_flag_GCJ="-z nodefs"
14550 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"
14551 else
14552 # Determine the default libpath from the value encoded in an empty executable.
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 #include "confdefs.h"
14558 main ()
14562 return 0;
14564 _ACEOF
14565 rm -f conftest.$ac_objext conftest$ac_exeext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567 (eval $ac_link) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -s conftest$ac_exeext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14580 # Check for a 64-bit object if we didn't find anything.
14581 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; }
14582 }'`; fi
14583 else
14584 echo "$as_me: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14590 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14591 # Warning - without using the other run time loading flags,
14592 # -berok will link without error, but may produce a broken library.
14593 no_undefined_flag_GCJ=' ${wl}-bernotok'
14594 allow_undefined_flag_GCJ=' ${wl}-berok'
14595 # -bexpall does not export symbols beginning with underscore (_)
14596 always_export_symbols_GCJ=yes
14597 # Exported symbols can be pulled into shared objects from archives
14598 whole_archive_flag_spec_GCJ=' '
14599 archive_cmds_need_lc_GCJ=yes
14600 # This is similar to how AIX traditionally builds it's shared libraries.
14601 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'
14606 amigaos*)
14607 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)'
14608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14609 hardcode_minus_L_GCJ=yes
14610 # see comment about different semantics on the GNU ld section
14611 ld_shlibs_GCJ=no
14614 bsdi4*)
14615 export_dynamic_flag_spec_GCJ=-rdynamic
14618 cygwin* | mingw* | pw32*)
14619 # When not using gcc, we currently assume that we are using
14620 # Microsoft Visual C++.
14621 # hardcode_libdir_flag_spec is actually meaningless, as there is
14622 # no search path for DLLs.
14623 hardcode_libdir_flag_spec_GCJ=' '
14624 allow_undefined_flag_GCJ=unsupported
14625 # Tell ltmain to make .lib files, not .a files.
14626 libext=lib
14627 # FIXME: Setting linknames here is a bad hack.
14628 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14629 # The linker will automatically build a .lib file if we build a DLL.
14630 old_archive_From_new_cmds_GCJ='true'
14631 # FIXME: Should let the user specify the lib program.
14632 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14633 fix_srcfile_path='`cygpath -w "$srcfile"`'
14634 enable_shared_with_static_runtimes_GCJ=yes
14637 darwin* | rhapsody*)
14638 case "$host_os" in
14639 rhapsody* | darwin1.[012])
14640 allow_undefined_flag_GCJ='-undefined suppress'
14642 *) # Darwin 1.3 on
14643 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14645 esac
14647 # FIXME: Relying on posixy $() will cause problems for
14648 # cross-compilation, but unfortunately the echo tests do not
14649 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14650 # `"' quotes if we put them in here... so don't!
14651 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
14652 # We need to add '_' to the symbols in $export_symbols first
14653 #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14654 hardcode_direct_GCJ=yes
14655 hardcode_shlibpath_var_GCJ=no
14656 whole_archive_flag_spec_GCJ='-all_load $convenience'
14659 dgux*)
14660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14661 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14662 hardcode_shlibpath_var_GCJ=no
14665 freebsd1*)
14666 ld_shlibs_GCJ=no
14669 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14670 # support. Future versions do this automatically, but an explicit c++rt0.o
14671 # does not break anything, and helps significantly (at the cost of a little
14672 # extra space).
14673 freebsd2.2*)
14674 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14676 hardcode_direct_GCJ=yes
14677 hardcode_shlibpath_var_GCJ=no
14680 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14681 freebsd2*)
14682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14683 hardcode_direct_GCJ=yes
14684 hardcode_minus_L_GCJ=yes
14685 hardcode_shlibpath_var_GCJ=no
14688 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14689 freebsd*)
14690 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14691 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14692 hardcode_direct_GCJ=yes
14693 hardcode_shlibpath_var_GCJ=no
14696 hpux9* | hpux10* | hpux11*)
14697 if test "$GCC" = yes; then
14698 case $host_os in
14699 hpux9*)
14700 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'
14703 if test "$host_cpu" = ia64; then
14704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 else
14706 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14709 esac
14710 else
14711 case $host_os in
14712 hpux9*)
14713 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'
14716 if test "$host_cpu" = ia64; then
14717 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14718 else
14719 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14722 esac
14724 if test "$host_cpu" = ia64; then
14725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14726 hardcode_direct_GCJ=no
14727 hardcode_shlibpath_var_GCJ=no
14728 else
14729 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14730 hardcode_libdir_separator_GCJ=:
14731 hardcode_direct_GCJ=yes
14733 # hardcode_minus_L: Not really in the search PATH,
14734 # but as the default location of the library.
14735 hardcode_minus_L_GCJ=yes
14736 export_dynamic_flag_spec_GCJ='${wl}-E'
14739 irix5* | irix6* | nonstopux*)
14740 if test "$GCC" = yes; then
14741 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'
14742 else
14743 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'
14745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14746 hardcode_libdir_separator_GCJ=:
14747 link_all_deplibs_GCJ=yes
14750 netbsd*)
14751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14753 else
14754 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14756 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14757 hardcode_direct_GCJ=yes
14758 hardcode_shlibpath_var_GCJ=no
14761 newsos6)
14762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763 hardcode_direct_GCJ=yes
14764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14765 hardcode_libdir_separator_GCJ=:
14766 hardcode_shlibpath_var_GCJ=no
14769 openbsd*)
14770 hardcode_direct_GCJ=yes
14771 hardcode_shlibpath_var_GCJ=no
14772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14773 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14775 export_dynamic_flag_spec_GCJ='${wl}-E'
14776 else
14777 case $host_os in
14778 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14779 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14780 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14783 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14784 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14786 esac
14790 os2*)
14791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14792 hardcode_minus_L_GCJ=yes
14793 allow_undefined_flag_GCJ=unsupported
14794 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'
14795 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14798 osf3*)
14799 if test "$GCC" = yes; then
14800 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14801 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'
14802 else
14803 allow_undefined_flag_GCJ=' -expect_unresolved \*'
14804 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'
14806 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14807 hardcode_libdir_separator_GCJ=:
14810 osf4* | osf5*) # as osf3* with the addition of -msym flag
14811 if test "$GCC" = yes; then
14812 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14813 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'
14814 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14815 else
14816 allow_undefined_flag_GCJ=' -expect_unresolved \*'
14817 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'
14818 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14819 $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'
14821 # Both c and cxx compiler support -rpath directly
14822 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
14824 hardcode_libdir_separator_GCJ=:
14827 sco3.2v5*)
14828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_shlibpath_var_GCJ=no
14830 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14831 runpath_var=LD_RUN_PATH
14832 hardcode_runpath_var=yes
14835 solaris*)
14836 no_undefined_flag_GCJ=' -z text'
14837 if test "$GCC" = yes; then
14838 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14839 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14840 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14841 else
14842 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14843 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14844 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14847 hardcode_shlibpath_var_GCJ=no
14848 case $host_os in
14849 solaris2.[0-5] | solaris2.[0-5].*) ;;
14850 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14851 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
14852 esac
14853 link_all_deplibs_GCJ=yes
14856 sunos4*)
14857 if test "x$host_vendor" = xsequent; then
14858 # Use $CC to link under sequent, because it throws in some extra .o
14859 # files that make .init and .fini sections work.
14860 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14861 else
14862 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14865 hardcode_direct_GCJ=yes
14866 hardcode_minus_L_GCJ=yes
14867 hardcode_shlibpath_var_GCJ=no
14870 sysv4)
14871 case $host_vendor in
14872 sni)
14873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_direct_GCJ=yes # is this really true???
14876 siemens)
14877 ## LD is ld it makes a PLAMLIB
14878 ## CC just makes a GrossModule.
14879 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14880 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14881 hardcode_direct_GCJ=no
14883 motorola)
14884 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14887 esac
14888 runpath_var='LD_RUN_PATH'
14889 hardcode_shlibpath_var_GCJ=no
14892 sysv4.3*)
14893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894 hardcode_shlibpath_var_GCJ=no
14895 export_dynamic_flag_spec_GCJ='-Bexport'
14898 sysv4*MP*)
14899 if test -d /usr/nec; then
14900 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14901 hardcode_shlibpath_var_GCJ=no
14902 runpath_var=LD_RUN_PATH
14903 hardcode_runpath_var=yes
14904 ld_shlibs_GCJ=yes
14908 sysv4.2uw2*)
14909 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_direct_GCJ=yes
14911 hardcode_minus_L_GCJ=no
14912 hardcode_shlibpath_var_GCJ=no
14913 hardcode_runpath_var=yes
14914 runpath_var=LD_RUN_PATH
14917 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14918 no_undefined_flag_GCJ='${wl}-z ${wl}text'
14919 if test "$GCC" = yes; then
14920 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 else
14922 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 runpath_var='LD_RUN_PATH'
14925 hardcode_shlibpath_var_GCJ=no
14928 sysv5*)
14929 no_undefined_flag_GCJ=' -z text'
14930 # $CC -shared without GNU ld will not create a library from C++
14931 # object files and a static libstdc++, better avoid it by now
14932 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14933 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14934 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14935 hardcode_libdir_flag_spec_GCJ=
14936 hardcode_shlibpath_var_GCJ=no
14937 runpath_var='LD_RUN_PATH'
14940 uts4*)
14941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14943 hardcode_shlibpath_var_GCJ=no
14947 ld_shlibs_GCJ=no
14949 esac
14952 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14953 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14954 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14957 if test "$GCC" = yes; then
14958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14962 # Do we need to explicitly link libc?
14964 archive_cmds_need_lc_GCJ=yes
14965 if test "$enable_shared" = yes && test "$GCC" = yes; then
14966 case $archive_cmds_GCJ in
14967 *'~'*)
14968 # FIXME: we may have to deal with multi-command sequences.
14970 '$CC '*)
14971 # Test whether the compiler implicitly links with -lc since on some
14972 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14973 # to ld, don't add -lc before -lgcc.
14974 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14975 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14976 $rm conftest*
14977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14980 (eval $ac_compile) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } 2>conftest.err; then
14984 soname=conftest
14985 lib=conftest
14986 libobjs=conftest.$ac_objext
14987 deplibs=
14988 wl=$lt_prog_compiler_wl_GCJ
14989 compiler_flags=-v
14990 linker_flags=-v
14991 verstring=
14992 output_objdir=.
14993 libname=conftest
14994 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14995 allow_undefined_flag_GCJ=
14996 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14997 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }
15001 then
15002 archive_cmds_need_lc_GCJ=no
15003 else
15004 archive_cmds_need_lc_GCJ=yes
15006 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15007 else
15008 cat conftest.err 1>&5
15010 $rm conftest*
15011 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15012 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15014 esac
15017 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15018 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15019 hardcode_action_GCJ=
15020 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15021 test -n "$runpath_var GCJ"; then
15023 # We can hardcode non-existant directories.
15024 if test "$hardcode_direct_GCJ" != no &&
15025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15026 # have to relink, otherwise we might link with an installed library
15027 # when we should be linking with a yet-to-be-installed one
15028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15029 test "$hardcode_minus_L_GCJ" != no; then
15030 # Linking always hardcodes the temporary library directory.
15031 hardcode_action_GCJ=relink
15032 else
15033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15034 hardcode_action_GCJ=immediate
15036 else
15037 # We cannot hardcode anything, or else we can only hardcode existing
15038 # directories.
15039 hardcode_action_GCJ=unsupported
15041 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15042 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15044 if test "$hardcode_action_GCJ" = relink; then
15045 # Fast installation is not supported
15046 enable_fast_install=no
15047 elif test "$shlibpath_overrides_runpath" = yes ||
15048 test "$enable_shared" = no; then
15049 # Fast installation is not necessary
15050 enable_fast_install=needless
15053 striplib=
15054 old_striplib=
15055 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15060 echo "$as_me:$LINENO: result: yes" >&5
15061 echo "${ECHO_T}yes" >&6
15062 else
15063 echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15067 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15068 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15069 library_names_spec=
15070 libname_spec='lib$name'
15071 soname_spec=
15072 postinstall_cmds=
15073 postuninstall_cmds=
15074 finish_cmds=
15075 finish_eval=
15076 shlibpath_var=
15077 shlibpath_overrides_runpath=unknown
15078 version_type=none
15079 dynamic_linker="$host_os ld.so"
15080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15081 if test "$GCC" = yes; then
15082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
15083 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15084 # if the path contains ";" then we assume it to be the separator
15085 # otherwise default to the standard path separator (i.e. ":") - it is
15086 # assumed that no part of a normal pathname contains ";" but that should
15087 # okay in the real world where ";" in dirpaths is itself problematic.
15088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
15089 else
15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
15092 else
15093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15095 need_lib_prefix=unknown
15096 hardcode_into_libs=no
15098 # when you set need_version to no, make sure it does not cause -set_version
15099 # flags to be left without arguments
15100 need_version=unknown
15102 case $host_os in
15103 aix3*)
15104 version_type=linux
15105 library_names_spec='${libname}${release}.so$versuffix $libname.a'
15106 shlibpath_var=LIBPATH
15108 # AIX 3 has no versioning support, so we append a major version to the name.
15109 soname_spec='${libname}${release}.so$major'
15112 aix4* | aix5*)
15113 version_type=linux
15114 need_lib_prefix=no
15115 need_version=no
15116 hardcode_into_libs=yes
15117 if test "$host_cpu" = ia64; then
15118 # AIX 5 supports IA64
15119 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 else
15122 # With GCC up to 2.95.x, collect2 would create an import file
15123 # for dependence libraries. The import file would start with
15124 # the line `#! .'. This would cause the generated library to
15125 # depend on `.', always an invalid library. This was fixed in
15126 # development snapshots of GCC prior to 3.0.
15127 case $host_os in
15128 aix4 | aix4.[01] | aix4.[01].*)
15129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15130 echo ' yes '
15131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15133 else
15134 can_build_shared=no
15137 esac
15138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15139 # soname into executable. Probably we can add versioning support to
15140 # collect2, so additional links can be useful in future.
15141 if test "$aix_use_runtimelinking" = yes; then
15142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15143 # instead of lib<name>.a to let people know that these are not
15144 # typical AIX shared libraries.
15145 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15146 else
15147 # We preserve .a as extension for shared libraries through AIX4.2
15148 # and later when we are not doing run time linking.
15149 library_names_spec='${libname}${release}.a $libname.a'
15150 soname_spec='${libname}${release}.so$major'
15152 shlibpath_var=LIBPATH
15156 amigaos*)
15157 library_names_spec='$libname.ixlibrary $libname.a'
15158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15159 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'
15162 beos*)
15163 library_names_spec='${libname}.so'
15164 dynamic_linker="$host_os ld.so"
15165 shlibpath_var=LIBRARY_PATH
15168 bsdi4*)
15169 version_type=linux
15170 need_version=no
15171 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15172 soname_spec='${libname}${release}.so$major'
15173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15177 # the default ld.so.conf also contains /usr/contrib/lib and
15178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15179 # libtool to hard-code these into programs
15182 cygwin* | mingw* | pw32*)
15183 version_type=windows
15184 need_version=no
15185 need_lib_prefix=no
15187 case $GCC,$host_os in
15188 yes,cygwin* | yes,mingw* | yes,pw32*)
15189 library_names_spec='$libname.dll.a'
15190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15191 postinstall_cmds='base_file=`basename \${file}`~
15192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15193 dldir=$destdir/`dirname \$dlpath`~
15194 test -d \$dldir || mkdir -p \$dldir~
15195 $install_prog $dir/$dlname \$dldir/$dlname'
15196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15197 dlpath=$dir/\$dldll~
15198 $rm \$dlpath'
15199 shlibpath_overrides_runpath=yes
15201 case $host_os in
15202 cygwin*)
15203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15205 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15207 mingw*)
15208 # MinGW DLLs use traditional 'lib' prefix
15209 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
15211 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15212 # It is most probably a Windows format PATH printed by
15213 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15214 # path with ; separators, and with drive letters. We can handle the
15215 # drive letters (cygwin fileutils understands them), so leave them,
15216 # especially as we might pass files found there to a mingw objdump,
15217 # which wouldn't understand a cygwinified path. Ahh.
15218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
15219 else
15220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
15223 pw32*)
15224 # pw32 DLLs use 'pw' prefix rather than 'lib'
15225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15227 esac
15231 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15233 esac
15234 dynamic_linker='Win32 ld.exe'
15235 # FIXME: first we should search . and the directory the executable is in
15236 shlibpath_var=PATH
15239 darwin* | rhapsody*)
15240 dynamic_linker="$host_os dyld"
15241 version_type=darwin
15242 need_lib_prefix=no
15243 need_version=no
15244 # FIXME: Relying on posixy $() will cause problems for
15245 # cross-compilation, but unfortunately the echo tests do not
15246 # yet detect zsh echo's removal of \ escapes.
15247 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
15248 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15249 shlibpath_overrides_runpath=yes
15250 shlibpath_var=DYLD_LIBRARY_PATH
15253 dgux*)
15254 version_type=linux
15255 need_lib_prefix=no
15256 need_version=no
15257 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15258 soname_spec='${libname}${release}.so$major'
15259 shlibpath_var=LD_LIBRARY_PATH
15262 freebsd1*)
15263 dynamic_linker=no
15266 freebsd*)
15267 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15268 version_type=freebsd-$objformat
15269 case $version_type in
15270 freebsd-elf*)
15271 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
15272 need_version=no
15273 need_lib_prefix=no
15275 freebsd-*)
15276 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
15277 need_version=yes
15279 esac
15280 shlibpath_var=LD_LIBRARY_PATH
15281 case $host_os in
15282 freebsd2*)
15283 shlibpath_overrides_runpath=yes
15285 freebsd3.01* | freebsdelf3.01*)
15286 shlibpath_overrides_runpath=yes
15287 hardcode_into_libs=yes
15289 *) # from 3.2 on
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15293 esac
15296 gnu*)
15297 version_type=linux
15298 need_lib_prefix=no
15299 need_version=no
15300 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
15301 soname_spec='${libname}${release}.so$major'
15302 shlibpath_var=LD_LIBRARY_PATH
15303 hardcode_into_libs=yes
15306 hpux9* | hpux10* | hpux11*)
15307 # Give a soname corresponding to the major version so that dld.sl refuses to
15308 # link against other versions.
15309 version_type=sunos
15310 need_lib_prefix=no
15311 need_version=no
15312 if test "$host_cpu" = ia64; then
15313 hardcode_into_libs=yes
15314 dynamic_linker="$host_os dld.so"
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15317 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15318 soname_spec='${libname}${release}.so$major'
15319 if test "X$HPUX_IA64_MODE" = X32; then
15320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15321 else
15322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15325 else
15326 dynamic_linker="$host_os dld.sl"
15327 shlibpath_var=SHLIB_PATH
15328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15329 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
15330 soname_spec='${libname}${release}.sl$major'
15332 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15333 postinstall_cmds='chmod 555 $lib'
15336 irix5* | irix6* | nonstopux*)
15337 case $host_os in
15338 nonstopux*) version_type=nonstopux ;;
15339 *) version_type=irix ;;
15340 esac
15341 need_lib_prefix=no
15342 need_version=no
15343 soname_spec='${libname}${release}.so$major'
15344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
15345 case $host_os in
15346 irix5* | nonstopux*)
15347 libsuff= shlibsuff=
15350 case $LD in # libtool.m4 will add one of these switches to LD
15351 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
15352 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
15353 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
15354 *) libsuff= shlibsuff= libmagic=never-match;;
15355 esac
15357 esac
15358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15359 shlibpath_overrides_runpath=no
15360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15364 # No shared lib support for Linux oldld, aout, or coff.
15365 linux*oldld* | linux*aout* | linux*coff*)
15366 dynamic_linker=no
15369 # This must be Linux ELF.
15370 linux*)
15371 version_type=linux
15372 need_lib_prefix=no
15373 need_version=no
15374 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15375 soname_spec='${libname}${release}.so$major'
15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15377 shlibpath_var=LD_LIBRARY_PATH
15378 shlibpath_overrides_runpath=no
15379 # This implies no fast_install, which is unacceptable.
15380 # Some rework will be needed to allow for fast_install
15381 # before this can be enabled.
15382 hardcode_into_libs=yes
15384 # We used to test for /lib/ld.so.1 and disable shared libraries on
15385 # powerpc, because MkLinux only supported shared libraries with the
15386 # GNU dynamic linker. Since this was broken with cross compilers,
15387 # most powerpc-linux boxes support dynamic linking these days and
15388 # people can always --disable-shared, the test was removed, and we
15389 # assume the GNU/Linux dynamic linker is in use.
15390 dynamic_linker='GNU/Linux ld.so'
15393 netbsd*)
15394 version_type=sunos
15395 need_lib_prefix=no
15396 need_version=no
15397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15398 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15400 dynamic_linker='NetBSD (a.out) ld.so'
15401 else
15402 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
15403 soname_spec='${libname}${release}.so$major'
15404 dynamic_linker='NetBSD ld.elf_so'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 shlibpath_overrides_runpath=yes
15408 hardcode_into_libs=yes
15411 newsos6)
15412 version_type=linux
15413 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=yes
15418 nto-qnx)
15419 version_type=linux
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15423 soname_spec='${libname}${release}.so$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes
15428 openbsd*)
15429 version_type=sunos
15430 need_lib_prefix=no
15431 need_version=no
15432 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15436 case $host_os in
15437 openbsd2.[89] | openbsd2.[89].*)
15438 shlibpath_overrides_runpath=no
15441 shlibpath_overrides_runpath=yes
15443 esac
15444 else
15445 shlibpath_overrides_runpath=yes
15449 os2*)
15450 libname_spec='$name'
15451 need_lib_prefix=no
15452 library_names_spec='$libname.dll $libname.a'
15453 dynamic_linker='OS/2 ld.exe'
15454 shlibpath_var=LIBPATH
15457 osf3* | osf4* | osf5*)
15458 version_type=osf
15459 need_lib_prefix=no
15460 need_version=no
15461 soname_spec='${libname}${release}.so$major'
15462 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15468 sco3.2v5*)
15469 version_type=osf
15470 soname_spec='${libname}${release}.so$major'
15471 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15472 shlibpath_var=LD_LIBRARY_PATH
15475 solaris*)
15476 version_type=linux
15477 need_lib_prefix=no
15478 need_version=no
15479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15480 soname_spec='${libname}${release}.so$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15484 # ldd complains unless libraries are executable
15485 postinstall_cmds='chmod +x $lib'
15488 sunos4*)
15489 version_type=sunos
15490 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
15491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes
15494 if test "$with_gnu_ld" = yes; then
15495 need_lib_prefix=no
15497 need_version=yes
15500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15501 version_type=linux
15502 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15503 soname_spec='${libname}${release}.so$major'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 case $host_vendor in
15506 sni)
15507 shlibpath_overrides_runpath=no
15508 need_lib_prefix=no
15509 export_dynamic_flag_spec='${wl}-Blargedynsym'
15510 runpath_var=LD_RUN_PATH
15512 siemens)
15513 need_lib_prefix=no
15515 motorola)
15516 need_lib_prefix=no
15517 need_version=no
15518 shlibpath_overrides_runpath=no
15519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15521 esac
15524 sysv4*MP*)
15525 if test -d /usr/nec ;then
15526 version_type=linux
15527 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
15528 soname_spec='$libname.so.$major'
15529 shlibpath_var=LD_LIBRARY_PATH
15533 uts4*)
15534 version_type=linux
15535 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15536 soname_spec='${libname}${release}.so$major'
15537 shlibpath_var=LD_LIBRARY_PATH
15541 dynamic_linker=no
15543 esac
15544 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15545 echo "${ECHO_T}$dynamic_linker" >&6
15546 test "$dynamic_linker" = no && can_build_shared=no
15548 if test "x$enable_dlopen" != xyes; then
15549 enable_dlopen=unknown
15550 enable_dlopen_self=unknown
15551 enable_dlopen_self_static=unknown
15552 else
15553 lt_cv_dlopen=no
15554 lt_cv_dlopen_libs=
15556 case $host_os in
15557 beos*)
15558 lt_cv_dlopen="load_add_on"
15559 lt_cv_dlopen_libs=
15560 lt_cv_dlopen_self=yes
15563 mingw* | pw32*)
15564 lt_cv_dlopen="LoadLibrary"
15565 lt_cv_dlopen_libs=
15568 cygwin*)
15569 lt_cv_dlopen="dlopen"
15570 lt_cv_dlopen_libs=
15574 echo "$as_me:$LINENO: checking for shl_load" >&5
15575 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15576 if test "${ac_cv_func_shl_load+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 #line $LINENO "configure"
15581 #include "confdefs.h"
15582 /* System header to define __stub macros and hopefully few prototypes,
15583 which can conflict with char shl_load (); below. */
15584 #include <assert.h>
15585 /* Override any gcc2 internal prototype to avoid an error. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char shl_load ();
15592 char (*f) ();
15595 main ()
15597 /* The GNU C library defines this for functions which it implements
15598 to always fail with ENOSYS. Some functions are actually named
15599 something starting with __ and the normal name is an alias. */
15600 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15601 choke me
15602 #else
15603 f = shl_load;
15604 #endif
15607 return 0;
15609 _ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15612 (eval $ac_link) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -s conftest$ac_exeext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_func_shl_load=yes
15623 else
15624 echo "$as_me: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 ac_cv_func_shl_load=no
15628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15630 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15632 if test $ac_cv_func_shl_load = yes; then
15633 lt_cv_dlopen="shl_load"
15634 else
15635 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-ldld $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
15643 #line $LINENO "configure"
15644 #include "confdefs.h"
15646 /* Override any gcc2 internal prototype to avoid an error. */
15647 #ifdef __cplusplus
15648 extern "C"
15649 #endif
15650 /* We use char because int might match the return type of a gcc2
15651 builtin and then its argument prototype would still apply. */
15652 char shl_load ();
15654 main ()
15656 shl_load ();
15658 return 0;
15660 _ACEOF
15661 rm -f conftest.$ac_objext conftest$ac_exeext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15663 (eval $ac_link) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -s conftest$ac_exeext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_lib_dld_shl_load=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 cat conftest.$ac_ext >&5
15677 ac_cv_lib_dld_shl_load=no
15679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15684 if test $ac_cv_lib_dld_shl_load = yes; then
15685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15686 else
15687 echo "$as_me:$LINENO: checking for dlopen" >&5
15688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15689 if test "${ac_cv_func_dlopen+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692 cat >conftest.$ac_ext <<_ACEOF
15693 #line $LINENO "configure"
15694 #include "confdefs.h"
15695 /* System header to define __stub macros and hopefully few prototypes,
15696 which can conflict with char dlopen (); below. */
15697 #include <assert.h>
15698 /* Override any gcc2 internal prototype to avoid an error. */
15699 #ifdef __cplusplus
15700 extern "C"
15701 #endif
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15704 char dlopen ();
15705 char (*f) ();
15708 main ()
15710 /* The GNU C library defines this for functions which it implements
15711 to always fail with ENOSYS. Some functions are actually named
15712 something starting with __ and the normal name is an alias. */
15713 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15714 choke me
15715 #else
15716 f = dlopen;
15717 #endif
15720 return 0;
15722 _ACEOF
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_cv_func_dlopen=yes
15736 else
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ac_cv_func_dlopen=no
15741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15744 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15745 if test $ac_cv_func_dlopen = yes; then
15746 lt_cv_dlopen="dlopen"
15747 else
15748 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 ac_check_lib_save_LIBS=$LIBS
15754 LIBS="-ldl $LIBS"
15755 cat >conftest.$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15757 #include "confdefs.h"
15759 /* Override any gcc2 internal prototype to avoid an error. */
15760 #ifdef __cplusplus
15761 extern "C"
15762 #endif
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765 char dlopen ();
15767 main ()
15769 dlopen ();
15771 return 0;
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776 (eval $ac_link) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 ac_cv_lib_dl_dlopen=yes
15787 else
15788 echo "$as_me: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 ac_cv_lib_dl_dlopen=no
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15796 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15797 if test $ac_cv_lib_dl_dlopen = yes; then
15798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15799 else
15800 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15801 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15802 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805 ac_check_lib_save_LIBS=$LIBS
15806 LIBS="-lsvld $LIBS"
15807 cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 #include "confdefs.h"
15811 /* Override any gcc2 internal prototype to avoid an error. */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 /* We use char because int might match the return type of a gcc2
15816 builtin and then its argument prototype would still apply. */
15817 char dlopen ();
15819 main ()
15821 dlopen ();
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828 (eval $ac_link) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -s conftest$ac_exeext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_lib_svld_dlopen=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 cat conftest.$ac_ext >&5
15842 ac_cv_lib_svld_dlopen=no
15844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15845 LIBS=$ac_check_lib_save_LIBS
15847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15849 if test $ac_cv_lib_svld_dlopen = yes; then
15850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15851 else
15852 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 ac_check_lib_save_LIBS=$LIBS
15858 LIBS="-ldld $LIBS"
15859 cat >conftest.$ac_ext <<_ACEOF
15860 #line $LINENO "configure"
15861 #include "confdefs.h"
15863 /* Override any gcc2 internal prototype to avoid an error. */
15864 #ifdef __cplusplus
15865 extern "C"
15866 #endif
15867 /* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15869 char dld_link ();
15871 main ()
15873 dld_link ();
15875 return 0;
15877 _ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880 (eval $ac_link) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
15884 { ac_try='test -s conftest$ac_exeext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_lib_dld_dld_link=yes
15891 else
15892 echo "$as_me: failed program was:" >&5
15893 cat conftest.$ac_ext >&5
15894 ac_cv_lib_dld_dld_link=no
15896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15897 LIBS=$ac_check_lib_save_LIBS
15899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15901 if test $ac_cv_lib_dld_dld_link = yes; then
15902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15921 esac
15923 if test "x$lt_cv_dlopen" != xno; then
15924 enable_dlopen=yes
15925 else
15926 enable_dlopen=no
15929 case $lt_cv_dlopen in
15930 dlopen)
15931 save_CPPFLAGS="$CPPFLAGS"
15932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15934 save_LDFLAGS="$LDFLAGS"
15935 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15937 save_LIBS="$LIBS"
15938 LIBS="$lt_cv_dlopen_libs $LIBS"
15940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15942 if test "${lt_cv_dlopen_self+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 if test "$cross_compiling" = yes; then :
15946 lt_cv_dlopen_self=cross
15947 else
15948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15949 lt_status=$lt_dlunknown
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15951 "configure"
15952 #include "confdefs.h"
15954 #if HAVE_DLFCN_H
15955 #include <dlfcn.h>
15956 #endif
15958 #include <stdio.h>
15960 #ifdef RTLD_GLOBAL
15961 # define LT_DLGLOBAL RTLD_GLOBAL
15962 #else
15963 # ifdef DL_GLOBAL
15964 # define LT_DLGLOBAL DL_GLOBAL
15965 # else
15966 # define LT_DLGLOBAL 0
15967 # endif
15968 #endif
15970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15971 find out it does not work in some platform. */
15972 #ifndef LT_DLLAZY_OR_NOW
15973 # ifdef RTLD_LAZY
15974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15975 # else
15976 # ifdef DL_LAZY
15977 # define LT_DLLAZY_OR_NOW DL_LAZY
15978 # else
15979 # ifdef RTLD_NOW
15980 # define LT_DLLAZY_OR_NOW RTLD_NOW
15981 # else
15982 # ifdef DL_NOW
15983 # define LT_DLLAZY_OR_NOW DL_NOW
15984 # else
15985 # define LT_DLLAZY_OR_NOW 0
15986 # endif
15987 # endif
15988 # endif
15989 # endif
15990 #endif
15992 #ifdef __cplusplus
15993 extern "C" void exit (int);
15994 #endif
15996 void fnord() { int i=42;}
15997 int main ()
15999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16000 int status = $lt_dlunknown;
16002 if (self)
16004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16006 /* dlclose (self); */
16009 exit (status);
16012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16013 (eval $ac_link) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16017 (./conftest; exit; ) 2>/dev/null
16018 lt_status=$?
16019 case x$lt_status in
16020 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16021 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16022 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16023 esac
16024 else :
16025 # compilation failed
16026 lt_cv_dlopen_self=no
16029 rm -fr conftest*
16033 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16034 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16036 if test "x$lt_cv_dlopen_self" = xyes; then
16037 LDFLAGS="$LDFLAGS $link_static_flag"
16038 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16039 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16040 if test "${lt_cv_dlopen_self_static+set}" = set; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043 if test "$cross_compiling" = yes; then :
16044 lt_cv_dlopen_self_static=cross
16045 else
16046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16047 lt_status=$lt_dlunknown
16048 cat > conftest.$ac_ext <<EOF
16049 #line 16049 "configure"
16050 #include "confdefs.h"
16052 #if HAVE_DLFCN_H
16053 #include <dlfcn.h>
16054 #endif
16056 #include <stdio.h>
16058 #ifdef RTLD_GLOBAL
16059 # define LT_DLGLOBAL RTLD_GLOBAL
16060 #else
16061 # ifdef DL_GLOBAL
16062 # define LT_DLGLOBAL DL_GLOBAL
16063 # else
16064 # define LT_DLGLOBAL 0
16065 # endif
16066 #endif
16068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16069 find out it does not work in some platform. */
16070 #ifndef LT_DLLAZY_OR_NOW
16071 # ifdef RTLD_LAZY
16072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16073 # else
16074 # ifdef DL_LAZY
16075 # define LT_DLLAZY_OR_NOW DL_LAZY
16076 # else
16077 # ifdef RTLD_NOW
16078 # define LT_DLLAZY_OR_NOW RTLD_NOW
16079 # else
16080 # ifdef DL_NOW
16081 # define LT_DLLAZY_OR_NOW DL_NOW
16082 # else
16083 # define LT_DLLAZY_OR_NOW 0
16084 # endif
16085 # endif
16086 # endif
16087 # endif
16088 #endif
16090 #ifdef __cplusplus
16091 extern "C" void exit (int);
16092 #endif
16094 void fnord() { int i=42;}
16095 int main ()
16097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16098 int status = $lt_dlunknown;
16100 if (self)
16102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16104 /* dlclose (self); */
16107 exit (status);
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16115 (./conftest; exit; ) 2>/dev/null
16116 lt_status=$?
16117 case x$lt_status in
16118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16120 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16121 esac
16122 else :
16123 # compilation failed
16124 lt_cv_dlopen_self_static=no
16127 rm -fr conftest*
16131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16132 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16135 CPPFLAGS="$save_CPPFLAGS"
16136 LDFLAGS="$save_LDFLAGS"
16137 LIBS="$save_LIBS"
16139 esac
16141 case $lt_cv_dlopen_self in
16142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16143 *) enable_dlopen_self=unknown ;;
16144 esac
16146 case $lt_cv_dlopen_self_static in
16147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16148 *) enable_dlopen_self_static=unknown ;;
16149 esac
16153 # The else clause should only fire when bootstrapping the
16154 # libtool distribution, otherwise you forgot to ship ltmain.sh
16155 # with your package, and you will get complaints that there are
16156 # no rules to generate ltmain.sh.
16157 if test -f "$ltmain"; then
16158 # Now quote all the things that may contain metacharacters while being
16159 # careful not to overquote the AC_SUBSTed values. We take copies of the
16160 # variables and quote the copies for generation of the libtool script.
16161 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16162 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16163 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16164 deplibs_check_method reload_flag reload_cmds need_locks \
16165 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16166 lt_cv_sys_global_symbol_to_c_name_address \
16167 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16168 old_postinstall_cmds old_postuninstall_cmds \
16169 compiler_GCJ \
16170 CC_GCJ \
16171 LD_GCJ \
16172 lt_prog_compiler_wl_GCJ \
16173 lt_prog_compiler_pic_GCJ \
16174 lt_prog_compiler_static_GCJ \
16175 lt_prog_compiler_no_builtin_flag_GCJ \
16176 export_dynamic_flag_spec_GCJ \
16177 thread_safe_flag_spec_GCJ \
16178 whole_archive_flag_spec_GCJ \
16179 enable_shared_with_static_runtimes_GCJ \
16180 old_archive_cmds_GCJ \
16181 old_archive_from_new_cmds_GCJ \
16182 predep_objects_GCJ \
16183 postdep_objects_GCJ \
16184 predeps_GCJ \
16185 postdeps_GCJ \
16186 compiler_lib_search_path_GCJ \
16187 archive_cmds_GCJ \
16188 archive_expsym_cmds_GCJ \
16189 postinstall_cmds_GCJ \
16190 postuninstall_cmds_GCJ \
16191 old_archive_from_expsyms_cmds_GCJ \
16192 allow_undefined_flag_GCJ \
16193 no_undefined_flag_GCJ \
16194 export_symbols_cmds_GCJ \
16195 hardcode_libdir_flag_spec_GCJ \
16196 hardcode_libdir_separator_GCJ \
16197 lt_cv_prog_compiler_c_o_GCJ \
16198 exclude_expsyms_GCJ \
16199 include_expsyms_GCJ; do
16201 case $var in
16202 old_archive_cmds_GCJ | \
16203 old_archive_from_new_cmds_GCJ | \
16204 archive_cmds_GCJ | \
16205 archive_expsym_cmds_GCJ | \
16206 old_archive_from_expsyms_cmds_GCJ | \
16207 export_symbols_cmds_GCJ | \
16208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16209 postinstall_cmds | postuninstall_cmds | \
16210 old_postinstall_cmds | old_postuninstall_cmds | \
16211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16212 # Double-quote double-evaled strings.
16213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16218 esac
16219 done
16221 case $lt_echo in
16222 *'\$0 --fallback-echo"')
16223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16225 esac
16227 cfgfile="$ofile"
16229 cat <<__EOF__ >> "$cfgfile"
16230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16234 # Shell to use when invoking shell scripts.
16235 SHELL=$lt_SHELL
16237 # Whether or not to build shared libraries.
16238 build_libtool_libs=$enable_shared
16240 # Whether or not to build static libraries.
16241 build_old_libs=$enable_static
16243 # Whether or not to add -lc for building shared libraries.
16244 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16246 # Whether or not to disallow shared libs when runtime libs are static
16247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16249 # Whether or not to optimize for fast installation.
16250 fast_install=$enable_fast_install
16252 # The host system.
16253 host_alias=$host_alias
16254 host=$host
16256 # An echo program that does not interpret backslashes.
16257 echo=$lt_echo
16259 # The archiver.
16260 AR=$lt_AR
16261 AR_FLAGS=$lt_AR_FLAGS
16263 # A C compiler.
16264 LTCC=$lt_LTCC
16266 # A language-specific compiler.
16267 CC=$lt_compiler_GCJ
16269 # Is the compiler the GNU C compiler?
16270 with_gcc=$GCC_GCJ
16272 # An ERE matcher.
16273 EGREP=$lt_EGREP
16275 # The linker used to build libraries.
16276 LD=$lt_LD_GCJ
16278 # Whether we need hard or soft links.
16279 LN_S=$lt_LN_S
16281 # A BSD-compatible nm program.
16282 NM=$lt_NM
16284 # A sed program that does not truncate output.
16285 SED=$lt_SED
16287 # A symbol stripping program
16288 STRIP=$STRIP
16290 # Used to examine libraries when file_magic_cmd begins "file"
16291 MAGIC_CMD=$MAGIC_CMD
16293 # Used on cygwin: DLL creation program.
16294 DLLTOOL="$DLLTOOL"
16296 # Used on cygwin: object dumper.
16297 OBJDUMP="$OBJDUMP"
16299 # Used on cygwin: assembler.
16300 AS="$AS"
16302 # The name of the directory that contains temporary libtool files.
16303 objdir=$objdir
16305 # How to create reloadable object files.
16306 reload_flag=$lt_reload_flag
16307 reload_cmds=$lt_reload_cmds
16309 # How to pass a linker flag through the compiler.
16310 wl=$lt_lt_prog_compiler_wl_GCJ
16312 # Object file suffix (normally "o").
16313 objext="$ac_objext"
16315 # Old archive suffix (normally "a").
16316 libext="$libext"
16318 # Executable file suffix (normally "").
16319 exeext="$exeext"
16321 # Additional compiler flags for building library objects.
16322 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16323 pic_mode=$pic_mode
16325 # What is the maximum length of a command?
16326 max_cmd_len=$lt_cv_sys_max_cmd_len
16328 # Does compiler simultaneously support -c and -o options?
16329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16331 # Must we lock files when doing compilation ?
16332 need_locks=$lt_need_locks
16334 # Do we need the lib prefix for modules?
16335 need_lib_prefix=$need_lib_prefix
16337 # Do we need a version for libraries?
16338 need_version=$need_version
16340 # Whether dlopen is supported.
16341 dlopen_support=$enable_dlopen
16343 # Whether dlopen of programs is supported.
16344 dlopen_self=$enable_dlopen_self
16346 # Whether dlopen of statically linked programs is supported.
16347 dlopen_self_static=$enable_dlopen_self_static
16349 # Compiler flag to prevent dynamic linking.
16350 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16352 # Compiler flag to turn off builtin functions.
16353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16355 # Compiler flag to allow reflexive dlopens.
16356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16358 # Compiler flag to generate shared objects directly from archives.
16359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16361 # Compiler flag to generate thread-safe objects.
16362 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16364 # Library versioning type.
16365 version_type=$version_type
16367 # Format of library name prefix.
16368 libname_spec=$lt_libname_spec
16370 # List of archive names. First name is the real one, the rest are links.
16371 # The last name is the one that the linker finds with -lNAME.
16372 library_names_spec=$lt_library_names_spec
16374 # The coded name of the library, if different from the real name.
16375 soname_spec=$lt_soname_spec
16377 # Commands used to build and install an old-style archive.
16378 RANLIB=$lt_RANLIB
16379 old_archive_cmds=$lt_old_archive_cmds_GCJ
16380 old_postinstall_cmds=$lt_old_postinstall_cmds
16381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16383 # Create an old-style archive from a shared archive.
16384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16386 # Create a temporary old-style archive to link instead of a shared archive.
16387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16389 # Commands used to build and install a shared archive.
16390 archive_cmds=$lt_archive_cmds_GCJ
16391 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16392 postinstall_cmds=$lt_postinstall_cmds
16393 postuninstall_cmds=$lt_postuninstall_cmds
16395 # Commands to strip libraries.
16396 old_striplib=$lt_old_striplib
16397 striplib=$lt_striplib
16399 # Dependencies to place before the objects being linked to create a
16400 # shared library.
16401 predep_objects=$lt_predep_objects_GCJ
16403 # Dependencies to place after the objects being linked to create a
16404 # shared library.
16405 postdep_objects=$lt_postdep_objects_GCJ
16407 # Dependencies to place before the objects being linked to create a
16408 # shared library.
16409 predeps=$lt_predeps_GCJ
16411 # Dependencies to place after the objects being linked to create a
16412 # shared library.
16413 postdeps=$lt_postdeps_GCJ
16415 # The library search path used internally by the compiler when linking
16416 # a shared library.
16417 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16419 # Method to check whether dependent libraries are shared objects.
16420 deplibs_check_method=$lt_deplibs_check_method
16422 # Command to use when deplibs_check_method == file_magic.
16423 file_magic_cmd=$lt_file_magic_cmd
16425 # Flag that allows shared libraries with undefined symbols to be built.
16426 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16428 # Flag that forces no undefined symbols.
16429 no_undefined_flag=$lt_no_undefined_flag_GCJ
16431 # Commands used to finish a libtool library installation in a directory.
16432 finish_cmds=$lt_finish_cmds
16434 # Same as above, but a single script fragment to be evaled but not shown.
16435 finish_eval=$lt_finish_eval
16437 # Take the output of nm and produce a listing of raw symbols and C names.
16438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16440 # Transform the output of nm in a proper C declaration
16441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16443 # Transform the output of nm in a C name address pair
16444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16446 # This is the shared library runtime path variable.
16447 runpath_var=$runpath_var
16449 # This is the shared library path variable.
16450 shlibpath_var=$shlibpath_var
16452 # Is shlibpath searched before the hard-coded library search path?
16453 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16455 # How to hardcode a shared library path into an executable.
16456 hardcode_action=$hardcode_action_GCJ
16458 # Whether we should hardcode library paths into libraries.
16459 hardcode_into_libs=$hardcode_into_libs
16461 # Flag to hardcode \$libdir into a binary during linking.
16462 # This must work even if \$libdir does not exist.
16463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16465 # Whether we need a single -rpath flag with a separated argument.
16466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16468 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16469 # resulting binary.
16470 hardcode_direct=$hardcode_direct_GCJ
16472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16473 # resulting binary.
16474 hardcode_minus_L=$hardcode_minus_L_GCJ
16476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16477 # the resulting binary.
16478 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16480 # Variables whose values should be saved in libtool wrapper scripts and
16481 # restored at relink time.
16482 variables_saved_for_relink="$variables_saved_for_relink"
16484 # Whether libtool must link a program against all its dependency libraries.
16485 link_all_deplibs=$link_all_deplibs_GCJ
16487 # Compile-time system search path for libraries
16488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16490 # Run-time system search path for libraries
16491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16493 # Fix the shell variable \$srcfile for the compiler.
16494 fix_srcfile_path="$fix_srcfile_path_GCJ"
16496 # Set to yes if exported symbols are required.
16497 always_export_symbols=$always_export_symbols_GCJ
16499 # The commands to list exported symbols.
16500 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16502 # The commands to extract the exported symbol list from a shared archive.
16503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16505 # Symbols that should not be listed in the preloaded symbols.
16506 exclude_expsyms=$lt_exclude_expsyms_GCJ
16508 # Symbols that must always be exported.
16509 include_expsyms=$lt_include_expsyms_GCJ
16511 # ### END LIBTOOL TAG CONFIG: $tagname
16513 __EOF__
16516 else
16517 # If there is no Makefile yet, we rely on a make rule to execute
16518 # `config.status --recheck' to rerun these tests and create the
16519 # libtool script then.
16520 test -f Makefile && make "$ltmain"
16524 ac_ext=c
16525 ac_cpp='$CPP $CPPFLAGS'
16526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16530 CC="$lt_save_CC"
16538 # Source file extension for RC test sources.
16539 ac_ext=rc
16541 # Object file extension for compiled RC test sources.
16542 objext=o
16543 objext_RC=$objext
16545 # Code to be used in simple compile tests
16546 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
16548 # Code to be used in simple link tests
16549 lt_simple_link_test_code="$lt_simple_compile_test_code"
16551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16553 # If no C compiler was specified, use CC.
16554 LTCC=${LTCC-"$CC"}
16556 # Allow CC to be a program name with arguments.
16557 set dummy $CC
16558 compiler="$2"
16561 # Allow CC to be a program name with arguments.
16562 lt_save_CC="$CC"
16563 CC=${RC-"windres"}
16564 set dummy $CC
16565 compiler="$2"
16566 compiler_RC=$CC
16567 lt_cv_prog_compiler_c_o_RC=yes
16569 # The else clause should only fire when bootstrapping the
16570 # libtool distribution, otherwise you forgot to ship ltmain.sh
16571 # with your package, and you will get complaints that there are
16572 # no rules to generate ltmain.sh.
16573 if test -f "$ltmain"; then
16574 # Now quote all the things that may contain metacharacters while being
16575 # careful not to overquote the AC_SUBSTed values. We take copies of the
16576 # variables and quote the copies for generation of the libtool script.
16577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16580 deplibs_check_method reload_flag reload_cmds need_locks \
16581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16582 lt_cv_sys_global_symbol_to_c_name_address \
16583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16584 old_postinstall_cmds old_postuninstall_cmds \
16585 compiler_RC \
16586 CC_RC \
16587 LD_RC \
16588 lt_prog_compiler_wl_RC \
16589 lt_prog_compiler_pic_RC \
16590 lt_prog_compiler_static_RC \
16591 lt_prog_compiler_no_builtin_flag_RC \
16592 export_dynamic_flag_spec_RC \
16593 thread_safe_flag_spec_RC \
16594 whole_archive_flag_spec_RC \
16595 enable_shared_with_static_runtimes_RC \
16596 old_archive_cmds_RC \
16597 old_archive_from_new_cmds_RC \
16598 predep_objects_RC \
16599 postdep_objects_RC \
16600 predeps_RC \
16601 postdeps_RC \
16602 compiler_lib_search_path_RC \
16603 archive_cmds_RC \
16604 archive_expsym_cmds_RC \
16605 postinstall_cmds_RC \
16606 postuninstall_cmds_RC \
16607 old_archive_from_expsyms_cmds_RC \
16608 allow_undefined_flag_RC \
16609 no_undefined_flag_RC \
16610 export_symbols_cmds_RC \
16611 hardcode_libdir_flag_spec_RC \
16612 hardcode_libdir_separator_RC \
16613 lt_cv_prog_compiler_c_o_RC \
16614 exclude_expsyms_RC \
16615 include_expsyms_RC; do
16617 case $var in
16618 old_archive_cmds_RC | \
16619 old_archive_from_new_cmds_RC | \
16620 archive_cmds_RC | \
16621 archive_expsym_cmds_RC | \
16622 old_archive_from_expsyms_cmds_RC | \
16623 export_symbols_cmds_RC | \
16624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16625 postinstall_cmds | postuninstall_cmds | \
16626 old_postinstall_cmds | old_postuninstall_cmds | \
16627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16628 # Double-quote double-evaled strings.
16629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16634 esac
16635 done
16637 case $lt_echo in
16638 *'\$0 --fallback-echo"')
16639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16641 esac
16643 cfgfile="$ofile"
16645 cat <<__EOF__ >> "$cfgfile"
16646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16650 # Shell to use when invoking shell scripts.
16651 SHELL=$lt_SHELL
16653 # Whether or not to build shared libraries.
16654 build_libtool_libs=$enable_shared
16656 # Whether or not to build static libraries.
16657 build_old_libs=$enable_static
16659 # Whether or not to add -lc for building shared libraries.
16660 build_libtool_need_lc=$archive_cmds_need_lc_RC
16662 # Whether or not to disallow shared libs when runtime libs are static
16663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16665 # Whether or not to optimize for fast installation.
16666 fast_install=$enable_fast_install
16668 # The host system.
16669 host_alias=$host_alias
16670 host=$host
16672 # An echo program that does not interpret backslashes.
16673 echo=$lt_echo
16675 # The archiver.
16676 AR=$lt_AR
16677 AR_FLAGS=$lt_AR_FLAGS
16679 # A C compiler.
16680 LTCC=$lt_LTCC
16682 # A language-specific compiler.
16683 CC=$lt_compiler_RC
16685 # Is the compiler the GNU C compiler?
16686 with_gcc=$GCC_RC
16688 # An ERE matcher.
16689 EGREP=$lt_EGREP
16691 # The linker used to build libraries.
16692 LD=$lt_LD_RC
16694 # Whether we need hard or soft links.
16695 LN_S=$lt_LN_S
16697 # A BSD-compatible nm program.
16698 NM=$lt_NM
16700 # A sed program that does not truncate output.
16701 SED=$lt_SED
16703 # A symbol stripping program
16704 STRIP=$STRIP
16706 # Used to examine libraries when file_magic_cmd begins "file"
16707 MAGIC_CMD=$MAGIC_CMD
16709 # Used on cygwin: DLL creation program.
16710 DLLTOOL="$DLLTOOL"
16712 # Used on cygwin: object dumper.
16713 OBJDUMP="$OBJDUMP"
16715 # Used on cygwin: assembler.
16716 AS="$AS"
16718 # The name of the directory that contains temporary libtool files.
16719 objdir=$objdir
16721 # How to create reloadable object files.
16722 reload_flag=$lt_reload_flag
16723 reload_cmds=$lt_reload_cmds
16725 # How to pass a linker flag through the compiler.
16726 wl=$lt_lt_prog_compiler_wl_RC
16728 # Object file suffix (normally "o").
16729 objext="$ac_objext"
16731 # Old archive suffix (normally "a").
16732 libext="$libext"
16734 # Executable file suffix (normally "").
16735 exeext="$exeext"
16737 # Additional compiler flags for building library objects.
16738 pic_flag=$lt_lt_prog_compiler_pic_RC
16739 pic_mode=$pic_mode
16741 # What is the maximum length of a command?
16742 max_cmd_len=$lt_cv_sys_max_cmd_len
16744 # Does compiler simultaneously support -c and -o options?
16745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16747 # Must we lock files when doing compilation ?
16748 need_locks=$lt_need_locks
16750 # Do we need the lib prefix for modules?
16751 need_lib_prefix=$need_lib_prefix
16753 # Do we need a version for libraries?
16754 need_version=$need_version
16756 # Whether dlopen is supported.
16757 dlopen_support=$enable_dlopen
16759 # Whether dlopen of programs is supported.
16760 dlopen_self=$enable_dlopen_self
16762 # Whether dlopen of statically linked programs is supported.
16763 dlopen_self_static=$enable_dlopen_self_static
16765 # Compiler flag to prevent dynamic linking.
16766 link_static_flag=$lt_lt_prog_compiler_static_RC
16768 # Compiler flag to turn off builtin functions.
16769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16771 # Compiler flag to allow reflexive dlopens.
16772 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16774 # Compiler flag to generate shared objects directly from archives.
16775 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16777 # Compiler flag to generate thread-safe objects.
16778 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
16780 # Library versioning type.
16781 version_type=$version_type
16783 # Format of library name prefix.
16784 libname_spec=$lt_libname_spec
16786 # List of archive names. First name is the real one, the rest are links.
16787 # The last name is the one that the linker finds with -lNAME.
16788 library_names_spec=$lt_library_names_spec
16790 # The coded name of the library, if different from the real name.
16791 soname_spec=$lt_soname_spec
16793 # Commands used to build and install an old-style archive.
16794 RANLIB=$lt_RANLIB
16795 old_archive_cmds=$lt_old_archive_cmds_RC
16796 old_postinstall_cmds=$lt_old_postinstall_cmds
16797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16799 # Create an old-style archive from a shared archive.
16800 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16802 # Create a temporary old-style archive to link instead of a shared archive.
16803 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16805 # Commands used to build and install a shared archive.
16806 archive_cmds=$lt_archive_cmds_RC
16807 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16808 postinstall_cmds=$lt_postinstall_cmds
16809 postuninstall_cmds=$lt_postuninstall_cmds
16811 # Commands to strip libraries.
16812 old_striplib=$lt_old_striplib
16813 striplib=$lt_striplib
16815 # Dependencies to place before the objects being linked to create a
16816 # shared library.
16817 predep_objects=$lt_predep_objects_RC
16819 # Dependencies to place after the objects being linked to create a
16820 # shared library.
16821 postdep_objects=$lt_postdep_objects_RC
16823 # Dependencies to place before the objects being linked to create a
16824 # shared library.
16825 predeps=$lt_predeps_RC
16827 # Dependencies to place after the objects being linked to create a
16828 # shared library.
16829 postdeps=$lt_postdeps_RC
16831 # The library search path used internally by the compiler when linking
16832 # a shared library.
16833 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
16835 # Method to check whether dependent libraries are shared objects.
16836 deplibs_check_method=$lt_deplibs_check_method
16838 # Command to use when deplibs_check_method == file_magic.
16839 file_magic_cmd=$lt_file_magic_cmd
16841 # Flag that allows shared libraries with undefined symbols to be built.
16842 allow_undefined_flag=$lt_allow_undefined_flag_RC
16844 # Flag that forces no undefined symbols.
16845 no_undefined_flag=$lt_no_undefined_flag_RC
16847 # Commands used to finish a libtool library installation in a directory.
16848 finish_cmds=$lt_finish_cmds
16850 # Same as above, but a single script fragment to be evaled but not shown.
16851 finish_eval=$lt_finish_eval
16853 # Take the output of nm and produce a listing of raw symbols and C names.
16854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16856 # Transform the output of nm in a proper C declaration
16857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16859 # Transform the output of nm in a C name address pair
16860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16862 # This is the shared library runtime path variable.
16863 runpath_var=$runpath_var
16865 # This is the shared library path variable.
16866 shlibpath_var=$shlibpath_var
16868 # Is shlibpath searched before the hard-coded library search path?
16869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16871 # How to hardcode a shared library path into an executable.
16872 hardcode_action=$hardcode_action_RC
16874 # Whether we should hardcode library paths into libraries.
16875 hardcode_into_libs=$hardcode_into_libs
16877 # Flag to hardcode \$libdir into a binary during linking.
16878 # This must work even if \$libdir does not exist.
16879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16881 # Whether we need a single -rpath flag with a separated argument.
16882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16884 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16885 # resulting binary.
16886 hardcode_direct=$hardcode_direct_RC
16888 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16889 # resulting binary.
16890 hardcode_minus_L=$hardcode_minus_L_RC
16892 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16893 # the resulting binary.
16894 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16896 # Variables whose values should be saved in libtool wrapper scripts and
16897 # restored at relink time.
16898 variables_saved_for_relink="$variables_saved_for_relink"
16900 # Whether libtool must link a program against all its dependency libraries.
16901 link_all_deplibs=$link_all_deplibs_RC
16903 # Compile-time system search path for libraries
16904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16906 # Run-time system search path for libraries
16907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16909 # Fix the shell variable \$srcfile for the compiler.
16910 fix_srcfile_path="$fix_srcfile_path_RC"
16912 # Set to yes if exported symbols are required.
16913 always_export_symbols=$always_export_symbols_RC
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds_RC
16918 # The commands to extract the exported symbol list from a shared archive.
16919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16921 # Symbols that should not be listed in the preloaded symbols.
16922 exclude_expsyms=$lt_exclude_expsyms_RC
16924 # Symbols that must always be exported.
16925 include_expsyms=$lt_include_expsyms_RC
16927 # ### END LIBTOOL TAG CONFIG: $tagname
16929 __EOF__
16932 else
16933 # If there is no Makefile yet, we rely on a make rule to execute
16934 # `config.status --recheck' to rerun these tests and create the
16935 # libtool script then.
16936 test -f Makefile && make "$ltmain"
16940 ac_ext=c
16941 ac_cpp='$CPP $CPPFLAGS'
16942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16946 CC="$lt_save_CC"
16951 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
16952 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
16953 { (exit 1); exit 1; }; }
16955 esac
16957 # Append the new tag name to the list of available tags.
16958 available_tags="$available_tags $tagname"
16960 done
16961 IFS="$lt_save_ifs"
16963 # Now substitute the updated list of available tags.
16964 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16965 mv "${ofile}T" "$ofile"
16966 chmod +x "$ofile"
16967 else
16968 rm -f "${ofile}T"
16969 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
16970 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
16971 { (exit 1); exit 1; }; }
16977 # This can be used to rebuild libtool when needed
16978 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
16980 # Always use our own libtool.
16981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16983 # Prevent multiple expansion
17011 ac_header_dirent=no
17012 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17013 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17014 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17015 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019 cat >conftest.$ac_ext <<_ACEOF
17020 #line $LINENO "configure"
17021 #include "confdefs.h"
17022 #include <sys/types.h>
17023 #include <$ac_hdr>
17026 main ()
17028 if ((DIR *) 0)
17029 return 0;
17031 return 0;
17033 _ACEOF
17034 rm -f conftest.$ac_objext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17036 (eval $ac_compile) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -s conftest.$ac_objext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 eval "$as_ac_Header=yes"
17047 else
17048 echo "$as_me: failed program was:" >&5
17049 cat conftest.$ac_ext >&5
17050 eval "$as_ac_Header=no"
17052 rm -f conftest.$ac_objext conftest.$ac_ext
17054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17057 cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17059 _ACEOF
17061 ac_header_dirent=$ac_hdr; break
17064 done
17065 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17066 if test $ac_header_dirent = dirent.h; then
17067 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17069 if test "${ac_cv_search_opendir+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 ac_func_search_save_LIBS=$LIBS
17073 ac_cv_search_opendir=no
17074 cat >conftest.$ac_ext <<_ACEOF
17075 #line $LINENO "configure"
17076 #include "confdefs.h"
17078 /* Override any gcc2 internal prototype to avoid an error. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 /* We use char because int might match the return type of a gcc2
17083 builtin and then its argument prototype would still apply. */
17084 char opendir ();
17086 main ()
17088 opendir ();
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext conftest$ac_exeext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095 (eval $ac_link) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -s conftest$ac_exeext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_search_opendir="none required"
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17111 if test "$ac_cv_search_opendir" = no; then
17112 for ac_lib in dir; do
17113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17114 cat >conftest.$ac_ext <<_ACEOF
17115 #line $LINENO "configure"
17116 #include "confdefs.h"
17118 /* Override any gcc2 internal prototype to avoid an error. */
17119 #ifdef __cplusplus
17120 extern "C"
17121 #endif
17122 /* We use char because int might match the return type of a gcc2
17123 builtin and then its argument prototype would still apply. */
17124 char opendir ();
17126 main ()
17128 opendir ();
17130 return 0;
17132 _ACEOF
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17135 (eval $ac_link) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_search_opendir="-l$ac_lib"
17146 break
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 cat conftest.$ac_ext >&5
17151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17152 done
17154 LIBS=$ac_func_search_save_LIBS
17156 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17157 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17158 if test "$ac_cv_search_opendir" != no; then
17159 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17163 else
17164 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17166 if test "${ac_cv_search_opendir+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169 ac_func_search_save_LIBS=$LIBS
17170 ac_cv_search_opendir=no
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17173 #include "confdefs.h"
17175 /* Override any gcc2 internal prototype to avoid an error. */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 /* We use char because int might match the return type of a gcc2
17180 builtin and then its argument prototype would still apply. */
17181 char opendir ();
17183 main ()
17185 opendir ();
17187 return 0;
17189 _ACEOF
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_search_opendir="none required"
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 cat conftest.$ac_ext >&5
17207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17208 if test "$ac_cv_search_opendir" = no; then
17209 for ac_lib in x; do
17210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17213 #include "confdefs.h"
17215 /* Override any gcc2 internal prototype to avoid an error. */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 /* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221 char opendir ();
17223 main ()
17225 opendir ();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_search_opendir="-l$ac_lib"
17243 break
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 cat conftest.$ac_ext >&5
17248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249 done
17251 LIBS=$ac_func_search_save_LIBS
17253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17255 if test "$ac_cv_search_opendir" != no; then
17256 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17262 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17263 if test "${enable_ltdl_install+set}" = set; then
17264 enableval="$enable_ltdl_install"
17270 if test x"${enable_ltdl_install-no}" != xno; then
17271 INSTALL_LTDL_TRUE=
17272 INSTALL_LTDL_FALSE='#'
17273 else
17274 INSTALL_LTDL_TRUE='#'
17275 INSTALL_LTDL_FALSE=
17280 if test x"${enable_ltdl_convenience-no}" != xno; then
17281 CONVENIENCE_LTDL_TRUE=
17282 CONVENIENCE_LTDL_FALSE='#'
17283 else
17284 CONVENIENCE_LTDL_TRUE='#'
17285 CONVENIENCE_LTDL_FALSE=
17290 echo "$as_me:$LINENO: checking which extension is used for shared libraries" >&5
17291 echo $ECHO_N "checking which extension is used for shared libraries... $ECHO_C" >&6
17292 if test "${libltdl_cv_shlibext+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295 ac_last=
17296 for ac_spec in $library_names_spec; do
17297 ac_last="$ac_spec"
17298 done
17299 echo "$ac_last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
17300 libltdl_cv_shlibext=`cat conftest`
17301 rm -f conftest
17304 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
17305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
17306 if test -n "$libltdl_cv_shlibext"; then
17308 cat >>confdefs.h <<_ACEOF
17309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
17310 _ACEOF
17315 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
17316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
17317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320 libltdl_cv_shlibpath_var="$shlibpath_var"
17322 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
17323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
17324 if test -n "$libltdl_cv_shlibpath_var"; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
17328 _ACEOF
17333 echo "$as_me:$LINENO: checking for the default library search path" >&5
17334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
17335 if test "${libltdl_cv_sys_search_path+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
17340 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
17341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
17342 if test -n "$libltdl_cv_sys_search_path"; then
17343 sys_search_path=
17344 for dir in $libltdl_cv_sys_search_path; do
17345 if test -z "$sys_search_path"; then
17346 sys_search_path="$dir"
17347 else
17348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
17350 done
17352 cat >>confdefs.h <<_ACEOF
17353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
17354 _ACEOF
17358 echo "$as_me:$LINENO: checking for objdir" >&5
17359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
17360 if test "${libltdl_cv_objdir+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 libltdl_cv_objdir="$objdir"
17364 if test -n "$objdir"; then
17366 else
17367 rm -f .libs 2>/dev/null
17368 mkdir .libs 2>/dev/null
17369 if test -d .libs; then
17370 libltdl_cv_objdir=.libs
17371 else
17372 # MS-DOS does not allow filenames that begin with a dot.
17373 libltdl_cv_objdir=_libs
17375 rmdir .libs 2>/dev/null
17379 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
17380 echo "${ECHO_T}$libltdl_cv_objdir" >&6
17382 cat >>confdefs.h <<_ACEOF
17383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
17384 _ACEOF
17388 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17389 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
17390 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393 if test -n "$lt_cv_sys_global_symbol_pipe"; then
17394 libltdl_cv_preloaded_symbols=yes
17395 else
17396 libltdl_cv_preloaded_symbols=no
17400 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17401 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
17402 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_PRELOADED_SYMBOLS 1
17406 _ACEOF
17410 LIBADD_DL=
17412 ac_ext=c
17413 ac_cpp='$CPP $CPPFLAGS'
17414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17419 echo "$as_me:$LINENO: checking for shl_load" >&5
17420 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17421 if test "${ac_cv_func_shl_load+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424 cat >conftest.$ac_ext <<_ACEOF
17425 #line $LINENO "configure"
17426 #include "confdefs.h"
17427 /* System header to define __stub macros and hopefully few prototypes,
17428 which can conflict with char shl_load (); below. */
17429 #include <assert.h>
17430 /* Override any gcc2 internal prototype to avoid an error. */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 /* We use char because int might match the return type of a gcc2
17435 builtin and then its argument prototype would still apply. */
17436 char shl_load ();
17437 char (*f) ();
17440 main ()
17442 /* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17446 choke me
17447 #else
17448 f = shl_load;
17449 #endif
17452 return 0;
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -s conftest$ac_exeext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_func_shl_load=yes
17468 else
17469 echo "$as_me: failed program was:" >&5
17470 cat conftest.$ac_ext >&5
17471 ac_cv_func_shl_load=no
17473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17475 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17476 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17477 if test $ac_cv_func_shl_load = yes; then
17479 cat >>confdefs.h <<\_ACEOF
17480 #define HAVE_SHL_LOAD 1
17481 _ACEOF
17483 else
17484 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17485 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17486 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489 ac_check_lib_save_LIBS=$LIBS
17490 LIBS="-ldld $LIBS"
17491 cat >conftest.$ac_ext <<_ACEOF
17492 #line $LINENO "configure"
17493 #include "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 shl_load ();
17503 main ()
17505 shl_load ();
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_shl_load=yes
17523 else
17524 echo "$as_me: failed program was:" >&5
17525 cat conftest.$ac_ext >&5
17526 ac_cv_lib_dld_shl_load=no
17528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17529 LIBS=$ac_check_lib_save_LIBS
17531 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17532 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17533 if test $ac_cv_lib_dld_shl_load = yes; then
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_SHL_LOAD 1
17537 _ACEOF
17539 LIBADD_DL="$LIBADD_DL -ldld"
17540 else
17541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-ldl $LIBS"
17548 cat >conftest.$ac_ext <<_ACEOF
17549 #line $LINENO "configure"
17550 #include "confdefs.h"
17552 /* Override any gcc2 internal prototype to avoid an error. */
17553 #ifdef __cplusplus
17554 extern "C"
17555 #endif
17556 /* We use char because int might match the return type of a gcc2
17557 builtin and then its argument prototype would still apply. */
17558 char dlopen ();
17560 main ()
17562 dlopen ();
17564 return 0;
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569 (eval $ac_link) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -s conftest$ac_exeext'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_cv_lib_dl_dlopen=yes
17580 else
17581 echo "$as_me: failed program was:" >&5
17582 cat conftest.$ac_ext >&5
17583 ac_cv_lib_dl_dlopen=no
17585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17588 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17589 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17590 if test $ac_cv_lib_dl_dlopen = yes; then
17592 cat >>confdefs.h <<\_ACEOF
17593 #define HAVE_LIBDL 1
17594 _ACEOF
17596 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
17597 else
17598 cat >conftest.$ac_ext <<_ACEOF
17599 #line $LINENO "configure"
17600 #include "confdefs.h"
17601 #if HAVE_DLFCN_H
17602 # include <dlfcn.h>
17603 #endif
17606 main ()
17608 dlopen(0, 0);
17610 return 0;
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17626 cat >>confdefs.h <<\_ACEOF
17627 #define HAVE_LIBDL 1
17628 _ACEOF
17629 libltdl_cv_func_dlopen="yes"
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17633 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17634 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638 ac_check_lib_save_LIBS=$LIBS
17639 LIBS="-lsvld $LIBS"
17640 cat >conftest.$ac_ext <<_ACEOF
17641 #line $LINENO "configure"
17642 #include "confdefs.h"
17644 /* Override any gcc2 internal prototype to avoid an error. */
17645 #ifdef __cplusplus
17646 extern "C"
17647 #endif
17648 /* We use char because int might match the return type of a gcc2
17649 builtin and then its argument prototype would still apply. */
17650 char dlopen ();
17652 main ()
17654 dlopen ();
17656 return 0;
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -s conftest$ac_exeext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_lib_svld_dlopen=yes
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 cat conftest.$ac_ext >&5
17675 ac_cv_lib_svld_dlopen=no
17677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17678 LIBS=$ac_check_lib_save_LIBS
17680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17682 if test $ac_cv_lib_svld_dlopen = yes; then
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_LIBDL 1
17686 _ACEOF
17688 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
17689 else
17690 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17691 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695 ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-ldld $LIBS"
17697 cat >conftest.$ac_ext <<_ACEOF
17698 #line $LINENO "configure"
17699 #include "confdefs.h"
17701 /* Override any gcc2 internal prototype to avoid an error. */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 /* We use char because int might match the return type of a gcc2
17706 builtin and then its argument prototype would still apply. */
17707 char dld_link ();
17709 main ()
17711 dld_link ();
17713 return 0;
17715 _ACEOF
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718 (eval $ac_link) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_lib_dld_dld_link=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 cat conftest.$ac_ext >&5
17732 ac_cv_lib_dld_dld_link=no
17734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17737 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17739 if test $ac_cv_lib_dld_dld_link = yes; then
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_DLD 1
17743 _ACEOF
17745 LIBADD_DL="$LIBADD_DL -ldld"
17754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17765 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17766 then
17767 lt_save_LIBS="$LIBS"
17768 LIBS="$LIBS $LIBADD_DL"
17770 for ac_func in dlerror
17772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17773 echo "$as_me:$LINENO: checking for $ac_func" >&5
17774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17775 if eval "test \"\${$as_ac_var+set}\" = set"; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 cat >conftest.$ac_ext <<_ACEOF
17779 #line $LINENO "configure"
17780 #include "confdefs.h"
17781 /* System header to define __stub macros and hopefully few prototypes,
17782 which can conflict with char $ac_func (); below. */
17783 #include <assert.h>
17784 /* Override any gcc2 internal prototype to avoid an error. */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 /* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17790 char $ac_func ();
17791 char (*f) ();
17794 main ()
17796 /* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17800 choke me
17801 #else
17802 f = $ac_func;
17803 #endif
17806 return 0;
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 eval "$as_ac_var=yes"
17822 else
17823 echo "$as_me: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 eval "$as_ac_var=no"
17827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17831 if test `eval echo '${'$as_ac_var'}'` = yes; then
17832 cat >>confdefs.h <<_ACEOF
17833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17834 _ACEOF
17837 done
17839 LIBS="$lt_save_LIBS"
17841 ac_ext=c
17842 ac_cpp='$CPP $CPPFLAGS'
17843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17849 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
17850 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
17851 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854 ac_cv_sys_symbol_underscore=no
17855 cat > conftest.$ac_ext <<EOF
17856 void nm_test_func(){}
17857 int main(){nm_test_func;return 0;}
17859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17860 (eval $ac_compile) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; then
17864 # Now try to grab the symbols.
17865 ac_nlist=conftest.nm
17866 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
17867 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && test -s "$ac_nlist"; then
17871 # See whether the symbols have a leading underscore.
17872 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17873 ac_cv_sys_symbol_underscore=yes
17874 else
17875 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17877 else
17878 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17881 else
17882 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17884 else
17885 echo "configure: failed program was:" >&5
17886 cat conftest.c >&5
17888 rm -rf conftest*
17891 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
17892 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
17895 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
17896 if test x"$libltdl_cv_func_dlopen" = xyes ||
17897 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
17898 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
17899 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
17900 if test "${libltdl_cv_need_uscore+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 libltdl_cv_need_uscore=unknown
17904 save_LIBS="$LIBS"
17905 LIBS="$LIBS $LIBADD_DL"
17906 if test "$cross_compiling" = yes; then :
17907 libltdl_cv_need_uscore=cross
17908 else
17909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17910 lt_status=$lt_dlunknown
17911 cat > conftest.$ac_ext <<EOF
17912 #line 17912 "configure"
17913 #include "confdefs.h"
17915 #if HAVE_DLFCN_H
17916 #include <dlfcn.h>
17917 #endif
17919 #include <stdio.h>
17921 #ifdef RTLD_GLOBAL
17922 # define LT_DLGLOBAL RTLD_GLOBAL
17923 #else
17924 # ifdef DL_GLOBAL
17925 # define LT_DLGLOBAL DL_GLOBAL
17926 # else
17927 # define LT_DLGLOBAL 0
17928 # endif
17929 #endif
17931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17932 find out it does not work in some platform. */
17933 #ifndef LT_DLLAZY_OR_NOW
17934 # ifdef RTLD_LAZY
17935 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17936 # else
17937 # ifdef DL_LAZY
17938 # define LT_DLLAZY_OR_NOW DL_LAZY
17939 # else
17940 # ifdef RTLD_NOW
17941 # define LT_DLLAZY_OR_NOW RTLD_NOW
17942 # else
17943 # ifdef DL_NOW
17944 # define LT_DLLAZY_OR_NOW DL_NOW
17945 # else
17946 # define LT_DLLAZY_OR_NOW 0
17947 # endif
17948 # endif
17949 # endif
17950 # endif
17951 #endif
17953 #ifdef __cplusplus
17954 extern "C" void exit (int);
17955 #endif
17957 void fnord() { int i=42;}
17958 int main ()
17960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17961 int status = $lt_dlunknown;
17963 if (self)
17965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17967 /* dlclose (self); */
17970 exit (status);
17973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17974 (eval $ac_link) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17978 (./conftest; exit; ) 2>/dev/null
17979 lt_status=$?
17980 case x$lt_status in
17981 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
17982 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
17983 x$lt_unknown|x*) ;;
17984 esac
17985 else :
17986 # compilation failed
17990 rm -fr conftest*
17992 LIBS="$save_LIBS"
17995 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
17996 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
18000 if test x"$libltdl_cv_need_uscore" = xyes; then
18002 cat >>confdefs.h <<\_ACEOF
18003 #define NEED_USCORE 1
18004 _ACEOF
18009 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
18010 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
18011 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 # PORTME does your system automatically load deplibs for dlopen?
18015 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18016 # For now, we just catch OSes we know something about -- in the
18017 # future, we'll try test this programmatically.
18018 libltdl_cv_sys_dlopen_deplibs=unknown
18019 case "$host_os" in
18020 aix3*|aix4.1.*|aix4.2.*)
18021 # Unknown whether this is true for these versions of AIX, but
18022 # we want this `case' here to explicitly catch those versions.
18023 libltdl_cv_sys_dlopen_deplibs=unknown
18025 aix[45]*)
18026 libltdl_cv_sys_dlopen_deplibs=yes
18028 gnu*)
18029 libltdl_cv_sys_dlopen_deplibs=yes
18031 hpux10*|hpux11*)
18032 libltdl_cv_sys_dlopen_deplibs=yes
18034 irix[12345]*|irix6.[01]*)
18035 # Catch all versions of IRIX before 6.2, and indicate that we don't
18036 # know how it worked for any of those versions.
18037 libltdl_cv_sys_dlopen_deplibs=unknown
18039 irix*)
18040 # The case above catches anything before 6.2, and it's known that
18041 # at 6.2 and later dlopen does load deplibs.
18042 libltdl_cv_sys_dlopen_deplibs=yes
18044 linux*)
18045 libltdl_cv_sys_dlopen_deplibs=yes
18047 netbsd*)
18048 libltdl_cv_sys_dlopen_deplibs=yes
18050 openbsd*)
18051 libltdl_cv_sys_dlopen_deplibs=yes
18053 osf[1234]*)
18054 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18055 # it did *not* use an RPATH in a shared library to find objects the
18056 # library depends on, so we explictly say `no'.
18057 libltdl_cv_sys_dlopen_deplibs=no
18059 osf5.0|osf5.0a|osf5.1)
18060 # dlopen *does* load deplibs and with the right loader patch applied
18061 # it even uses RPATH in a shared library to search for shared objects
18062 # that the library depends on, but there's no easy way to know if that
18063 # patch is installed. Since this is the case, all we can really
18064 # say is unknown -- it depends on the patch being installed. If
18065 # it is, this changes to `yes'. Without it, it would be `no'.
18066 libltdl_cv_sys_dlopen_deplibs=unknown
18068 osf*)
18069 # the two cases above should catch all versions of osf <= 5.1. Read
18070 # the comments above for what we know about them.
18071 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18072 # is used to find them so we can finally say `yes'.
18073 libltdl_cv_sys_dlopen_deplibs=yes
18075 solaris*)
18076 libltdl_cv_sys_dlopen_deplibs=yes
18078 esac
18081 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
18082 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
18083 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
18085 cat >>confdefs.h <<\_ACEOF
18086 #define LTDL_DLOPEN_DEPLIBS 1
18087 _ACEOF
18092 for ac_header in argz.h
18094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18096 echo "$as_me:$LINENO: checking for $ac_header" >&5
18097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18103 else
18104 # Is the header compilable?
18105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18108 #line $LINENO "configure"
18109 #include "confdefs.h"
18110 $ac_includes_default
18111 #include <$ac_header>
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -s conftest.$ac_objext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_header_compiler=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 cat conftest.$ac_ext >&5
18129 ac_header_compiler=no
18131 rm -f conftest.$ac_objext conftest.$ac_ext
18132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18133 echo "${ECHO_T}$ac_header_compiler" >&6
18135 # Is the header present?
18136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18138 cat >conftest.$ac_ext <<_ACEOF
18139 #line $LINENO "configure"
18140 #include "confdefs.h"
18141 #include <$ac_header>
18142 _ACEOF
18143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } >/dev/null; then
18151 if test -s conftest.err; then
18152 ac_cpp_err=$ac_c_preproc_warn_flag
18153 else
18154 ac_cpp_err=
18156 else
18157 ac_cpp_err=yes
18159 if test -z "$ac_cpp_err"; then
18160 ac_header_preproc=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 cat conftest.$ac_ext >&5
18164 ac_header_preproc=no
18166 rm -f conftest.err conftest.$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18168 echo "${ECHO_T}$ac_header_preproc" >&6
18170 # So? What about this header?
18171 case $ac_header_compiler:$ac_header_preproc in
18172 yes:no )
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18177 no:yes )
18178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18184 esac
18185 echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190 eval "$as_ac_Header=$ac_header_preproc"
18192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18197 cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18199 _ACEOF
18203 done
18206 echo "$as_me:$LINENO: checking for error_t" >&5
18207 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
18208 if test "${ac_cv_type_error_t+set}" = set; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 else
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18213 #include "confdefs.h"
18214 #if HAVE_ARGZ_H
18215 # include <argz.h>
18216 #endif
18219 main ()
18221 if ((error_t *) 0)
18222 return 0;
18223 if (sizeof (error_t))
18224 return 0;
18226 return 0;
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -s conftest.$ac_objext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 ac_cv_type_error_t=yes
18242 else
18243 echo "$as_me: failed program was:" >&5
18244 cat conftest.$ac_ext >&5
18245 ac_cv_type_error_t=no
18247 rm -f conftest.$ac_objext conftest.$ac_ext
18249 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
18250 echo "${ECHO_T}$ac_cv_type_error_t" >&6
18251 if test $ac_cv_type_error_t = yes; then
18253 cat >>confdefs.h <<_ACEOF
18254 #define HAVE_ERROR_T 1
18255 _ACEOF
18258 else
18260 cat >>confdefs.h <<\_ACEOF
18261 #define error_t int
18262 _ACEOF
18272 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
18274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275 echo "$as_me:$LINENO: checking for $ac_func" >&5
18276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18277 if eval "test \"\${$as_ac_var+set}\" = set"; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280 cat >conftest.$ac_ext <<_ACEOF
18281 #line $LINENO "configure"
18282 #include "confdefs.h"
18283 /* System header to define __stub macros and hopefully few prototypes,
18284 which can conflict with char $ac_func (); below. */
18285 #include <assert.h>
18286 /* Override any gcc2 internal prototype to avoid an error. */
18287 #ifdef __cplusplus
18288 extern "C"
18289 #endif
18290 /* We use char because int might match the return type of a gcc2
18291 builtin and then its argument prototype would still apply. */
18292 char $ac_func ();
18293 char (*f) ();
18296 main ()
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 choke me
18303 #else
18304 f = $ac_func;
18305 #endif
18308 return 0;
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313 (eval $ac_link) 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try='test -s conftest$ac_exeext'
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 eval "$as_ac_var=yes"
18324 else
18325 echo "$as_me: failed program was:" >&5
18326 cat conftest.$ac_ext >&5
18327 eval "$as_ac_var=no"
18329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18333 if test `eval echo '${'$as_ac_var'}'` = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 _ACEOF
18339 done
18368 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
18369 stdio.h unistd.h
18371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18373 echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18380 else
18381 # Is the header compilable?
18382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18384 cat >conftest.$ac_ext <<_ACEOF
18385 #line $LINENO "configure"
18386 #include "confdefs.h"
18387 $ac_includes_default
18388 #include <$ac_header>
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18392 (eval $ac_compile) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -s conftest.$ac_objext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_header_compiler=yes
18403 else
18404 echo "$as_me: failed program was:" >&5
18405 cat conftest.$ac_ext >&5
18406 ac_header_compiler=no
18408 rm -f conftest.$ac_objext conftest.$ac_ext
18409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18410 echo "${ECHO_T}$ac_header_compiler" >&6
18412 # Is the header present?
18413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18416 #line $LINENO "configure"
18417 #include "confdefs.h"
18418 #include <$ac_header>
18419 _ACEOF
18420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null; then
18428 if test -s conftest.err; then
18429 ac_cpp_err=$ac_c_preproc_warn_flag
18430 else
18431 ac_cpp_err=
18433 else
18434 ac_cpp_err=yes
18436 if test -z "$ac_cpp_err"; then
18437 ac_header_preproc=yes
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18441 ac_header_preproc=no
18443 rm -f conftest.err conftest.$ac_ext
18444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18445 echo "${ECHO_T}$ac_header_preproc" >&6
18447 # So? What about this header?
18448 case $ac_header_compiler:$ac_header_preproc in
18449 yes:no )
18450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18454 no:yes )
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18461 esac
18462 echo "$as_me:$LINENO: checking for $ac_header" >&5
18463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467 eval "$as_ac_Header=$ac_header_preproc"
18469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18474 cat >>confdefs.h <<_ACEOF
18475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18476 _ACEOF
18480 done
18485 for ac_header in dl.h sys/dl.h dld.h
18487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18489 echo "$as_me:$LINENO: checking for $ac_header" >&5
18490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18496 else
18497 # Is the header compilable?
18498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18501 #line $LINENO "configure"
18502 #include "confdefs.h"
18503 $ac_includes_default
18504 #include <$ac_header>
18505 _ACEOF
18506 rm -f conftest.$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -s conftest.$ac_objext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_header_compiler=yes
18519 else
18520 echo "$as_me: failed program was:" >&5
18521 cat conftest.$ac_ext >&5
18522 ac_header_compiler=no
18524 rm -f conftest.$ac_objext conftest.$ac_ext
18525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18526 echo "${ECHO_T}$ac_header_compiler" >&6
18528 # Is the header present?
18529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18532 #line $LINENO "configure"
18533 #include "confdefs.h"
18534 #include <$ac_header>
18535 _ACEOF
18536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } >/dev/null; then
18544 if test -s conftest.err; then
18545 ac_cpp_err=$ac_c_preproc_warn_flag
18546 else
18547 ac_cpp_err=
18549 else
18550 ac_cpp_err=yes
18552 if test -z "$ac_cpp_err"; then
18553 ac_header_preproc=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 cat conftest.$ac_ext >&5
18557 ac_header_preproc=no
18559 rm -f conftest.err conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18561 echo "${ECHO_T}$ac_header_preproc" >&6
18563 # So? What about this header?
18564 case $ac_header_compiler:$ac_header_preproc in
18565 yes:no )
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18570 no:yes )
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18577 esac
18578 echo "$as_me:$LINENO: checking for $ac_header" >&5
18579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583 eval "$as_ac_Header=$ac_header_preproc"
18585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18590 cat >>confdefs.h <<_ACEOF
18591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18592 _ACEOF
18596 done
18600 for ac_header in string.h strings.h
18602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18604 echo "$as_me:$LINENO: checking for $ac_header" >&5
18605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18611 else
18612 # Is the header compilable?
18613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18615 cat >conftest.$ac_ext <<_ACEOF
18616 #line $LINENO "configure"
18617 #include "confdefs.h"
18618 $ac_includes_default
18619 #include <$ac_header>
18620 _ACEOF
18621 rm -f conftest.$ac_objext
18622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18623 (eval $ac_compile) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -s conftest.$ac_objext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_header_compiler=yes
18634 else
18635 echo "$as_me: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 ac_header_compiler=no
18639 rm -f conftest.$ac_objext conftest.$ac_ext
18640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18641 echo "${ECHO_T}$ac_header_compiler" >&6
18643 # Is the header present?
18644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18646 cat >conftest.$ac_ext <<_ACEOF
18647 #line $LINENO "configure"
18648 #include "confdefs.h"
18649 #include <$ac_header>
18650 _ACEOF
18651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } >/dev/null; then
18659 if test -s conftest.err; then
18660 ac_cpp_err=$ac_c_preproc_warn_flag
18661 else
18662 ac_cpp_err=
18664 else
18665 ac_cpp_err=yes
18667 if test -z "$ac_cpp_err"; then
18668 ac_header_preproc=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18672 ac_header_preproc=no
18674 rm -f conftest.err conftest.$ac_ext
18675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18676 echo "${ECHO_T}$ac_header_preproc" >&6
18678 # So? What about this header?
18679 case $ac_header_compiler:$ac_header_preproc in
18680 yes:no )
18681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18685 no:yes )
18686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18692 esac
18693 echo "$as_me:$LINENO: checking for $ac_header" >&5
18694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698 eval "$as_ac_Header=$ac_header_preproc"
18700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18705 cat >>confdefs.h <<_ACEOF
18706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18707 _ACEOF
18708 break
18711 done
18716 for ac_func in strchr index
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18721 if eval "test \"\${$as_ac_var+set}\" = set"; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724 cat >conftest.$ac_ext <<_ACEOF
18725 #line $LINENO "configure"
18726 #include "confdefs.h"
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func (); below. */
18729 #include <assert.h>
18730 /* Override any gcc2 internal prototype to avoid an error. */
18731 #ifdef __cplusplus
18732 extern "C"
18733 #endif
18734 /* We use char because int might match the return type of a gcc2
18735 builtin and then its argument prototype would still apply. */
18736 char $ac_func ();
18737 char (*f) ();
18740 main ()
18742 /* The GNU C library defines this for functions which it implements
18743 to always fail with ENOSYS. Some functions are actually named
18744 something starting with __ and the normal name is an alias. */
18745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18746 choke me
18747 #else
18748 f = $ac_func;
18749 #endif
18752 return 0;
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 eval "$as_ac_var=yes"
18768 else
18769 echo "$as_me: failed program was:" >&5
18770 cat conftest.$ac_ext >&5
18771 eval "$as_ac_var=no"
18773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18777 if test `eval echo '${'$as_ac_var'}'` = yes; then
18778 cat >>confdefs.h <<_ACEOF
18779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18780 _ACEOF
18781 break
18783 done
18787 for ac_func in strrchr rindex
18789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18790 echo "$as_me:$LINENO: checking for $ac_func" >&5
18791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18792 if eval "test \"\${$as_ac_var+set}\" = set"; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795 cat >conftest.$ac_ext <<_ACEOF
18796 #line $LINENO "configure"
18797 #include "confdefs.h"
18798 /* System header to define __stub macros and hopefully few prototypes,
18799 which can conflict with char $ac_func (); below. */
18800 #include <assert.h>
18801 /* Override any gcc2 internal prototype to avoid an error. */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 /* We use char because int might match the return type of a gcc2
18806 builtin and then its argument prototype would still apply. */
18807 char $ac_func ();
18808 char (*f) ();
18811 main ()
18813 /* The GNU C library defines this for functions which it implements
18814 to always fail with ENOSYS. Some functions are actually named
18815 something starting with __ and the normal name is an alias. */
18816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18817 choke me
18818 #else
18819 f = $ac_func;
18820 #endif
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 eval "$as_ac_var=yes"
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 cat conftest.$ac_ext >&5
18842 eval "$as_ac_var=no"
18844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18848 if test `eval echo '${'$as_ac_var'}'` = yes; then
18849 cat >>confdefs.h <<_ACEOF
18850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18851 _ACEOF
18852 break
18854 done
18858 for ac_func in memcpy bcopy
18860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18861 echo "$as_me:$LINENO: checking for $ac_func" >&5
18862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18863 if eval "test \"\${$as_ac_var+set}\" = set"; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866 cat >conftest.$ac_ext <<_ACEOF
18867 #line $LINENO "configure"
18868 #include "confdefs.h"
18869 /* System header to define __stub macros and hopefully few prototypes,
18870 which can conflict with char $ac_func (); below. */
18871 #include <assert.h>
18872 /* Override any gcc2 internal prototype to avoid an error. */
18873 #ifdef __cplusplus
18874 extern "C"
18875 #endif
18876 /* We use char because int might match the return type of a gcc2
18877 builtin and then its argument prototype would still apply. */
18878 char $ac_func ();
18879 char (*f) ();
18882 main ()
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18888 choke me
18889 #else
18890 f = $ac_func;
18891 #endif
18894 return 0;
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -s conftest$ac_exeext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 eval "$as_ac_var=yes"
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 cat conftest.$ac_ext >&5
18913 eval "$as_ac_var=no"
18915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18919 if test `eval echo '${'$as_ac_var'}'` = yes; then
18920 cat >>confdefs.h <<_ACEOF
18921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18922 _ACEOF
18923 break
18925 done
18929 for ac_func in memmove strcmp
18931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18932 echo "$as_me:$LINENO: checking for $ac_func" >&5
18933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18934 if eval "test \"\${$as_ac_var+set}\" = set"; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937 cat >conftest.$ac_ext <<_ACEOF
18938 #line $LINENO "configure"
18939 #include "confdefs.h"
18940 /* System header to define __stub macros and hopefully few prototypes,
18941 which can conflict with char $ac_func (); below. */
18942 #include <assert.h>
18943 /* Override any gcc2 internal prototype to avoid an error. */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 /* We use char because int might match the return type of a gcc2
18948 builtin and then its argument prototype would still apply. */
18949 char $ac_func ();
18950 char (*f) ();
18953 main ()
18955 /* The GNU C library defines this for functions which it implements
18956 to always fail with ENOSYS. Some functions are actually named
18957 something starting with __ and the normal name is an alias. */
18958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18959 choke me
18960 #else
18961 f = $ac_func;
18962 #endif
18965 return 0;
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 eval "$as_ac_var=yes"
18981 else
18982 echo "$as_me: failed program was:" >&5
18983 cat conftest.$ac_ext >&5
18984 eval "$as_ac_var=no"
18986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18990 if test `eval echo '${'$as_ac_var'}'` = yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18993 _ACEOF
18996 done
19001 for ac_func in closedir opendir readdir
19003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19004 echo "$as_me:$LINENO: checking for $ac_func" >&5
19005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19006 if eval "test \"\${$as_ac_var+set}\" = set"; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 cat >conftest.$ac_ext <<_ACEOF
19010 #line $LINENO "configure"
19011 #include "confdefs.h"
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char $ac_func (); below. */
19014 #include <assert.h>
19015 /* Override any gcc2 internal prototype to avoid an error. */
19016 #ifdef __cplusplus
19017 extern "C"
19018 #endif
19019 /* We use char because int might match the return type of a gcc2
19020 builtin and then its argument prototype would still apply. */
19021 char $ac_func ();
19022 char (*f) ();
19025 main ()
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19031 choke me
19032 #else
19033 f = $ac_func;
19034 #endif
19037 return 0;
19039 _ACEOF
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19042 (eval $ac_link) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 eval "$as_ac_var=yes"
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 cat conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19062 if test `eval echo '${'$as_ac_var'}'` = yes; then
19063 cat >>confdefs.h <<_ACEOF
19064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19065 _ACEOF
19068 done
19073 ## -------- ##
19074 ## Outputs. ##
19075 ## -------- ##
19076 ac_config_files="$ac_config_files Makefile"
19078 cat >confcache <<\_ACEOF
19079 # This file is a shell script that caches the results of configure
19080 # tests run on this system so they can be shared between configure
19081 # scripts and configure runs, see configure's option --config-cache.
19082 # It is not useful on other systems. If it contains results you don't
19083 # want to keep, you may remove or edit it.
19085 # config.status only pays attention to the cache file if you give it
19086 # the --recheck option to rerun configure.
19088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19090 # following values.
19092 _ACEOF
19094 # The following way of writing the cache mishandles newlines in values,
19095 # but we know of no workaround that is simple, portable, and efficient.
19096 # So, don't put newlines in cache variables' values.
19097 # Ultrix sh set writes to stderr and can't be redirected directly,
19098 # and sets the high bit in the cache file unless we assign to the vars.
19100 (set) 2>&1 |
19101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19102 *ac_space=\ *)
19103 # `set' does not quote correctly, so add quotes (double-quote
19104 # substitution turns \\\\ into \\, and sed turns \\ into \).
19105 sed -n \
19106 "s/'/'\\\\''/g;
19107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19110 # `set' quotes correctly as required by POSIX, so do not add quotes.
19111 sed -n \
19112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19114 esac;
19116 sed '
19117 t clear
19118 : clear
19119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19120 t end
19121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19122 : end' >>confcache
19123 if cmp -s $cache_file confcache; then :; else
19124 if test -w $cache_file; then
19125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19126 cat confcache >$cache_file
19127 else
19128 echo "not updating unwritable cache $cache_file"
19131 rm -f confcache
19133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19134 # Let make expand exec_prefix.
19135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19139 # trailing colons and then remove the whole line if VPATH becomes empty
19140 # (actually we leave an empty line to preserve line numbers).
19141 if test "x$srcdir" = x.; then
19142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19143 s/:*\$(srcdir):*/:/;
19144 s/:*\${srcdir}:*/:/;
19145 s/:*@srcdir@:*/:/;
19146 s/^\([^=]*=[ ]*\):*/\1/;
19147 s/:*$//;
19148 s/^[^=]*=[ ]*$//;
19152 DEFS=-DHAVE_CONFIG_H
19154 ac_libobjs=
19155 ac_ltlibobjs=
19156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19157 # 1. Remove the extension, and $U if already installed.
19158 ac_i=`echo "$ac_i" |
19159 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19160 # 2. Add them.
19161 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19162 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19163 done
19164 LIBOBJS=$ac_libobjs
19166 LTLIBOBJS=$ac_ltlibobjs
19169 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19170 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19171 Usually this means the macro was only invoked conditionally." >&5
19172 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19173 Usually this means the macro was only invoked conditionally." >&2;}
19174 { (exit 1); exit 1; }; }
19176 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19177 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
19178 Usually this means the macro was only invoked conditionally." >&5
19179 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
19180 Usually this means the macro was only invoked conditionally." >&2;}
19181 { (exit 1); exit 1; }; }
19183 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19184 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19185 Usually this means the macro was only invoked conditionally." >&5
19186 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19187 Usually this means the macro was only invoked conditionally." >&2;}
19188 { (exit 1); exit 1; }; }
19191 : ${CONFIG_STATUS=./config.status}
19192 ac_clean_files_save=$ac_clean_files
19193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19196 cat >$CONFIG_STATUS <<_ACEOF
19197 #! $SHELL
19198 # Generated by $as_me.
19199 # Run this file to recreate the current configuration.
19200 # Compiler output produced by configure, useful for debugging
19201 # configure, is in config.log if it exists.
19203 debug=false
19204 SHELL=\${CONFIG_SHELL-$SHELL}
19205 _ACEOF
19207 cat >>$CONFIG_STATUS <<\_ACEOF
19208 ## --------------------- ##
19209 ## M4sh Initialization. ##
19210 ## --------------------- ##
19212 # Be Bourne compatible
19213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19214 emulate sh
19215 NULLCMD=:
19216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19217 # is contrary to our usage. Disable this feature.
19218 alias -g '${1+"$@"}'='"$@"'
19219 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19220 set -o posix
19223 # Support unset when possible.
19224 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19225 as_unset=unset
19226 else
19227 as_unset=false
19231 # Work around bugs in pre-3.0 UWIN ksh.
19232 $as_unset ENV MAIL MAILPATH
19233 PS1='$ '
19234 PS2='> '
19235 PS4='+ '
19237 # NLS nuisances.
19238 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
19240 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19241 eval $as_var=C; export $as_var
19242 else
19243 $as_unset $as_var
19245 done
19247 # Required to use basename.
19248 if expr a : '\(a\)' >/dev/null 2>&1; then
19249 as_expr=expr
19250 else
19251 as_expr=false
19254 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19255 as_basename=basename
19256 else
19257 as_basename=false
19261 # Name of the executable.
19262 as_me=`$as_basename "$0" ||
19263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19264 X"$0" : 'X\(//\)$' \| \
19265 X"$0" : 'X\(/\)$' \| \
19266 . : '\(.\)' 2>/dev/null ||
19267 echo X/"$0" |
19268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19269 /^X\/\(\/\/\)$/{ s//\1/; q; }
19270 /^X\/\(\/\).*/{ s//\1/; q; }
19271 s/.*/./; q'`
19274 # PATH needs CR, and LINENO needs CR and PATH.
19275 # Avoid depending upon Character Ranges.
19276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19279 as_cr_digits='0123456789'
19280 as_cr_alnum=$as_cr_Letters$as_cr_digits
19282 # The user is always right.
19283 if test "${PATH_SEPARATOR+set}" != set; then
19284 echo "#! /bin/sh" >conftest.sh
19285 echo "exit 0" >>conftest.sh
19286 chmod +x conftest.sh
19287 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
19288 PATH_SEPARATOR=';'
19289 else
19290 PATH_SEPARATOR=:
19292 rm -f conftest.sh
19296 as_lineno_1=$LINENO
19297 as_lineno_2=$LINENO
19298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19299 test "x$as_lineno_1" != "x$as_lineno_2" &&
19300 test "x$as_lineno_3" = "x$as_lineno_2" || {
19301 # Find who we are. Look in the path if we contain no path at all
19302 # relative or not.
19303 case $0 in
19304 *[\\/]* ) as_myself=$0 ;;
19305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19306 for as_dir in $PATH
19308 IFS=$as_save_IFS
19309 test -z "$as_dir" && as_dir=.
19310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19311 done
19314 esac
19315 # We did not find ourselves, most probably we were run as `sh COMMAND'
19316 # in which case we are not to be found in the path.
19317 if test "x$as_myself" = x; then
19318 as_myself=$0
19320 if test ! -f "$as_myself"; then
19321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19323 { (exit 1); exit 1; }; }
19325 case $CONFIG_SHELL in
19327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19330 IFS=$as_save_IFS
19331 test -z "$as_dir" && as_dir=.
19332 for as_base in sh bash ksh sh5; do
19333 case $as_dir in
19335 if ("$as_dir/$as_base" -c '
19336 as_lineno_1=$LINENO
19337 as_lineno_2=$LINENO
19338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19339 test "x$as_lineno_1" != "x$as_lineno_2" &&
19340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19341 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19342 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19343 CONFIG_SHELL=$as_dir/$as_base
19344 export CONFIG_SHELL
19345 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19346 fi;;
19347 esac
19348 done
19349 done
19351 esac
19353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19354 # uniformly replaced by the line number. The first 'sed' inserts a
19355 # line-number line before each line; the second 'sed' does the real
19356 # work. The second script uses 'N' to pair each line-number line
19357 # with the numbered line, and appends trailing '-' during
19358 # substitution so that $LINENO is not a special case at line end.
19359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19360 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19361 sed '=' <$as_myself |
19362 sed '
19364 s,$,-,
19365 : loop
19366 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19367 t loop
19368 s,-$,,
19369 s,^['$as_cr_digits']*\n,,
19370 ' >$as_me.lineno &&
19371 chmod +x $as_me.lineno ||
19372 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19373 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19374 { (exit 1); exit 1; }; }
19376 # Don't try to exec as it changes $[0], causing all sort of problems
19377 # (the dirname of $[0] is not the place where we might find the
19378 # original and so on. Autoconf is especially sensible to this).
19379 . ./$as_me.lineno
19380 # Exit status is that of the last command.
19381 exit
19385 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19386 *c*,-n*) ECHO_N= ECHO_C='
19387 ' ECHO_T=' ' ;;
19388 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19389 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19390 esac
19392 if expr a : '\(a\)' >/dev/null 2>&1; then
19393 as_expr=expr
19394 else
19395 as_expr=false
19398 rm -f conf$$ conf$$.exe conf$$.file
19399 echo >conf$$.file
19400 if ln -s conf$$.file conf$$ 2>/dev/null; then
19401 # We could just check for DJGPP; but this test a) works b) is more generic
19402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19403 if test -f conf$$.exe; then
19404 # Don't use ln at all; we don't have any links
19405 as_ln_s='cp -p'
19406 else
19407 as_ln_s='ln -s'
19409 elif ln conf$$.file conf$$ 2>/dev/null; then
19410 as_ln_s=ln
19411 else
19412 as_ln_s='cp -p'
19414 rm -f conf$$ conf$$.exe conf$$.file
19416 if mkdir -p . 2>/dev/null; then
19417 as_mkdir_p=:
19418 else
19419 as_mkdir_p=false
19422 as_executable_p="test -f"
19424 # Sed expression to map a string onto a valid CPP name.
19425 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19427 # Sed expression to map a string onto a valid variable name.
19428 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19431 # IFS
19432 # We need space, tab and new line, in precisely that order.
19433 as_nl='
19435 IFS=" $as_nl"
19437 # CDPATH.
19438 $as_unset CDPATH
19440 exec 6>&1
19442 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19443 # report actual input values of CONFIG_FILES etc. instead of their
19444 # values after options handling. Logging --version etc. is OK.
19445 exec 5>>config.log
19447 echo
19448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19449 ## Running $as_me. ##
19450 _ASBOX
19451 } >&5
19452 cat >&5 <<_CSEOF
19454 This file was extended by libltdl $as_me 1.2, which was
19455 generated by GNU Autoconf 2.54. Invocation command line was
19457 CONFIG_FILES = $CONFIG_FILES
19458 CONFIG_HEADERS = $CONFIG_HEADERS
19459 CONFIG_LINKS = $CONFIG_LINKS
19460 CONFIG_COMMANDS = $CONFIG_COMMANDS
19461 $ $0 $@
19463 _CSEOF
19464 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19465 echo >&5
19466 _ACEOF
19468 # Files that config.status was made for.
19469 if test -n "$ac_config_files"; then
19470 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19473 if test -n "$ac_config_headers"; then
19474 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19477 if test -n "$ac_config_links"; then
19478 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19481 if test -n "$ac_config_commands"; then
19482 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19485 cat >>$CONFIG_STATUS <<\_ACEOF
19487 ac_cs_usage="\
19488 \`$as_me' instantiates files from templates according to the
19489 current configuration.
19491 Usage: $0 [OPTIONS] [FILE]...
19493 -h, --help print this help, then exit
19494 -V, --version print version number, then exit
19495 -d, --debug don't remove temporary files
19496 --recheck update $as_me by reconfiguring in the same conditions
19497 --file=FILE[:TEMPLATE]
19498 instantiate the configuration file FILE
19499 --header=FILE[:TEMPLATE]
19500 instantiate the configuration header FILE
19502 Configuration files:
19503 $config_files
19505 Configuration headers:
19506 $config_headers
19508 Configuration commands:
19509 $config_commands
19511 Report bugs to <bug-autoconf@gnu.org>."
19512 _ACEOF
19514 cat >>$CONFIG_STATUS <<_ACEOF
19515 ac_cs_version="\\
19516 libltdl config.status 1.2
19517 configured by $0, generated by GNU Autoconf 2.54,
19518 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19520 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19521 Free Software Foundation, Inc.
19522 This config.status script is free software; the Free Software Foundation
19523 gives unlimited permission to copy, distribute and modify it."
19524 srcdir=$srcdir
19525 INSTALL="$INSTALL"
19526 _ACEOF
19528 cat >>$CONFIG_STATUS <<\_ACEOF
19529 # If no file are specified by the user, then we need to provide default
19530 # value. By we need to know if files were specified by the user.
19531 ac_need_defaults=:
19532 while test $# != 0
19534 case $1 in
19535 --*=*)
19536 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19537 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19538 ac_shift=:
19541 ac_option=$1
19542 ac_optarg=$2
19543 ac_shift=shift
19545 *) # This is not an option, so the user has probably given explicit
19546 # arguments.
19547 ac_option=$1
19548 ac_need_defaults=false;;
19549 esac
19551 case $ac_option in
19552 # Handling of the options.
19553 _ACEOF
19554 cat >>$CONFIG_STATUS <<_ACEOF
19555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19556 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19557 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19558 _ACEOF
19559 cat >>$CONFIG_STATUS <<\_ACEOF
19560 --version | --vers* | -V )
19561 echo "$ac_cs_version"; exit 0 ;;
19562 --he | --h)
19563 # Conflict between --help and --header
19564 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19565 Try \`$0 --help' for more information." >&5
19566 echo "$as_me: error: ambiguous option: $1
19567 Try \`$0 --help' for more information." >&2;}
19568 { (exit 1); exit 1; }; };;
19569 --help | --hel | -h )
19570 echo "$ac_cs_usage"; exit 0 ;;
19571 --debug | --d* | -d )
19572 debug=: ;;
19573 --file | --fil | --fi | --f )
19574 $ac_shift
19575 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19576 ac_need_defaults=false;;
19577 --header | --heade | --head | --hea )
19578 $ac_shift
19579 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19580 ac_need_defaults=false;;
19582 # This is an error.
19583 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19584 Try \`$0 --help' for more information." >&5
19585 echo "$as_me: error: unrecognized option: $1
19586 Try \`$0 --help' for more information." >&2;}
19587 { (exit 1); exit 1; }; } ;;
19589 *) ac_config_targets="$ac_config_targets $1" ;;
19591 esac
19592 shift
19593 done
19595 _ACEOF
19597 cat >>$CONFIG_STATUS <<_ACEOF
19599 # INIT-COMMANDS section.
19602 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19604 _ACEOF
19608 cat >>$CONFIG_STATUS <<\_ACEOF
19609 for ac_config_target in $ac_config_targets
19611 case "$ac_config_target" in
19612 # Handling of arguments.
19613 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19614 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19615 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
19616 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19617 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19618 { (exit 1); exit 1; }; };;
19619 esac
19620 done
19622 # If the user did not use the arguments to specify the items to instantiate,
19623 # then the envvar interface is used. Set only those that are not.
19624 # We use the long form for the default assignment because of an extremely
19625 # bizarre bug on SunOS 4.1.3.
19626 if $ac_need_defaults; then
19627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19632 # Create a temporary directory, and hook for its removal unless debugging.
19633 $debug ||
19635 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19636 trap '{ (exit 1); exit 1; }' 1 2 13 15
19639 # Create a (secure) tmp directory for tmp files.
19640 : ${TMPDIR=/tmp}
19642 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19643 test -n "$tmp" && test -d "$tmp"
19644 } ||
19646 tmp=$TMPDIR/cs$$-$RANDOM
19647 (umask 077 && mkdir $tmp)
19648 } ||
19650 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19651 { (exit 1); exit 1; }
19654 _ACEOF
19656 cat >>$CONFIG_STATUS <<_ACEOF
19659 # CONFIG_FILES section.
19662 # No need to generate the scripts if there are no CONFIG_FILES.
19663 # This happens for instance when ./config.status config.h
19664 if test -n "\$CONFIG_FILES"; then
19665 # Protect against being on the right side of a sed subst in config.status.
19666 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19667 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19668 s,@SHELL@,$SHELL,;t t
19669 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19670 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19671 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19672 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19673 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19674 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19675 s,@exec_prefix@,$exec_prefix,;t t
19676 s,@prefix@,$prefix,;t t
19677 s,@program_transform_name@,$program_transform_name,;t t
19678 s,@bindir@,$bindir,;t t
19679 s,@sbindir@,$sbindir,;t t
19680 s,@libexecdir@,$libexecdir,;t t
19681 s,@datadir@,$datadir,;t t
19682 s,@sysconfdir@,$sysconfdir,;t t
19683 s,@sharedstatedir@,$sharedstatedir,;t t
19684 s,@localstatedir@,$localstatedir,;t t
19685 s,@libdir@,$libdir,;t t
19686 s,@includedir@,$includedir,;t t
19687 s,@oldincludedir@,$oldincludedir,;t t
19688 s,@infodir@,$infodir,;t t
19689 s,@mandir@,$mandir,;t t
19690 s,@build_alias@,$build_alias,;t t
19691 s,@host_alias@,$host_alias,;t t
19692 s,@target_alias@,$target_alias,;t t
19693 s,@DEFS@,$DEFS,;t t
19694 s,@ECHO_C@,$ECHO_C,;t t
19695 s,@ECHO_N@,$ECHO_N,;t t
19696 s,@ECHO_T@,$ECHO_T,;t t
19697 s,@LIBS@,$LIBS,;t t
19698 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19699 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19700 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19701 s,@PACKAGE@,$PACKAGE,;t t
19702 s,@VERSION@,$VERSION,;t t
19703 s,@ACLOCAL@,$ACLOCAL,;t t
19704 s,@AUTOCONF@,$AUTOCONF,;t t
19705 s,@AUTOMAKE@,$AUTOMAKE,;t t
19706 s,@AUTOHEADER@,$AUTOHEADER,;t t
19707 s,@MAKEINFO@,$MAKEINFO,;t t
19708 s,@AMTAR@,$AMTAR,;t t
19709 s,@install_sh@,$install_sh,;t t
19710 s,@STRIP@,$STRIP,;t t
19711 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19712 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19713 s,@AWK@,$AWK,;t t
19714 s,@SET_MAKE@,$SET_MAKE,;t t
19715 s,@CC@,$CC,;t t
19716 s,@CFLAGS@,$CFLAGS,;t t
19717 s,@LDFLAGS@,$LDFLAGS,;t t
19718 s,@CPPFLAGS@,$CPPFLAGS,;t t
19719 s,@ac_ct_CC@,$ac_ct_CC,;t t
19720 s,@EXEEXT@,$EXEEXT,;t t
19721 s,@OBJEXT@,$OBJEXT,;t t
19722 s,@DEPDIR@,$DEPDIR,;t t
19723 s,@am__include@,$am__include,;t t
19724 s,@am__quote@,$am__quote,;t t
19725 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19726 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19727 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19728 s,@CCDEPMODE@,$CCDEPMODE,;t t
19729 s,@build@,$build,;t t
19730 s,@build_cpu@,$build_cpu,;t t
19731 s,@build_vendor@,$build_vendor,;t t
19732 s,@build_os@,$build_os,;t t
19733 s,@host@,$host,;t t
19734 s,@host_cpu@,$host_cpu,;t t
19735 s,@host_vendor@,$host_vendor,;t t
19736 s,@host_os@,$host_os,;t t
19737 s,@EGREP@,$EGREP,;t t
19738 s,@LN_S@,$LN_S,;t t
19739 s,@ECHO@,$ECHO,;t t
19740 s,@RANLIB@,$RANLIB,;t t
19741 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19742 s,@DLLTOOL@,$DLLTOOL,;t t
19743 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
19744 s,@AS@,$AS,;t t
19745 s,@ac_ct_AS@,$ac_ct_AS,;t t
19746 s,@OBJDUMP@,$OBJDUMP,;t t
19747 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
19748 s,@CPP@,$CPP,;t t
19749 s,@CXX@,$CXX,;t t
19750 s,@CXXFLAGS@,$CXXFLAGS,;t t
19751 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19752 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19753 s,@CXXCPP@,$CXXCPP,;t t
19754 s,@F77@,$F77,;t t
19755 s,@FFLAGS@,$FFLAGS,;t t
19756 s,@ac_ct_F77@,$ac_ct_F77,;t t
19757 s,@LIBTOOL@,$LIBTOOL,;t t
19758 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
19759 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
19760 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
19761 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
19762 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
19763 s,@LIBADD_DL@,$LIBADD_DL,;t t
19764 s,@LIBOBJS@,$LIBOBJS,;t t
19765 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19766 CEOF
19768 _ACEOF
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19771 # Split the substitutions into bite-sized pieces for seds with
19772 # small command number limits, like on Digital OSF/1 and HP-UX.
19773 ac_max_sed_lines=48
19774 ac_sed_frag=1 # Number of current file.
19775 ac_beg=1 # First line for current file.
19776 ac_end=$ac_max_sed_lines # Line after last line for current file.
19777 ac_more_lines=:
19778 ac_sed_cmds=
19779 while $ac_more_lines; do
19780 if test $ac_beg -gt 1; then
19781 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19782 else
19783 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19785 if test ! -s $tmp/subs.frag; then
19786 ac_more_lines=false
19787 else
19788 # The purpose of the label and of the branching condition is to
19789 # speed up the sed processing (if there are no `@' at all, there
19790 # is no need to browse any of the substitutions).
19791 # These are the two extra sed commands mentioned above.
19792 (echo ':t
19793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19794 if test -z "$ac_sed_cmds"; then
19795 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19796 else
19797 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19799 ac_sed_frag=`expr $ac_sed_frag + 1`
19800 ac_beg=$ac_end
19801 ac_end=`expr $ac_end + $ac_max_sed_lines`
19803 done
19804 if test -z "$ac_sed_cmds"; then
19805 ac_sed_cmds=cat
19807 fi # test -n "$CONFIG_FILES"
19809 _ACEOF
19810 cat >>$CONFIG_STATUS <<\_ACEOF
19811 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19813 case $ac_file in
19814 - | *:- | *:-:* ) # input from stdin
19815 cat >$tmp/stdin
19816 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19818 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19820 * ) ac_file_in=$ac_file.in ;;
19821 esac
19823 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19824 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19826 X"$ac_file" : 'X\(//\)[^/]' \| \
19827 X"$ac_file" : 'X\(//\)$' \| \
19828 X"$ac_file" : 'X\(/\)' \| \
19829 . : '\(.\)' 2>/dev/null ||
19830 echo X"$ac_file" |
19831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19833 /^X\(\/\/\)$/{ s//\1/; q; }
19834 /^X\(\/\).*/{ s//\1/; q; }
19835 s/.*/./; q'`
19836 { if $as_mkdir_p; then
19837 mkdir -p "$ac_dir"
19838 else
19839 as_dir="$ac_dir"
19840 as_dirs=
19841 while test ! -d "$as_dir"; do
19842 as_dirs="$as_dir $as_dirs"
19843 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19845 X"$as_dir" : 'X\(//\)[^/]' \| \
19846 X"$as_dir" : 'X\(//\)$' \| \
19847 X"$as_dir" : 'X\(/\)' \| \
19848 . : '\(.\)' 2>/dev/null ||
19849 echo X"$as_dir" |
19850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19852 /^X\(\/\/\)$/{ s//\1/; q; }
19853 /^X\(\/\).*/{ s//\1/; q; }
19854 s/.*/./; q'`
19855 done
19856 test ! -n "$as_dirs" || mkdir $as_dirs
19857 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19859 { (exit 1); exit 1; }; }; }
19861 ac_builddir=.
19863 if test "$ac_dir" != .; then
19864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19865 # A "../" for each directory in $ac_dir_suffix.
19866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19867 else
19868 ac_dir_suffix= ac_top_builddir=
19871 case $srcdir in
19872 .) # No --srcdir option. We are building in place.
19873 ac_srcdir=.
19874 if test -z "$ac_top_builddir"; then
19875 ac_top_srcdir=.
19876 else
19877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19878 fi ;;
19879 [\\/]* | ?:[\\/]* ) # Absolute path.
19880 ac_srcdir=$srcdir$ac_dir_suffix;
19881 ac_top_srcdir=$srcdir ;;
19882 *) # Relative path.
19883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19885 esac
19886 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19887 # absolute.
19888 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19889 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19890 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19891 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19894 case $INSTALL in
19895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19896 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19897 esac
19899 if test x"$ac_file" != x-; then
19900 { echo "$as_me:$LINENO: creating $ac_file" >&5
19901 echo "$as_me: creating $ac_file" >&6;}
19902 rm -f "$ac_file"
19904 # Let's still pretend it is `configure' which instantiates (i.e., don't
19905 # use $as_me), people would be surprised to read:
19906 # /* config.h. Generated by config.status. */
19907 if test x"$ac_file" = x-; then
19908 configure_input=
19909 else
19910 configure_input="$ac_file. "
19912 configure_input=$configure_input"Generated from `echo $ac_file_in |
19913 sed 's,.*/,,'` by configure."
19915 # First look for the input files in the build tree, otherwise in the
19916 # src tree.
19917 ac_file_inputs=`IFS=:
19918 for f in $ac_file_in; do
19919 case $f in
19920 -) echo $tmp/stdin ;;
19921 [\\/$]*)
19922 # Absolute (can't be DOS-style, as IFS=:)
19923 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19924 echo "$as_me: error: cannot find input file: $f" >&2;}
19925 { (exit 1); exit 1; }; }
19926 echo $f;;
19927 *) # Relative
19928 if test -f "$f"; then
19929 # Build tree
19930 echo $f
19931 elif test -f "$srcdir/$f"; then
19932 # Source tree
19933 echo $srcdir/$f
19934 else
19935 # /dev/null tree
19936 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19937 echo "$as_me: error: cannot find input file: $f" >&2;}
19938 { (exit 1); exit 1; }; }
19939 fi;;
19940 esac
19941 done` || { (exit 1); exit 1; }
19942 _ACEOF
19943 cat >>$CONFIG_STATUS <<_ACEOF
19944 sed "$ac_vpsub
19945 $extrasub
19946 _ACEOF
19947 cat >>$CONFIG_STATUS <<\_ACEOF
19949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19950 s,@configure_input@,$configure_input,;t t
19951 s,@srcdir@,$ac_srcdir,;t t
19952 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19953 s,@top_srcdir@,$ac_top_srcdir,;t t
19954 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19955 s,@builddir@,$ac_builddir,;t t
19956 s,@abs_builddir@,$ac_abs_builddir,;t t
19957 s,@top_builddir@,$ac_top_builddir,;t t
19958 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19959 s,@INSTALL@,$ac_INSTALL,;t t
19960 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19961 rm -f $tmp/stdin
19962 if test x"$ac_file" != x-; then
19963 mv $tmp/out $ac_file
19964 else
19965 cat $tmp/out
19966 rm -f $tmp/out
19969 done
19970 _ACEOF
19971 cat >>$CONFIG_STATUS <<\_ACEOF
19974 # CONFIG_HEADER section.
19977 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19978 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19980 # ac_d sets the value in "#define NAME VALUE" lines.
19981 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19982 ac_dB='[ ].*$,\1#\2'
19983 ac_dC=' '
19984 ac_dD=',;t'
19985 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19986 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19987 ac_uB='$,\1#\2define\3'
19988 ac_uC=' '
19989 ac_uD=',;t'
19991 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19993 case $ac_file in
19994 - | *:- | *:-:* ) # input from stdin
19995 cat >$tmp/stdin
19996 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19998 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20000 * ) ac_file_in=$ac_file.in ;;
20001 esac
20003 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20004 echo "$as_me: creating $ac_file" >&6;}
20006 # First look for the input files in the build tree, otherwise in the
20007 # src tree.
20008 ac_file_inputs=`IFS=:
20009 for f in $ac_file_in; do
20010 case $f in
20011 -) echo $tmp/stdin ;;
20012 [\\/$]*)
20013 # Absolute (can't be DOS-style, as IFS=:)
20014 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20015 echo "$as_me: error: cannot find input file: $f" >&2;}
20016 { (exit 1); exit 1; }; }
20017 echo $f;;
20018 *) # Relative
20019 if test -f "$f"; then
20020 # Build tree
20021 echo $f
20022 elif test -f "$srcdir/$f"; then
20023 # Source tree
20024 echo $srcdir/$f
20025 else
20026 # /dev/null tree
20027 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20028 echo "$as_me: error: cannot find input file: $f" >&2;}
20029 { (exit 1); exit 1; }; }
20030 fi;;
20031 esac
20032 done` || { (exit 1); exit 1; }
20033 # Remove the trailing spaces.
20034 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20036 _ACEOF
20038 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20039 # `conftest.undefs', that substitutes the proper values into
20040 # config.h.in to produce config.h. The first handles `#define'
20041 # templates, and the second `#undef' templates.
20042 # And first: Protect against being on the right side of a sed subst in
20043 # config.status. Protect against being in an unquoted here document
20044 # in config.status.
20045 rm -f conftest.defines conftest.undefs
20046 # Using a here document instead of a string reduces the quoting nightmare.
20047 # Putting comments in sed scripts is not portable.
20049 # `end' is used to avoid that the second main sed command (meant for
20050 # 0-ary CPP macros) applies to n-ary macro definitions.
20051 # See the Autoconf documentation for `clear'.
20052 cat >confdef2sed.sed <<\_ACEOF
20053 s/[\\&,]/\\&/g
20054 s,[\\$`],\\&,g
20055 t clear
20056 : clear
20057 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20058 t end
20059 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20060 : end
20061 _ACEOF
20062 # If some macros were called several times there might be several times
20063 # the same #defines, which is useless. Nevertheless, we may not want to
20064 # sort them, since we want the *last* AC-DEFINE to be honored.
20065 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20066 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20067 rm -f confdef2sed.sed
20069 # This sed command replaces #undef with comments. This is necessary, for
20070 # example, in the case of _POSIX_SOURCE, which is predefined and required
20071 # on some systems where configure will not decide to define it.
20072 cat >>conftest.undefs <<\_ACEOF
20073 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20074 _ACEOF
20076 # Break up conftest.defines because some shells have a limit on the size
20077 # of here documents, and old seds have small limits too (100 cmds).
20078 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20079 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20080 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20081 echo ' :' >>$CONFIG_STATUS
20082 rm -f conftest.tail
20083 while grep . conftest.defines >/dev/null
20085 # Write a limited-size here document to $tmp/defines.sed.
20086 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20087 # Speed up: don't consider the non `#define' lines.
20088 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20089 # Work around the forget-to-reset-the-flag bug.
20090 echo 't clr' >>$CONFIG_STATUS
20091 echo ': clr' >>$CONFIG_STATUS
20092 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20093 echo 'CEOF
20094 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20095 rm -f $tmp/in
20096 mv $tmp/out $tmp/in
20097 ' >>$CONFIG_STATUS
20098 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20099 rm -f conftest.defines
20100 mv conftest.tail conftest.defines
20101 done
20102 rm -f conftest.defines
20103 echo ' fi # grep' >>$CONFIG_STATUS
20104 echo >>$CONFIG_STATUS
20106 # Break up conftest.undefs because some shells have a limit on the size
20107 # of here documents, and old seds have small limits too (100 cmds).
20108 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20109 rm -f conftest.tail
20110 while grep . conftest.undefs >/dev/null
20112 # Write a limited-size here document to $tmp/undefs.sed.
20113 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20114 # Speed up: don't consider the non `#undef'
20115 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20116 # Work around the forget-to-reset-the-flag bug.
20117 echo 't clr' >>$CONFIG_STATUS
20118 echo ': clr' >>$CONFIG_STATUS
20119 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20120 echo 'CEOF
20121 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20122 rm -f $tmp/in
20123 mv $tmp/out $tmp/in
20124 ' >>$CONFIG_STATUS
20125 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20126 rm -f conftest.undefs
20127 mv conftest.tail conftest.undefs
20128 done
20129 rm -f conftest.undefs
20131 cat >>$CONFIG_STATUS <<\_ACEOF
20132 # Let's still pretend it is `configure' which instantiates (i.e., don't
20133 # use $as_me), people would be surprised to read:
20134 # /* config.h. Generated by config.status. */
20135 if test x"$ac_file" = x-; then
20136 echo "/* Generated by configure. */" >$tmp/config.h
20137 else
20138 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20140 cat $tmp/in >>$tmp/config.h
20141 rm -f $tmp/in
20142 if test x"$ac_file" != x-; then
20143 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20144 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20145 echo "$as_me: $ac_file is unchanged" >&6;}
20146 else
20147 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20149 X"$ac_file" : 'X\(//\)[^/]' \| \
20150 X"$ac_file" : 'X\(//\)$' \| \
20151 X"$ac_file" : 'X\(/\)' \| \
20152 . : '\(.\)' 2>/dev/null ||
20153 echo X"$ac_file" |
20154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20156 /^X\(\/\/\)$/{ s//\1/; q; }
20157 /^X\(\/\).*/{ s//\1/; q; }
20158 s/.*/./; q'`
20159 { if $as_mkdir_p; then
20160 mkdir -p "$ac_dir"
20161 else
20162 as_dir="$ac_dir"
20163 as_dirs=
20164 while test ! -d "$as_dir"; do
20165 as_dirs="$as_dir $as_dirs"
20166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20168 X"$as_dir" : 'X\(//\)[^/]' \| \
20169 X"$as_dir" : 'X\(//\)$' \| \
20170 X"$as_dir" : 'X\(/\)' \| \
20171 . : '\(.\)' 2>/dev/null ||
20172 echo X"$as_dir" |
20173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20175 /^X\(\/\/\)$/{ s//\1/; q; }
20176 /^X\(\/\).*/{ s//\1/; q; }
20177 s/.*/./; q'`
20178 done
20179 test ! -n "$as_dirs" || mkdir $as_dirs
20180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20182 { (exit 1); exit 1; }; }; }
20184 rm -f $ac_file
20185 mv $tmp/config.h $ac_file
20187 else
20188 cat $tmp/config.h
20189 rm -f $tmp/config.h
20191 # Run the commands associated with the file.
20192 case $ac_file in
20193 config.h ) # update the timestamp
20194 echo 'timestamp for config.h:config-h.in' >"./stamp-h1"
20196 esac
20197 done
20198 _ACEOF
20199 cat >>$CONFIG_STATUS <<\_ACEOF
20202 # CONFIG_COMMANDS section.
20204 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20205 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20206 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20207 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20208 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20209 X"$ac_dest" : 'X\(//\)[^/]' \| \
20210 X"$ac_dest" : 'X\(//\)$' \| \
20211 X"$ac_dest" : 'X\(/\)' \| \
20212 . : '\(.\)' 2>/dev/null ||
20213 echo X"$ac_dest" |
20214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20216 /^X\(\/\/\)$/{ s//\1/; q; }
20217 /^X\(\/\).*/{ s//\1/; q; }
20218 s/.*/./; q'`
20219 ac_builddir=.
20221 if test "$ac_dir" != .; then
20222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20223 # A "../" for each directory in $ac_dir_suffix.
20224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20225 else
20226 ac_dir_suffix= ac_top_builddir=
20229 case $srcdir in
20230 .) # No --srcdir option. We are building in place.
20231 ac_srcdir=.
20232 if test -z "$ac_top_builddir"; then
20233 ac_top_srcdir=.
20234 else
20235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20236 fi ;;
20237 [\\/]* | ?:[\\/]* ) # Absolute path.
20238 ac_srcdir=$srcdir$ac_dir_suffix;
20239 ac_top_srcdir=$srcdir ;;
20240 *) # Relative path.
20241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20243 esac
20244 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20245 # absolute.
20246 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20247 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20248 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20249 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20252 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20253 echo "$as_me: executing $ac_dest commands" >&6;}
20254 case $ac_dest in
20255 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20256 # Strip MF so we end up with the name of the file.
20257 mf=`echo "$mf" | sed -e 's/:.*$//'`
20258 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
20259 dirpart=`(dirname "$mf") 2>/dev/null ||
20260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261 X"$mf" : 'X\(//\)[^/]' \| \
20262 X"$mf" : 'X\(//\)$' \| \
20263 X"$mf" : 'X\(/\)' \| \
20264 . : '\(.\)' 2>/dev/null ||
20265 echo X"$mf" |
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268 /^X\(\/\/\)$/{ s//\1/; q; }
20269 /^X\(\/\).*/{ s//\1/; q; }
20270 s/.*/./; q'`
20271 else
20272 continue
20274 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20275 # Extract the definition of DEP_FILES from the Makefile without
20276 # running `make'.
20277 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20278 test -z "$DEPDIR" && continue
20279 # When using ansi2knr, U may be empty or an underscore; expand it
20280 U=`sed -n -e '/^U = / s///p' < "$mf"`
20281 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20282 # We invoke sed twice because it is the simplest approach to
20283 # changing $(DEPDIR) to its actual value in the expansion.
20284 for file in `sed -n -e '
20285 /^DEP_FILES = .*\\\\$/ {
20286 s/^DEP_FILES = //
20287 :loop
20288 s/\\\\$//
20291 /\\\\$/ b loop
20294 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20295 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20296 # Make sure the directory exists.
20297 test -f "$dirpart/$file" && continue
20298 fdir=`(dirname "$file") 2>/dev/null ||
20299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20300 X"$file" : 'X\(//\)[^/]' \| \
20301 X"$file" : 'X\(//\)$' \| \
20302 X"$file" : 'X\(/\)' \| \
20303 . : '\(.\)' 2>/dev/null ||
20304 echo X"$file" |
20305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20307 /^X\(\/\/\)$/{ s//\1/; q; }
20308 /^X\(\/\).*/{ s//\1/; q; }
20309 s/.*/./; q'`
20310 { if $as_mkdir_p; then
20311 mkdir -p $dirpart/$fdir
20312 else
20313 as_dir=$dirpart/$fdir
20314 as_dirs=
20315 while test ! -d "$as_dir"; do
20316 as_dirs="$as_dir $as_dirs"
20317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319 X"$as_dir" : 'X\(//\)[^/]' \| \
20320 X"$as_dir" : 'X\(//\)$' \| \
20321 X"$as_dir" : 'X\(/\)' \| \
20322 . : '\(.\)' 2>/dev/null ||
20323 echo X"$as_dir" |
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326 /^X\(\/\/\)$/{ s//\1/; q; }
20327 /^X\(\/\).*/{ s//\1/; q; }
20328 s/.*/./; q'`
20329 done
20330 test ! -n "$as_dirs" || mkdir $as_dirs
20331 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20332 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20333 { (exit 1); exit 1; }; }; }
20335 # echo "creating $dirpart/$file"
20336 echo '# dummy' > "$dirpart/$file"
20337 done
20338 done
20340 esac
20341 done
20342 _ACEOF
20344 cat >>$CONFIG_STATUS <<\_ACEOF
20346 { (exit 0); exit 0; }
20347 _ACEOF
20348 chmod +x $CONFIG_STATUS
20349 ac_clean_files=$ac_clean_files_save
20352 # configure is writing to config.log, and then calls config.status.
20353 # config.status does its own redirection, appending to config.log.
20354 # Unfortunately, on DOS this fails, as config.log is still kept open
20355 # by configure, so config.status won't be able to write to it; its
20356 # output is simply discarded. So we exec the FD to /dev/null,
20357 # effectively closing config.log, so it can be properly (re)opened and
20358 # appended to by config.status. When coming back to configure, we
20359 # need to make the FD available again.
20360 if test "$no_create" != yes; then
20361 ac_cs_success=:
20362 exec 5>/dev/null
20363 $SHELL $CONFIG_STATUS || ac_cs_success=false
20364 exec 5>>config.log
20365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20366 # would make configure fail if this is the last instruction.
20367 $ac_cs_success || { (exit 1); exit 1; }