Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / configure
blob5dad17f8c3a4f772dce9a2d1717f6d871f6b8f5e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="tests/rpath-1a"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GCC LD with_gnu_ld aclocaldir LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1019 if test -n "$ac_init_help"; then
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 build
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)
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1045 Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CPP C preprocessor
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1062 _ACEOF
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077 ac_dir_suffix= ac_top_builddir=
1080 case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133 esac
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 cd $ac_popdir
1151 done
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156 cat <<\_ACEOF
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1161 _ACEOF
1162 exit 0
1164 exec 5>config.log
1165 cat >&5 <<_ACEOF
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1172 $ $0 $@
1174 _ACEOF
1176 cat <<_ASUNAME
1177 ## --------- ##
1178 ## Platform. ##
1179 ## --------- ##
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198 _ASUNAME
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201 for as_dir in $PATH
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206 done
1208 } >&5
1210 cat >&5 <<_ACEOF
1213 ## ----------- ##
1214 ## Core tests. ##
1215 ## ----------- ##
1217 _ACEOF
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_configure_args=
1226 ac_configure_args0=
1227 ac_configure_args1=
1228 ac_sep=
1229 ac_must_keep_next=false
1230 for ac_pass in 1 2
1232 for ac_arg
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1248 else
1249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1258 -* ) ac_must_keep_next=true ;;
1259 esac
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1265 esac
1266 done
1267 done
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1279 echo
1281 cat <<\_ASBOX
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1285 _ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 sed -n \
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 esac;
1302 echo
1304 cat <<\_ASBOX
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319 ## ------------- ##
1320 ## Output files. ##
1321 ## ------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334 ## ----------- ##
1335 ## confdefs.h. ##
1336 ## ----------- ##
1337 _ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348 exit $exit_status
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352 done
1353 ac_signal=0
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358 echo >confdefs.h
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369 _ACEOF
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384 _ACEOF
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1401 . "$ac_site_file"
1403 done
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1416 else
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1422 # Check that the precious variables saved in the cache have kept the same
1423 # value.
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1450 fi;;
1451 esac
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 esac
1464 done
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 ac_aux_dir=
1499 for ac_dir in ../build-aux $srcdir/../build-aux; do
1500 if test -f $ac_dir/install-sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install-sh -c"
1503 break
1504 elif test -f $ac_dir/install.sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install.sh -c"
1507 break
1508 elif test -f $ac_dir/shtool; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/shtool install -c"
1511 break
1513 done
1514 if test -z "$ac_aux_dir"; then
1515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&5
1516 echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux $srcdir/../build-aux" >&2;}
1517 { (exit 1); exit 1; }; }
1519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1521 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1523 . $srcdir/../version.sh
1524 am__api_version="1.9"
1525 # Find a good install program. We prefer a C program (faster),
1526 # so one script is as good as another. But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1531 # AIX /bin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1550 case $as_dir/ in
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 /usr/ucb/* ) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1570 else
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572 break 3
1575 done
1576 done
1578 esac
1579 done
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1585 else
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 # Just in case
1607 sleep 1
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments. Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1613 # directory).
1614 if (
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1617 # -L didn't work.
1618 set X `ls -t $srcdir/configure conftest.file`
1620 rm -f conftest.file
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1635 test "$2" = conftest.file
1637 then
1638 # Ok.
1640 else
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $. echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1658 _ACEOF
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 rm conftest.sed
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1669 else
1670 am_missing_run=
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1680 # for two reasons:
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1691 else
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1695 # exists.
1696 for d in ./-p ./--version;
1698 test -d $d && rmdir $d
1699 done
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1703 else
1704 mkdir_p='$(install_sh) -d'
1708 for ac_prog in gawk mawk nawk awk
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 test -n "$AWK" && break
1746 done
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 cat >conftest.make <<\_ACEOF
1755 all:
1756 @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763 eval ac_cv_prog_make_${ac_make}_set=no
1765 rm -f conftest.make
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 SET_MAKE=
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780 am__leading_dot=.
1781 else
1782 am__leading_dot=_
1784 rmdir .tst 2>/dev/null
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1798 else
1799 CYGPATH_W=echo
1804 # Define the identity of the package.
1805 PACKAGE=autoconf-lib-link
1806 VERSION=$VERSION_NUMBER
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'. However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_STRIP"; then
1879 ac_ct_STRIP=$STRIP
1880 # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 STRIP=$ac_ct_STRIP
1917 else
1918 STRIP="$ac_cv_prog_STRIP"
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924 # We need awk for the "check" target. The system "awk" is bad on
1925 # some platforms.
1926 # Always define AMTAR for backward compatibility.
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$ac_cv_prog_CC"; then
1980 ac_ct_CC=$CC
1981 # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC="gcc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2002 done
2003 done
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2011 else
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2016 CC=$ac_ct_CC
2017 else
2018 CC="$ac_cv_prog_CC"
2021 if test -z "$CC"; then
2022 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="${ac_tool_prefix}cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2044 done
2045 done
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2059 if test -z "$ac_cv_prog_CC"; then
2060 ac_ct_CC=$CC
2061 # Extract the first word of "cc", so it can be a program name with args.
2062 set dummy cc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_CC="cc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2082 done
2083 done
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2096 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 ac_prog_rejected=no
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2123 continue
2125 ac_cv_prog_CC="cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2132 if test $ac_prog_rejected = yes; then
2133 # We found a bogon in the path, so make sure we never use it.
2134 set dummy $ac_cv_prog_CC
2135 shift
2136 if test $# != 0; then
2137 # We chose a different compiler from the bogus one.
2138 # However, it has the same basename, so the bogon will be chosen
2139 # first if we set CC to just the basename; use the full file name.
2140 shift
2141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2146 CC=$ac_cv_prog_CC
2147 if test -n "$CC"; then
2148 echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6
2150 else
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2156 if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2158 for ac_prog in cl
2160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2190 else
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2195 test -n "$CC" && break
2196 done
2198 if test -z "$CC"; then
2199 ac_ct_CC=$CC
2200 for ac_prog in cl
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$ac_ct_CC"; then
2210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 ac_cv_prog_ac_ct_CC="$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 if test -n "$ac_ct_CC"; then
2230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231 echo "${ECHO_T}$ac_ct_CC" >&6
2232 else
2233 echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2237 test -n "$ac_ct_CC" && break
2238 done
2240 CC=$ac_ct_CC
2246 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: no acceptable C compiler found in \$PATH
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2252 # Provide some information about the compiler.
2253 echo "$as_me:$LINENO:" \
2254 "checking for C compiler version" >&5
2255 ac_compiler=`set X $ac_compile; echo $2`
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2257 (eval $ac_compiler --version </dev/null >&5) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2262 (eval $ac_compiler -v </dev/null >&5) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2267 (eval $ac_compiler -V </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2272 cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h. */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2280 main ()
2284 return 0;
2286 _ACEOF
2287 ac_clean_files_save=$ac_clean_files
2288 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2289 # Try to create an executable without -o first, disregard a.out.
2290 # It will help us diagnose broken compilers, and finding out an intuition
2291 # of exeext.
2292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2294 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2295 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2296 (eval $ac_link_default) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # Find the output, starting from the most likely. This scheme is
2301 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2302 # resort.
2304 # Be careful to initialize this variable, since it used to be cached.
2305 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2306 ac_cv_exeext=
2307 # b.out is created by i960 compilers.
2308 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2310 test -f "$ac_file" || continue
2311 case $ac_file in
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2314 conftest.$ac_ext )
2315 # This is the source file.
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323 # FIXME: I believe we export ac_cv_exeext for Libtool,
2324 # but it would be cool to find out if it's true. Does anybody
2325 # maintain Libtool? --akim.
2326 export ac_cv_exeext
2327 break;;
2329 break;;
2330 esac
2331 done
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: C compiler cannot create executables
2339 See \`config.log' for more details." >&2;}
2340 { (exit 77); exit 77; }; }
2343 ac_exeext=$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_file" >&5
2345 echo "${ECHO_T}$ac_file" >&6
2347 # Check the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352 # If not cross compiling, check that we can run a simple program.
2353 if test "$cross_compiling" != yes; then
2354 if { ac_try='./$ac_file'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 cross_compiling=no
2361 else
2362 if test "$cross_compiling" = maybe; then
2363 cross_compiling=yes
2364 else
2365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot run C compiled programs.
2369 If you meant to cross compile, use \`--host'.
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2375 echo "$as_me:$LINENO: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2379 ac_clean_files=$ac_clean_files_save
2380 # Check the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2384 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2385 echo "${ECHO_T}$cross_compiling" >&6
2387 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2396 # work properly (i.e., refer to `conftest.exe'), while it won't with
2397 # `rm'.
2398 for ac_file in conftest.exe conftest conftest.*; do
2399 test -f "$ac_file" || continue
2400 case $ac_file in
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2403 export ac_cv_exeext
2404 break;;
2405 * ) break;;
2406 esac
2407 done
2408 else
2409 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2410 See \`config.log' for more details." >&5
2411 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2412 See \`config.log' for more details." >&2;}
2413 { (exit 1); exit 1; }; }
2416 rm -f conftest$ac_cv_exeext
2417 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2418 echo "${ECHO_T}$ac_cv_exeext" >&6
2420 rm -f conftest.$ac_ext
2421 EXEEXT=$ac_cv_exeext
2422 ac_exeext=$EXEEXT
2423 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2424 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2425 if test "${ac_cv_objext+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 rm -f conftest.o conftest.obj
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2453 break;;
2454 esac
2455 done
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2460 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470 echo "${ECHO_T}$ac_cv_objext" >&6
2471 OBJEXT=$ac_cv_objext
2472 ac_objext=$OBJEXT
2473 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2486 main ()
2488 #ifndef __GNUC__
2489 choke me
2490 #endif
2493 return 0;
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_compiler_gnu=yes
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 ac_compiler_gnu=no
2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2531 GCC=`test $ac_compiler_gnu = yes && echo yes`
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2534 CFLAGS="-g"
2535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2537 if test "${ac_cv_prog_cc_g+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2548 main ()
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_g=yes
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 ac_cv_prog_cc_g=no
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588 if test "$ac_test_CFLAGS" = set; then
2589 CFLAGS=$ac_save_CFLAGS
2590 elif test $ac_cv_prog_cc_g = yes; then
2591 if test "$GCC" = yes; then
2592 CFLAGS="-g -O2"
2593 else
2594 CFLAGS="-g"
2596 else
2597 if test "$GCC" = yes; then
2598 CFLAGS="-O2"
2599 else
2600 CFLAGS=
2603 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 ac_cv_prog_cc_stdc=no
2609 ac_save_CC=$CC
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2616 #include <stdarg.h>
2617 #include <stdio.h>
2618 #include <sys/types.h>
2619 #include <sys/stat.h>
2620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2621 struct buf { int x; };
2622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623 static char *e (p, i)
2624 char **p;
2625 int i;
2627 return p[i];
2629 static char *f (char * (*g) (char **, int), char **p, ...)
2631 char *s;
2632 va_list v;
2633 va_start (v,p);
2634 s = g (p, va_arg (v,int));
2635 va_end (v);
2636 return s;
2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2640 function prototypes and stuff, but not '\xHH' hex character constants.
2641 These don't provoke an error unfortunately, instead are silently treated
2642 as 'x'. The following induces an error, until -std1 is added to get
2643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2644 array size at least. It's necessary to write '\x00'==0 to get something
2645 that's true only with -std1. */
2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2648 int test (int i, double x);
2649 struct s1 {int (*f) (int a);};
2650 struct s2 {int (*f) (double a);};
2651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2652 int argc;
2653 char **argv;
2655 main ()
2657 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 return 0;
2661 _ACEOF
2662 # Don't try gcc -ansi; that turns off useful extensions and
2663 # breaks some systems' header files.
2664 # AIX -qlanglvl=ansi
2665 # Ultrix and OSF/1 -std1
2666 # HP-UX 10.20 and later -Ae
2667 # HP-UX older versions -Aa -D_HPUX_SOURCE
2668 # SVR4 -Xc -D__EXTENSIONS__
2669 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2671 CC="$ac_save_CC $ac_arg"
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_stdc=$ac_arg
2695 break
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext
2702 done
2703 rm -f conftest.$ac_ext conftest.$ac_objext
2704 CC=$ac_save_CC
2708 case "x$ac_cv_prog_cc_stdc" in
2709 x|xno)
2710 echo "$as_me:$LINENO: result: none needed" >&5
2711 echo "${ECHO_T}none needed" >&6 ;;
2713 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2714 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2715 CC="$CC $ac_cv_prog_cc_stdc" ;;
2716 esac
2718 # Some people use a C++ compiler to compile C. Since we use `exit',
2719 # in C++ we need to declare it. In case someone uses the same compiler
2720 # for both compiling C and C++ we need to have the C++ compiler decide
2721 # the declaration of exit, since it's the most demanding environment.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #ifndef __cplusplus
2724 choke me
2725 #endif
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 for ac_declaration in \
2750 '' \
2751 'extern "C" void std::exit (int) throw (); using std::exit;' \
2752 'extern "C" void std::exit (int); using std::exit;' \
2753 'extern "C" void exit (int) throw ();' \
2754 'extern "C" void exit (int);' \
2755 'void exit (int);'
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 $ac_declaration
2764 #include <stdlib.h>
2766 main ()
2768 exit (42);
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 continue
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 $ac_declaration
2811 main ()
2813 exit (42);
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 break
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 DEPDIR="${am__leading_dot}deps"
2868 ac_config_commands="$ac_config_commands depfiles"
2871 am_make=${MAKE-make}
2872 cat > confinc << 'END'
2873 am__doit:
2874 @echo done
2875 .PHONY: am__doit
2877 # If we don't find an include directive, just comment out the code.
2878 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2880 am__include="#"
2881 am__quote=
2882 _am_result=none
2883 # First try GNU make style include.
2884 echo "include confinc" > confmf
2885 # We grep out `Entering directory' and `Leaving directory'
2886 # messages which can occur if `w' ends up in MAKEFLAGS.
2887 # In particular we don't look at `^make:' because GNU make might
2888 # be invoked under some other name (usually "gmake"), in which
2889 # case it prints its new name instead of `make'.
2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2891 am__include=include
2892 am__quote=
2893 _am_result=GNU
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897 echo '.include "confinc"' > confmf
2898 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899 am__include=.include
2900 am__quote="\""
2901 _am_result=BSD
2906 echo "$as_me:$LINENO: result: $_am_result" >&5
2907 echo "${ECHO_T}$_am_result" >&6
2908 rm -f confinc confmf
2910 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911 if test "${enable_dependency_tracking+set}" = set; then
2912 enableval="$enable_dependency_tracking"
2915 if test "x$enable_dependency_tracking" != xno; then
2916 am_depcomp="$ac_aux_dir/depcomp"
2917 AMDEPBACKSLASH='\'
2921 if test "x$enable_dependency_tracking" != xno; then
2922 AMDEP_TRUE=
2923 AMDEP_FALSE='#'
2924 else
2925 AMDEP_TRUE='#'
2926 AMDEP_FALSE=
2932 depcc="$CC" am_compiler_list=
2934 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2944 # in D'.
2945 mkdir conftest.dir
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2949 cd conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2955 # directory.
2956 mkdir sub
2958 am_cv_CC_dependencies_compiler_type=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 for depmode in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2970 : > sub/conftest.c
2971 for i in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub/conftst$i.h
2976 done
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2979 case $depmode in
2980 nosideeffect)
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes; then
2984 continue
2985 else
2986 break
2989 none) break ;;
2990 esac
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode=$depmode \
2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998 >/dev/null 2>conftest.err &&
2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3012 break
3015 done
3017 cd ..
3018 rm -rf conftest.dir
3019 else
3020 am_cv_CC_dependencies_compiler_type=none
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033 am__fastdepCC_TRUE=
3034 am__fastdepCC_FALSE='#'
3035 else
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3041 # Find a good install program. We prefer a C program (faster),
3042 # so one script is as good as another. But avoid the broken or
3043 # incompatible versions:
3044 # SysV /etc/install, /usr/sbin/install
3045 # SunOS /usr/etc/install
3046 # IRIX /sbin/install
3047 # AIX /bin/install
3048 # AmigaOS /C/install, which installs bootblocks on floppy discs
3049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3052 # OS/2's system install, which has a completely different semantic
3053 # ./install, which can be erroneously created by make from ./install.sh.
3054 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3055 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3056 if test -z "$INSTALL"; then
3057 if test "${ac_cv_path_install+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 # Account for people who put trailing slashes in PATH elements.
3066 case $as_dir/ in
3067 ./ | .// | /cC/* | \
3068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3069 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3070 /usr/ucb/* ) ;;
3072 # OSF1 and SCO ODT 3.0 have their own names for install.
3073 # Don't use installbsd from OSF since it installs stuff as root
3074 # by default.
3075 for ac_prog in ginstall scoinst install; do
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3078 if test $ac_prog = install &&
3079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3080 # AIX install. It has an incompatible calling convention.
3082 elif test $ac_prog = install &&
3083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # program-specific install script used by HP pwplus--don't use.
3086 else
3087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3088 break 3
3091 done
3092 done
3094 esac
3095 done
3099 if test "${ac_cv_path_install+set}" = set; then
3100 INSTALL=$ac_cv_path_install
3101 else
3102 # As a last resort, use the slow shell script. We don't cache a
3103 # path for INSTALL within a source directory, because that will
3104 # break other packages using the cache if that directory is
3105 # removed, or if the path is relative.
3106 INSTALL=$ac_install_sh
3109 echo "$as_me:$LINENO: result: $INSTALL" >&5
3110 echo "${ECHO_T}$INSTALL" >&6
3112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3113 # It thinks the first close brace ends the variable substitution.
3114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3116 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3118 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3121 # Make sure we can run config.sub.
3122 $ac_config_sub sun4 >/dev/null 2>&1 ||
3123 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3124 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3125 { (exit 1); exit 1; }; }
3127 echo "$as_me:$LINENO: checking build system type" >&5
3128 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3129 if test "${ac_cv_build+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 ac_cv_build_alias=$build_alias
3133 test -z "$ac_cv_build_alias" &&
3134 ac_cv_build_alias=`$ac_config_guess`
3135 test -z "$ac_cv_build_alias" &&
3136 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3137 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3138 { (exit 1); exit 1; }; }
3139 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3140 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3141 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3142 { (exit 1); exit 1; }; }
3145 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3146 echo "${ECHO_T}$ac_cv_build" >&6
3147 build=$ac_cv_build
3148 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3149 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3150 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3153 echo "$as_me:$LINENO: checking host system type" >&5
3154 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3155 if test "${ac_cv_host+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 ac_cv_host_alias=$host_alias
3159 test -z "$ac_cv_host_alias" &&
3160 ac_cv_host_alias=$ac_cv_build_alias
3161 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3162 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3163 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3164 { (exit 1); exit 1; }; }
3167 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3168 echo "${ECHO_T}$ac_cv_host" >&6
3169 host=$ac_cv_host
3170 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3171 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3172 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3182 # Check whether --enable-shared or --disable-shared was given.
3183 if test "${enable_shared+set}" = set; then
3184 enableval="$enable_shared"
3185 p=${PACKAGE-default}
3186 case $enableval in
3187 yes) enable_shared=yes ;;
3188 no) enable_shared=no ;;
3190 enable_shared=no
3191 # Look at the argument we got. We use all the common list separators.
3192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3193 for pkg in $enableval; do
3194 IFS="$lt_save_ifs"
3195 if test "X$pkg" = "X$p"; then
3196 enable_shared=yes
3198 done
3199 IFS="$lt_save_ifs"
3201 esac
3202 else
3203 enable_shared=yes
3206 # Check whether --enable-static or --disable-static was given.
3207 if test "${enable_static+set}" = set; then
3208 enableval="$enable_static"
3209 p=${PACKAGE-default}
3210 case $enableval in
3211 yes) enable_static=yes ;;
3212 no) enable_static=no ;;
3214 enable_static=no
3215 # Look at the argument we got. We use all the common list separators.
3216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3217 for pkg in $enableval; do
3218 IFS="$lt_save_ifs"
3219 if test "X$pkg" = "X$p"; then
3220 enable_static=yes
3222 done
3223 IFS="$lt_save_ifs"
3225 esac
3226 else
3227 enable_static=yes
3230 # Check whether --enable-fast-install or --disable-fast-install was given.
3231 if test "${enable_fast_install+set}" = set; then
3232 enableval="$enable_fast_install"
3233 p=${PACKAGE-default}
3234 case $enableval in
3235 yes) enable_fast_install=yes ;;
3236 no) enable_fast_install=no ;;
3238 enable_fast_install=no
3239 # Look at the argument we got. We use all the common list separators.
3240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3241 for pkg in $enableval; do
3242 IFS="$lt_save_ifs"
3243 if test "X$pkg" = "X$p"; then
3244 enable_fast_install=yes
3246 done
3247 IFS="$lt_save_ifs"
3249 esac
3250 else
3251 enable_fast_install=yes
3254 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3255 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3256 if test "${lt_cv_path_SED+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 # Loop through the user's path and test for sed and gsed.
3260 # Then use that list of sed's as ones to test for truncation.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for lt_ac_prog in sed gsed; do
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3269 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3271 done
3272 done
3273 done
3274 lt_ac_max=0
3275 lt_ac_count=0
3276 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3277 # along with /bin/sed that truncates output.
3278 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3279 test ! -f $lt_ac_sed && continue
3280 cat /dev/null > conftest.in
3281 lt_ac_count=0
3282 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3283 # Check for GNU sed and select it if it is found.
3284 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3285 lt_cv_path_SED=$lt_ac_sed
3286 break
3288 while true; do
3289 cat conftest.in conftest.in >conftest.tmp
3290 mv conftest.tmp conftest.in
3291 cp conftest.in conftest.nl
3292 echo >>conftest.nl
3293 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3294 cmp -s conftest.out conftest.nl || break
3295 # 10000 chars as input seems more than enough
3296 test $lt_ac_count -gt 10 && break
3297 lt_ac_count=`expr $lt_ac_count + 1`
3298 if test $lt_ac_count -gt $lt_ac_max; then
3299 lt_ac_max=$lt_ac_count
3300 lt_cv_path_SED=$lt_ac_sed
3302 done
3303 done
3307 SED=$lt_cv_path_SED
3308 echo "$as_me:$LINENO: result: $SED" >&5
3309 echo "${ECHO_T}$SED" >&6
3311 echo "$as_me:$LINENO: checking for egrep" >&5
3312 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3313 if test "${ac_cv_prog_egrep+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3317 then ac_cv_prog_egrep='grep -E'
3318 else ac_cv_prog_egrep='egrep'
3321 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3322 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3323 EGREP=$ac_cv_prog_egrep
3327 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3328 if test "${with_gnu_ld+set}" = set; then
3329 withval="$with_gnu_ld"
3330 test "$withval" = no || with_gnu_ld=yes
3331 else
3332 with_gnu_ld=no
3334 ac_prog=ld
3335 if test "$GCC" = yes; then
3336 # Check if gcc -print-prog-name=ld gives a path.
3337 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3338 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3339 case $host in
3340 *-*-mingw*)
3341 # gcc leaves a trailing carriage return which upsets mingw
3342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3345 esac
3346 case $ac_prog in
3347 # Accept absolute paths.
3348 [\\/]* | ?:[\\/]*)
3349 re_direlt='/[^/][^/]*/\.\./'
3350 # Canonicalize the pathname of ld
3351 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3352 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3353 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3354 done
3355 test -z "$LD" && LD="$ac_prog"
3358 # If it fails, then pretend we aren't using GCC.
3359 ac_prog=ld
3362 # If it is relative, then search for the first ld in PATH.
3363 with_gnu_ld=unknown
3365 esac
3366 elif test "$with_gnu_ld" = yes; then
3367 echo "$as_me:$LINENO: checking for GNU ld" >&5
3368 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3369 else
3370 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3371 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3373 if test "${lt_cv_path_LD+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -z "$LD"; then
3377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3378 for ac_dir in $PATH; do
3379 IFS="$lt_save_ifs"
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3382 lt_cv_path_LD="$ac_dir/$ac_prog"
3383 # Check to see if the program is GNU ld. I'd rather use --version,
3384 # but apparently some GNU ld's only accept -v.
3385 # Break only if it was the GNU/non-GNU ld that we prefer.
3386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3387 *GNU* | *'with BFD'*)
3388 test "$with_gnu_ld" != no && break
3391 test "$with_gnu_ld" != yes && break
3393 esac
3395 done
3396 IFS="$lt_save_ifs"
3397 else
3398 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3402 LD="$lt_cv_path_LD"
3403 if test -n "$LD"; then
3404 echo "$as_me:$LINENO: result: $LD" >&5
3405 echo "${ECHO_T}$LD" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3410 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3411 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3412 { (exit 1); exit 1; }; }
3413 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3414 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3415 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3419 case `$LD -v 2>&1 </dev/null` in
3420 *GNU* | *'with BFD'*)
3421 lt_cv_prog_gnu_ld=yes
3424 lt_cv_prog_gnu_ld=no
3426 esac
3428 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3429 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3430 with_gnu_ld=$lt_cv_prog_gnu_ld
3433 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3434 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3435 if test "${lt_cv_ld_reload_flag+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 lt_cv_ld_reload_flag='-r'
3440 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3441 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3442 reload_flag=$lt_cv_ld_reload_flag
3443 case $reload_flag in
3444 "" | " "*) ;;
3445 *) reload_flag=" $reload_flag" ;;
3446 esac
3447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3448 case $host_os in
3449 darwin*)
3450 if test "$GCC" = yes; then
3451 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3452 else
3453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3456 esac
3458 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3459 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3460 if test "${lt_cv_path_NM+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$NM"; then
3464 # Let the user override the test.
3465 lt_cv_path_NM="$NM"
3466 else
3467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3468 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3469 IFS="$lt_save_ifs"
3470 test -z "$ac_dir" && ac_dir=.
3471 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3472 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3473 # Check to see if the nm accepts a BSD-compat flag.
3474 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3475 # nm: unknown option "B" ignored
3476 # Tru64's nm complains that /dev/null is an invalid object file
3477 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3478 */dev/null* | *'Invalid file or object type'*)
3479 lt_cv_path_NM="$tmp_nm -B"
3480 break
3483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3484 */dev/null*)
3485 lt_cv_path_NM="$tmp_nm -p"
3486 break
3489 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3490 continue # so that we can try to find one that supports BSD flags
3492 esac
3493 esac
3495 done
3496 IFS="$lt_save_ifs"
3497 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3500 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3501 echo "${ECHO_T}$lt_cv_path_NM" >&6
3502 NM="$lt_cv_path_NM"
3504 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3505 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3506 LN_S=$as_ln_s
3507 if test "$LN_S" = "ln -s"; then
3508 echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3510 else
3511 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3512 echo "${ECHO_T}no, using $LN_S" >&6
3515 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3516 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3517 if test "${lt_cv_deplibs_check_method+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 lt_cv_file_magic_cmd='$MAGIC_CMD'
3521 lt_cv_file_magic_test_file=
3522 lt_cv_deplibs_check_method='unknown'
3523 # Need to set the preceding variable on all platforms that support
3524 # interlibrary dependencies.
3525 # 'none' -- dependencies not supported.
3526 # `unknown' -- same as none, but documents that we really don't know.
3527 # 'pass_all' -- all dependencies passed with no checks.
3528 # 'test_compile' -- check by making test program.
3529 # 'file_magic [[regex]]' -- check by looking for files in library path
3530 # which responds to the $file_magic_cmd with a given extended regex.
3531 # If you have `file' or equivalent on your system and you're not sure
3532 # whether `pass_all' will *always* work, you probably want this one.
3534 case $host_os in
3535 aix4* | aix5*)
3536 lt_cv_deplibs_check_method=pass_all
3539 beos*)
3540 lt_cv_deplibs_check_method=pass_all
3543 bsdi[45]*)
3544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3545 lt_cv_file_magic_cmd='/usr/bin/file -L'
3546 lt_cv_file_magic_test_file=/shlib/libc.so
3549 cygwin*)
3550 # func_win32_libid is a shell function defined in ltmain.sh
3551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3552 lt_cv_file_magic_cmd='func_win32_libid'
3555 mingw* | pw32*)
3556 # Base MSYS/MinGW do not provide the 'file' command needed by
3557 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3558 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3559 lt_cv_file_magic_cmd='$OBJDUMP -f'
3562 darwin* | rhapsody*)
3563 lt_cv_deplibs_check_method=pass_all
3566 freebsd* | kfreebsd*-gnu | dragonfly*)
3567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3568 case $host_cpu in
3569 i*86 )
3570 # Not sure whether the presence of OpenBSD here was a mistake.
3571 # Let's accept both of them until this is cleared up.
3572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3573 lt_cv_file_magic_cmd=/usr/bin/file
3574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3576 esac
3577 else
3578 lt_cv_deplibs_check_method=pass_all
3582 gnu*)
3583 lt_cv_deplibs_check_method=pass_all
3586 hpux10.20* | hpux11*)
3587 lt_cv_file_magic_cmd=/usr/bin/file
3588 case "$host_cpu" in
3589 ia64*)
3590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3591 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3593 hppa*64*)
3594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3595 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3601 esac
3604 irix5* | irix6* | nonstopux*)
3605 case $LD in
3606 *-32|*"-32 ") libmagic=32-bit;;
3607 *-n32|*"-n32 ") libmagic=N32;;
3608 *-64|*"-64 ") libmagic=64-bit;;
3609 *) libmagic=never-match;;
3610 esac
3611 lt_cv_deplibs_check_method=pass_all
3614 # This must be Linux ELF.
3615 linux*)
3616 lt_cv_deplibs_check_method=pass_all
3619 netbsd*)
3620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3622 else
3623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3627 newos6*)
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3629 lt_cv_file_magic_cmd=/usr/bin/file
3630 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3633 nto-qnx*)
3634 lt_cv_deplibs_check_method=unknown
3637 openbsd*)
3638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3640 else
3641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3645 osf3* | osf4* | osf5*)
3646 lt_cv_deplibs_check_method=pass_all
3649 sco3.2v5*)
3650 lt_cv_deplibs_check_method=pass_all
3653 solaris*)
3654 lt_cv_deplibs_check_method=pass_all
3657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3658 case $host_vendor in
3659 motorola)
3660 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]'
3661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3663 ncr)
3664 lt_cv_deplibs_check_method=pass_all
3666 sequent)
3667 lt_cv_file_magic_cmd='/bin/file'
3668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3670 sni)
3671 lt_cv_file_magic_cmd='/bin/file'
3672 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3673 lt_cv_file_magic_test_file=/lib/libc.so
3675 siemens)
3676 lt_cv_deplibs_check_method=pass_all
3678 esac
3681 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3682 lt_cv_deplibs_check_method=pass_all
3684 esac
3687 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3688 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3689 file_magic_cmd=$lt_cv_file_magic_cmd
3690 deplibs_check_method=$lt_cv_deplibs_check_method
3691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3694 # If no C compiler was specified, use CC.
3695 LTCC=${LTCC-"$CC"}
3697 # Allow CC to be a program name with arguments.
3698 compiler=$CC
3701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3702 if test "${enable_libtool_lock+set}" = set; then
3703 enableval="$enable_libtool_lock"
3706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3708 # Some flags need to be propagated to the compiler or linker for good
3709 # libtool support.
3710 case $host in
3711 ia64-*-hpux*)
3712 # Find out which ABI we are using.
3713 echo 'int i;' > conftest.$ac_ext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; then
3719 case `/usr/bin/file conftest.$ac_objext` in
3720 *ELF-32*)
3721 HPUX_IA64_MODE="32"
3723 *ELF-64*)
3724 HPUX_IA64_MODE="64"
3726 esac
3728 rm -rf conftest*
3730 *-*-irix6*)
3731 # Find out which ABI we are using.
3732 echo '#line 3732 "configure"' > conftest.$ac_ext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; then
3738 if test "$lt_cv_prog_gnu_ld" = yes; then
3739 case `/usr/bin/file conftest.$ac_objext` in
3740 *32-bit*)
3741 LD="${LD-ld} -melf32bsmip"
3743 *N32*)
3744 LD="${LD-ld} -melf32bmipn32"
3746 *64-bit*)
3747 LD="${LD-ld} -melf64bmip"
3749 esac
3750 else
3751 case `/usr/bin/file conftest.$ac_objext` in
3752 *32-bit*)
3753 LD="${LD-ld} -32"
3755 *N32*)
3756 LD="${LD-ld} -n32"
3758 *64-bit*)
3759 LD="${LD-ld} -64"
3761 esac
3764 rm -rf conftest*
3767 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3768 # Find out which ABI we are using.
3769 echo 'int i;' > conftest.$ac_ext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; then
3775 case "`/usr/bin/file conftest.o`" in
3776 *32-bit*)
3777 case $host in
3778 x86_64-*linux*)
3779 LD="${LD-ld} -m elf_i386"
3781 ppc64-*linux*|powerpc64-*linux*)
3782 LD="${LD-ld} -m elf32ppclinux"
3784 s390x-*linux*)
3785 LD="${LD-ld} -m elf_s390"
3787 sparc64-*linux*)
3788 LD="${LD-ld} -m elf32_sparc"
3790 esac
3792 *64-bit*)
3793 case $host in
3794 x86_64-*linux*)
3795 LD="${LD-ld} -m elf_x86_64"
3797 ppc*-*linux*|powerpc*-*linux*)
3798 LD="${LD-ld} -m elf64ppc"
3800 s390*-*linux*)
3801 LD="${LD-ld} -m elf64_s390"
3803 sparc*-*linux*)
3804 LD="${LD-ld} -m elf64_sparc"
3806 esac
3808 esac
3810 rm -rf conftest*
3813 *-*-sco3.2v5*)
3814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3815 SAVE_CFLAGS="$CFLAGS"
3816 CFLAGS="$CFLAGS -belf"
3817 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3819 if test "${lt_cv_cc_needs_belf+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3836 main ()
3840 return 0;
3842 _ACEOF
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest$ac_exeext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 lt_cv_cc_needs_belf=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 lt_cv_cc_needs_belf=no
3872 rm -f conftest.err conftest.$ac_objext \
3873 conftest$ac_exeext conftest.$ac_ext
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3885 CFLAGS="$SAVE_CFLAGS"
3888 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 if test -n "$DLLTOOL"; then
3898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3911 done
3912 done
3916 DLLTOOL=$ac_cv_prog_DLLTOOL
3917 if test -n "$DLLTOOL"; then
3918 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3919 echo "${ECHO_T}$DLLTOOL" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3926 if test -z "$ac_cv_prog_DLLTOOL"; then
3927 ac_ct_DLLTOOL=$DLLTOOL
3928 # Extract the first word of "dlltool", so it can be a program name with args.
3929 set dummy dlltool; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 if test -n "$ac_ct_DLLTOOL"; then
3936 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3949 done
3950 done
3952 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3955 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3956 if test -n "$ac_ct_DLLTOOL"; then
3957 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3958 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 DLLTOOL=$ac_ct_DLLTOOL
3965 else
3966 DLLTOOL="$ac_cv_prog_DLLTOOL"
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}as; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_AS+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if test -n "$AS"; then
3978 ac_cv_prog_AS="$AS" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_AS="${ac_tool_prefix}as"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3991 done
3992 done
3996 AS=$ac_cv_prog_AS
3997 if test -n "$AS"; then
3998 echo "$as_me:$LINENO: result: $AS" >&5
3999 echo "${ECHO_T}$AS" >&6
4000 else
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_AS"; then
4007 ac_ct_AS=$AS
4008 # Extract the first word of "as", so it can be a program name with args.
4009 set dummy as; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$ac_ct_AS"; then
4016 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_AS="as"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4032 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4036 if test -n "$ac_ct_AS"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4038 echo "${ECHO_T}$ac_ct_AS" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 AS=$ac_ct_AS
4045 else
4046 AS="$ac_cv_prog_AS"
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 if test -n "$OBJDUMP"; then
4058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 break 2
4071 done
4072 done
4076 OBJDUMP=$ac_cv_prog_OBJDUMP
4077 if test -n "$OBJDUMP"; then
4078 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4079 echo "${ECHO_T}$OBJDUMP" >&6
4080 else
4081 echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4086 if test -z "$ac_cv_prog_OBJDUMP"; then
4087 ac_ct_OBJDUMP=$OBJDUMP
4088 # Extract the first word of "objdump", so it can be a program name with args.
4089 set dummy objdump; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 if test -n "$ac_ct_OBJDUMP"; then
4096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4109 done
4110 done
4112 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4116 if test -n "$ac_ct_OBJDUMP"; then
4117 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4118 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4124 OBJDUMP=$ac_ct_OBJDUMP
4125 else
4126 OBJDUMP="$ac_cv_prog_OBJDUMP"
4131 esac
4133 need_locks="$enable_libtool_lock"
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4143 # On Suns, sometimes $CPP names a directory.
4144 if test -n "$CPP" && test -d "$CPP"; then
4145 CPP=
4147 if test -z "$CPP"; then
4148 if test "${ac_cv_prog_CPP+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 # Double quotes because CPP needs to be expanded
4152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4154 ac_preproc_ok=false
4155 for ac_c_preproc_warn_flag in '' yes
4157 # Use a header file that comes with gcc, so configuring glibc
4158 # with a fresh cross-compiler works.
4159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160 # <limits.h> exists even on freestanding compilers.
4161 # On the NeXT, cc -E runs the code through the compiler's parser,
4162 # not just through cpp. "Syntax error" is here to catch this case.
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null; then
4184 if test -s conftest.err; then
4185 ac_cpp_err=$ac_c_preproc_warn_flag
4186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4187 else
4188 ac_cpp_err=
4190 else
4191 ac_cpp_err=yes
4193 if test -z "$ac_cpp_err"; then
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 # Broken: fails on valid input.
4200 continue
4202 rm -f conftest.err conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether non-existent headers
4205 # can be detected and how.
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <ac_nonexistent.h>
4213 _ACEOF
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4225 else
4226 ac_cpp_err=
4228 else
4229 ac_cpp_err=yes
4231 if test -z "$ac_cpp_err"; then
4232 # Broken: success on invalid input.
4233 continue
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 # Passes both tests.
4239 ac_preproc_ok=:
4240 break
4242 rm -f conftest.err conftest.$ac_ext
4244 done
4245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246 rm -f conftest.err conftest.$ac_ext
4247 if $ac_preproc_ok; then
4248 break
4251 done
4252 ac_cv_prog_CPP=$CPP
4255 CPP=$ac_cv_prog_CPP
4256 else
4257 ac_cv_prog_CPP=$CPP
4259 echo "$as_me:$LINENO: result: $CPP" >&5
4260 echo "${ECHO_T}$CPP" >&6
4261 ac_preproc_ok=false
4262 for ac_c_preproc_warn_flag in '' yes
4264 # Use a header file that comes with gcc, so configuring glibc
4265 # with a fresh cross-compiler works.
4266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 # <limits.h> exists even on freestanding compilers.
4268 # On the NeXT, cc -E runs the code through the compiler's parser,
4269 # not just through cpp. "Syntax error" is here to catch this case.
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #ifdef __STDC__
4277 # include <limits.h>
4278 #else
4279 # include <assert.h>
4280 #endif
4281 Syntax error
4282 _ACEOF
4283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4297 else
4298 ac_cpp_err=yes
4300 if test -z "$ac_cpp_err"; then
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Broken: fails on valid input.
4307 continue
4309 rm -f conftest.err conftest.$ac_ext
4311 # OK, works on sane cases. Now check whether non-existent headers
4312 # can be detected and how.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <ac_nonexistent.h>
4320 _ACEOF
4321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null; then
4329 if test -s conftest.err; then
4330 ac_cpp_err=$ac_c_preproc_warn_flag
4331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4332 else
4333 ac_cpp_err=
4335 else
4336 ac_cpp_err=yes
4338 if test -z "$ac_cpp_err"; then
4339 # Broken: success on invalid input.
4340 continue
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 # Passes both tests.
4346 ac_preproc_ok=:
4347 break
4349 rm -f conftest.err conftest.$ac_ext
4351 done
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then
4356 else
4357 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details." >&2;}
4361 { (exit 1); exit 1; }; }
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4373 if test "${ac_cv_header_stdc+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <stdlib.h>
4383 #include <stdarg.h>
4384 #include <string.h>
4385 #include <float.h>
4388 main ()
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag"
4405 || test ! -s conftest.err'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_header_stdc=yes
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 ac_cv_header_stdc=no
4424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426 if test $ac_cv_header_stdc = yes; then
4427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #include <string.h>
4436 _ACEOF
4437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4438 $EGREP "memchr" >/dev/null 2>&1; then
4440 else
4441 ac_cv_header_stdc=no
4443 rm -f conftest*
4447 if test $ac_cv_header_stdc = yes; then
4448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <stdlib.h>
4457 _ACEOF
4458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459 $EGREP "free" >/dev/null 2>&1; then
4461 else
4462 ac_cv_header_stdc=no
4464 rm -f conftest*
4468 if test $ac_cv_header_stdc = yes; then
4469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4470 if test "$cross_compiling" = yes; then
4472 else
4473 cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h. */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 #include <ctype.h>
4480 #if ((' ' & 0x0FF) == 0x020)
4481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4483 #else
4484 # define ISLOWER(c) \
4485 (('a' <= (c) && (c) <= 'i') \
4486 || ('j' <= (c) && (c) <= 'r') \
4487 || ('s' <= (c) && (c) <= 'z'))
4488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4489 #endif
4491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493 main ()
4495 int i;
4496 for (i = 0; i < 256; i++)
4497 if (XOR (islower (i), ISLOWER (i))
4498 || toupper (i) != TOUPPER (i))
4499 exit(2);
4500 exit (0);
4502 _ACEOF
4503 rm -f conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4515 else
4516 echo "$as_me: program exited with status $ac_status" >&5
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ( exit $ac_status )
4521 ac_cv_header_stdc=no
4523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4529 if test $ac_cv_header_stdc = yes; then
4531 cat >>confdefs.h <<\_ACEOF
4532 #define STDC_HEADERS 1
4533 _ACEOF
4537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4548 inttypes.h stdint.h unistd.h
4550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4551 echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 $ac_includes_default
4564 #include <$ac_header>
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4588 eval "$as_ac_Header=yes"
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 eval "$as_ac_Header=no"
4595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4600 cat >>confdefs.h <<_ACEOF
4601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 _ACEOF
4606 done
4610 for ac_header in dlfcn.h
4612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614 echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4621 else
4622 # Is the header compilable?
4623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 $ac_includes_default
4632 #include <$ac_header>
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_c_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_header_compiler=yes
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 ac_header_compiler=no
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665 echo "${ECHO_T}$ac_header_compiler" >&6
4667 # Is the header present?
4668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <$ac_header>
4677 _ACEOF
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } >/dev/null; then
4686 if test -s conftest.err; then
4687 ac_cpp_err=$ac_c_preproc_warn_flag
4688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4689 else
4690 ac_cpp_err=
4692 else
4693 ac_cpp_err=yes
4695 if test -z "$ac_cpp_err"; then
4696 ac_header_preproc=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_header_preproc=no
4703 rm -f conftest.err conftest.$ac_ext
4704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4705 echo "${ECHO_T}$ac_header_preproc" >&6
4707 # So? What about this header?
4708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 yes:no: )
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4714 ac_header_preproc=yes
4716 no:yes:* )
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4730 cat <<\_ASBOX
4731 ## ------------------------------------------ ##
4732 ## Report this to the AC_PACKAGE_NAME lists. ##
4733 ## ------------------------------------------ ##
4734 _ASBOX
4736 sed "s/^/$as_me: WARNING: /" >&2
4738 esac
4739 echo "$as_me:$LINENO: checking for $ac_header" >&5
4740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 eval "$as_ac_Header=\$ac_header_preproc"
4746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4751 cat >>confdefs.h <<_ACEOF
4752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 _ACEOF
4757 done
4759 ac_ext=cc
4760 ac_cpp='$CXXCPP $CPPFLAGS'
4761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4764 if test -n "$ac_tool_prefix"; then
4765 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4769 echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4771 if test "${ac_cv_prog_CXX+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 if test -n "$CXX"; then
4775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4793 CXX=$ac_cv_prog_CXX
4794 if test -n "$CXX"; then
4795 echo "$as_me:$LINENO: result: $CXX" >&5
4796 echo "${ECHO_T}$CXX" >&6
4797 else
4798 echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6
4802 test -n "$CXX" && break
4803 done
4805 if test -z "$CXX"; then
4806 ac_ct_CXX=$CXX
4807 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 if test -n "$ac_ct_CXX"; then
4817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_ac_ct_CXX="$ac_prog"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4835 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4836 if test -n "$ac_ct_CXX"; then
4837 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4838 echo "${ECHO_T}$ac_ct_CXX" >&6
4839 else
4840 echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4844 test -n "$ac_ct_CXX" && break
4845 done
4846 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4848 CXX=$ac_ct_CXX
4852 # Provide some information about the compiler.
4853 echo "$as_me:$LINENO:" \
4854 "checking for C++ compiler version" >&5
4855 ac_compiler=`set X $ac_compile; echo $2`
4856 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4857 (eval $ac_compiler --version </dev/null >&5) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }
4861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4862 (eval $ac_compiler -v </dev/null >&5) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }
4866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4867 (eval $ac_compiler -V </dev/null >&5) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }
4872 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4873 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4874 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4885 main ()
4887 #ifndef __GNUC__
4888 choke me
4889 #endif
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 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); } &&
4904 { ac_try='test -z "$ac_cxx_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_compiler_gnu=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_compiler_gnu=no
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4928 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4929 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4930 GXX=`test $ac_compiler_gnu = yes && echo yes`
4931 ac_test_CXXFLAGS=${CXXFLAGS+set}
4932 ac_save_CXXFLAGS=$CXXFLAGS
4933 CXXFLAGS="-g"
4934 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4935 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4936 if test "${ac_cv_prog_cxx_g+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4947 main ()
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -z "$ac_cxx_werror_flag"
4964 || test ! -s conftest.err'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_prog_cxx_g=yes
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_cv_prog_cxx_g=no
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4986 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4987 if test "$ac_test_CXXFLAGS" = set; then
4988 CXXFLAGS=$ac_save_CXXFLAGS
4989 elif test $ac_cv_prog_cxx_g = yes; then
4990 if test "$GXX" = yes; then
4991 CXXFLAGS="-g -O2"
4992 else
4993 CXXFLAGS="-g"
4995 else
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-O2"
4998 else
4999 CXXFLAGS=
5002 for ac_declaration in \
5003 '' \
5004 'extern "C" void std::exit (int) throw (); using std::exit;' \
5005 'extern "C" void std::exit (int); using std::exit;' \
5006 'extern "C" void exit (int) throw ();' \
5007 'extern "C" void exit (int);' \
5008 'void exit (int);'
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_declaration
5017 #include <stdlib.h>
5019 main ()
5021 exit (42);
5023 return 0;
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -z "$ac_cxx_werror_flag"
5036 || test ! -s conftest.err'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest.$ac_objext'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; }; then
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 continue
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5062 $ac_declaration
5064 main ()
5066 exit (42);
5068 return 0;
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_cxx_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 break
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 done
5101 rm -f conftest*
5102 if test -n "$ac_declaration"; then
5103 echo '#ifdef __cplusplus' >>confdefs.h
5104 echo $ac_declaration >>confdefs.h
5105 echo '#endif' >>confdefs.h
5108 ac_ext=cc
5109 ac_cpp='$CXXCPP $CPPFLAGS'
5110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5114 depcc="$CXX" am_compiler_list=
5116 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5117 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5118 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5122 # We make a subdir and do the tests there. Otherwise we can end up
5123 # making bogus files that we don't know about and never remove. For
5124 # instance it was reported that on HP-UX the gcc test will end up
5125 # making a dummy file named `D' -- because `-MD' means `put the output
5126 # in D'.
5127 mkdir conftest.dir
5128 # Copy depcomp to subdir because otherwise we won't find it if we're
5129 # using a relative directory.
5130 cp "$am_depcomp" conftest.dir
5131 cd conftest.dir
5132 # We will build objects and dependencies in a subdirectory because
5133 # it helps to detect inapplicable dependency modes. For instance
5134 # both Tru64's cc and ICC support -MD to output dependencies as a
5135 # side effect of compilation, but ICC will put the dependencies in
5136 # the current directory while Tru64 will put them in the object
5137 # directory.
5138 mkdir sub
5140 am_cv_CXX_dependencies_compiler_type=none
5141 if test "$am_compiler_list" = ""; then
5142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5144 for depmode in $am_compiler_list; do
5145 # Setup a source with many dependencies, because some compilers
5146 # like to wrap large dependency lists on column 80 (with \), and
5147 # we should not choose a depcomp mode which is confused by this.
5149 # We need to recreate these files for each test, as the compiler may
5150 # overwrite some of them when testing with obscure command lines.
5151 # This happens at least with the AIX C compiler.
5152 : > sub/conftest.c
5153 for i in 1 2 3 4 5 6; do
5154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5156 # Solaris 8's {/usr,}/bin/sh.
5157 touch sub/conftst$i.h
5158 done
5159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161 case $depmode in
5162 nosideeffect)
5163 # after this tag, mechanisms are not by side-effect, so they'll
5164 # only be used when explicitly requested
5165 if test "x$enable_dependency_tracking" = xyes; then
5166 continue
5167 else
5168 break
5171 none) break ;;
5172 esac
5173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5174 # mode. It turns out that the SunPro C++ compiler does not properly
5175 # handle `-M -o', and we need to detect this.
5176 if depmode=$depmode \
5177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5180 >/dev/null 2>conftest.err &&
5181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thusly:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CXX_dependencies_compiler_type=$depmode
5194 break
5197 done
5199 cd ..
5200 rm -rf conftest.dir
5201 else
5202 am_cv_CXX_dependencies_compiler_type=none
5206 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5207 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5208 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5213 test "x$enable_dependency_tracking" != xno \
5214 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5215 am__fastdepCXX_TRUE=
5216 am__fastdepCXX_FALSE='#'
5217 else
5218 am__fastdepCXX_TRUE='#'
5219 am__fastdepCXX_FALSE=
5225 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5226 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5227 (test "X$CXX" != "Xg++"))) ; then
5228 ac_ext=cc
5229 ac_cpp='$CXXCPP $CPPFLAGS'
5230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5233 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5234 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5235 if test -z "$CXXCPP"; then
5236 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 # Double quotes because CXXCPP needs to be expanded
5240 for CXXCPP in "$CXX -E" "/lib/cpp"
5242 ac_preproc_ok=false
5243 for ac_cxx_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #ifdef __STDC__
5258 # include <limits.h>
5259 #else
5260 # include <assert.h>
5261 #endif
5262 Syntax error
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_cxx_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5275 else
5276 ac_cpp_err=
5278 else
5279 ac_cpp_err=yes
5281 if test -z "$ac_cpp_err"; then
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Broken: fails on valid input.
5288 continue
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether non-existent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5301 _ACEOF
5302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null; then
5310 if test -s conftest.err; then
5311 ac_cpp_err=$ac_cxx_preproc_warn_flag
5312 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5313 else
5314 ac_cpp_err=
5316 else
5317 ac_cpp_err=yes
5319 if test -z "$ac_cpp_err"; then
5320 # Broken: success on invalid input.
5321 continue
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 # Passes both tests.
5327 ac_preproc_ok=:
5328 break
5330 rm -f conftest.err conftest.$ac_ext
5332 done
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5336 break
5339 done
5340 ac_cv_prog_CXXCPP=$CXXCPP
5343 CXXCPP=$ac_cv_prog_CXXCPP
5344 else
5345 ac_cv_prog_CXXCPP=$CXXCPP
5347 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5348 echo "${ECHO_T}$CXXCPP" >&6
5349 ac_preproc_ok=false
5350 for ac_cxx_preproc_warn_flag in '' yes
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 Syntax error
5370 _ACEOF
5371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } >/dev/null; then
5379 if test -s conftest.err; then
5380 ac_cpp_err=$ac_cxx_preproc_warn_flag
5381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5382 else
5383 ac_cpp_err=
5385 else
5386 ac_cpp_err=yes
5388 if test -z "$ac_cpp_err"; then
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 # Broken: fails on valid input.
5395 continue
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether non-existent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null; then
5417 if test -s conftest.err; then
5418 ac_cpp_err=$ac_cxx_preproc_warn_flag
5419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5420 else
5421 ac_cpp_err=
5423 else
5424 ac_cpp_err=yes
5426 if test -z "$ac_cpp_err"; then
5427 # Broken: success on invalid input.
5428 continue
5429 else
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 # Passes both tests.
5434 ac_preproc_ok=:
5435 break
5437 rm -f conftest.err conftest.$ac_ext
5439 done
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5444 else
5445 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5452 ac_ext=cc
5453 ac_cpp='$CXXCPP $CPPFLAGS'
5454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5461 ac_ext=f
5462 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5463 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5465 if test -n "$ac_tool_prefix"; then
5466 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_F77+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 if test -n "$F77"; then
5476 ac_cv_prog_F77="$F77" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5494 F77=$ac_cv_prog_F77
5495 if test -n "$F77"; then
5496 echo "$as_me:$LINENO: result: $F77" >&5
5497 echo "${ECHO_T}$F77" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5503 test -n "$F77" && break
5504 done
5506 if test -z "$F77"; then
5507 ac_ct_F77=$F77
5508 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5510 # Extract the first word of "$ac_prog", so it can be a program name with args.
5511 set dummy $ac_prog; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 if test -n "$ac_ct_F77"; then
5518 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_ac_ct_F77="$ac_prog"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5536 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5537 if test -n "$ac_ct_F77"; then
5538 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5539 echo "${ECHO_T}$ac_ct_F77" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5545 test -n "$ac_ct_F77" && break
5546 done
5548 F77=$ac_ct_F77
5552 # Provide some information about the compiler.
5553 echo "$as_me:5553:" \
5554 "checking for Fortran 77 compiler version" >&5
5555 ac_compiler=`set X $ac_compile; echo $2`
5556 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5557 (eval $ac_compiler --version </dev/null >&5) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }
5561 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5562 (eval $ac_compiler -v </dev/null >&5) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }
5566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5567 (eval $ac_compiler -V </dev/null >&5) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }
5571 rm -f a.out
5573 # If we don't use `.F' as extension, the preprocessor is not run on the
5574 # input file. (Note that this only needs to work for GNU compilers.)
5575 ac_save_ext=$ac_ext
5576 ac_ext=F
5577 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5578 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5579 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 program main
5584 #ifndef __GNUC__
5585 choke me
5586 #endif
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_f77_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_compiler_gnu=yes
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_compiler_gnu=no
5619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5623 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5624 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5625 ac_ext=$ac_save_ext
5626 ac_test_FFLAGS=${FFLAGS+set}
5627 ac_save_FFLAGS=$FFLAGS
5628 FFLAGS=
5629 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5630 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5631 if test "${ac_cv_prog_f77_g+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 FFLAGS=-g
5635 cat >conftest.$ac_ext <<_ACEOF
5636 program main
5639 _ACEOF
5640 rm -f conftest.$ac_objext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try='test -z "$ac_f77_werror_flag"
5650 || test ! -s conftest.err'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; } &&
5656 { ac_try='test -s conftest.$ac_objext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_prog_f77_g=yes
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 ac_cv_prog_f77_g=no
5669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5673 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5674 if test "$ac_test_FFLAGS" = set; then
5675 FFLAGS=$ac_save_FFLAGS
5676 elif test $ac_cv_prog_f77_g = yes; then
5677 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5678 FFLAGS="-g -O2"
5679 else
5680 FFLAGS="-g"
5682 else
5683 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5684 FFLAGS="-O2"
5685 else
5686 FFLAGS=
5690 G77=`test $ac_compiler_gnu = yes && echo yes`
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5701 # find the maximum length of command line arguments
5702 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5703 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5704 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5708 teststring="ABCD"
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5726 cygwin* | mingw*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5737 amigaos*)
5738 # On AmigaOS with pdksh, this test takes hours, literally.
5739 # So we just punt and use a minimum line length of 8192.
5740 lt_cv_sys_max_cmd_len=8192;
5743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5744 # This has been around since 386BSD, at least. Likely further.
5745 if test -x /sbin/sysctl; then
5746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5747 elif test -x /usr/sbin/sysctl; then
5748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5749 else
5750 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5752 # And add a safety zone
5753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5755 osf*)
5756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5758 # nice to cause kernel panics so lets avoid the loop below.
5759 # First set a reasonable default.
5760 lt_cv_sys_max_cmd_len=16384
5762 if test -x /sbin/sysconfig; then
5763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5764 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5765 esac
5769 # If test is not a shell built-in, we'll probably end up computing a
5770 # maximum length that is only half of the actual maximum length, but
5771 # we can't tell.
5772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5773 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5774 = "XX$teststring") >/dev/null 2>&1 &&
5775 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5776 lt_cv_sys_max_cmd_len=$new_result &&
5777 test $i != 17 # 1/2 MB should be enough
5779 i=`expr $i + 1`
5780 teststring=$teststring$teststring
5781 done
5782 teststring=
5783 # Add a significant safety factor because C++ compilers can tack on massive
5784 # amounts of additional arguments before passing them to the linker.
5785 # It appears as though 1/2 is a usable value.
5786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5788 esac
5792 if test -n $lt_cv_sys_max_cmd_len ; then
5793 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5794 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5795 else
5796 echo "$as_me:$LINENO: result: none" >&5
5797 echo "${ECHO_T}none" >&6
5803 # Check for command to grab the raw symbol name followed by C symbol from nm.
5804 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5805 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5806 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5810 # These are sane defaults that work on at least a few old systems.
5811 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5813 # Character class describing NM global symbol codes.
5814 symcode='[BCDEGRST]'
5816 # Regexp to match symbols that can be accessed directly from C.
5817 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5819 # Transform an extracted symbol line into a proper C declaration
5820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5822 # Transform an extracted symbol line into symbol name and symbol address
5823 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'"
5825 # Define system-specific variables.
5826 case $host_os in
5827 aix*)
5828 symcode='[BCDT]'
5830 cygwin* | mingw* | pw32*)
5831 symcode='[ABCDGISTW]'
5833 hpux*) # Its linker distinguishes data from code symbols
5834 if test "$host_cpu" = ia64; then
5835 symcode='[ABCDEGRST]'
5837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5838 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'"
5840 linux*)
5841 if test "$host_cpu" = ia64; then
5842 symcode='[ABCDGIRSTW]'
5843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5844 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'"
5847 irix* | nonstopux*)
5848 symcode='[BCDEGRST]'
5850 osf*)
5851 symcode='[BCDEGQRST]'
5853 solaris* | sysv5*)
5854 symcode='[BDRT]'
5856 sysv4)
5857 symcode='[DFNSTU]'
5859 esac
5861 # Handle CRLF in mingw tool chain
5862 opt_cr=
5863 case $build_os in
5864 mingw*)
5865 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5867 esac
5869 # If we're using GNU nm, then use its standard symbol codes.
5870 case `$NM -V 2>&1` in
5871 *GNU* | *'with BFD'*)
5872 symcode='[ABCDGIRSTW]' ;;
5873 esac
5875 # Try without a prefix undercore, then with it.
5876 for ac_symprfx in "" "_"; do
5878 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5879 symxfrm="\\1 $ac_symprfx\\2 \\2"
5881 # Write the raw and C identifiers.
5882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5884 # Check to see that the pipe works correctly.
5885 pipe_works=no
5887 rm -f conftest*
5888 cat > conftest.$ac_ext <<EOF
5889 #ifdef __cplusplus
5890 extern "C" {
5891 #endif
5892 char nm_test_var;
5893 void nm_test_func(){}
5894 #ifdef __cplusplus
5896 #endif
5897 int main(){nm_test_var='a';nm_test_func();return(0);}
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; then
5905 # Now try to grab the symbols.
5906 nlist=conftest.nm
5907 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5908 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } && test -s "$nlist"; then
5912 # Try sorting and uniquifying the output.
5913 if sort "$nlist" | uniq > "$nlist"T; then
5914 mv -f "$nlist"T "$nlist"
5915 else
5916 rm -f "$nlist"T
5919 # Make sure that we snagged all the symbols we need.
5920 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5921 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5922 cat <<EOF > conftest.$ac_ext
5923 #ifdef __cplusplus
5924 extern "C" {
5925 #endif
5928 # Now generate the symbol file.
5929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5931 cat <<EOF >> conftest.$ac_ext
5932 #if defined (__STDC__) && __STDC__
5933 # define lt_ptr_t void *
5934 #else
5935 # define lt_ptr_t char *
5936 # define const
5937 #endif
5939 /* The mapping between symbol names and symbols. */
5940 const struct {
5941 const char *name;
5942 lt_ptr_t address;
5944 lt_preloaded_symbols[] =
5947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5948 cat <<\EOF >> conftest.$ac_ext
5949 {0, (lt_ptr_t) 0}
5952 #ifdef __cplusplus
5954 #endif
5956 # Now try linking the two files.
5957 mv conftest.$ac_objext conftstm.$ac_objext
5958 lt_save_LIBS="$LIBS"
5959 lt_save_CFLAGS="$CFLAGS"
5960 LIBS="conftstm.$ac_objext"
5961 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5967 pipe_works=yes
5969 LIBS="$lt_save_LIBS"
5970 CFLAGS="$lt_save_CFLAGS"
5971 else
5972 echo "cannot find nm_test_func in $nlist" >&5
5974 else
5975 echo "cannot find nm_test_var in $nlist" >&5
5977 else
5978 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5980 else
5981 echo "$progname: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 rm -f conftest* conftst*
5986 # Do not use the global_symbol_pipe unless it works.
5987 if test "$pipe_works" = yes; then
5988 break
5989 else
5990 lt_cv_sys_global_symbol_pipe=
5992 done
5996 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5997 lt_cv_sys_global_symbol_to_cdecl=
5999 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6000 echo "$as_me:$LINENO: result: failed" >&5
6001 echo "${ECHO_T}failed" >&6
6002 else
6003 echo "$as_me:$LINENO: result: ok" >&5
6004 echo "${ECHO_T}ok" >&6
6007 echo "$as_me:$LINENO: checking for objdir" >&5
6008 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6009 if test "${lt_cv_objdir+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 rm -f .libs 2>/dev/null
6013 mkdir .libs 2>/dev/null
6014 if test -d .libs; then
6015 lt_cv_objdir=.libs
6016 else
6017 # MS-DOS does not allow filenames that begin with a dot.
6018 lt_cv_objdir=_libs
6020 rmdir .libs 2>/dev/null
6022 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6023 echo "${ECHO_T}$lt_cv_objdir" >&6
6024 objdir=$lt_cv_objdir
6030 case $host_os in
6031 aix3*)
6032 # AIX sometimes has problems with the GCC collect2 program. For some
6033 # reason, if we set the COLLECT_NAMES environment variable, the problems
6034 # vanish in a puff of smoke.
6035 if test "X${COLLECT_NAMES+set}" != Xset; then
6036 COLLECT_NAMES=
6037 export COLLECT_NAMES
6040 esac
6042 # Sed substitution that helps us do robust quoting. It backslashifies
6043 # metacharacters that are still active within double-quoted strings.
6044 Xsed='sed -e s/^X//'
6045 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6047 # Same as above, but do not quote variable references.
6048 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6050 # Sed substitution to delay expansion of an escaped shell variable in a
6051 # double_quote_subst'ed string.
6052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6054 # Sed substitution to avoid accidental globbing in evaled expressions
6055 no_glob_subst='s/\*/\\\*/g'
6057 # Constants:
6058 rm="rm -f"
6060 # Global variables:
6061 default_ofile=libtool
6062 can_build_shared=yes
6064 # All known linkers require a `.a' archive for static linking (except M$VC,
6065 # which needs '.lib').
6066 libext=a
6067 ltmain="$ac_aux_dir/ltmain.sh"
6068 ofile="$default_ofile"
6069 with_gnu_ld="$lt_cv_prog_gnu_ld"
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}ar; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="${ac_tool_prefix}ar"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6098 AR=$ac_cv_prog_AR
6099 if test -n "$AR"; then
6100 echo "$as_me:$LINENO: result: $AR" >&5
6101 echo "${ECHO_T}$AR" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6108 if test -z "$ac_cv_prog_AR"; then
6109 ac_ct_AR=$AR
6110 # Extract the first word of "ar", so it can be a program name with args.
6111 set dummy ar; ac_word=$2
6112 echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 if test -n "$ac_ct_AR"; then
6118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_AR="ar"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6134 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6138 if test -n "$ac_ct_AR"; then
6139 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6140 echo "${ECHO_T}$ac_ct_AR" >&6
6141 else
6142 echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6
6146 AR=$ac_ct_AR
6147 else
6148 AR="$ac_cv_prog_AR"
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6154 echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156 if test "${ac_cv_prog_RANLIB+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test -n "$RANLIB"; then
6160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 echo "$as_me:$LINENO: result: $RANLIB" >&5
6181 echo "${ECHO_T}$RANLIB" >&6
6182 else
6183 echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6188 if test -z "$ac_cv_prog_RANLIB"; then
6189 ac_ct_RANLIB=$RANLIB
6190 # Extract the first word of "ranlib", so it can be a program name with args.
6191 set dummy ranlib; ac_word=$2
6192 echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6194 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 if test -n "$ac_ct_RANLIB"; then
6198 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_ac_ct_RANLIB="ranlib"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6211 done
6212 done
6214 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6217 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6218 if test -n "$ac_ct_RANLIB"; then
6219 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6220 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6221 else
6222 echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6226 RANLIB=$ac_ct_RANLIB
6227 else
6228 RANLIB="$ac_cv_prog_RANLIB"
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}strip; ac_word=$2
6234 echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236 if test "${ac_cv_prog_STRIP+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 if test -n "$STRIP"; then
6240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6258 STRIP=$ac_cv_prog_STRIP
6259 if test -n "$STRIP"; then
6260 echo "$as_me:$LINENO: result: $STRIP" >&5
6261 echo "${ECHO_T}$STRIP" >&6
6262 else
6263 echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6268 if test -z "$ac_cv_prog_STRIP"; then
6269 ac_ct_STRIP=$STRIP
6270 # Extract the first word of "strip", so it can be a program name with args.
6271 set dummy strip; ac_word=$2
6272 echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$ac_ct_STRIP"; then
6278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_ac_ct_STRIP="strip"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6294 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6298 if test -n "$ac_ct_STRIP"; then
6299 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6300 echo "${ECHO_T}$ac_ct_STRIP" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6306 STRIP=$ac_ct_STRIP
6307 else
6308 STRIP="$ac_cv_prog_STRIP"
6312 old_CC="$CC"
6313 old_CFLAGS="$CFLAGS"
6315 # Set sane defaults for various variables
6316 test -z "$AR" && AR=ar
6317 test -z "$AR_FLAGS" && AR_FLAGS=cru
6318 test -z "$AS" && AS=as
6319 test -z "$CC" && CC=cc
6320 test -z "$LTCC" && LTCC=$CC
6321 test -z "$DLLTOOL" && DLLTOOL=dlltool
6322 test -z "$LD" && LD=ld
6323 test -z "$LN_S" && LN_S="ln -s"
6324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6325 test -z "$NM" && NM=nm
6326 test -z "$SED" && SED=sed
6327 test -z "$OBJDUMP" && OBJDUMP=objdump
6328 test -z "$RANLIB" && RANLIB=:
6329 test -z "$STRIP" && STRIP=:
6330 test -z "$ac_objext" && ac_objext=o
6332 # Determine commands to create old-style static archives.
6333 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6334 old_postinstall_cmds='chmod 644 $oldlib'
6335 old_postuninstall_cmds=
6337 if test -n "$RANLIB"; then
6338 case $host_os in
6339 openbsd*)
6340 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6343 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6345 esac
6346 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6349 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6351 # Only perform the check for file, if the check method requires it
6352 case $deplibs_check_method in
6353 file_magic*)
6354 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6355 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6356 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 case $MAGIC_CMD in
6361 [\\/*] | ?:[\\/]*)
6362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6365 lt_save_MAGIC_CMD="$MAGIC_CMD"
6366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6368 for ac_dir in $ac_dummy; do
6369 IFS="$lt_save_ifs"
6370 test -z "$ac_dir" && ac_dir=.
6371 if test -f $ac_dir/${ac_tool_prefix}file; then
6372 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6373 if test -n "$file_magic_test_file"; then
6374 case $deplibs_check_method in
6375 "file_magic "*)
6376 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6379 $EGREP "$file_magic_regex" > /dev/null; then
6381 else
6382 cat <<EOF 1>&2
6384 *** Warning: the command libtool uses to detect shared libraries,
6385 *** $file_magic_cmd, produces output that libtool cannot recognize.
6386 *** The result is that libtool may fail to recognize shared libraries
6387 *** as such. This will affect the creation of libtool libraries that
6388 *** depend on shared libraries, but programs linked with such libtool
6389 *** libraries will work regardless of this problem. Nevertheless, you
6390 *** may want to report the problem to your system manager and/or to
6391 *** bug-libtool@gnu.org
6394 fi ;;
6395 esac
6397 break
6399 done
6400 IFS="$lt_save_ifs"
6401 MAGIC_CMD="$lt_save_MAGIC_CMD"
6403 esac
6406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6407 if test -n "$MAGIC_CMD"; then
6408 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6409 echo "${ECHO_T}$MAGIC_CMD" >&6
6410 else
6411 echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6415 if test -z "$lt_cv_path_MAGIC_CMD"; then
6416 if test -n "$ac_tool_prefix"; then
6417 echo "$as_me:$LINENO: checking for file" >&5
6418 echo $ECHO_N "checking for file... $ECHO_C" >&6
6419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 case $MAGIC_CMD in
6423 [\\/*] | ?:[\\/]*)
6424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6427 lt_save_MAGIC_CMD="$MAGIC_CMD"
6428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6430 for ac_dir in $ac_dummy; do
6431 IFS="$lt_save_ifs"
6432 test -z "$ac_dir" && ac_dir=.
6433 if test -f $ac_dir/file; then
6434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6435 if test -n "$file_magic_test_file"; then
6436 case $deplibs_check_method in
6437 "file_magic "*)
6438 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6441 $EGREP "$file_magic_regex" > /dev/null; then
6443 else
6444 cat <<EOF 1>&2
6446 *** Warning: the command libtool uses to detect shared libraries,
6447 *** $file_magic_cmd, produces output that libtool cannot recognize.
6448 *** The result is that libtool may fail to recognize shared libraries
6449 *** as such. This will affect the creation of libtool libraries that
6450 *** depend on shared libraries, but programs linked with such libtool
6451 *** libraries will work regardless of this problem. Nevertheless, you
6452 *** may want to report the problem to your system manager and/or to
6453 *** bug-libtool@gnu.org
6456 fi ;;
6457 esac
6459 break
6461 done
6462 IFS="$lt_save_ifs"
6463 MAGIC_CMD="$lt_save_MAGIC_CMD"
6465 esac
6468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6469 if test -n "$MAGIC_CMD"; then
6470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6471 echo "${ECHO_T}$MAGIC_CMD" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6477 else
6478 MAGIC_CMD=:
6484 esac
6486 enable_dlopen=no
6487 enable_win32_dll=yes
6489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6490 if test "${enable_libtool_lock+set}" = set; then
6491 enableval="$enable_libtool_lock"
6494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6497 # Check whether --with-pic or --without-pic was given.
6498 if test "${with_pic+set}" = set; then
6499 withval="$with_pic"
6500 pic_mode="$withval"
6501 else
6502 pic_mode=default
6504 test -z "$pic_mode" && pic_mode=default
6506 # Use C for the default configuration in the libtool script
6507 tagname=
6508 lt_save_CC="$CC"
6509 ac_ext=c
6510 ac_cpp='$CPP $CPPFLAGS'
6511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516 # Source file extension for C test sources.
6517 ac_ext=c
6519 # Object file extension for compiled C test sources.
6520 objext=o
6521 objext=$objext
6523 # Code to be used in simple compile tests
6524 lt_simple_compile_test_code="int some_variable = 0;\n"
6526 # Code to be used in simple link tests
6527 lt_simple_link_test_code='int main(){return(0);}\n'
6530 # If no C compiler was specified, use CC.
6531 LTCC=${LTCC-"$CC"}
6533 # Allow CC to be a program name with arguments.
6534 compiler=$CC
6538 # Check for any special shared library compilation flags.
6540 lt_prog_cc_shlib=
6541 if test "$GCC" = no; then
6542 case $host_os in
6543 sco3.2v5*)
6544 lt_prog_cc_shlib='-belf'
6546 esac
6548 if test -n "$lt_prog_cc_shlib"; then
6549 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6550 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6551 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6552 else
6553 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6554 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6555 lt_cv_prog_cc_can_build_shared=no
6561 # Check to make sure the static flag actually works.
6563 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6564 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6565 if test "${lt_prog_compiler_static_works+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 lt_prog_compiler_static_works=no
6569 save_LDFLAGS="$LDFLAGS"
6570 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6571 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6573 # The compiler can only warn and ignore the option if not recognized
6574 # So say no if there are warnings
6575 if test -s conftest.err; then
6576 # Append any errors to the config.log.
6577 cat conftest.err 1>&5
6578 else
6579 lt_prog_compiler_static_works=yes
6582 $rm conftest*
6583 LDFLAGS="$save_LDFLAGS"
6586 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6587 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6589 if test x"$lt_prog_compiler_static_works" = xyes; then
6591 else
6592 lt_prog_compiler_static=
6597 ## CAVEAT EMPTOR:
6598 ## There is no encapsulation within the following macros, do not change
6599 ## the running order or otherwise move them around unless you know exactly
6600 ## what you are doing...
6602 lt_prog_compiler_no_builtin_flag=
6604 if test "$GCC" = yes; then
6605 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6608 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6609 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6610 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 lt_cv_prog_compiler_rtti_exceptions=no
6614 ac_outfile=conftest.$ac_objext
6615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6616 lt_compiler_flag="-fno-rtti -fno-exceptions"
6617 # Insert the option either (1) after the last *FLAGS variable, or
6618 # (2) before a word containing "conftest.", or (3) at the end.
6619 # Note that $ac_compile itself does not contain backslashes and begins
6620 # with a dollar sign (not a hyphen), so the echo should work correctly.
6621 # The option is referenced via a variable to avoid confusing sed.
6622 lt_compile=`echo "$ac_compile" | $SED \
6623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6625 -e 's:$: $lt_compiler_flag:'`
6626 (eval echo "\"\$as_me:6626: $lt_compile\"" >&5)
6627 (eval "$lt_compile" 2>conftest.err)
6628 ac_status=$?
6629 cat conftest.err >&5
6630 echo "$as_me:6630: \$? = $ac_status" >&5
6631 if (exit $ac_status) && test -s "$ac_outfile"; then
6632 # The compiler can only warn and ignore the option if not recognized
6633 # So say no if there are warnings
6634 if test ! -s conftest.err; then
6635 lt_cv_prog_compiler_rtti_exceptions=yes
6638 $rm conftest*
6641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6642 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6646 else
6652 lt_prog_compiler_wl=
6653 lt_prog_compiler_pic=
6654 lt_prog_compiler_static=
6656 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6657 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6659 if test "$GCC" = yes; then
6660 lt_prog_compiler_wl='-Wl,'
6661 lt_prog_compiler_static='-static'
6663 case $host_os in
6664 aix*)
6665 # All AIX code is PIC.
6666 if test "$host_cpu" = ia64; then
6667 # AIX 5 now supports IA64 processor
6668 lt_prog_compiler_static='-Bstatic'
6672 amigaos*)
6673 # FIXME: we need at least 68020 code to build shared libraries, but
6674 # adding the `-m68020' flag to GCC prevents building anything better,
6675 # like `-m68040'.
6676 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6679 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6680 # PIC is the default for these OSes.
6683 mingw* | pw32* | os2*)
6684 # This hack is so that the source file can tell whether it is being
6685 # built for inclusion in a dll (and should export symbols for example).
6686 lt_prog_compiler_pic='-DDLL_EXPORT'
6689 darwin* | rhapsody*)
6690 # PIC is the default on this platform
6691 # Common symbols not allowed in MH_DYLIB files
6692 lt_prog_compiler_pic='-fno-common'
6695 msdosdjgpp*)
6696 # Just because we use GCC doesn't mean we suddenly get shared libraries
6697 # on systems that don't support them.
6698 lt_prog_compiler_can_build_shared=no
6699 enable_shared=no
6702 sysv4*MP*)
6703 if test -d /usr/nec; then
6704 lt_prog_compiler_pic=-Kconform_pic
6708 hpux*)
6709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6710 # not for PA HP-UX.
6711 case "$host_cpu" in
6712 hppa*64*|ia64*)
6713 # +Z the default
6716 lt_prog_compiler_pic='-fPIC'
6718 esac
6722 lt_prog_compiler_pic='-fPIC'
6724 esac
6725 else
6726 # PORTME Check for flag to pass linker flags through the system compiler.
6727 case $host_os in
6728 aix*)
6729 lt_prog_compiler_wl='-Wl,'
6730 if test "$host_cpu" = ia64; then
6731 # AIX 5 now supports IA64 processor
6732 lt_prog_compiler_static='-Bstatic'
6733 else
6734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6737 darwin*)
6738 # PIC is the default on this platform
6739 # Common symbols not allowed in MH_DYLIB files
6740 case "$cc_basename" in
6741 xlc*)
6742 lt_prog_compiler_pic='-qnocommon'
6743 lt_prog_compiler_wl='-Wl,'
6745 esac
6748 mingw* | pw32* | os2*)
6749 # This hack is so that the source file can tell whether it is being
6750 # built for inclusion in a dll (and should export symbols for example).
6751 lt_prog_compiler_pic='-DDLL_EXPORT'
6754 hpux9* | hpux10* | hpux11*)
6755 lt_prog_compiler_wl='-Wl,'
6756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6757 # not for PA HP-UX.
6758 case "$host_cpu" in
6759 hppa*64*|ia64*)
6760 # +Z the default
6763 lt_prog_compiler_pic='+Z'
6765 esac
6766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6767 lt_prog_compiler_static='${wl}-a ${wl}archive'
6770 irix5* | irix6* | nonstopux*)
6771 lt_prog_compiler_wl='-Wl,'
6772 # PIC (with -KPIC) is the default.
6773 lt_prog_compiler_static='-non_shared'
6776 newsos6)
6777 lt_prog_compiler_pic='-KPIC'
6778 lt_prog_compiler_static='-Bstatic'
6781 linux*)
6782 case $cc_basename in
6783 icc* | ecc*)
6784 lt_prog_compiler_wl='-Wl,'
6785 lt_prog_compiler_pic='-KPIC'
6786 lt_prog_compiler_static='-static'
6788 pgcc | pgf77 | pgf90)
6789 # Portland Group compilers (*not* the Pentium gcc compiler,
6790 # which looks to be a dead project)
6791 lt_prog_compiler_wl='-Wl,'
6792 lt_prog_compiler_pic='-fpic'
6793 lt_prog_compiler_static='-static'
6795 ccc*)
6796 lt_prog_compiler_wl='-Wl,'
6797 # All Alpha code is PIC.
6798 lt_prog_compiler_static='-non_shared'
6800 como)
6801 lt_prog_compiler_wl='-lopt='
6803 esac
6806 osf3* | osf4* | osf5*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # All OSF/1 code is PIC.
6809 lt_prog_compiler_static='-non_shared'
6812 sco3.2v5*)
6813 lt_prog_compiler_pic='-Kpic'
6814 lt_prog_compiler_static='-dn'
6817 solaris*)
6818 lt_prog_compiler_wl='-Wl,'
6819 lt_prog_compiler_pic='-KPIC'
6820 lt_prog_compiler_static='-Bstatic'
6823 sunos4*)
6824 lt_prog_compiler_wl='-Qoption ld '
6825 lt_prog_compiler_pic='-PIC'
6826 lt_prog_compiler_static='-Bstatic'
6829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6830 lt_prog_compiler_wl='-Wl,'
6831 lt_prog_compiler_pic='-KPIC'
6832 lt_prog_compiler_static='-Bstatic'
6835 sysv4*MP*)
6836 if test -d /usr/nec ;then
6837 lt_prog_compiler_pic='-Kconform_pic'
6838 lt_prog_compiler_static='-Bstatic'
6842 unicos*)
6843 lt_prog_compiler_wl='-Wl,'
6844 lt_prog_compiler_can_build_shared=no
6847 uts4*)
6848 lt_prog_compiler_pic='-pic'
6849 lt_prog_compiler_static='-Bstatic'
6853 lt_prog_compiler_can_build_shared=no
6855 esac
6858 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6859 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6862 # Check to make sure the PIC flag actually works.
6864 if test -n "$lt_prog_compiler_pic"; then
6866 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6867 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6868 if test "${lt_prog_compiler_pic_works+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 lt_prog_compiler_pic_works=no
6872 ac_outfile=conftest.$ac_objext
6873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6874 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6875 # Insert the option either (1) after the last *FLAGS variable, or
6876 # (2) before a word containing "conftest.", or (3) at the end.
6877 # Note that $ac_compile itself does not contain backslashes and begins
6878 # with a dollar sign (not a hyphen), so the echo should work correctly.
6879 # The option is referenced via a variable to avoid confusing sed.
6880 lt_compile=`echo "$ac_compile" | $SED \
6881 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6883 -e 's:$: $lt_compiler_flag:'`
6884 (eval echo "\"\$as_me:6884: $lt_compile\"" >&5)
6885 (eval "$lt_compile" 2>conftest.err)
6886 ac_status=$?
6887 cat conftest.err >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 if (exit $ac_status) && test -s "$ac_outfile"; then
6890 # The compiler can only warn and ignore the option if not recognized
6891 # So say no if there are warnings
6892 if test ! -s conftest.err; then
6893 lt_prog_compiler_pic_works=yes
6896 $rm conftest*
6899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6900 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6902 if test x"$lt_prog_compiler_pic_works" = xyes; then
6903 case $lt_prog_compiler_pic in
6904 "" | " "*) ;;
6905 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6906 esac
6907 else
6908 lt_prog_compiler_pic=
6909 lt_prog_compiler_can_build_shared=no
6913 case "$host_os" in
6914 # For platforms which do not support PIC, -DPIC is meaningless:
6915 *djgpp*)
6916 lt_prog_compiler_pic=
6919 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6921 esac
6923 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6924 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6925 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 lt_cv_prog_compiler_c_o=no
6929 $rm -r conftest 2>/dev/null
6930 mkdir conftest
6931 cd conftest
6932 mkdir out
6933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6935 lt_compiler_flag="-o out/conftest2.$ac_objext"
6936 # Insert the option either (1) after the last *FLAGS variable, or
6937 # (2) before a word containing "conftest.", or (3) at the end.
6938 # Note that $ac_compile itself does not contain backslashes and begins
6939 # with a dollar sign (not a hyphen), so the echo should work correctly.
6940 lt_compile=`echo "$ac_compile" | $SED \
6941 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943 -e 's:$: $lt_compiler_flag:'`
6944 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
6945 (eval "$lt_compile" 2>out/conftest.err)
6946 ac_status=$?
6947 cat out/conftest.err >&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6950 then
6951 # The compiler can only warn and ignore the option if not recognized
6952 # So say no if there are warnings
6953 if test ! -s out/conftest.err; then
6954 lt_cv_prog_compiler_c_o=yes
6957 chmod u+w .
6958 $rm conftest*
6959 # SGI C++ compiler will create directory out/ii_files/ for
6960 # template instantiation
6961 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6962 $rm out/* && rmdir out
6963 cd ..
6964 rmdir conftest
6965 $rm conftest*
6968 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6972 hard_links="nottested"
6973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6974 # do not overwrite the value of need_locks provided by the user
6975 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6976 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6977 hard_links=yes
6978 $rm conftest*
6979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6980 touch conftest.a
6981 ln conftest.a conftest.b 2>&5 || hard_links=no
6982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6983 echo "$as_me:$LINENO: result: $hard_links" >&5
6984 echo "${ECHO_T}$hard_links" >&6
6985 if test "$hard_links" = no; then
6986 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6987 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6988 need_locks=warn
6990 else
6991 need_locks=no
6994 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6997 runpath_var=
6998 allow_undefined_flag=
6999 enable_shared_with_static_runtimes=no
7000 archive_cmds=
7001 archive_expsym_cmds=
7002 old_archive_From_new_cmds=
7003 old_archive_from_expsyms_cmds=
7004 export_dynamic_flag_spec=
7005 whole_archive_flag_spec=
7006 thread_safe_flag_spec=
7007 hardcode_libdir_flag_spec=
7008 hardcode_libdir_flag_spec_ld=
7009 hardcode_libdir_separator=
7010 hardcode_direct=no
7011 hardcode_minus_L=no
7012 hardcode_shlibpath_var=unsupported
7013 link_all_deplibs=unknown
7014 hardcode_automatic=no
7015 module_cmds=
7016 module_expsym_cmds=
7017 always_export_symbols=no
7018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7019 # include_expsyms should be a list of space-separated symbols to be *always*
7020 # included in the symbol list
7021 include_expsyms=
7022 # exclude_expsyms can be an extended regexp of symbols to exclude
7023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7025 # as well as any symbol that contains `d'.
7026 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7028 # platforms (ab)use it in PIC code, but their linkers get confused if
7029 # the symbol is explicitly referenced. Since portable code cannot
7030 # rely on this symbol name, it's probably fine to never include it in
7031 # preloaded symbol tables.
7032 extract_expsyms_cmds=
7034 case $host_os in
7035 cygwin* | mingw* | pw32*)
7036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7037 # When not using gcc, we currently assume that we are using
7038 # Microsoft Visual C++.
7039 if test "$GCC" != yes; then
7040 with_gnu_ld=no
7043 openbsd*)
7044 with_gnu_ld=no
7046 esac
7048 ld_shlibs=yes
7049 if test "$with_gnu_ld" = yes; then
7050 # If archive_cmds runs LD, not CC, wlarc should be empty
7051 wlarc='${wl}'
7053 # See if GNU ld supports shared libraries.
7054 case $host_os in
7055 aix3* | aix4* | aix5*)
7056 # On AIX/PPC, the GNU linker is very broken
7057 if test "$host_cpu" != ia64; then
7058 ld_shlibs=no
7059 cat <<EOF 1>&2
7061 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7062 *** to be unable to reliably create shared libraries on AIX.
7063 *** Therefore, libtool is disabling shared libraries support. If you
7064 *** really care for shared libraries, you may want to modify your PATH
7065 *** so that a non-GNU linker is found, and then restart.
7071 amigaos*)
7072 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)'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_minus_L=yes
7076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7077 # that the semantics of dynamic libraries on AmigaOS, at least up
7078 # to version 4, is to share data among multiple programs linked
7079 # with the same dynamic library. Since this doesn't match the
7080 # behavior of shared libraries on other platforms, we can't use
7081 # them.
7082 ld_shlibs=no
7085 beos*)
7086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7087 allow_undefined_flag=unsupported
7088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7089 # support --undefined. This deserves some investigation. FIXME
7090 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7091 else
7092 ld_shlibs=no
7096 cygwin* | mingw* | pw32*)
7097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7098 # as there is no search path for DLLs.
7099 hardcode_libdir_flag_spec='-L$libdir'
7100 allow_undefined_flag=unsupported
7101 always_export_symbols=no
7102 enable_shared_with_static_runtimes=yes
7103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7107 # If the export-symbols file already is a .def file (1st line
7108 # is EXPORTS), use it as is; otherwise, prepend...
7109 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7110 cp $export_symbols $output_objdir/$soname.def;
7111 else
7112 echo EXPORTS > $output_objdir/$soname.def;
7113 cat $export_symbols >> $output_objdir/$soname.def;
7115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7116 else
7117 ld_shlibs=no
7121 netbsd*)
7122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7124 wlarc=
7125 else
7126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7131 solaris* | sysv5*)
7132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7133 ld_shlibs=no
7134 cat <<EOF 1>&2
7136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7137 *** create shared libraries on Solaris systems. Therefore, libtool
7138 *** is disabling shared libraries support. We urge you to upgrade GNU
7139 *** binutils to release 2.9.1 or newer. Another option is to modify
7140 *** your PATH or compiler configuration so that the native linker is
7141 *** used, and then restart.
7144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7147 else
7148 ld_shlibs=no
7152 sunos4*)
7153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 wlarc=
7155 hardcode_direct=yes
7156 hardcode_shlibpath_var=no
7159 linux*)
7160 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7161 tmp_addflag=
7162 case $CC,$host_cpu in
7163 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7164 tmp_addflag=' -fpic' ;;
7165 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7166 tmp_addflag=' -i_dynamic' ;;
7167 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7168 tmp_addflag=' -i_dynamic -nofor_main' ;;
7169 ifc* | ifort*) # Intel Fortran compiler
7170 tmp_addflag=' -nofor_main' ;;
7171 esac
7172 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7173 supports_anon_versioning=no
7174 case `$LD -v 2>/dev/null` in
7175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7178 *\ 2.11.*) ;; # other 2.11 versions
7179 *) supports_anon_versioning=yes ;;
7180 esac
7181 if test $supports_anon_versioning = yes; then
7182 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7184 $echo "local: *; };" >> $output_objdir/$libname.ver~
7185 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7186 else
7187 archive_expsym_cmds=$archive_cmds
7189 else
7190 ld_shlibs=no
7195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7198 else
7199 ld_shlibs=no
7202 esac
7204 if test "$ld_shlibs" = yes; then
7205 runpath_var=LD_RUN_PATH
7206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7207 export_dynamic_flag_spec='${wl}--export-dynamic'
7208 # ancient GNU ld didn't support --whole-archive et. al.
7209 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7210 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7211 else
7212 whole_archive_flag_spec=
7215 else
7216 # PORTME fill in a description of your system's linker (not GNU ld)
7217 case $host_os in
7218 aix3*)
7219 allow_undefined_flag=unsupported
7220 always_export_symbols=yes
7221 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'
7222 # Note: this linker hardcodes the directories in LIBPATH if there
7223 # are no directories specified by -L.
7224 hardcode_minus_L=yes
7225 if test "$GCC" = yes && test -z "$link_static_flag"; then
7226 # Neither direct hardcoding nor static linking is supported with a
7227 # broken collect2.
7228 hardcode_direct=unsupported
7232 aix4* | aix5*)
7233 if test "$host_cpu" = ia64; then
7234 # On IA64, the linker does run time linking by default, so we don't
7235 # have to do anything special.
7236 aix_use_runtimelinking=no
7237 exp_sym_flag='-Bexport'
7238 no_entry_flag=""
7239 else
7240 # If we're using GNU nm, then we don't want the "-C" option.
7241 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7243 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'
7244 else
7245 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'
7247 aix_use_runtimelinking=no
7249 # Test if we are trying to use run time linking or normal
7250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7251 # need to do runtime linking.
7252 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7253 for ld_flag in $LDFLAGS; do
7254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7255 aix_use_runtimelinking=yes
7256 break
7258 done
7259 esac
7261 exp_sym_flag='-bexport'
7262 no_entry_flag='-bnoentry'
7265 # When large executables or shared objects are built, AIX ld can
7266 # have problems creating the table of contents. If linking a library
7267 # or program results in "error TOC overflow" add -mminimal-toc to
7268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7271 archive_cmds=''
7272 hardcode_direct=yes
7273 hardcode_libdir_separator=':'
7274 link_all_deplibs=yes
7276 if test "$GCC" = yes; then
7277 case $host_os in aix4.[012]|aix4.[012].*)
7278 # We only want to do this on AIX 4.2 and lower, the check
7279 # below for broken collect2 doesn't work under 4.3+
7280 collect2name=`${CC} -print-prog-name=collect2`
7281 if test -f "$collect2name" && \
7282 strings "$collect2name" | grep resolve_lib_name >/dev/null
7283 then
7284 # We have reworked collect2
7285 hardcode_direct=yes
7286 else
7287 # We have old collect2
7288 hardcode_direct=unsupported
7289 # It fails to find uninstalled libraries when the uninstalled
7290 # path is not listed in the libpath. Setting hardcode_minus_L
7291 # to unsupported forces relinking
7292 hardcode_minus_L=yes
7293 hardcode_libdir_flag_spec='-L$libdir'
7294 hardcode_libdir_separator=
7296 esac
7297 shared_flag='-shared'
7298 if test "$aix_use_runtimelinking" = yes; then
7299 shared_flag="$shared_flag "'${wl}-G'
7301 else
7302 # not using gcc
7303 if test "$host_cpu" = ia64; then
7304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7305 # chokes on -Wl,-G. The following line is correct:
7306 shared_flag='-G'
7307 else
7308 if test "$aix_use_runtimelinking" = yes; then
7309 shared_flag='${wl}-G'
7310 else
7311 shared_flag='${wl}-bM:SRE'
7316 # It seems that -bexpall does not export symbols beginning with
7317 # underscore (_), so it is better to generate a list of symbols to export.
7318 always_export_symbols=yes
7319 if test "$aix_use_runtimelinking" = yes; then
7320 # Warning - without using the other runtime loading flags (-brtl),
7321 # -berok will link without error, but may produce a broken library.
7322 allow_undefined_flag='-berok'
7323 # Determine the default libpath from the value encoded in an empty executable.
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7332 main ()
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7364 # Check for a 64-bit object if we didn't find anything.
7365 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; }
7366 }'`; fi
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7372 rm -f conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7377 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"
7378 else
7379 if test "$host_cpu" = ia64; then
7380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7381 allow_undefined_flag="-z nodefs"
7382 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"
7383 else
7384 # Determine the default libpath from the value encoded in an empty executable.
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7393 main ()
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag"
7410 || test ! -s conftest.err'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7425 # Check for a 64-bit object if we didn't find anything.
7426 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; }
7427 }'`; fi
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7438 # Warning - without using the other run time loading flags,
7439 # -berok will link without error, but may produce a broken library.
7440 no_undefined_flag=' ${wl}-bernotok'
7441 allow_undefined_flag=' ${wl}-berok'
7442 # -bexpall does not export symbols beginning with underscore (_)
7443 always_export_symbols=yes
7444 # Exported symbols can be pulled into shared objects from archives
7445 whole_archive_flag_spec=' '
7446 archive_cmds_need_lc=yes
7447 # This is similar to how AIX traditionally builds it's shared libraries.
7448 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'
7453 amigaos*)
7454 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)'
7455 hardcode_libdir_flag_spec='-L$libdir'
7456 hardcode_minus_L=yes
7457 # see comment about different semantics on the GNU ld section
7458 ld_shlibs=no
7461 bsdi[45]*)
7462 export_dynamic_flag_spec=-rdynamic
7465 cygwin* | mingw* | pw32*)
7466 # When not using gcc, we currently assume that we are using
7467 # Microsoft Visual C++.
7468 # hardcode_libdir_flag_spec is actually meaningless, as there is
7469 # no search path for DLLs.
7470 hardcode_libdir_flag_spec=' '
7471 allow_undefined_flag=unsupported
7472 # Tell ltmain to make .lib files, not .a files.
7473 libext=lib
7474 # Tell ltmain to make .dll files, not .so files.
7475 shrext_cmds=".dll"
7476 # FIXME: Setting linknames here is a bad hack.
7477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7478 # The linker will automatically build a .lib file if we build a DLL.
7479 old_archive_From_new_cmds='true'
7480 # FIXME: Should let the user specify the lib program.
7481 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7482 fix_srcfile_path='`cygpath -w "$srcfile"`'
7483 enable_shared_with_static_runtimes=yes
7486 darwin* | rhapsody*)
7487 case "$host_os" in
7488 rhapsody* | darwin1.[012])
7489 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7491 *) # Darwin 1.3 on
7492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7494 else
7495 case ${MACOSX_DEPLOYMENT_TARGET} in
7496 10.[012])
7497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7499 10.*)
7500 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7502 esac
7505 esac
7506 archive_cmds_need_lc=no
7507 hardcode_direct=no
7508 hardcode_automatic=yes
7509 hardcode_shlibpath_var=unsupported
7510 whole_archive_flag_spec=''
7511 link_all_deplibs=yes
7512 if test "$GCC" = yes ; then
7513 output_verbose_link_cmd='echo'
7514 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7517 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7518 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7519 else
7520 case "$cc_basename" in
7521 xlc*)
7522 output_verbose_link_cmd='echo'
7523 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7525 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7526 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7527 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7530 ld_shlibs=no
7532 esac
7536 dgux*)
7537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538 hardcode_libdir_flag_spec='-L$libdir'
7539 hardcode_shlibpath_var=no
7542 freebsd1*)
7543 ld_shlibs=no
7546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7547 # support. Future versions do this automatically, but an explicit c++rt0.o
7548 # does not break anything, and helps significantly (at the cost of a little
7549 # extra space).
7550 freebsd2.2*)
7551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7552 hardcode_libdir_flag_spec='-R$libdir'
7553 hardcode_direct=yes
7554 hardcode_shlibpath_var=no
7557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7558 freebsd2*)
7559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7560 hardcode_direct=yes
7561 hardcode_minus_L=yes
7562 hardcode_shlibpath_var=no
7565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7566 freebsd* | kfreebsd*-gnu | dragonfly*)
7567 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7568 hardcode_libdir_flag_spec='-R$libdir'
7569 hardcode_direct=yes
7570 hardcode_shlibpath_var=no
7573 hpux9*)
7574 if test "$GCC" = yes; then
7575 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'
7576 else
7577 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'
7579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7580 hardcode_libdir_separator=:
7581 hardcode_direct=yes
7583 # hardcode_minus_L: Not really in the search PATH,
7584 # but as the default location of the library.
7585 hardcode_minus_L=yes
7586 export_dynamic_flag_spec='${wl}-E'
7589 hpux10* | hpux11*)
7590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7591 case "$host_cpu" in
7592 hppa*64*|ia64*)
7593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7598 esac
7599 else
7600 case "$host_cpu" in
7601 hppa*64*|ia64*)
7602 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7605 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7607 esac
7609 if test "$with_gnu_ld" = no; then
7610 case "$host_cpu" in
7611 hppa*64*)
7612 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7613 hardcode_libdir_flag_spec_ld='+b $libdir'
7614 hardcode_libdir_separator=:
7615 hardcode_direct=no
7616 hardcode_shlibpath_var=no
7618 ia64*)
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 hardcode_direct=no
7621 hardcode_shlibpath_var=no
7623 # hardcode_minus_L: Not really in the search PATH,
7624 # but as the default location of the library.
7625 hardcode_minus_L=yes
7628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7629 hardcode_libdir_separator=:
7630 hardcode_direct=yes
7631 export_dynamic_flag_spec='${wl}-E'
7633 # hardcode_minus_L: Not really in the search PATH,
7634 # but as the default location of the library.
7635 hardcode_minus_L=yes
7637 esac
7641 irix5* | irix6* | nonstopux*)
7642 if test "$GCC" = yes; then
7643 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'
7644 else
7645 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'
7646 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649 hardcode_libdir_separator=:
7650 link_all_deplibs=yes
7653 netbsd*)
7654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7656 else
7657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7659 hardcode_libdir_flag_spec='-R$libdir'
7660 hardcode_direct=yes
7661 hardcode_shlibpath_var=no
7664 newsos6)
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_direct=yes
7667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7668 hardcode_libdir_separator=:
7669 hardcode_shlibpath_var=no
7672 openbsd*)
7673 hardcode_direct=yes
7674 hardcode_shlibpath_var=no
7675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7679 export_dynamic_flag_spec='${wl}-E'
7680 else
7681 case $host_os in
7682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7684 hardcode_libdir_flag_spec='-R$libdir'
7687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690 esac
7694 os2*)
7695 hardcode_libdir_flag_spec='-L$libdir'
7696 hardcode_minus_L=yes
7697 allow_undefined_flag=unsupported
7698 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'
7699 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7702 osf3*)
7703 if test "$GCC" = yes; then
7704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7705 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'
7706 else
7707 allow_undefined_flag=' -expect_unresolved \*'
7708 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'
7710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7711 hardcode_libdir_separator=:
7714 osf4* | osf5*) # as osf3* with the addition of -msym flag
7715 if test "$GCC" = yes; then
7716 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7717 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'
7718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7719 else
7720 allow_undefined_flag=' -expect_unresolved \*'
7721 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'
7722 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7723 $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'
7725 # Both c and cxx compiler support -rpath directly
7726 hardcode_libdir_flag_spec='-rpath $libdir'
7728 hardcode_libdir_separator=:
7731 sco3.2v5*)
7732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7733 hardcode_shlibpath_var=no
7734 export_dynamic_flag_spec='${wl}-Bexport'
7735 runpath_var=LD_RUN_PATH
7736 hardcode_runpath_var=yes
7739 solaris*)
7740 no_undefined_flag=' -z text'
7741 if test "$GCC" = yes; then
7742 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7744 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7745 else
7746 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7747 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7750 hardcode_libdir_flag_spec='-R$libdir'
7751 hardcode_shlibpath_var=no
7752 case $host_os in
7753 solaris2.[0-5] | solaris2.[0-5].*) ;;
7754 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7756 esac
7757 link_all_deplibs=yes
7760 sunos4*)
7761 if test "x$host_vendor" = xsequent; then
7762 # Use $CC to link under sequent, because it throws in some extra .o
7763 # files that make .init and .fini sections work.
7764 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7765 else
7766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7768 hardcode_libdir_flag_spec='-L$libdir'
7769 hardcode_direct=yes
7770 hardcode_minus_L=yes
7771 hardcode_shlibpath_var=no
7774 sysv4)
7775 case $host_vendor in
7776 sni)
7777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778 hardcode_direct=yes # is this really true???
7780 siemens)
7781 ## LD is ld it makes a PLAMLIB
7782 ## CC just makes a GrossModule.
7783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7784 reload_cmds='$CC -r -o $output$reload_objs'
7785 hardcode_direct=no
7787 motorola)
7788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7791 esac
7792 runpath_var='LD_RUN_PATH'
7793 hardcode_shlibpath_var=no
7796 sysv4.3*)
7797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7798 hardcode_shlibpath_var=no
7799 export_dynamic_flag_spec='-Bexport'
7802 sysv4*MP*)
7803 if test -d /usr/nec; then
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_shlibpath_var=no
7806 runpath_var=LD_RUN_PATH
7807 hardcode_runpath_var=yes
7808 ld_shlibs=yes
7812 sysv4.2uw2*)
7813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7814 hardcode_direct=yes
7815 hardcode_minus_L=no
7816 hardcode_shlibpath_var=no
7817 hardcode_runpath_var=yes
7818 runpath_var=LD_RUN_PATH
7821 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7822 no_undefined_flag='${wl}-z ${wl}text'
7823 if test "$GCC" = yes; then
7824 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7825 else
7826 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7828 runpath_var='LD_RUN_PATH'
7829 hardcode_shlibpath_var=no
7832 sysv5*)
7833 no_undefined_flag=' -z text'
7834 # $CC -shared without GNU ld will not create a library from C++
7835 # object files and a static libstdc++, better avoid it by now
7836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7837 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7839 hardcode_libdir_flag_spec=
7840 hardcode_shlibpath_var=no
7841 runpath_var='LD_RUN_PATH'
7844 uts4*)
7845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_shlibpath_var=no
7851 ld_shlibs=no
7853 esac
7856 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7857 echo "${ECHO_T}$ld_shlibs" >&6
7858 test "$ld_shlibs" = no && can_build_shared=no
7860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7861 if test "$GCC" = yes; then
7862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7866 # Do we need to explicitly link libc?
7868 case "x$archive_cmds_need_lc" in
7869 x|xyes)
7870 # Assume -lc should be added
7871 archive_cmds_need_lc=yes
7873 if test "$enable_shared" = yes && test "$GCC" = yes; then
7874 case $archive_cmds in
7875 *'~'*)
7876 # FIXME: we may have to deal with multi-command sequences.
7878 '$CC '*)
7879 # Test whether the compiler implicitly links with -lc since on some
7880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7881 # to ld, don't add -lc before -lgcc.
7882 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7884 $rm conftest*
7885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } 2>conftest.err; then
7892 soname=conftest
7893 lib=conftest
7894 libobjs=conftest.$ac_objext
7895 deplibs=
7896 wl=$lt_prog_compiler_wl
7897 compiler_flags=-v
7898 linker_flags=-v
7899 verstring=
7900 output_objdir=.
7901 libname=conftest
7902 lt_save_allow_undefined_flag=$allow_undefined_flag
7903 allow_undefined_flag=
7904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7905 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }
7909 then
7910 archive_cmds_need_lc=no
7911 else
7912 archive_cmds_need_lc=yes
7914 allow_undefined_flag=$lt_save_allow_undefined_flag
7915 else
7916 cat conftest.err 1>&5
7918 $rm conftest*
7919 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7920 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7922 esac
7925 esac
7927 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7929 library_names_spec=
7930 libname_spec='lib$name'
7931 soname_spec=
7932 shrext_cmds=".so"
7933 postinstall_cmds=
7934 postuninstall_cmds=
7935 finish_cmds=
7936 finish_eval=
7937 shlibpath_var=
7938 shlibpath_overrides_runpath=unknown
7939 version_type=none
7940 dynamic_linker="$host_os ld.so"
7941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7942 if test "$GCC" = yes; then
7943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7944 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7945 # if the path contains ";" then we assume it to be the separator
7946 # otherwise default to the standard path separator (i.e. ":") - it is
7947 # assumed that no part of a normal pathname contains ";" but that should
7948 # okay in the real world where ";" in dirpaths is itself problematic.
7949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7950 else
7951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7953 else
7954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7956 need_lib_prefix=unknown
7957 hardcode_into_libs=no
7959 # when you set need_version to no, make sure it does not cause -set_version
7960 # flags to be left without arguments
7961 need_version=unknown
7963 case $host_os in
7964 aix3*)
7965 version_type=linux
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7967 shlibpath_var=LIBPATH
7969 # AIX 3 has no versioning support, so we append a major version to the name.
7970 soname_spec='${libname}${release}${shared_ext}$major'
7973 aix4* | aix5*)
7974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
7977 hardcode_into_libs=yes
7978 if test "$host_cpu" = ia64; then
7979 # AIX 5 supports IA64
7980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 else
7983 # With GCC up to 2.95.x, collect2 would create an import file
7984 # for dependence libraries. The import file would start with
7985 # the line `#! .'. This would cause the generated library to
7986 # depend on `.', always an invalid library. This was fixed in
7987 # development snapshots of GCC prior to 3.0.
7988 case $host_os in
7989 aix4 | aix4.[01] | aix4.[01].*)
7990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7991 echo ' yes '
7992 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7994 else
7995 can_build_shared=no
7998 esac
7999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8000 # soname into executable. Probably we can add versioning support to
8001 # collect2, so additional links can be useful in future.
8002 if test "$aix_use_runtimelinking" = yes; then
8003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8004 # instead of lib<name>.a to let people know that these are not
8005 # typical AIX shared libraries.
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8007 else
8008 # We preserve .a as extension for shared libraries through AIX4.2
8009 # and later when we are not doing run time linking.
8010 library_names_spec='${libname}${release}.a $libname.a'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LIBPATH
8017 amigaos*)
8018 library_names_spec='$libname.ixlibrary $libname.a'
8019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8020 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'
8023 beos*)
8024 library_names_spec='${libname}${shared_ext}'
8025 dynamic_linker="$host_os ld.so"
8026 shlibpath_var=LIBRARY_PATH
8029 bsdi[45]*)
8030 version_type=linux
8031 need_version=no
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8038 # the default ld.so.conf also contains /usr/contrib/lib and
8039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8040 # libtool to hard-code these into programs
8043 cygwin* | mingw* | pw32*)
8044 version_type=windows
8045 shrext_cmds=".dll"
8046 need_version=no
8047 need_lib_prefix=no
8049 case $GCC,$host_os in
8050 yes,cygwin* | yes,mingw* | yes,pw32*)
8051 library_names_spec='$libname.dll.a'
8052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8053 postinstall_cmds='base_file=`basename \${file}`~
8054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8055 dldir=$destdir/`dirname \$dlpath`~
8056 test -d \$dldir || mkdir -p \$dldir~
8057 $install_prog $dir/$dlname \$dldir/$dlname'
8058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8059 dlpath=$dir/\$dldll~
8060 $rm \$dlpath'
8061 shlibpath_overrides_runpath=yes
8063 case $host_os in
8064 cygwin*)
8065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8066 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8069 mingw*)
8070 # MinGW DLLs use traditional 'lib' prefix
8071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8074 # It is most probably a Windows format PATH printed by
8075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8076 # path with ; separators, and with drive letters. We can handle the
8077 # drive letters (cygwin fileutils understands them), so leave them,
8078 # especially as we might pass files found there to a mingw objdump,
8079 # which wouldn't understand a cygwinified path. Ahh.
8080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8081 else
8082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8085 pw32*)
8086 # pw32 DLLs use 'pw' prefix rather than 'lib'
8087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8089 esac
8093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8095 esac
8096 dynamic_linker='Win32 ld.exe'
8097 # FIXME: first we should search . and the directory the executable is in
8098 shlibpath_var=PATH
8101 darwin* | rhapsody*)
8102 dynamic_linker="$host_os dyld"
8103 version_type=darwin
8104 need_lib_prefix=no
8105 need_version=no
8106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8107 soname_spec='${libname}${release}${major}$shared_ext'
8108 shlibpath_overrides_runpath=yes
8109 shlibpath_var=DYLD_LIBRARY_PATH
8110 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8112 if test "$GCC" = yes; then
8113 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8114 else
8115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8120 dgux*)
8121 version_type=linux
8122 need_lib_prefix=no
8123 need_version=no
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8125 soname_spec='${libname}${release}${shared_ext}$major'
8126 shlibpath_var=LD_LIBRARY_PATH
8129 freebsd1*)
8130 dynamic_linker=no
8133 kfreebsd*-gnu)
8134 version_type=linux
8135 need_lib_prefix=no
8136 need_version=no
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8138 soname_spec='${libname}${release}${shared_ext}$major'
8139 shlibpath_var=LD_LIBRARY_PATH
8140 shlibpath_overrides_runpath=no
8141 hardcode_into_libs=yes
8142 dynamic_linker='GNU ld.so'
8145 freebsd* | dragonfly*)
8146 # DragonFly does not have aout. When/if they implement a new
8147 # versioning mechanism, adjust this.
8148 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8149 version_type=freebsd-$objformat
8150 case $version_type in
8151 freebsd-elf*)
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8153 need_version=no
8154 need_lib_prefix=no
8156 freebsd-*)
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8158 need_version=yes
8160 esac
8161 shlibpath_var=LD_LIBRARY_PATH
8162 case $host_os in
8163 freebsd2*)
8164 shlibpath_overrides_runpath=yes
8166 freebsd3.[01]* | freebsdelf3.[01]*)
8167 shlibpath_overrides_runpath=yes
8168 hardcode_into_libs=yes
8170 *) # from 3.2 on
8171 shlibpath_overrides_runpath=no
8172 hardcode_into_libs=yes
8174 esac
8177 gnu*)
8178 version_type=linux
8179 need_lib_prefix=no
8180 need_version=no
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 shlibpath_var=LD_LIBRARY_PATH
8184 hardcode_into_libs=yes
8187 hpux9* | hpux10* | hpux11*)
8188 # Give a soname corresponding to the major version so that dld.sl refuses to
8189 # link against other versions.
8190 version_type=sunos
8191 need_lib_prefix=no
8192 need_version=no
8193 case "$host_cpu" in
8194 ia64*)
8195 shrext_cmds='.so'
8196 hardcode_into_libs=yes
8197 dynamic_linker="$host_os dld.so"
8198 shlibpath_var=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8201 soname_spec='${libname}${release}${shared_ext}$major'
8202 if test "X$HPUX_IA64_MODE" = X32; then
8203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8204 else
8205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8209 hppa*64*)
8210 shrext_cmds='.sl'
8211 hardcode_into_libs=yes
8212 dynamic_linker="$host_os dld.sl"
8213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8221 shrext_cmds='.sl'
8222 dynamic_linker="$host_os dld.sl"
8223 shlibpath_var=SHLIB_PATH
8224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226 soname_spec='${libname}${release}${shared_ext}$major'
8228 esac
8229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8230 postinstall_cmds='chmod 555 $lib'
8233 irix5* | irix6* | nonstopux*)
8234 case $host_os in
8235 nonstopux*) version_type=nonstopux ;;
8237 if test "$lt_cv_prog_gnu_ld" = yes; then
8238 version_type=linux
8239 else
8240 version_type=irix
8241 fi ;;
8242 esac
8243 need_lib_prefix=no
8244 need_version=no
8245 soname_spec='${libname}${release}${shared_ext}$major'
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8247 case $host_os in
8248 irix5* | nonstopux*)
8249 libsuff= shlibsuff=
8252 case $LD in # libtool.m4 will add one of these switches to LD
8253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8254 libsuff= shlibsuff= libmagic=32-bit;;
8255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8256 libsuff=32 shlibsuff=N32 libmagic=N32;;
8257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8259 *) libsuff= shlibsuff= libmagic=never-match;;
8260 esac
8262 esac
8263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8264 shlibpath_overrides_runpath=no
8265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8267 hardcode_into_libs=yes
8270 # No shared lib support for Linux oldld, aout, or coff.
8271 linux*oldld* | linux*aout* | linux*coff*)
8272 dynamic_linker=no
8275 # This must be Linux ELF.
8276 linux*)
8277 version_type=linux
8278 need_lib_prefix=no
8279 need_version=no
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 soname_spec='${libname}${release}${shared_ext}$major'
8282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=no
8285 # This implies no fast_install, which is unacceptable.
8286 # Some rework will be needed to allow for fast_install
8287 # before this can be enabled.
8288 hardcode_into_libs=yes
8290 # Append ld.so.conf contents to the search path
8291 if test -f /etc/ld.so.conf; then
8292 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8296 # We used to test for /lib/ld.so.1 and disable shared libraries on
8297 # powerpc, because MkLinux only supported shared libraries with the
8298 # GNU dynamic linker. Since this was broken with cross compilers,
8299 # most powerpc-linux boxes support dynamic linking these days and
8300 # people can always --disable-shared, the test was removed, and we
8301 # assume the GNU/Linux dynamic linker is in use.
8302 dynamic_linker='GNU/Linux ld.so'
8305 knetbsd*-gnu)
8306 version_type=linux
8307 need_lib_prefix=no
8308 need_version=no
8309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8310 soname_spec='${libname}${release}${shared_ext}$major'
8311 shlibpath_var=LD_LIBRARY_PATH
8312 shlibpath_overrides_runpath=no
8313 hardcode_into_libs=yes
8314 dynamic_linker='GNU ld.so'
8317 netbsd*)
8318 version_type=sunos
8319 need_lib_prefix=no
8320 need_version=no
8321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8324 dynamic_linker='NetBSD (a.out) ld.so'
8325 else
8326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8327 soname_spec='${libname}${release}${shared_ext}$major'
8328 dynamic_linker='NetBSD ld.elf_so'
8330 shlibpath_var=LD_LIBRARY_PATH
8331 shlibpath_overrides_runpath=yes
8332 hardcode_into_libs=yes
8335 newsos6)
8336 version_type=linux
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8338 shlibpath_var=LD_LIBRARY_PATH
8339 shlibpath_overrides_runpath=yes
8342 nto-qnx*)
8343 version_type=linux
8344 need_lib_prefix=no
8345 need_version=no
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347 soname_spec='${libname}${release}${shared_ext}$major'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 shlibpath_overrides_runpath=yes
8352 openbsd*)
8353 version_type=sunos
8354 need_lib_prefix=no
8355 need_version=no
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8360 case $host_os in
8361 openbsd2.[89] | openbsd2.[89].*)
8362 shlibpath_overrides_runpath=no
8365 shlibpath_overrides_runpath=yes
8367 esac
8368 else
8369 shlibpath_overrides_runpath=yes
8373 os2*)
8374 libname_spec='$name'
8375 shrext_cmds=".dll"
8376 need_lib_prefix=no
8377 library_names_spec='$libname${shared_ext} $libname.a'
8378 dynamic_linker='OS/2 ld.exe'
8379 shlibpath_var=LIBPATH
8382 osf3* | osf4* | osf5*)
8383 version_type=osf
8384 need_lib_prefix=no
8385 need_version=no
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8393 sco3.2v5*)
8394 version_type=osf
8395 soname_spec='${libname}${release}${shared_ext}$major'
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397 shlibpath_var=LD_LIBRARY_PATH
8400 solaris*)
8401 version_type=linux
8402 need_lib_prefix=no
8403 need_version=no
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405 soname_spec='${libname}${release}${shared_ext}$major'
8406 shlibpath_var=LD_LIBRARY_PATH
8407 shlibpath_overrides_runpath=yes
8408 hardcode_into_libs=yes
8409 # ldd complains unless libraries are executable
8410 postinstall_cmds='chmod +x $lib'
8413 sunos4*)
8414 version_type=sunos
8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8417 shlibpath_var=LD_LIBRARY_PATH
8418 shlibpath_overrides_runpath=yes
8419 if test "$with_gnu_ld" = yes; then
8420 need_lib_prefix=no
8422 need_version=yes
8425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8426 version_type=linux
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 shlibpath_var=LD_LIBRARY_PATH
8430 case $host_vendor in
8431 sni)
8432 shlibpath_overrides_runpath=no
8433 need_lib_prefix=no
8434 export_dynamic_flag_spec='${wl}-Blargedynsym'
8435 runpath_var=LD_RUN_PATH
8437 siemens)
8438 need_lib_prefix=no
8440 motorola)
8441 need_lib_prefix=no
8442 need_version=no
8443 shlibpath_overrides_runpath=no
8444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8446 esac
8449 sysv4*MP*)
8450 if test -d /usr/nec ;then
8451 version_type=linux
8452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453 soname_spec='$libname${shared_ext}.$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8458 uts4*)
8459 version_type=linux
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461 soname_spec='${libname}${release}${shared_ext}$major'
8462 shlibpath_var=LD_LIBRARY_PATH
8466 dynamic_linker=no
8468 esac
8469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8470 echo "${ECHO_T}$dynamic_linker" >&6
8471 test "$dynamic_linker" = no && can_build_shared=no
8473 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8474 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8475 hardcode_action=
8476 if test -n "$hardcode_libdir_flag_spec" || \
8477 test -n "$runpath_var" || \
8478 test "X$hardcode_automatic" = "Xyes" ; then
8480 # We can hardcode non-existant directories.
8481 if test "$hardcode_direct" != no &&
8482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8483 # have to relink, otherwise we might link with an installed library
8484 # when we should be linking with a yet-to-be-installed one
8485 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8486 test "$hardcode_minus_L" != no; then
8487 # Linking always hardcodes the temporary library directory.
8488 hardcode_action=relink
8489 else
8490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8491 hardcode_action=immediate
8493 else
8494 # We cannot hardcode anything, or else we can only hardcode existing
8495 # directories.
8496 hardcode_action=unsupported
8498 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8499 echo "${ECHO_T}$hardcode_action" >&6
8501 if test "$hardcode_action" = relink; then
8502 # Fast installation is not supported
8503 enable_fast_install=no
8504 elif test "$shlibpath_overrides_runpath" = yes ||
8505 test "$enable_shared" = no; then
8506 # Fast installation is not necessary
8507 enable_fast_install=needless
8510 striplib=
8511 old_striplib=
8512 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8513 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8514 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8515 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8516 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8517 echo "$as_me:$LINENO: result: yes" >&5
8518 echo "${ECHO_T}yes" >&6
8519 else
8520 # FIXME - insert some real tests, host_os isn't really good enough
8521 case $host_os in
8522 darwin*)
8523 if test -n "$STRIP" ; then
8524 striplib="$STRIP -x"
8525 echo "$as_me:$LINENO: result: yes" >&5
8526 echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8533 echo "$as_me:$LINENO: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8536 esac
8539 if test "x$enable_dlopen" != xyes; then
8540 enable_dlopen=unknown
8541 enable_dlopen_self=unknown
8542 enable_dlopen_self_static=unknown
8543 else
8544 lt_cv_dlopen=no
8545 lt_cv_dlopen_libs=
8547 case $host_os in
8548 beos*)
8549 lt_cv_dlopen="load_add_on"
8550 lt_cv_dlopen_libs=
8551 lt_cv_dlopen_self=yes
8554 mingw* | pw32*)
8555 lt_cv_dlopen="LoadLibrary"
8556 lt_cv_dlopen_libs=
8559 cygwin*)
8560 lt_cv_dlopen="dlopen"
8561 lt_cv_dlopen_libs=
8564 darwin*)
8565 # if libdl is installed we need to link against it
8566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-ldl $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char dlopen ();
8588 main ()
8590 dlopen ();
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_dl_dlopen=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_dl_dlopen=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8630 if test $ac_cv_lib_dl_dlopen = yes; then
8631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8632 else
8634 lt_cv_dlopen="dyld"
8635 lt_cv_dlopen_libs=
8636 lt_cv_dlopen_self=yes
8643 echo "$as_me:$LINENO: checking for shl_load" >&5
8644 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8645 if test "${ac_cv_func_shl_load+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656 #define shl_load innocuous_shl_load
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char shl_load (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8669 #undef shl_load
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 #ifdef __cplusplus
8673 extern "C"
8675 #endif
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8678 char shl_load ();
8679 /* The GNU C library defines this for functions which it implements
8680 to always fail with ENOSYS. Some functions are actually named
8681 something starting with __ and the normal name is an alias. */
8682 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8683 choke me
8684 #else
8685 char (*f) () = shl_load;
8686 #endif
8687 #ifdef __cplusplus
8689 #endif
8692 main ()
8694 return f != shl_load;
8696 return 0;
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -z "$ac_c_werror_flag"
8709 || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try='test -s conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_func_shl_load=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_cv_func_shl_load=no
8728 rm -f conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8733 if test $ac_cv_func_shl_load = yes; then
8734 lt_cv_dlopen="shl_load"
8735 else
8736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-ldld $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8756 char shl_load ();
8758 main ()
8760 shl_load ();
8762 return 0;
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest$ac_exeext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_lib_dld_shl_load=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_cv_lib_dld_shl_load=no
8794 rm -f conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 LIBS=$ac_check_lib_save_LIBS
8798 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8799 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8800 if test $ac_cv_lib_dld_shl_load = yes; then
8801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8802 else
8803 echo "$as_me:$LINENO: checking for dlopen" >&5
8804 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8805 if test "${ac_cv_func_dlopen+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8816 #define dlopen innocuous_dlopen
8818 /* System header to define __stub macros and hopefully few prototypes,
8819 which can conflict with char dlopen (); below.
8820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8821 <limits.h> exists even on freestanding compilers. */
8823 #ifdef __STDC__
8824 # include <limits.h>
8825 #else
8826 # include <assert.h>
8827 #endif
8829 #undef dlopen
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 #ifdef __cplusplus
8833 extern "C"
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8838 char dlopen ();
8839 /* The GNU C library defines this for functions which it implements
8840 to always fail with ENOSYS. Some functions are actually named
8841 something starting with __ and the normal name is an alias. */
8842 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8843 choke me
8844 #else
8845 char (*f) () = dlopen;
8846 #endif
8847 #ifdef __cplusplus
8849 #endif
8852 main ()
8854 return f != dlopen;
8856 return 0;
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>conftest.er1
8862 ac_status=$?
8863 grep -v '^ *+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -z "$ac_c_werror_flag"
8869 || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_func_dlopen=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_func_dlopen=no
8888 rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8892 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8893 if test $ac_cv_func_dlopen = yes; then
8894 lt_cv_dlopen="dlopen"
8895 else
8896 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 ac_check_lib_save_LIBS=$LIBS
8902 LIBS="-ldl $LIBS"
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char dlopen ();
8918 main ()
8920 dlopen ();
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_lib_dl_dlopen=yes
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8952 ac_cv_lib_dl_dlopen=no
8954 rm -f conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8960 if test $ac_cv_lib_dl_dlopen = yes; then
8961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8962 else
8963 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 ac_check_lib_save_LIBS=$LIBS
8969 LIBS="-lsvld $LIBS"
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8977 /* Override any gcc2 internal prototype to avoid an error. */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8983 char dlopen ();
8985 main ()
8987 dlopen ();
8989 return 0;
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_lib_svld_dlopen=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_cv_lib_svld_dlopen=no
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9025 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9026 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9027 if test $ac_cv_lib_svld_dlopen = yes; then
9028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9029 else
9030 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9031 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 ac_check_lib_save_LIBS=$LIBS
9036 LIBS="-ldld $LIBS"
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9050 char dld_link ();
9052 main ()
9054 dld_link ();
9056 return 0;
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_lib_dld_dld_link=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_lib_dld_dld_link=no
9088 rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9093 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9094 if test $ac_cv_lib_dld_dld_link = yes; then
9095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9114 esac
9116 if test "x$lt_cv_dlopen" != xno; then
9117 enable_dlopen=yes
9118 else
9119 enable_dlopen=no
9122 case $lt_cv_dlopen in
9123 dlopen)
9124 save_CPPFLAGS="$CPPFLAGS"
9125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9127 save_LDFLAGS="$LDFLAGS"
9128 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9130 save_LIBS="$LIBS"
9131 LIBS="$lt_cv_dlopen_libs $LIBS"
9133 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9134 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9135 if test "${lt_cv_dlopen_self+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 if test "$cross_compiling" = yes; then :
9139 lt_cv_dlopen_self=cross
9140 else
9141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9142 lt_status=$lt_dlunknown
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9144 "configure"
9145 #include "confdefs.h"
9147 #if HAVE_DLFCN_H
9148 #include <dlfcn.h>
9149 #endif
9151 #include <stdio.h>
9153 #ifdef RTLD_GLOBAL
9154 # define LT_DLGLOBAL RTLD_GLOBAL
9155 #else
9156 # ifdef DL_GLOBAL
9157 # define LT_DLGLOBAL DL_GLOBAL
9158 # else
9159 # define LT_DLGLOBAL 0
9160 # endif
9161 #endif
9163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9164 find out it does not work in some platform. */
9165 #ifndef LT_DLLAZY_OR_NOW
9166 # ifdef RTLD_LAZY
9167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9168 # else
9169 # ifdef DL_LAZY
9170 # define LT_DLLAZY_OR_NOW DL_LAZY
9171 # else
9172 # ifdef RTLD_NOW
9173 # define LT_DLLAZY_OR_NOW RTLD_NOW
9174 # else
9175 # ifdef DL_NOW
9176 # define LT_DLLAZY_OR_NOW DL_NOW
9177 # else
9178 # define LT_DLLAZY_OR_NOW 0
9179 # endif
9180 # endif
9181 # endif
9182 # endif
9183 #endif
9185 #ifdef __cplusplus
9186 extern "C" void exit (int);
9187 #endif
9189 void fnord() { int i=42;}
9190 int main ()
9192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9193 int status = $lt_dlunknown;
9195 if (self)
9197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9199 /* dlclose (self); */
9202 exit (status);
9205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206 (eval $ac_link) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9210 (./conftest; exit; ) 2>/dev/null
9211 lt_status=$?
9212 case x$lt_status in
9213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9215 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9216 esac
9217 else :
9218 # compilation failed
9219 lt_cv_dlopen_self=no
9222 rm -fr conftest*
9226 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9227 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9229 if test "x$lt_cv_dlopen_self" = xyes; then
9230 LDFLAGS="$LDFLAGS $link_static_flag"
9231 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9232 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9233 if test "${lt_cv_dlopen_self_static+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 if test "$cross_compiling" = yes; then :
9237 lt_cv_dlopen_self_static=cross
9238 else
9239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9240 lt_status=$lt_dlunknown
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9242 "configure"
9243 #include "confdefs.h"
9245 #if HAVE_DLFCN_H
9246 #include <dlfcn.h>
9247 #endif
9249 #include <stdio.h>
9251 #ifdef RTLD_GLOBAL
9252 # define LT_DLGLOBAL RTLD_GLOBAL
9253 #else
9254 # ifdef DL_GLOBAL
9255 # define LT_DLGLOBAL DL_GLOBAL
9256 # else
9257 # define LT_DLGLOBAL 0
9258 # endif
9259 #endif
9261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9262 find out it does not work in some platform. */
9263 #ifndef LT_DLLAZY_OR_NOW
9264 # ifdef RTLD_LAZY
9265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9266 # else
9267 # ifdef DL_LAZY
9268 # define LT_DLLAZY_OR_NOW DL_LAZY
9269 # else
9270 # ifdef RTLD_NOW
9271 # define LT_DLLAZY_OR_NOW RTLD_NOW
9272 # else
9273 # ifdef DL_NOW
9274 # define LT_DLLAZY_OR_NOW DL_NOW
9275 # else
9276 # define LT_DLLAZY_OR_NOW 0
9277 # endif
9278 # endif
9279 # endif
9280 # endif
9281 #endif
9283 #ifdef __cplusplus
9284 extern "C" void exit (int);
9285 #endif
9287 void fnord() { int i=42;}
9288 int main ()
9290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9291 int status = $lt_dlunknown;
9293 if (self)
9295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9297 /* dlclose (self); */
9300 exit (status);
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9308 (./conftest; exit; ) 2>/dev/null
9309 lt_status=$?
9310 case x$lt_status in
9311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9313 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9314 esac
9315 else :
9316 # compilation failed
9317 lt_cv_dlopen_self_static=no
9320 rm -fr conftest*
9324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9328 CPPFLAGS="$save_CPPFLAGS"
9329 LDFLAGS="$save_LDFLAGS"
9330 LIBS="$save_LIBS"
9332 esac
9334 case $lt_cv_dlopen_self in
9335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9336 *) enable_dlopen_self=unknown ;;
9337 esac
9339 case $lt_cv_dlopen_self_static in
9340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9341 *) enable_dlopen_self_static=unknown ;;
9342 esac
9346 # Report which librarie types wil actually be built
9347 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9348 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9349 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9350 echo "${ECHO_T}$can_build_shared" >&6
9352 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9353 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9354 test "$can_build_shared" = "no" && enable_shared=no
9356 # On AIX, shared libraries and static libraries use the same namespace, and
9357 # are all built from PIC.
9358 case "$host_os" in
9359 aix3*)
9360 test "$enable_shared" = yes && enable_static=no
9361 if test -n "$RANLIB"; then
9362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9363 postinstall_cmds='$RANLIB $lib'
9367 aix4* | aix5*)
9368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9369 test "$enable_shared" = yes && enable_static=no
9372 esac
9373 echo "$as_me:$LINENO: result: $enable_shared" >&5
9374 echo "${ECHO_T}$enable_shared" >&6
9376 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9378 # Make sure either enable_shared or enable_static is yes.
9379 test "$enable_shared" = yes || enable_static=yes
9380 echo "$as_me:$LINENO: result: $enable_static" >&5
9381 echo "${ECHO_T}$enable_static" >&6
9383 # The else clause should only fire when bootstrapping the
9384 # libtool distribution, otherwise you forgot to ship ltmain.sh
9385 # with your package, and you will get complaints that there are
9386 # no rules to generate ltmain.sh.
9387 if test -f "$ltmain"; then
9388 # See if we are running on zsh, and set the options which allow our commands through
9389 # without removal of \ escapes.
9390 if test -n "${ZSH_VERSION+set}" ; then
9391 setopt NO_GLOB_SUBST
9393 # Now quote all the things that may contain metacharacters while being
9394 # careful not to overquote the AC_SUBSTed values. We take copies of the
9395 # variables and quote the copies for generation of the libtool script.
9396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9397 SED SHELL STRIP \
9398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9400 deplibs_check_method reload_flag reload_cmds need_locks \
9401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9402 lt_cv_sys_global_symbol_to_c_name_address \
9403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9404 old_postinstall_cmds old_postuninstall_cmds \
9405 compiler \
9406 CC \
9407 LD \
9408 lt_prog_compiler_wl \
9409 lt_prog_compiler_pic \
9410 lt_prog_compiler_static \
9411 lt_prog_compiler_no_builtin_flag \
9412 export_dynamic_flag_spec \
9413 thread_safe_flag_spec \
9414 whole_archive_flag_spec \
9415 enable_shared_with_static_runtimes \
9416 old_archive_cmds \
9417 old_archive_from_new_cmds \
9418 predep_objects \
9419 postdep_objects \
9420 predeps \
9421 postdeps \
9422 compiler_lib_search_path \
9423 archive_cmds \
9424 archive_expsym_cmds \
9425 postinstall_cmds \
9426 postuninstall_cmds \
9427 old_archive_from_expsyms_cmds \
9428 allow_undefined_flag \
9429 no_undefined_flag \
9430 export_symbols_cmds \
9431 hardcode_libdir_flag_spec \
9432 hardcode_libdir_flag_spec_ld \
9433 hardcode_libdir_separator \
9434 hardcode_automatic \
9435 module_cmds \
9436 module_expsym_cmds \
9437 lt_cv_prog_compiler_c_o \
9438 exclude_expsyms \
9439 include_expsyms; do
9441 case $var in
9442 old_archive_cmds | \
9443 old_archive_from_new_cmds | \
9444 archive_cmds | \
9445 archive_expsym_cmds | \
9446 module_cmds | \
9447 module_expsym_cmds | \
9448 old_archive_from_expsyms_cmds | \
9449 export_symbols_cmds | \
9450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9451 postinstall_cmds | postuninstall_cmds | \
9452 old_postinstall_cmds | old_postuninstall_cmds | \
9453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9454 # Double-quote double-evaled strings.
9455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9460 esac
9461 done
9463 case $lt_echo in
9464 *'\$0 --fallback-echo"')
9465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9467 esac
9469 cfgfile="${ofile}T"
9470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9471 $rm -f "$cfgfile"
9472 { echo "$as_me:$LINENO: creating $ofile" >&5
9473 echo "$as_me: creating $ofile" >&6;}
9475 cat <<__EOF__ >> "$cfgfile"
9476 #! $SHELL
9478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9483 # Free Software Foundation, Inc.
9485 # This file is part of GNU Libtool:
9486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9488 # This program is free software; you can redistribute it and/or modify
9489 # it under the terms of the GNU General Public License as published by
9490 # the Free Software Foundation; either version 2 of the License, or
9491 # (at your option) any later version.
9493 # This program is distributed in the hope that it will be useful, but
9494 # WITHOUT ANY WARRANTY; without even the implied warranty of
9495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9496 # General Public License for more details.
9498 # You should have received a copy of the GNU General Public License
9499 # along with this program; if not, write to the Free Software
9500 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9502 # As a special exception to the GNU General Public License, if you
9503 # distribute this file as part of a program that contains a
9504 # configuration script generated by Autoconf, you may include it under
9505 # the same distribution terms that you use for the rest of that program.
9507 # A sed program that does not truncate output.
9508 SED=$lt_SED
9510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9511 Xsed="$SED -e s/^X//"
9513 # The HP-UX ksh and POSIX shell print the target directory to stdout
9514 # if CDPATH is set.
9515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9517 # The names of the tagged configurations supported by this script.
9518 available_tags=
9520 # ### BEGIN LIBTOOL CONFIG
9522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9524 # Shell to use when invoking shell scripts.
9525 SHELL=$lt_SHELL
9527 # Whether or not to build shared libraries.
9528 build_libtool_libs=$enable_shared
9530 # Whether or not to build static libraries.
9531 build_old_libs=$enable_static
9533 # Whether or not to add -lc for building shared libraries.
9534 build_libtool_need_lc=$archive_cmds_need_lc
9536 # Whether or not to disallow shared libs when runtime libs are static
9537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9539 # Whether or not to optimize for fast installation.
9540 fast_install=$enable_fast_install
9542 # The host system.
9543 host_alias=$host_alias
9544 host=$host
9545 host_os=$host_os
9547 # The build system.
9548 build_alias=$build_alias
9549 build=$build
9550 build_os=$build_os
9552 # An echo program that does not interpret backslashes.
9553 echo=$lt_echo
9555 # The archiver.
9556 AR=$lt_AR
9557 AR_FLAGS=$lt_AR_FLAGS
9559 # A C compiler.
9560 LTCC=$lt_LTCC
9562 # A language-specific compiler.
9563 CC=$lt_compiler
9565 # Is the compiler the GNU C compiler?
9566 with_gcc=$GCC
9568 # An ERE matcher.
9569 EGREP=$lt_EGREP
9571 # The linker used to build libraries.
9572 LD=$lt_LD
9574 # Whether we need hard or soft links.
9575 LN_S=$lt_LN_S
9577 # A BSD-compatible nm program.
9578 NM=$lt_NM
9580 # A symbol stripping program
9581 STRIP=$lt_STRIP
9583 # Used to examine libraries when file_magic_cmd begins "file"
9584 MAGIC_CMD=$MAGIC_CMD
9586 # Used on cygwin: DLL creation program.
9587 DLLTOOL="$DLLTOOL"
9589 # Used on cygwin: object dumper.
9590 OBJDUMP="$OBJDUMP"
9592 # Used on cygwin: assembler.
9593 AS="$AS"
9595 # The name of the directory that contains temporary libtool files.
9596 objdir=$objdir
9598 # How to create reloadable object files.
9599 reload_flag=$lt_reload_flag
9600 reload_cmds=$lt_reload_cmds
9602 # How to pass a linker flag through the compiler.
9603 wl=$lt_lt_prog_compiler_wl
9605 # Object file suffix (normally "o").
9606 objext="$ac_objext"
9608 # Old archive suffix (normally "a").
9609 libext="$libext"
9611 # Shared library suffix (normally ".so").
9612 shrext_cmds='$shrext_cmds'
9614 # Executable file suffix (normally "").
9615 exeext="$exeext"
9617 # Additional compiler flags for building library objects.
9618 pic_flag=$lt_lt_prog_compiler_pic
9619 pic_mode=$pic_mode
9621 # What is the maximum length of a command?
9622 max_cmd_len=$lt_cv_sys_max_cmd_len
9624 # Does compiler simultaneously support -c and -o options?
9625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9627 # Must we lock files when doing compilation ?
9628 need_locks=$lt_need_locks
9630 # Do we need the lib prefix for modules?
9631 need_lib_prefix=$need_lib_prefix
9633 # Do we need a version for libraries?
9634 need_version=$need_version
9636 # Whether dlopen is supported.
9637 dlopen_support=$enable_dlopen
9639 # Whether dlopen of programs is supported.
9640 dlopen_self=$enable_dlopen_self
9642 # Whether dlopen of statically linked programs is supported.
9643 dlopen_self_static=$enable_dlopen_self_static
9645 # Compiler flag to prevent dynamic linking.
9646 link_static_flag=$lt_lt_prog_compiler_static
9648 # Compiler flag to turn off builtin functions.
9649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9651 # Compiler flag to allow reflexive dlopens.
9652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9654 # Compiler flag to generate shared objects directly from archives.
9655 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9657 # Compiler flag to generate thread-safe objects.
9658 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9660 # Library versioning type.
9661 version_type=$version_type
9663 # Format of library name prefix.
9664 libname_spec=$lt_libname_spec
9666 # List of archive names. First name is the real one, the rest are links.
9667 # The last name is the one that the linker finds with -lNAME.
9668 library_names_spec=$lt_library_names_spec
9670 # The coded name of the library, if different from the real name.
9671 soname_spec=$lt_soname_spec
9673 # Commands used to build and install an old-style archive.
9674 RANLIB=$lt_RANLIB
9675 old_archive_cmds=$lt_old_archive_cmds
9676 old_postinstall_cmds=$lt_old_postinstall_cmds
9677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9679 # Create an old-style archive from a shared archive.
9680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9682 # Create a temporary old-style archive to link instead of a shared archive.
9683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9685 # Commands used to build and install a shared archive.
9686 archive_cmds=$lt_archive_cmds
9687 archive_expsym_cmds=$lt_archive_expsym_cmds
9688 postinstall_cmds=$lt_postinstall_cmds
9689 postuninstall_cmds=$lt_postuninstall_cmds
9691 # Commands used to build a loadable module (assumed same as above if empty)
9692 module_cmds=$lt_module_cmds
9693 module_expsym_cmds=$lt_module_expsym_cmds
9695 # Commands to strip libraries.
9696 old_striplib=$lt_old_striplib
9697 striplib=$lt_striplib
9699 # Dependencies to place before the objects being linked to create a
9700 # shared library.
9701 predep_objects=$lt_predep_objects
9703 # Dependencies to place after the objects being linked to create a
9704 # shared library.
9705 postdep_objects=$lt_postdep_objects
9707 # Dependencies to place before the objects being linked to create a
9708 # shared library.
9709 predeps=$lt_predeps
9711 # Dependencies to place after the objects being linked to create a
9712 # shared library.
9713 postdeps=$lt_postdeps
9715 # The library search path used internally by the compiler when linking
9716 # a shared library.
9717 compiler_lib_search_path=$lt_compiler_lib_search_path
9719 # Method to check whether dependent libraries are shared objects.
9720 deplibs_check_method=$lt_deplibs_check_method
9722 # Command to use when deplibs_check_method == file_magic.
9723 file_magic_cmd=$lt_file_magic_cmd
9725 # Flag that allows shared libraries with undefined symbols to be built.
9726 allow_undefined_flag=$lt_allow_undefined_flag
9728 # Flag that forces no undefined symbols.
9729 no_undefined_flag=$lt_no_undefined_flag
9731 # Commands used to finish a libtool library installation in a directory.
9732 finish_cmds=$lt_finish_cmds
9734 # Same as above, but a single script fragment to be evaled but not shown.
9735 finish_eval=$lt_finish_eval
9737 # Take the output of nm and produce a listing of raw symbols and C names.
9738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9740 # Transform the output of nm in a proper C declaration
9741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9743 # Transform the output of nm in a C name address pair
9744 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9746 # This is the shared library runtime path variable.
9747 runpath_var=$runpath_var
9749 # This is the shared library path variable.
9750 shlibpath_var=$shlibpath_var
9752 # Is shlibpath searched before the hard-coded library search path?
9753 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9755 # How to hardcode a shared library path into an executable.
9756 hardcode_action=$hardcode_action
9758 # Whether we should hardcode library paths into libraries.
9759 hardcode_into_libs=$hardcode_into_libs
9761 # Flag to hardcode \$libdir into a binary during linking.
9762 # This must work even if \$libdir does not exist.
9763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9765 # If ld is used when linking, flag to hardcode \$libdir into
9766 # a binary during linking. This must work even if \$libdir does
9767 # not exist.
9768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9770 # Whether we need a single -rpath flag with a separated argument.
9771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9773 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9774 # resulting binary.
9775 hardcode_direct=$hardcode_direct
9777 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9778 # resulting binary.
9779 hardcode_minus_L=$hardcode_minus_L
9781 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9782 # the resulting binary.
9783 hardcode_shlibpath_var=$hardcode_shlibpath_var
9785 # Set to yes if building a shared library automatically hardcodes DIR into the library
9786 # and all subsequent libraries and executables linked against it.
9787 hardcode_automatic=$hardcode_automatic
9789 # Variables whose values should be saved in libtool wrapper scripts and
9790 # restored at relink time.
9791 variables_saved_for_relink="$variables_saved_for_relink"
9793 # Whether libtool must link a program against all its dependency libraries.
9794 link_all_deplibs=$link_all_deplibs
9796 # Compile-time system search path for libraries
9797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9799 # Run-time system search path for libraries
9800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9802 # Fix the shell variable \$srcfile for the compiler.
9803 fix_srcfile_path="$fix_srcfile_path"
9805 # Set to yes if exported symbols are required.
9806 always_export_symbols=$always_export_symbols
9808 # The commands to list exported symbols.
9809 export_symbols_cmds=$lt_export_symbols_cmds
9811 # The commands to extract the exported symbol list from a shared archive.
9812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9814 # Symbols that should not be listed in the preloaded symbols.
9815 exclude_expsyms=$lt_exclude_expsyms
9817 # Symbols that must always be exported.
9818 include_expsyms=$lt_include_expsyms
9820 # ### END LIBTOOL CONFIG
9822 __EOF__
9825 case $host_os in
9826 aix3*)
9827 cat <<\EOF >> "$cfgfile"
9829 # AIX sometimes has problems with the GCC collect2 program. For some
9830 # reason, if we set the COLLECT_NAMES environment variable, the problems
9831 # vanish in a puff of smoke.
9832 if test "X${COLLECT_NAMES+set}" != Xset; then
9833 COLLECT_NAMES=
9834 export COLLECT_NAMES
9838 esac
9840 # We use sed instead of cat because bash on DJGPP gets confused if
9841 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9842 # text mode, it properly converts lines to CR/LF. This bash problem
9843 # is reportedly fixed, but why not run on old versions too?
9844 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9846 mv -f "$cfgfile" "$ofile" || \
9847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9848 chmod +x "$ofile"
9850 else
9851 # If there is no Makefile yet, we rely on a make rule to execute
9852 # `config.status --recheck' to rerun these tests and create the
9853 # libtool script then.
9854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9855 if test -f "$ltmain_in"; then
9856 test -f Makefile && make "$ltmain"
9861 ac_ext=c
9862 ac_cpp='$CPP $CPPFLAGS'
9863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9867 CC="$lt_save_CC"
9870 # Check whether --with-tags or --without-tags was given.
9871 if test "${with_tags+set}" = set; then
9872 withval="$with_tags"
9873 tagnames="$withval"
9876 if test -f "$ltmain" && test -n "$tagnames"; then
9877 if test ! -f "${ofile}"; then
9878 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9879 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9882 if test -z "$LTCC"; then
9883 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9884 if test -z "$LTCC"; then
9885 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9886 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9887 else
9888 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9889 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9893 # Extract list of available tagged configurations in $ofile.
9894 # Note that this assumes the entire list is on one line.
9895 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9898 for tagname in $tagnames; do
9899 IFS="$lt_save_ifs"
9900 # Check whether tagname contains only valid characters
9901 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9902 "") ;;
9903 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9904 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9905 { (exit 1); exit 1; }; }
9907 esac
9909 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9910 then
9911 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9912 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9913 { (exit 1); exit 1; }; }
9916 # Update the list of available tags.
9917 if test -n "$tagname"; then
9918 echo appending configuration tag \"$tagname\" to $ofile
9920 case $tagname in
9921 CXX)
9922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9924 (test "X$CXX" != "Xg++"))) ; then
9925 ac_ext=cc
9926 ac_cpp='$CXXCPP $CPPFLAGS'
9927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9934 archive_cmds_need_lc_CXX=no
9935 allow_undefined_flag_CXX=
9936 always_export_symbols_CXX=no
9937 archive_expsym_cmds_CXX=
9938 export_dynamic_flag_spec_CXX=
9939 hardcode_direct_CXX=no
9940 hardcode_libdir_flag_spec_CXX=
9941 hardcode_libdir_flag_spec_ld_CXX=
9942 hardcode_libdir_separator_CXX=
9943 hardcode_minus_L_CXX=no
9944 hardcode_automatic_CXX=no
9945 module_cmds_CXX=
9946 module_expsym_cmds_CXX=
9947 link_all_deplibs_CXX=unknown
9948 old_archive_cmds_CXX=$old_archive_cmds
9949 no_undefined_flag_CXX=
9950 whole_archive_flag_spec_CXX=
9951 enable_shared_with_static_runtimes_CXX=no
9953 # Dependencies to place before and after the object being linked:
9954 predep_objects_CXX=
9955 postdep_objects_CXX=
9956 predeps_CXX=
9957 postdeps_CXX=
9958 compiler_lib_search_path_CXX=
9960 # Source file extension for C++ test sources.
9961 ac_ext=cc
9963 # Object file extension for compiled C++ test sources.
9964 objext=o
9965 objext_CXX=$objext
9967 # Code to be used in simple compile tests
9968 lt_simple_compile_test_code="int some_variable = 0;\n"
9970 # Code to be used in simple link tests
9971 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9975 # If no C compiler was specified, use CC.
9976 LTCC=${LTCC-"$CC"}
9978 # Allow CC to be a program name with arguments.
9979 compiler=$CC
9982 # Allow CC to be a program name with arguments.
9983 lt_save_CC=$CC
9984 lt_save_LD=$LD
9985 lt_save_GCC=$GCC
9986 GCC=$GXX
9987 lt_save_with_gnu_ld=$with_gnu_ld
9988 lt_save_path_LD=$lt_cv_path_LD
9989 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9990 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9991 else
9992 unset lt_cv_prog_gnu_ld
9994 if test -n "${lt_cv_path_LDCXX+set}"; then
9995 lt_cv_path_LD=$lt_cv_path_LDCXX
9996 else
9997 unset lt_cv_path_LD
9999 test -z "${LDCXX+set}" || LD=$LDCXX
10000 CC=${CXX-"c++"}
10001 compiler=$CC
10002 compiler_CXX=$CC
10003 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10005 # We don't want -fno-exception wen compiling C++ code, so set the
10006 # no_builtin_flag separately
10007 if test "$GXX" = yes; then
10008 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10009 else
10010 lt_prog_compiler_no_builtin_flag_CXX=
10013 if test "$GXX" = yes; then
10014 # Set up default GNU C++ configuration
10017 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10018 if test "${with_gnu_ld+set}" = set; then
10019 withval="$with_gnu_ld"
10020 test "$withval" = no || with_gnu_ld=yes
10021 else
10022 with_gnu_ld=no
10024 ac_prog=ld
10025 if test "$GCC" = yes; then
10026 # Check if gcc -print-prog-name=ld gives a path.
10027 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10028 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10029 case $host in
10030 *-*-mingw*)
10031 # gcc leaves a trailing carriage return which upsets mingw
10032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10035 esac
10036 case $ac_prog in
10037 # Accept absolute paths.
10038 [\\/]* | ?:[\\/]*)
10039 re_direlt='/[^/][^/]*/\.\./'
10040 # Canonicalize the pathname of ld
10041 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10043 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10044 done
10045 test -z "$LD" && LD="$ac_prog"
10048 # If it fails, then pretend we aren't using GCC.
10049 ac_prog=ld
10052 # If it is relative, then search for the first ld in PATH.
10053 with_gnu_ld=unknown
10055 esac
10056 elif test "$with_gnu_ld" = yes; then
10057 echo "$as_me:$LINENO: checking for GNU ld" >&5
10058 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10059 else
10060 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10061 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10063 if test "${lt_cv_path_LD+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test -z "$LD"; then
10067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10068 for ac_dir in $PATH; do
10069 IFS="$lt_save_ifs"
10070 test -z "$ac_dir" && ac_dir=.
10071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10072 lt_cv_path_LD="$ac_dir/$ac_prog"
10073 # Check to see if the program is GNU ld. I'd rather use --version,
10074 # but apparently some GNU ld's only accept -v.
10075 # Break only if it was the GNU/non-GNU ld that we prefer.
10076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10077 *GNU* | *'with BFD'*)
10078 test "$with_gnu_ld" != no && break
10081 test "$with_gnu_ld" != yes && break
10083 esac
10085 done
10086 IFS="$lt_save_ifs"
10087 else
10088 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10092 LD="$lt_cv_path_LD"
10093 if test -n "$LD"; then
10094 echo "$as_me:$LINENO: result: $LD" >&5
10095 echo "${ECHO_T}$LD" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10100 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10101 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10102 { (exit 1); exit 1; }; }
10103 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10104 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10105 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10109 case `$LD -v 2>&1 </dev/null` in
10110 *GNU* | *'with BFD'*)
10111 lt_cv_prog_gnu_ld=yes
10114 lt_cv_prog_gnu_ld=no
10116 esac
10118 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10119 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10120 with_gnu_ld=$lt_cv_prog_gnu_ld
10124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10125 # archiving commands below assume that GNU ld is being used.
10126 if test "$with_gnu_ld" = yes; then
10127 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 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'
10130 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10131 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10133 # If archive_cmds runs LD, not CC, wlarc should be empty
10134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10135 # investigate it a little bit more. (MM)
10136 wlarc='${wl}'
10138 # ancient GNU ld didn't support --whole-archive et. al.
10139 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10140 grep 'no-whole-archive' > /dev/null; then
10141 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10142 else
10143 whole_archive_flag_spec_CXX=
10145 else
10146 with_gnu_ld=no
10147 wlarc=
10149 # A generic and very simple default shared library creation
10150 # command for GNU C++ for the case where it uses the native
10151 # linker, instead of GNU ld. If possible, this setting should
10152 # overridden to take advantage of the native linker features on
10153 # the platform it is being used on.
10154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10162 else
10163 GXX=no
10164 with_gnu_ld=no
10165 wlarc=
10168 # PORTME: fill in a description of your system's C++ link characteristics
10169 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10171 ld_shlibs_CXX=yes
10172 case $host_os in
10173 aix3*)
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10177 aix4* | aix5*)
10178 if test "$host_cpu" = ia64; then
10179 # On IA64, the linker does run time linking by default, so we don't
10180 # have to do anything special.
10181 aix_use_runtimelinking=no
10182 exp_sym_flag='-Bexport'
10183 no_entry_flag=""
10184 else
10185 aix_use_runtimelinking=no
10187 # Test if we are trying to use run time linking or normal
10188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10189 # need to do runtime linking.
10190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10191 for ld_flag in $LDFLAGS; do
10192 case $ld_flag in
10193 *-brtl*)
10194 aix_use_runtimelinking=yes
10195 break
10197 esac
10198 done
10199 esac
10201 exp_sym_flag='-bexport'
10202 no_entry_flag='-bnoentry'
10205 # When large executables or shared objects are built, AIX ld can
10206 # have problems creating the table of contents. If linking a library
10207 # or program results in "error TOC overflow" add -mminimal-toc to
10208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10211 archive_cmds_CXX=''
10212 hardcode_direct_CXX=yes
10213 hardcode_libdir_separator_CXX=':'
10214 link_all_deplibs_CXX=yes
10216 if test "$GXX" = yes; then
10217 case $host_os in aix4.[012]|aix4.[012].*)
10218 # We only want to do this on AIX 4.2 and lower, the check
10219 # below for broken collect2 doesn't work under 4.3+
10220 collect2name=`${CC} -print-prog-name=collect2`
10221 if test -f "$collect2name" && \
10222 strings "$collect2name" | grep resolve_lib_name >/dev/null
10223 then
10224 # We have reworked collect2
10225 hardcode_direct_CXX=yes
10226 else
10227 # We have old collect2
10228 hardcode_direct_CXX=unsupported
10229 # It fails to find uninstalled libraries when the uninstalled
10230 # path is not listed in the libpath. Setting hardcode_minus_L
10231 # to unsupported forces relinking
10232 hardcode_minus_L_CXX=yes
10233 hardcode_libdir_flag_spec_CXX='-L$libdir'
10234 hardcode_libdir_separator_CXX=
10236 esac
10237 shared_flag='-shared'
10238 if test "$aix_use_runtimelinking" = yes; then
10239 shared_flag="$shared_flag "'${wl}-G'
10241 else
10242 # not using gcc
10243 if test "$host_cpu" = ia64; then
10244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10245 # chokes on -Wl,-G. The following line is correct:
10246 shared_flag='-G'
10247 else
10248 if test "$aix_use_runtimelinking" = yes; then
10249 shared_flag='${wl}-G'
10250 else
10251 shared_flag='${wl}-bM:SRE'
10256 # It seems that -bexpall does not export symbols beginning with
10257 # underscore (_), so it is better to generate a list of symbols to export.
10258 always_export_symbols_CXX=yes
10259 if test "$aix_use_runtimelinking" = yes; then
10260 # Warning - without using the other runtime loading flags (-brtl),
10261 # -berok will link without error, but may produce a broken library.
10262 allow_undefined_flag_CXX='-berok'
10263 # Determine the default libpath from the value encoded in an empty executable.
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10272 main ()
10276 return 0;
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281 (eval $ac_link) 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } &&
10288 { ac_try='test -z "$ac_cxx_werror_flag"
10289 || test ! -s conftest.err'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10304 # Check for a 64-bit object if we didn't find anything.
10305 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; }
10306 }'`; fi
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10312 rm -f conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10318 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"
10319 else
10320 if test "$host_cpu" = ia64; then
10321 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10322 allow_undefined_flag_CXX="-z nodefs"
10323 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"
10324 else
10325 # Determine the default libpath from the value encoded in an empty executable.
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10334 main ()
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343 (eval $ac_link) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_cxx_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10366 # Check for a 64-bit object if we didn't find anything.
10367 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; }
10368 }'`; fi
10369 else
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10374 rm -f conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10379 # Warning - without using the other run time loading flags,
10380 # -berok will link without error, but may produce a broken library.
10381 no_undefined_flag_CXX=' ${wl}-bernotok'
10382 allow_undefined_flag_CXX=' ${wl}-berok'
10383 # -bexpall does not export symbols beginning with underscore (_)
10384 always_export_symbols_CXX=yes
10385 # Exported symbols can be pulled into shared objects from archives
10386 whole_archive_flag_spec_CXX=' '
10387 archive_cmds_need_lc_CXX=yes
10388 # This is similar to how AIX traditionally builds it's shared libraries.
10389 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'
10393 chorus*)
10394 case $cc_basename in
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10399 esac
10403 cygwin* | mingw* | pw32*)
10404 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10405 # as there is no search path for DLLs.
10406 hardcode_libdir_flag_spec_CXX='-L$libdir'
10407 allow_undefined_flag_CXX=unsupported
10408 always_export_symbols_CXX=no
10409 enable_shared_with_static_runtimes_CXX=yes
10411 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10412 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'
10413 # If the export-symbols file already is a .def file (1st line
10414 # is EXPORTS), use it as is; otherwise, prepend...
10415 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416 cp $export_symbols $output_objdir/$soname.def;
10417 else
10418 echo EXPORTS > $output_objdir/$soname.def;
10419 cat $export_symbols >> $output_objdir/$soname.def;
10421 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10422 else
10423 ld_shlibs_CXX=no
10426 darwin* | rhapsody*)
10427 case "$host_os" in
10428 rhapsody* | darwin1.[012])
10429 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10431 *) # Darwin 1.3 on
10432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10433 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10434 else
10435 case ${MACOSX_DEPLOYMENT_TARGET} in
10436 10.[012])
10437 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10439 10.*)
10440 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10442 esac
10445 esac
10446 archive_cmds_need_lc_CXX=no
10447 hardcode_direct_CXX=no
10448 hardcode_automatic_CXX=yes
10449 hardcode_shlibpath_var_CXX=unsupported
10450 whole_archive_flag_spec_CXX=''
10451 link_all_deplibs_CXX=yes
10453 if test "$GXX" = yes ; then
10454 lt_int_apple_cc_single_mod=no
10455 output_verbose_link_cmd='echo'
10456 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10457 lt_int_apple_cc_single_mod=yes
10459 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10460 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10461 else
10462 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10466 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10467 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10468 else
10469 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10471 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10472 else
10473 case "$cc_basename" in
10474 xlc*)
10475 output_verbose_link_cmd='echo'
10476 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10477 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10479 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10480 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10483 ld_shlibs_CXX=no
10485 esac
10489 dgux*)
10490 case $cc_basename in
10491 ec++)
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10495 ghcx)
10496 # Green Hills C++ Compiler
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10504 esac
10506 freebsd[12]*)
10507 # C++ shared libraries reported to be fairly broken before switch to ELF
10508 ld_shlibs_CXX=no
10510 freebsd-elf*)
10511 archive_cmds_need_lc_CXX=no
10513 freebsd* | kfreebsd*-gnu | dragonfly*)
10514 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10515 # conventions
10516 ld_shlibs_CXX=yes
10518 gnu*)
10520 hpux9*)
10521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_separator_CXX=:
10523 export_dynamic_flag_spec_CXX='${wl}-E'
10524 hardcode_direct_CXX=yes
10525 hardcode_minus_L_CXX=yes # Not in the search PATH,
10526 # but as the default
10527 # location of the library.
10529 case $cc_basename in
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10534 aCC)
10535 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'
10536 # Commands to make compiler produce verbose output that lists
10537 # what "hidden" libraries, object files and flags are used when
10538 # linking a shared library.
10540 # There doesn't appear to be a way to prevent this compiler from
10541 # explicitly linking system object files so we need to strip them
10542 # from the output so that they don't get included in the library
10543 # dependencies.
10544 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'
10547 if test "$GXX" = yes; then
10548 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'
10549 else
10550 # FIXME: insert proper C++ library support
10551 ld_shlibs_CXX=no
10554 esac
10556 hpux10*|hpux11*)
10557 if test $with_gnu_ld = no; then
10558 case "$host_cpu" in
10559 hppa*64*)
10560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10561 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10562 hardcode_libdir_separator_CXX=:
10564 ia64*)
10565 hardcode_libdir_flag_spec_CXX='-L$libdir'
10568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10569 hardcode_libdir_separator_CXX=:
10570 export_dynamic_flag_spec_CXX='${wl}-E'
10572 esac
10574 case "$host_cpu" in
10575 hppa*64*)
10576 hardcode_direct_CXX=no
10577 hardcode_shlibpath_var_CXX=no
10579 ia64*)
10580 hardcode_direct_CXX=no
10581 hardcode_shlibpath_var_CXX=no
10582 hardcode_minus_L_CXX=yes # Not in the search PATH,
10583 # but as the default
10584 # location of the library.
10587 hardcode_direct_CXX=yes
10588 hardcode_minus_L_CXX=yes # Not in the search PATH,
10589 # but as the default
10590 # location of the library.
10592 esac
10594 case $cc_basename in
10596 # FIXME: insert proper C++ library support
10597 ld_shlibs_CXX=no
10599 aCC)
10600 case "$host_cpu" in
10601 hppa*64*|ia64*)
10602 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10607 esac
10608 # Commands to make compiler produce verbose output that lists
10609 # what "hidden" libraries, object files and flags are used when
10610 # linking a shared library.
10612 # There doesn't appear to be a way to prevent this compiler from
10613 # explicitly linking system object files so we need to strip them
10614 # from the output so that they don't get included in the library
10615 # dependencies.
10616 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'
10619 if test "$GXX" = yes; then
10620 if test $with_gnu_ld = no; then
10621 case "$host_cpu" in
10622 ia64*|hppa*64*)
10623 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10626 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'
10628 esac
10630 else
10631 # FIXME: insert proper C++ library support
10632 ld_shlibs_CXX=no
10635 esac
10637 irix5* | irix6*)
10638 case $cc_basename in
10640 # SGI C++
10641 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'
10643 # Archives containing C++ object files must be created using
10644 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10645 # necessary to make sure instantiated templates are included
10646 # in the archive.
10647 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10650 if test "$GXX" = yes; then
10651 if test "$with_gnu_ld" = no; then
10652 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'
10653 else
10654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10657 link_all_deplibs_CXX=yes
10659 esac
10660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10661 hardcode_libdir_separator_CXX=:
10663 linux*)
10664 case $cc_basename in
10665 KCC)
10666 # Kuck and Associates, Inc. (KAI) C++ Compiler
10668 # KCC will only create a shared library if the output file
10669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10670 # to its proper name (with version) after linking.
10671 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10672 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10673 # Commands to make compiler produce verbose output that lists
10674 # what "hidden" libraries, object files and flags are used when
10675 # linking a shared library.
10677 # There doesn't appear to be a way to prevent this compiler from
10678 # explicitly linking system object files so we need to strip them
10679 # from the output so that they don't get included in the library
10680 # dependencies.
10681 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10683 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10686 # Archives containing C++ object files must be created using
10687 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10688 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10690 icpc)
10691 # Intel C++
10692 with_gnu_ld=yes
10693 # version 8.0 and above of icpc choke on multiply defined symbols
10694 # if we add $predep_objects and $postdep_objects, however 7.1 and
10695 # earlier do not add the objects themselves.
10696 case `$CC -V 2>&1` in
10697 *"Version 7."*)
10698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10701 *) # Version 8.0 or newer
10702 tmp_idyn=
10703 case $host_cpu in
10704 ia64*) tmp_idyn=' -i_dynamic';;
10705 esac
10706 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10707 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10709 esac
10710 archive_cmds_need_lc_CXX=no
10711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10713 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10715 pgCC)
10716 # Portland Group C++ compiler
10717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10718 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723 cxx)
10724 # Compaq C++
10725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10726 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'
10728 runpath_var=LD_RUN_PATH
10729 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10730 hardcode_libdir_separator_CXX=:
10732 # Commands to make compiler produce verbose output that lists
10733 # what "hidden" libraries, object files and flags are used when
10734 # linking a shared library.
10736 # There doesn't appear to be a way to prevent this compiler from
10737 # explicitly linking system object files so we need to strip them
10738 # from the output so that they don't get included in the library
10739 # dependencies.
10740 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'
10742 esac
10744 lynxos*)
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10748 m88k*)
10749 # FIXME: insert proper C++ library support
10750 ld_shlibs_CXX=no
10752 mvs*)
10753 case $cc_basename in
10754 cxx)
10755 # FIXME: insert proper C++ library support
10756 ld_shlibs_CXX=no
10759 # FIXME: insert proper C++ library support
10760 ld_shlibs_CXX=no
10762 esac
10764 netbsd*)
10765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10767 wlarc=
10768 hardcode_libdir_flag_spec_CXX='-R$libdir'
10769 hardcode_direct_CXX=yes
10770 hardcode_shlibpath_var_CXX=no
10772 # Workaround some broken pre-1.5 toolchains
10773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10775 openbsd2*)
10776 # C++ shared libraries are fairly broken
10777 ld_shlibs_CXX=no
10779 openbsd*)
10780 hardcode_direct_CXX=yes
10781 hardcode_shlibpath_var_CXX=no
10782 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10783 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10786 export_dynamic_flag_spec_CXX='${wl}-E'
10787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10789 output_verbose_link_cmd='echo'
10791 osf3*)
10792 case $cc_basename in
10793 KCC)
10794 # Kuck and Associates, Inc. (KAI) C++ Compiler
10796 # KCC will only create a shared library if the output file
10797 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10798 # to its proper name (with version) after linking.
10799 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10802 hardcode_libdir_separator_CXX=:
10804 # Archives containing C++ object files must be created using
10805 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10806 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809 RCC)
10810 # Rational C++ 2.4.1
10811 # FIXME: insert proper C++ library support
10812 ld_shlibs_CXX=no
10814 cxx)
10815 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10816 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'
10818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10819 hardcode_libdir_separator_CXX=:
10821 # Commands to make compiler produce verbose output that lists
10822 # what "hidden" libraries, object files and flags are used when
10823 # linking a shared library.
10825 # There doesn't appear to be a way to prevent this compiler from
10826 # explicitly linking system object files so we need to strip them
10827 # from the output so that they don't get included in the library
10828 # dependencies.
10829 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'
10832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10834 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'
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator_CXX=:
10839 # Commands to make compiler produce verbose output that lists
10840 # what "hidden" libraries, object files and flags are used when
10841 # linking a shared library.
10842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10844 else
10845 # FIXME: insert proper C++ library support
10846 ld_shlibs_CXX=no
10849 esac
10851 osf4* | osf5*)
10852 case $cc_basename in
10853 KCC)
10854 # Kuck and Associates, Inc. (KAI) C++ Compiler
10856 # KCC will only create a shared library if the output file
10857 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10858 # to its proper name (with version) after linking.
10859 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10862 hardcode_libdir_separator_CXX=:
10864 # Archives containing C++ object files must be created using
10865 # the KAI C++ compiler.
10866 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10868 RCC)
10869 # Rational C++ 2.4.1
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10873 cxx)
10874 allow_undefined_flag_CXX=' -expect_unresolved \*'
10875 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'
10876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10877 echo "-hidden">> $lib.exp~
10878 $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~
10879 $rm $lib.exp'
10881 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10882 hardcode_libdir_separator_CXX=:
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10888 # There doesn't appear to be a way to prevent this compiler from
10889 # explicitly linking system object files so we need to strip them
10890 # from the output so that they don't get included in the library
10891 # dependencies.
10892 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'
10895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10897 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'
10899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10900 hardcode_libdir_separator_CXX=:
10902 # Commands to make compiler produce verbose output that lists
10903 # what "hidden" libraries, object files and flags are used when
10904 # linking a shared library.
10905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10907 else
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10912 esac
10914 psos*)
10915 # FIXME: insert proper C++ library support
10916 ld_shlibs_CXX=no
10918 sco*)
10919 archive_cmds_need_lc_CXX=no
10920 case $cc_basename in
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10926 # FIXME: insert proper C++ library support
10927 ld_shlibs_CXX=no
10929 esac
10931 sunos4*)
10932 case $cc_basename in
10934 # Sun C++ 4.x
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10938 lcc)
10939 # Lucid
10940 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no
10944 # FIXME: insert proper C++ library support
10945 ld_shlibs_CXX=no
10947 esac
10949 solaris*)
10950 case $cc_basename in
10952 # Sun C++ 4.2, 5.x and Centerline C++
10953 no_undefined_flag_CXX=' -zdefs'
10954 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10955 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10956 $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'
10958 hardcode_libdir_flag_spec_CXX='-R$libdir'
10959 hardcode_shlibpath_var_CXX=no
10960 case $host_os in
10961 solaris2.[0-5] | solaris2.[0-5].*) ;;
10963 # The C++ compiler is used as linker so we must use $wl
10964 # flag to pass the commands to the underlying system
10965 # linker.
10966 # Supported since Solaris 2.6 (maybe 2.5.1?)
10967 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10969 esac
10970 link_all_deplibs_CXX=yes
10972 # Commands to make compiler produce verbose output that lists
10973 # what "hidden" libraries, object files and flags are used when
10974 # linking a shared library.
10976 # There doesn't appear to be a way to prevent this compiler from
10977 # explicitly linking system object files so we need to strip them
10978 # from the output so that they don't get included in the library
10979 # dependencies.
10980 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'
10982 # Archives containing C++ object files must be created using
10983 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10984 # necessary to make sure instantiated templates are included
10985 # in the archive.
10986 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10988 gcx)
10989 # Green Hills C++ Compiler
10990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10992 # The C++ compiler must be used to create the archive.
10993 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10996 # GNU C++ compiler with Solaris linker
10997 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10998 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10999 if $CC --version | grep -v '^2\.7' > /dev/null; then
11000 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11002 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11007 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11008 else
11009 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11010 # platform.
11011 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11012 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11013 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11015 # Commands to make compiler produce verbose output that lists
11016 # what "hidden" libraries, object files and flags are used when
11017 # linking a shared library.
11018 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11021 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11024 esac
11026 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11027 archive_cmds_need_lc_CXX=no
11029 tandem*)
11030 case $cc_basename in
11031 NCC)
11032 # NonStop-UX NCC 3.20
11033 # FIXME: insert proper C++ library support
11034 ld_shlibs_CXX=no
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11040 esac
11042 vxworks*)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11050 esac
11051 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11052 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11053 test "$ld_shlibs_CXX" = no && can_build_shared=no
11055 GCC_CXX="$GXX"
11056 LD_CXX="$LD"
11058 ## CAVEAT EMPTOR:
11059 ## There is no encapsulation within the following macros, do not change
11060 ## the running order or otherwise move them around unless you know exactly
11061 ## what you are doing...
11063 cat > conftest.$ac_ext <<EOF
11064 class Foo
11066 public:
11067 Foo (void) { a = 0; }
11068 private:
11069 int a;
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; then
11078 # Parse the compiler output and extract the necessary
11079 # objects, libraries and library flags.
11081 # Sentinel used to keep track of whether or not we are before
11082 # the conftest object file.
11083 pre_test_object_deps_done=no
11085 # The `*' in the case matches for architectures that use `case' in
11086 # $output_verbose_cmd can trigger glob expansion during the loop
11087 # eval without this substitution.
11088 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11090 for p in `eval $output_verbose_link_cmd`; do
11091 case $p in
11093 -L* | -R* | -l*)
11094 # Some compilers place space between "-{L,R}" and the path.
11095 # Remove the space.
11096 if test $p = "-L" \
11097 || test $p = "-R"; then
11098 prev=$p
11099 continue
11100 else
11101 prev=
11104 if test "$pre_test_object_deps_done" = no; then
11105 case $p in
11106 -L* | -R*)
11107 # Internal compiler library paths should come after those
11108 # provided the user. The postdeps already come after the
11109 # user supplied libs so there is no need to process them.
11110 if test -z "$compiler_lib_search_path_CXX"; then
11111 compiler_lib_search_path_CXX="${prev}${p}"
11112 else
11113 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11116 # The "-l" case would never come before the object being
11117 # linked, so don't bother handling this case.
11118 esac
11119 else
11120 if test -z "$postdeps_CXX"; then
11121 postdeps_CXX="${prev}${p}"
11122 else
11123 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11128 *.$objext)
11129 # This assumes that the test object file only shows up
11130 # once in the compiler output.
11131 if test "$p" = "conftest.$objext"; then
11132 pre_test_object_deps_done=yes
11133 continue
11136 if test "$pre_test_object_deps_done" = no; then
11137 if test -z "$predep_objects_CXX"; then
11138 predep_objects_CXX="$p"
11139 else
11140 predep_objects_CXX="$predep_objects_CXX $p"
11142 else
11143 if test -z "$postdep_objects_CXX"; then
11144 postdep_objects_CXX="$p"
11145 else
11146 postdep_objects_CXX="$postdep_objects_CXX $p"
11151 *) ;; # Ignore the rest.
11153 esac
11154 done
11156 # Clean up.
11157 rm -f a.out a.exe
11158 else
11159 echo "libtool.m4: error: problem compiling CXX test program"
11162 $rm -f confest.$objext
11164 case " $postdeps_CXX " in
11165 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11166 esac
11168 lt_prog_compiler_wl_CXX=
11169 lt_prog_compiler_pic_CXX=
11170 lt_prog_compiler_static_CXX=
11172 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11175 # C++ specific cases for pic, static, wl, etc.
11176 if test "$GXX" = yes; then
11177 lt_prog_compiler_wl_CXX='-Wl,'
11178 lt_prog_compiler_static_CXX='-static'
11180 case $host_os in
11181 aix*)
11182 # All AIX code is PIC.
11183 if test "$host_cpu" = ia64; then
11184 # AIX 5 now supports IA64 processor
11185 lt_prog_compiler_static_CXX='-Bstatic'
11188 amigaos*)
11189 # FIXME: we need at least 68020 code to build shared libraries, but
11190 # adding the `-m68020' flag to GCC prevents building anything better,
11191 # like `-m68040'.
11192 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11194 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11195 # PIC is the default for these OSes.
11197 mingw* | os2* | pw32*)
11198 # This hack is so that the source file can tell whether it is being
11199 # built for inclusion in a dll (and should export symbols for example).
11200 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11202 darwin* | rhapsody*)
11203 # PIC is the default on this platform
11204 # Common symbols not allowed in MH_DYLIB files
11205 lt_prog_compiler_pic_CXX='-fno-common'
11207 *djgpp*)
11208 # DJGPP does not support shared libraries at all
11209 lt_prog_compiler_pic_CXX=
11211 sysv4*MP*)
11212 if test -d /usr/nec; then
11213 lt_prog_compiler_pic_CXX=-Kconform_pic
11216 hpux*)
11217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11218 # not for PA HP-UX.
11219 case "$host_cpu" in
11220 hppa*64*|ia64*)
11223 lt_prog_compiler_pic_CXX='-fPIC'
11225 esac
11228 lt_prog_compiler_pic_CXX='-fPIC'
11230 esac
11231 else
11232 case $host_os in
11233 aix4* | aix5*)
11234 # All AIX code is PIC.
11235 if test "$host_cpu" = ia64; then
11236 # AIX 5 now supports IA64 processor
11237 lt_prog_compiler_static_CXX='-Bstatic'
11238 else
11239 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11242 chorus*)
11243 case $cc_basename in
11244 cxch68)
11245 # Green Hills C++ Compiler
11246 # _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"
11248 esac
11250 darwin*)
11251 # PIC is the default on this platform
11252 # Common symbols not allowed in MH_DYLIB files
11253 case "$cc_basename" in
11254 xlc*)
11255 lt_prog_compiler_pic_CXX='-qnocommon'
11256 lt_prog_compiler_wl_CXX='-Wl,'
11258 esac
11260 dgux*)
11261 case $cc_basename in
11262 ec++)
11263 lt_prog_compiler_pic_CXX='-KPIC'
11265 ghcx)
11266 # Green Hills C++ Compiler
11267 lt_prog_compiler_pic_CXX='-pic'
11271 esac
11273 freebsd* | kfreebsd*-gnu | dragonfly*)
11274 # FreeBSD uses GNU C++
11276 hpux9* | hpux10* | hpux11*)
11277 case $cc_basename in
11279 lt_prog_compiler_wl_CXX='-Wl,'
11280 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11281 if test "$host_cpu" != ia64; then
11282 lt_prog_compiler_pic_CXX='+Z'
11285 aCC)
11286 lt_prog_compiler_wl_CXX='-Wl,'
11287 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11288 case "$host_cpu" in
11289 hppa*64*|ia64*)
11290 # +Z the default
11293 lt_prog_compiler_pic_CXX='+Z'
11295 esac
11299 esac
11301 irix5* | irix6* | nonstopux*)
11302 case $cc_basename in
11304 lt_prog_compiler_wl_CXX='-Wl,'
11305 lt_prog_compiler_static_CXX='-non_shared'
11306 # CC pic flag -KPIC is the default.
11310 esac
11312 linux*)
11313 case $cc_basename in
11314 KCC)
11315 # KAI C++ Compiler
11316 lt_prog_compiler_wl_CXX='--backend -Wl,'
11317 lt_prog_compiler_pic_CXX='-fPIC'
11319 icpc* | ecpc*)
11320 # Intel C++
11321 lt_prog_compiler_wl_CXX='-Wl,'
11322 lt_prog_compiler_pic_CXX='-KPIC'
11323 lt_prog_compiler_static_CXX='-static'
11325 pgCC)
11326 # Portland Group C++ compiler.
11327 lt_prog_compiler_wl_CXX='-Wl,'
11328 lt_prog_compiler_pic_CXX='-fpic'
11329 lt_prog_compiler_static_CXX='-static'
11331 cxx)
11332 # Compaq C++
11333 # Make sure the PIC flag is empty. It appears that all Alpha
11334 # Linux and Compaq Tru64 Unix objects are PIC.
11335 lt_prog_compiler_pic_CXX=
11336 lt_prog_compiler_static_CXX='-non_shared'
11340 esac
11342 lynxos*)
11344 m88k*)
11346 mvs*)
11347 case $cc_basename in
11348 cxx)
11349 lt_prog_compiler_pic_CXX='-W c,exportall'
11353 esac
11355 netbsd*)
11357 osf3* | osf4* | osf5*)
11358 case $cc_basename in
11359 KCC)
11360 lt_prog_compiler_wl_CXX='--backend -Wl,'
11362 RCC)
11363 # Rational C++ 2.4.1
11364 lt_prog_compiler_pic_CXX='-pic'
11366 cxx)
11367 # Digital/Compaq C++
11368 lt_prog_compiler_wl_CXX='-Wl,'
11369 # Make sure the PIC flag is empty. It appears that all Alpha
11370 # Linux and Compaq Tru64 Unix objects are PIC.
11371 lt_prog_compiler_pic_CXX=
11372 lt_prog_compiler_static_CXX='-non_shared'
11376 esac
11378 psos*)
11380 sco*)
11381 case $cc_basename in
11383 lt_prog_compiler_pic_CXX='-fPIC'
11387 esac
11389 solaris*)
11390 case $cc_basename in
11392 # Sun C++ 4.2, 5.x and Centerline C++
11393 lt_prog_compiler_pic_CXX='-KPIC'
11394 lt_prog_compiler_static_CXX='-Bstatic'
11395 lt_prog_compiler_wl_CXX='-Qoption ld '
11397 gcx)
11398 # Green Hills C++ Compiler
11399 lt_prog_compiler_pic_CXX='-PIC'
11403 esac
11405 sunos4*)
11406 case $cc_basename in
11408 # Sun C++ 4.x
11409 lt_prog_compiler_pic_CXX='-pic'
11410 lt_prog_compiler_static_CXX='-Bstatic'
11412 lcc)
11413 # Lucid
11414 lt_prog_compiler_pic_CXX='-pic'
11418 esac
11420 tandem*)
11421 case $cc_basename in
11422 NCC)
11423 # NonStop-UX NCC 3.20
11424 lt_prog_compiler_pic_CXX='-KPIC'
11428 esac
11430 unixware*)
11432 vxworks*)
11435 lt_prog_compiler_can_build_shared_CXX=no
11437 esac
11440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11441 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11444 # Check to make sure the PIC flag actually works.
11446 if test -n "$lt_prog_compiler_pic_CXX"; then
11448 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11450 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453 lt_prog_compiler_pic_works_CXX=no
11454 ac_outfile=conftest.$ac_objext
11455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11456 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11457 # Insert the option either (1) after the last *FLAGS variable, or
11458 # (2) before a word containing "conftest.", or (3) at the end.
11459 # Note that $ac_compile itself does not contain backslashes and begins
11460 # with a dollar sign (not a hyphen), so the echo should work correctly.
11461 # The option is referenced via a variable to avoid confusing sed.
11462 lt_compile=`echo "$ac_compile" | $SED \
11463 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11465 -e 's:$: $lt_compiler_flag:'`
11466 (eval echo "\"\$as_me:11466: $lt_compile\"" >&5)
11467 (eval "$lt_compile" 2>conftest.err)
11468 ac_status=$?
11469 cat conftest.err >&5
11470 echo "$as_me:11470: \$? = $ac_status" >&5
11471 if (exit $ac_status) && test -s "$ac_outfile"; then
11472 # The compiler can only warn and ignore the option if not recognized
11473 # So say no if there are warnings
11474 if test ! -s conftest.err; then
11475 lt_prog_compiler_pic_works_CXX=yes
11478 $rm conftest*
11481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11482 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11484 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11485 case $lt_prog_compiler_pic_CXX in
11486 "" | " "*) ;;
11487 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11488 esac
11489 else
11490 lt_prog_compiler_pic_CXX=
11491 lt_prog_compiler_can_build_shared_CXX=no
11495 case "$host_os" in
11496 # For platforms which do not support PIC, -DPIC is meaningless:
11497 *djgpp*)
11498 lt_prog_compiler_pic_CXX=
11501 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11503 esac
11505 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11506 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11507 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 lt_cv_prog_compiler_c_o_CXX=no
11511 $rm -r conftest 2>/dev/null
11512 mkdir conftest
11513 cd conftest
11514 mkdir out
11515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11517 lt_compiler_flag="-o out/conftest2.$ac_objext"
11518 # Insert the option either (1) after the last *FLAGS variable, or
11519 # (2) before a word containing "conftest.", or (3) at the end.
11520 # Note that $ac_compile itself does not contain backslashes and begins
11521 # with a dollar sign (not a hyphen), so the echo should work correctly.
11522 lt_compile=`echo "$ac_compile" | $SED \
11523 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11525 -e 's:$: $lt_compiler_flag:'`
11526 (eval echo "\"\$as_me:11526: $lt_compile\"" >&5)
11527 (eval "$lt_compile" 2>out/conftest.err)
11528 ac_status=$?
11529 cat out/conftest.err >&5
11530 echo "$as_me:11530: \$? = $ac_status" >&5
11531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11532 then
11533 # The compiler can only warn and ignore the option if not recognized
11534 # So say no if there are warnings
11535 if test ! -s out/conftest.err; then
11536 lt_cv_prog_compiler_c_o_CXX=yes
11539 chmod u+w .
11540 $rm conftest*
11541 # SGI C++ compiler will create directory out/ii_files/ for
11542 # template instantiation
11543 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11544 $rm out/* && rmdir out
11545 cd ..
11546 rmdir conftest
11547 $rm conftest*
11550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11554 hard_links="nottested"
11555 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11556 # do not overwrite the value of need_locks provided by the user
11557 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11559 hard_links=yes
11560 $rm conftest*
11561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11562 touch conftest.a
11563 ln conftest.a conftest.b 2>&5 || hard_links=no
11564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11565 echo "$as_me:$LINENO: result: $hard_links" >&5
11566 echo "${ECHO_T}$hard_links" >&6
11567 if test "$hard_links" = no; then
11568 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11570 need_locks=warn
11572 else
11573 need_locks=no
11576 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11580 case $host_os in
11581 aix4* | aix5*)
11582 # If we're using GNU nm, then we don't want the "-C" option.
11583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11585 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'
11586 else
11587 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'
11590 pw32*)
11591 export_symbols_cmds_CXX="$ltdll_cmds"
11593 cygwin* | mingw*)
11594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11599 esac
11601 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11602 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11603 test "$ld_shlibs_CXX" = no && can_build_shared=no
11605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11606 if test "$GCC" = yes; then
11607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11611 # Do we need to explicitly link libc?
11613 case "x$archive_cmds_need_lc_CXX" in
11614 x|xyes)
11615 # Assume -lc should be added
11616 archive_cmds_need_lc_CXX=yes
11618 if test "$enable_shared" = yes && test "$GCC" = yes; then
11619 case $archive_cmds_CXX in
11620 *'~'*)
11621 # FIXME: we may have to deal with multi-command sequences.
11623 '$CC '*)
11624 # Test whether the compiler implicitly links with -lc since on some
11625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11626 # to ld, don't add -lc before -lgcc.
11627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11629 $rm conftest*
11630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11633 (eval $ac_compile) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } 2>conftest.err; then
11637 soname=conftest
11638 lib=conftest
11639 libobjs=conftest.$ac_objext
11640 deplibs=
11641 wl=$lt_prog_compiler_wl_CXX
11642 compiler_flags=-v
11643 linker_flags=-v
11644 verstring=
11645 output_objdir=.
11646 libname=conftest
11647 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11648 allow_undefined_flag_CXX=
11649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11650 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }
11654 then
11655 archive_cmds_need_lc_CXX=no
11656 else
11657 archive_cmds_need_lc_CXX=yes
11659 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11660 else
11661 cat conftest.err 1>&5
11663 $rm conftest*
11664 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11665 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11667 esac
11670 esac
11672 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11674 library_names_spec=
11675 libname_spec='lib$name'
11676 soname_spec=
11677 shrext_cmds=".so"
11678 postinstall_cmds=
11679 postuninstall_cmds=
11680 finish_cmds=
11681 finish_eval=
11682 shlibpath_var=
11683 shlibpath_overrides_runpath=unknown
11684 version_type=none
11685 dynamic_linker="$host_os ld.so"
11686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11687 if test "$GCC" = yes; then
11688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11689 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11690 # if the path contains ";" then we assume it to be the separator
11691 # otherwise default to the standard path separator (i.e. ":") - it is
11692 # assumed that no part of a normal pathname contains ";" but that should
11693 # okay in the real world where ";" in dirpaths is itself problematic.
11694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11695 else
11696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11698 else
11699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11701 need_lib_prefix=unknown
11702 hardcode_into_libs=no
11704 # when you set need_version to no, make sure it does not cause -set_version
11705 # flags to be left without arguments
11706 need_version=unknown
11708 case $host_os in
11709 aix3*)
11710 version_type=linux
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11712 shlibpath_var=LIBPATH
11714 # AIX 3 has no versioning support, so we append a major version to the name.
11715 soname_spec='${libname}${release}${shared_ext}$major'
11718 aix4* | aix5*)
11719 version_type=linux
11720 need_lib_prefix=no
11721 need_version=no
11722 hardcode_into_libs=yes
11723 if test "$host_cpu" = ia64; then
11724 # AIX 5 supports IA64
11725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 else
11728 # With GCC up to 2.95.x, collect2 would create an import file
11729 # for dependence libraries. The import file would start with
11730 # the line `#! .'. This would cause the generated library to
11731 # depend on `.', always an invalid library. This was fixed in
11732 # development snapshots of GCC prior to 3.0.
11733 case $host_os in
11734 aix4 | aix4.[01] | aix4.[01].*)
11735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11736 echo ' yes '
11737 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11739 else
11740 can_build_shared=no
11743 esac
11744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11745 # soname into executable. Probably we can add versioning support to
11746 # collect2, so additional links can be useful in future.
11747 if test "$aix_use_runtimelinking" = yes; then
11748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11749 # instead of lib<name>.a to let people know that these are not
11750 # typical AIX shared libraries.
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 else
11753 # We preserve .a as extension for shared libraries through AIX4.2
11754 # and later when we are not doing run time linking.
11755 library_names_spec='${libname}${release}.a $libname.a'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LIBPATH
11762 amigaos*)
11763 library_names_spec='$libname.ixlibrary $libname.a'
11764 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11765 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'
11768 beos*)
11769 library_names_spec='${libname}${shared_ext}'
11770 dynamic_linker="$host_os ld.so"
11771 shlibpath_var=LIBRARY_PATH
11774 bsdi[45]*)
11775 version_type=linux
11776 need_version=no
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11782 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11783 # the default ld.so.conf also contains /usr/contrib/lib and
11784 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11785 # libtool to hard-code these into programs
11788 cygwin* | mingw* | pw32*)
11789 version_type=windows
11790 shrext_cmds=".dll"
11791 need_version=no
11792 need_lib_prefix=no
11794 case $GCC,$host_os in
11795 yes,cygwin* | yes,mingw* | yes,pw32*)
11796 library_names_spec='$libname.dll.a'
11797 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11798 postinstall_cmds='base_file=`basename \${file}`~
11799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11800 dldir=$destdir/`dirname \$dlpath`~
11801 test -d \$dldir || mkdir -p \$dldir~
11802 $install_prog $dir/$dlname \$dldir/$dlname'
11803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11804 dlpath=$dir/\$dldll~
11805 $rm \$dlpath'
11806 shlibpath_overrides_runpath=yes
11808 case $host_os in
11809 cygwin*)
11810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11814 mingw*)
11815 # MinGW DLLs use traditional 'lib' prefix
11816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11819 # It is most probably a Windows format PATH printed by
11820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11821 # path with ; separators, and with drive letters. We can handle the
11822 # drive letters (cygwin fileutils understands them), so leave them,
11823 # especially as we might pass files found there to a mingw objdump,
11824 # which wouldn't understand a cygwinified path. Ahh.
11825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11826 else
11827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11830 pw32*)
11831 # pw32 DLLs use 'pw' prefix rather than 'lib'
11832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11834 esac
11838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11840 esac
11841 dynamic_linker='Win32 ld.exe'
11842 # FIXME: first we should search . and the directory the executable is in
11843 shlibpath_var=PATH
11846 darwin* | rhapsody*)
11847 dynamic_linker="$host_os dyld"
11848 version_type=darwin
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11852 soname_spec='${libname}${release}${major}$shared_ext'
11853 shlibpath_overrides_runpath=yes
11854 shlibpath_var=DYLD_LIBRARY_PATH
11855 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11856 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11857 if test "$GCC" = yes; then
11858 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11859 else
11860 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11865 dgux*)
11866 version_type=linux
11867 need_lib_prefix=no
11868 need_version=no
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 shlibpath_var=LD_LIBRARY_PATH
11874 freebsd1*)
11875 dynamic_linker=no
11878 kfreebsd*-gnu)
11879 version_type=linux
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11886 hardcode_into_libs=yes
11887 dynamic_linker='GNU ld.so'
11890 freebsd* | dragonfly*)
11891 # DragonFly does not have aout. When/if they implement a new
11892 # versioning mechanism, adjust this.
11893 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11894 version_type=freebsd-$objformat
11895 case $version_type in
11896 freebsd-elf*)
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11898 need_version=no
11899 need_lib_prefix=no
11901 freebsd-*)
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11903 need_version=yes
11905 esac
11906 shlibpath_var=LD_LIBRARY_PATH
11907 case $host_os in
11908 freebsd2*)
11909 shlibpath_overrides_runpath=yes
11911 freebsd3.[01]* | freebsdelf3.[01]*)
11912 shlibpath_overrides_runpath=yes
11913 hardcode_into_libs=yes
11915 *) # from 3.2 on
11916 shlibpath_overrides_runpath=no
11917 hardcode_into_libs=yes
11919 esac
11922 gnu*)
11923 version_type=linux
11924 need_lib_prefix=no
11925 need_version=no
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 hardcode_into_libs=yes
11932 hpux9* | hpux10* | hpux11*)
11933 # Give a soname corresponding to the major version so that dld.sl refuses to
11934 # link against other versions.
11935 version_type=sunos
11936 need_lib_prefix=no
11937 need_version=no
11938 case "$host_cpu" in
11939 ia64*)
11940 shrext_cmds='.so'
11941 hardcode_into_libs=yes
11942 dynamic_linker="$host_os dld.so"
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 if test "X$HPUX_IA64_MODE" = X32; then
11948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11949 else
11950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11954 hppa*64*)
11955 shrext_cmds='.sl'
11956 hardcode_into_libs=yes
11957 dynamic_linker="$host_os dld.sl"
11958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11966 shrext_cmds='.sl'
11967 dynamic_linker="$host_os dld.sl"
11968 shlibpath_var=SHLIB_PATH
11969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11973 esac
11974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11975 postinstall_cmds='chmod 555 $lib'
11978 irix5* | irix6* | nonstopux*)
11979 case $host_os in
11980 nonstopux*) version_type=nonstopux ;;
11982 if test "$lt_cv_prog_gnu_ld" = yes; then
11983 version_type=linux
11984 else
11985 version_type=irix
11986 fi ;;
11987 esac
11988 need_lib_prefix=no
11989 need_version=no
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11992 case $host_os in
11993 irix5* | nonstopux*)
11994 libsuff= shlibsuff=
11997 case $LD in # libtool.m4 will add one of these switches to LD
11998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11999 libsuff= shlibsuff= libmagic=32-bit;;
12000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12001 libsuff=32 shlibsuff=N32 libmagic=N32;;
12002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12004 *) libsuff= shlibsuff= libmagic=never-match;;
12005 esac
12007 esac
12008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12009 shlibpath_overrides_runpath=no
12010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12012 hardcode_into_libs=yes
12015 # No shared lib support for Linux oldld, aout, or coff.
12016 linux*oldld* | linux*aout* | linux*coff*)
12017 dynamic_linker=no
12020 # This must be Linux ELF.
12021 linux*)
12022 version_type=linux
12023 need_lib_prefix=no
12024 need_version=no
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=no
12030 # This implies no fast_install, which is unacceptable.
12031 # Some rework will be needed to allow for fast_install
12032 # before this can be enabled.
12033 hardcode_into_libs=yes
12035 # Append ld.so.conf contents to the search path
12036 if test -f /etc/ld.so.conf; then
12037 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12041 # We used to test for /lib/ld.so.1 and disable shared libraries on
12042 # powerpc, because MkLinux only supported shared libraries with the
12043 # GNU dynamic linker. Since this was broken with cross compilers,
12044 # most powerpc-linux boxes support dynamic linking these days and
12045 # people can always --disable-shared, the test was removed, and we
12046 # assume the GNU/Linux dynamic linker is in use.
12047 dynamic_linker='GNU/Linux ld.so'
12050 knetbsd*-gnu)
12051 version_type=linux
12052 need_lib_prefix=no
12053 need_version=no
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12055 soname_spec='${libname}${release}${shared_ext}$major'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=no
12058 hardcode_into_libs=yes
12059 dynamic_linker='GNU ld.so'
12062 netbsd*)
12063 version_type=sunos
12064 need_lib_prefix=no
12065 need_version=no
12066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12069 dynamic_linker='NetBSD (a.out) ld.so'
12070 else
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 dynamic_linker='NetBSD ld.elf_so'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12080 newsos6)
12081 version_type=linux
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=yes
12087 nto-qnx*)
12088 version_type=linux
12089 need_lib_prefix=no
12090 need_version=no
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 shlibpath_overrides_runpath=yes
12097 openbsd*)
12098 version_type=sunos
12099 need_lib_prefix=no
12100 need_version=no
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12105 case $host_os in
12106 openbsd2.[89] | openbsd2.[89].*)
12107 shlibpath_overrides_runpath=no
12110 shlibpath_overrides_runpath=yes
12112 esac
12113 else
12114 shlibpath_overrides_runpath=yes
12118 os2*)
12119 libname_spec='$name'
12120 shrext_cmds=".dll"
12121 need_lib_prefix=no
12122 library_names_spec='$libname${shared_ext} $libname.a'
12123 dynamic_linker='OS/2 ld.exe'
12124 shlibpath_var=LIBPATH
12127 osf3* | osf4* | osf5*)
12128 version_type=osf
12129 need_lib_prefix=no
12130 need_version=no
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12138 sco3.2v5*)
12139 version_type=osf
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 shlibpath_var=LD_LIBRARY_PATH
12145 solaris*)
12146 version_type=linux
12147 need_lib_prefix=no
12148 need_version=no
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153 hardcode_into_libs=yes
12154 # ldd complains unless libraries are executable
12155 postinstall_cmds='chmod +x $lib'
12158 sunos4*)
12159 version_type=sunos
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=yes
12164 if test "$with_gnu_ld" = yes; then
12165 need_lib_prefix=no
12167 need_version=yes
12170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12171 version_type=linux
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 case $host_vendor in
12176 sni)
12177 shlibpath_overrides_runpath=no
12178 need_lib_prefix=no
12179 export_dynamic_flag_spec='${wl}-Blargedynsym'
12180 runpath_var=LD_RUN_PATH
12182 siemens)
12183 need_lib_prefix=no
12185 motorola)
12186 need_lib_prefix=no
12187 need_version=no
12188 shlibpath_overrides_runpath=no
12189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12191 esac
12194 sysv4*MP*)
12195 if test -d /usr/nec ;then
12196 version_type=linux
12197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12198 soname_spec='$libname${shared_ext}.$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12203 uts4*)
12204 version_type=linux
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 shlibpath_var=LD_LIBRARY_PATH
12211 dynamic_linker=no
12213 esac
12214 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12215 echo "${ECHO_T}$dynamic_linker" >&6
12216 test "$dynamic_linker" = no && can_build_shared=no
12218 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12220 hardcode_action_CXX=
12221 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12222 test -n "$runpath_var_CXX" || \
12223 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12225 # We can hardcode non-existant directories.
12226 if test "$hardcode_direct_CXX" != no &&
12227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12228 # have to relink, otherwise we might link with an installed library
12229 # when we should be linking with a yet-to-be-installed one
12230 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12231 test "$hardcode_minus_L_CXX" != no; then
12232 # Linking always hardcodes the temporary library directory.
12233 hardcode_action_CXX=relink
12234 else
12235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12236 hardcode_action_CXX=immediate
12238 else
12239 # We cannot hardcode anything, or else we can only hardcode existing
12240 # directories.
12241 hardcode_action_CXX=unsupported
12243 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12244 echo "${ECHO_T}$hardcode_action_CXX" >&6
12246 if test "$hardcode_action_CXX" = relink; then
12247 # Fast installation is not supported
12248 enable_fast_install=no
12249 elif test "$shlibpath_overrides_runpath" = yes ||
12250 test "$enable_shared" = no; then
12251 # Fast installation is not necessary
12252 enable_fast_install=needless
12255 striplib=
12256 old_striplib=
12257 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12262 echo "$as_me:$LINENO: result: yes" >&5
12263 echo "${ECHO_T}yes" >&6
12264 else
12265 # FIXME - insert some real tests, host_os isn't really good enough
12266 case $host_os in
12267 darwin*)
12268 if test -n "$STRIP" ; then
12269 striplib="$STRIP -x"
12270 echo "$as_me:$LINENO: result: yes" >&5
12271 echo "${ECHO_T}yes" >&6
12272 else
12273 echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12278 echo "$as_me:$LINENO: result: no" >&5
12279 echo "${ECHO_T}no" >&6
12281 esac
12284 if test "x$enable_dlopen" != xyes; then
12285 enable_dlopen=unknown
12286 enable_dlopen_self=unknown
12287 enable_dlopen_self_static=unknown
12288 else
12289 lt_cv_dlopen=no
12290 lt_cv_dlopen_libs=
12292 case $host_os in
12293 beos*)
12294 lt_cv_dlopen="load_add_on"
12295 lt_cv_dlopen_libs=
12296 lt_cv_dlopen_self=yes
12299 mingw* | pw32*)
12300 lt_cv_dlopen="LoadLibrary"
12301 lt_cv_dlopen_libs=
12304 cygwin*)
12305 lt_cv_dlopen="dlopen"
12306 lt_cv_dlopen_libs=
12309 darwin*)
12310 # if libdl is installed we need to link against it
12311 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldl $LIBS"
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* Override any gcc2 internal prototype to avoid an error. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12331 char dlopen ();
12333 main ()
12335 dlopen ();
12337 return 0;
12339 _ACEOF
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342 (eval $ac_link) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_cxx_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_lib_dl_dlopen=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_lib_dl_dlopen=no
12369 rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12374 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12375 if test $ac_cv_lib_dl_dlopen = yes; then
12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 else
12379 lt_cv_dlopen="dyld"
12380 lt_cv_dlopen_libs=
12381 lt_cv_dlopen_self=yes
12388 echo "$as_me:$LINENO: checking for shl_load" >&5
12389 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12390 if test "${ac_cv_func_shl_load+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12401 #define shl_load innocuous_shl_load
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char shl_load (); below.
12405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12406 <limits.h> exists even on freestanding compilers. */
12408 #ifdef __STDC__
12409 # include <limits.h>
12410 #else
12411 # include <assert.h>
12412 #endif
12414 #undef shl_load
12416 /* Override any gcc2 internal prototype to avoid an error. */
12417 #ifdef __cplusplus
12418 extern "C"
12420 #endif
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12423 char shl_load ();
12424 /* The GNU C library defines this for functions which it implements
12425 to always fail with ENOSYS. Some functions are actually named
12426 something starting with __ and the normal name is an alias. */
12427 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12428 choke me
12429 #else
12430 char (*f) () = shl_load;
12431 #endif
12432 #ifdef __cplusplus
12434 #endif
12437 main ()
12439 return f != shl_load;
12441 return 0;
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>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_cxx_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_func_shl_load=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_cv_func_shl_load=no
12473 rm -f conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12476 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12477 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12478 if test $ac_cv_func_shl_load = yes; then
12479 lt_cv_dlopen="shl_load"
12480 else
12481 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12482 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12483 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-ldld $LIBS"
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h. */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 /* We use char because int might match the return type of a gcc2
12500 builtin and then its argument prototype would still apply. */
12501 char shl_load ();
12503 main ()
12505 shl_load ();
12507 return 0;
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -z "$ac_cxx_werror_flag"
12520 || test ! -s conftest.err'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_lib_dld_shl_load=yes
12533 else
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_lib_dld_shl_load=no
12539 rm -f conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12543 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12544 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12545 if test $ac_cv_lib_dld_shl_load = yes; then
12546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12547 else
12548 echo "$as_me:$LINENO: checking for dlopen" >&5
12549 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12550 if test "${ac_cv_func_dlopen+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561 #define dlopen innocuous_dlopen
12563 /* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char dlopen (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12568 #ifdef __STDC__
12569 # include <limits.h>
12570 #else
12571 # include <assert.h>
12572 #endif
12574 #undef dlopen
12576 /* Override any gcc2 internal prototype to avoid an error. */
12577 #ifdef __cplusplus
12578 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583 char dlopen ();
12584 /* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12588 choke me
12589 #else
12590 char (*f) () = dlopen;
12591 #endif
12592 #ifdef __cplusplus
12594 #endif
12597 main ()
12599 return f != dlopen;
12601 return 0;
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_cxx_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_cv_func_dlopen=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_cv_func_dlopen=no
12633 rm -f conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12637 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12638 if test $ac_cv_func_dlopen = yes; then
12639 lt_cv_dlopen="dlopen"
12640 else
12641 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12642 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ldl $LIBS"
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char dlopen ();
12663 main ()
12665 dlopen ();
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_cxx_werror_flag"
12680 || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_lib_dl_dlopen=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_lib_dl_dlopen=no
12699 rm -f conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12703 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12705 if test $ac_cv_lib_dl_dlopen = yes; then
12706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12707 else
12708 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lsvld $LIBS"
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 /* We use char because int might match the return type of a gcc2
12727 builtin and then its argument prototype would still apply. */
12728 char dlopen ();
12730 main ()
12732 dlopen ();
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739 (eval $ac_link) 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_cxx_werror_flag"
12747 || test ! -s conftest.err'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_lib_svld_dlopen=yes
12760 else
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_lib_svld_dlopen=no
12766 rm -f conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12772 if test $ac_cv_lib_svld_dlopen = yes; then
12773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12774 else
12775 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12776 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12777 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-ldld $LIBS"
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12789 /* Override any gcc2 internal prototype to avoid an error. */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 /* We use char because int might match the return type of a gcc2
12794 builtin and then its argument prototype would still apply. */
12795 char dld_link ();
12797 main ()
12799 dld_link ();
12801 return 0;
12803 _ACEOF
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_cxx_werror_flag"
12814 || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest$ac_exeext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_cv_lib_dld_dld_link=yes
12827 else
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_lib_dld_dld_link=no
12833 rm -f conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12839 if test $ac_cv_lib_dld_dld_link = yes; then
12840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12859 esac
12861 if test "x$lt_cv_dlopen" != xno; then
12862 enable_dlopen=yes
12863 else
12864 enable_dlopen=no
12867 case $lt_cv_dlopen in
12868 dlopen)
12869 save_CPPFLAGS="$CPPFLAGS"
12870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12872 save_LDFLAGS="$LDFLAGS"
12873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12875 save_LIBS="$LIBS"
12876 LIBS="$lt_cv_dlopen_libs $LIBS"
12878 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12880 if test "${lt_cv_dlopen_self+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 if test "$cross_compiling" = yes; then :
12884 lt_cv_dlopen_self=cross
12885 else
12886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12887 lt_status=$lt_dlunknown
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12889 "configure"
12890 #include "confdefs.h"
12892 #if HAVE_DLFCN_H
12893 #include <dlfcn.h>
12894 #endif
12896 #include <stdio.h>
12898 #ifdef RTLD_GLOBAL
12899 # define LT_DLGLOBAL RTLD_GLOBAL
12900 #else
12901 # ifdef DL_GLOBAL
12902 # define LT_DLGLOBAL DL_GLOBAL
12903 # else
12904 # define LT_DLGLOBAL 0
12905 # endif
12906 #endif
12908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12909 find out it does not work in some platform. */
12910 #ifndef LT_DLLAZY_OR_NOW
12911 # ifdef RTLD_LAZY
12912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12913 # else
12914 # ifdef DL_LAZY
12915 # define LT_DLLAZY_OR_NOW DL_LAZY
12916 # else
12917 # ifdef RTLD_NOW
12918 # define LT_DLLAZY_OR_NOW RTLD_NOW
12919 # else
12920 # ifdef DL_NOW
12921 # define LT_DLLAZY_OR_NOW DL_NOW
12922 # else
12923 # define LT_DLLAZY_OR_NOW 0
12924 # endif
12925 # endif
12926 # endif
12927 # endif
12928 #endif
12930 #ifdef __cplusplus
12931 extern "C" void exit (int);
12932 #endif
12934 void fnord() { int i=42;}
12935 int main ()
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12940 if (self)
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12944 /* dlclose (self); */
12947 exit (status);
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12955 (./conftest; exit; ) 2>/dev/null
12956 lt_status=$?
12957 case x$lt_status in
12958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12960 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12961 esac
12962 else :
12963 # compilation failed
12964 lt_cv_dlopen_self=no
12967 rm -fr conftest*
12971 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12972 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12974 if test "x$lt_cv_dlopen_self" = xyes; then
12975 LDFLAGS="$LDFLAGS $link_static_flag"
12976 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12977 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12978 if test "${lt_cv_dlopen_self_static+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 if test "$cross_compiling" = yes; then :
12982 lt_cv_dlopen_self_static=cross
12983 else
12984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12985 lt_status=$lt_dlunknown
12986 cat > conftest.$ac_ext <<EOF
12987 #line 12987 "configure"
12988 #include "confdefs.h"
12990 #if HAVE_DLFCN_H
12991 #include <dlfcn.h>
12992 #endif
12994 #include <stdio.h>
12996 #ifdef RTLD_GLOBAL
12997 # define LT_DLGLOBAL RTLD_GLOBAL
12998 #else
12999 # ifdef DL_GLOBAL
13000 # define LT_DLGLOBAL DL_GLOBAL
13001 # else
13002 # define LT_DLGLOBAL 0
13003 # endif
13004 #endif
13006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13007 find out it does not work in some platform. */
13008 #ifndef LT_DLLAZY_OR_NOW
13009 # ifdef RTLD_LAZY
13010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13011 # else
13012 # ifdef DL_LAZY
13013 # define LT_DLLAZY_OR_NOW DL_LAZY
13014 # else
13015 # ifdef RTLD_NOW
13016 # define LT_DLLAZY_OR_NOW RTLD_NOW
13017 # else
13018 # ifdef DL_NOW
13019 # define LT_DLLAZY_OR_NOW DL_NOW
13020 # else
13021 # define LT_DLLAZY_OR_NOW 0
13022 # endif
13023 # endif
13024 # endif
13025 # endif
13026 #endif
13028 #ifdef __cplusplus
13029 extern "C" void exit (int);
13030 #endif
13032 void fnord() { int i=42;}
13033 int main ()
13035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13036 int status = $lt_dlunknown;
13038 if (self)
13040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13042 /* dlclose (self); */
13045 exit (status);
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13053 (./conftest; exit; ) 2>/dev/null
13054 lt_status=$?
13055 case x$lt_status in
13056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13058 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13059 esac
13060 else :
13061 # compilation failed
13062 lt_cv_dlopen_self_static=no
13065 rm -fr conftest*
13069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13073 CPPFLAGS="$save_CPPFLAGS"
13074 LDFLAGS="$save_LDFLAGS"
13075 LIBS="$save_LIBS"
13077 esac
13079 case $lt_cv_dlopen_self in
13080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13081 *) enable_dlopen_self=unknown ;;
13082 esac
13084 case $lt_cv_dlopen_self_static in
13085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13086 *) enable_dlopen_self_static=unknown ;;
13087 esac
13091 # The else clause should only fire when bootstrapping the
13092 # libtool distribution, otherwise you forgot to ship ltmain.sh
13093 # with your package, and you will get complaints that there are
13094 # no rules to generate ltmain.sh.
13095 if test -f "$ltmain"; then
13096 # See if we are running on zsh, and set the options which allow our commands through
13097 # without removal of \ escapes.
13098 if test -n "${ZSH_VERSION+set}" ; then
13099 setopt NO_GLOB_SUBST
13101 # Now quote all the things that may contain metacharacters while being
13102 # careful not to overquote the AC_SUBSTed values. We take copies of the
13103 # variables and quote the copies for generation of the libtool script.
13104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13105 SED SHELL STRIP \
13106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13108 deplibs_check_method reload_flag reload_cmds need_locks \
13109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13110 lt_cv_sys_global_symbol_to_c_name_address \
13111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13112 old_postinstall_cmds old_postuninstall_cmds \
13113 compiler_CXX \
13114 CC_CXX \
13115 LD_CXX \
13116 lt_prog_compiler_wl_CXX \
13117 lt_prog_compiler_pic_CXX \
13118 lt_prog_compiler_static_CXX \
13119 lt_prog_compiler_no_builtin_flag_CXX \
13120 export_dynamic_flag_spec_CXX \
13121 thread_safe_flag_spec_CXX \
13122 whole_archive_flag_spec_CXX \
13123 enable_shared_with_static_runtimes_CXX \
13124 old_archive_cmds_CXX \
13125 old_archive_from_new_cmds_CXX \
13126 predep_objects_CXX \
13127 postdep_objects_CXX \
13128 predeps_CXX \
13129 postdeps_CXX \
13130 compiler_lib_search_path_CXX \
13131 archive_cmds_CXX \
13132 archive_expsym_cmds_CXX \
13133 postinstall_cmds_CXX \
13134 postuninstall_cmds_CXX \
13135 old_archive_from_expsyms_cmds_CXX \
13136 allow_undefined_flag_CXX \
13137 no_undefined_flag_CXX \
13138 export_symbols_cmds_CXX \
13139 hardcode_libdir_flag_spec_CXX \
13140 hardcode_libdir_flag_spec_ld_CXX \
13141 hardcode_libdir_separator_CXX \
13142 hardcode_automatic_CXX \
13143 module_cmds_CXX \
13144 module_expsym_cmds_CXX \
13145 lt_cv_prog_compiler_c_o_CXX \
13146 exclude_expsyms_CXX \
13147 include_expsyms_CXX; do
13149 case $var in
13150 old_archive_cmds_CXX | \
13151 old_archive_from_new_cmds_CXX | \
13152 archive_cmds_CXX | \
13153 archive_expsym_cmds_CXX | \
13154 module_cmds_CXX | \
13155 module_expsym_cmds_CXX | \
13156 old_archive_from_expsyms_cmds_CXX | \
13157 export_symbols_cmds_CXX | \
13158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13159 postinstall_cmds | postuninstall_cmds | \
13160 old_postinstall_cmds | old_postuninstall_cmds | \
13161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13162 # Double-quote double-evaled strings.
13163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13168 esac
13169 done
13171 case $lt_echo in
13172 *'\$0 --fallback-echo"')
13173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13175 esac
13177 cfgfile="$ofile"
13179 cat <<__EOF__ >> "$cfgfile"
13180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13184 # Shell to use when invoking shell scripts.
13185 SHELL=$lt_SHELL
13187 # Whether or not to build shared libraries.
13188 build_libtool_libs=$enable_shared
13190 # Whether or not to build static libraries.
13191 build_old_libs=$enable_static
13193 # Whether or not to add -lc for building shared libraries.
13194 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13196 # Whether or not to disallow shared libs when runtime libs are static
13197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13199 # Whether or not to optimize for fast installation.
13200 fast_install=$enable_fast_install
13202 # The host system.
13203 host_alias=$host_alias
13204 host=$host
13205 host_os=$host_os
13207 # The build system.
13208 build_alias=$build_alias
13209 build=$build
13210 build_os=$build_os
13212 # An echo program that does not interpret backslashes.
13213 echo=$lt_echo
13215 # The archiver.
13216 AR=$lt_AR
13217 AR_FLAGS=$lt_AR_FLAGS
13219 # A C compiler.
13220 LTCC=$lt_LTCC
13222 # A language-specific compiler.
13223 CC=$lt_compiler_CXX
13225 # Is the compiler the GNU C compiler?
13226 with_gcc=$GCC_CXX
13228 # An ERE matcher.
13229 EGREP=$lt_EGREP
13231 # The linker used to build libraries.
13232 LD=$lt_LD_CXX
13234 # Whether we need hard or soft links.
13235 LN_S=$lt_LN_S
13237 # A BSD-compatible nm program.
13238 NM=$lt_NM
13240 # A symbol stripping program
13241 STRIP=$lt_STRIP
13243 # Used to examine libraries when file_magic_cmd begins "file"
13244 MAGIC_CMD=$MAGIC_CMD
13246 # Used on cygwin: DLL creation program.
13247 DLLTOOL="$DLLTOOL"
13249 # Used on cygwin: object dumper.
13250 OBJDUMP="$OBJDUMP"
13252 # Used on cygwin: assembler.
13253 AS="$AS"
13255 # The name of the directory that contains temporary libtool files.
13256 objdir=$objdir
13258 # How to create reloadable object files.
13259 reload_flag=$lt_reload_flag
13260 reload_cmds=$lt_reload_cmds
13262 # How to pass a linker flag through the compiler.
13263 wl=$lt_lt_prog_compiler_wl_CXX
13265 # Object file suffix (normally "o").
13266 objext="$ac_objext"
13268 # Old archive suffix (normally "a").
13269 libext="$libext"
13271 # Shared library suffix (normally ".so").
13272 shrext_cmds='$shrext_cmds'
13274 # Executable file suffix (normally "").
13275 exeext="$exeext"
13277 # Additional compiler flags for building library objects.
13278 pic_flag=$lt_lt_prog_compiler_pic_CXX
13279 pic_mode=$pic_mode
13281 # What is the maximum length of a command?
13282 max_cmd_len=$lt_cv_sys_max_cmd_len
13284 # Does compiler simultaneously support -c and -o options?
13285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13287 # Must we lock files when doing compilation ?
13288 need_locks=$lt_need_locks
13290 # Do we need the lib prefix for modules?
13291 need_lib_prefix=$need_lib_prefix
13293 # Do we need a version for libraries?
13294 need_version=$need_version
13296 # Whether dlopen is supported.
13297 dlopen_support=$enable_dlopen
13299 # Whether dlopen of programs is supported.
13300 dlopen_self=$enable_dlopen_self
13302 # Whether dlopen of statically linked programs is supported.
13303 dlopen_self_static=$enable_dlopen_self_static
13305 # Compiler flag to prevent dynamic linking.
13306 link_static_flag=$lt_lt_prog_compiler_static_CXX
13308 # Compiler flag to turn off builtin functions.
13309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13311 # Compiler flag to allow reflexive dlopens.
13312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13314 # Compiler flag to generate shared objects directly from archives.
13315 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13317 # Compiler flag to generate thread-safe objects.
13318 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13320 # Library versioning type.
13321 version_type=$version_type
13323 # Format of library name prefix.
13324 libname_spec=$lt_libname_spec
13326 # List of archive names. First name is the real one, the rest are links.
13327 # The last name is the one that the linker finds with -lNAME.
13328 library_names_spec=$lt_library_names_spec
13330 # The coded name of the library, if different from the real name.
13331 soname_spec=$lt_soname_spec
13333 # Commands used to build and install an old-style archive.
13334 RANLIB=$lt_RANLIB
13335 old_archive_cmds=$lt_old_archive_cmds_CXX
13336 old_postinstall_cmds=$lt_old_postinstall_cmds
13337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13339 # Create an old-style archive from a shared archive.
13340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13342 # Create a temporary old-style archive to link instead of a shared archive.
13343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13345 # Commands used to build and install a shared archive.
13346 archive_cmds=$lt_archive_cmds_CXX
13347 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13348 postinstall_cmds=$lt_postinstall_cmds
13349 postuninstall_cmds=$lt_postuninstall_cmds
13351 # Commands used to build a loadable module (assumed same as above if empty)
13352 module_cmds=$lt_module_cmds_CXX
13353 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13355 # Commands to strip libraries.
13356 old_striplib=$lt_old_striplib
13357 striplib=$lt_striplib
13359 # Dependencies to place before the objects being linked to create a
13360 # shared library.
13361 predep_objects=$lt_predep_objects_CXX
13363 # Dependencies to place after the objects being linked to create a
13364 # shared library.
13365 postdep_objects=$lt_postdep_objects_CXX
13367 # Dependencies to place before the objects being linked to create a
13368 # shared library.
13369 predeps=$lt_predeps_CXX
13371 # Dependencies to place after the objects being linked to create a
13372 # shared library.
13373 postdeps=$lt_postdeps_CXX
13375 # The library search path used internally by the compiler when linking
13376 # a shared library.
13377 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13379 # Method to check whether dependent libraries are shared objects.
13380 deplibs_check_method=$lt_deplibs_check_method
13382 # Command to use when deplibs_check_method == file_magic.
13383 file_magic_cmd=$lt_file_magic_cmd
13385 # Flag that allows shared libraries with undefined symbols to be built.
13386 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13388 # Flag that forces no undefined symbols.
13389 no_undefined_flag=$lt_no_undefined_flag_CXX
13391 # Commands used to finish a libtool library installation in a directory.
13392 finish_cmds=$lt_finish_cmds
13394 # Same as above, but a single script fragment to be evaled but not shown.
13395 finish_eval=$lt_finish_eval
13397 # Take the output of nm and produce a listing of raw symbols and C names.
13398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13400 # Transform the output of nm in a proper C declaration
13401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13403 # Transform the output of nm in a C name address pair
13404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13406 # This is the shared library runtime path variable.
13407 runpath_var=$runpath_var
13409 # This is the shared library path variable.
13410 shlibpath_var=$shlibpath_var
13412 # Is shlibpath searched before the hard-coded library search path?
13413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13415 # How to hardcode a shared library path into an executable.
13416 hardcode_action=$hardcode_action_CXX
13418 # Whether we should hardcode library paths into libraries.
13419 hardcode_into_libs=$hardcode_into_libs
13421 # Flag to hardcode \$libdir into a binary during linking.
13422 # This must work even if \$libdir does not exist.
13423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13425 # If ld is used when linking, flag to hardcode \$libdir into
13426 # a binary during linking. This must work even if \$libdir does
13427 # not exist.
13428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13430 # Whether we need a single -rpath flag with a separated argument.
13431 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13433 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13434 # resulting binary.
13435 hardcode_direct=$hardcode_direct_CXX
13437 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13438 # resulting binary.
13439 hardcode_minus_L=$hardcode_minus_L_CXX
13441 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13442 # the resulting binary.
13443 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13445 # Set to yes if building a shared library automatically hardcodes DIR into the library
13446 # and all subsequent libraries and executables linked against it.
13447 hardcode_automatic=$hardcode_automatic_CXX
13449 # Variables whose values should be saved in libtool wrapper scripts and
13450 # restored at relink time.
13451 variables_saved_for_relink="$variables_saved_for_relink"
13453 # Whether libtool must link a program against all its dependency libraries.
13454 link_all_deplibs=$link_all_deplibs_CXX
13456 # Compile-time system search path for libraries
13457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13459 # Run-time system search path for libraries
13460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13462 # Fix the shell variable \$srcfile for the compiler.
13463 fix_srcfile_path="$fix_srcfile_path_CXX"
13465 # Set to yes if exported symbols are required.
13466 always_export_symbols=$always_export_symbols_CXX
13468 # The commands to list exported symbols.
13469 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13471 # The commands to extract the exported symbol list from a shared archive.
13472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13474 # Symbols that should not be listed in the preloaded symbols.
13475 exclude_expsyms=$lt_exclude_expsyms_CXX
13477 # Symbols that must always be exported.
13478 include_expsyms=$lt_include_expsyms_CXX
13480 # ### END LIBTOOL TAG CONFIG: $tagname
13482 __EOF__
13485 else
13486 # If there is no Makefile yet, we rely on a make rule to execute
13487 # `config.status --recheck' to rerun these tests and create the
13488 # libtool script then.
13489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13490 if test -f "$ltmain_in"; then
13491 test -f Makefile && make "$ltmain"
13496 ac_ext=c
13497 ac_cpp='$CPP $CPPFLAGS'
13498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13502 CC=$lt_save_CC
13503 LDCXX=$LD
13504 LD=$lt_save_LD
13505 GCC=$lt_save_GCC
13506 with_gnu_ldcxx=$with_gnu_ld
13507 with_gnu_ld=$lt_save_with_gnu_ld
13508 lt_cv_path_LDCXX=$lt_cv_path_LD
13509 lt_cv_path_LD=$lt_save_path_LD
13510 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13511 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13513 else
13514 tagname=""
13518 F77)
13519 if test -n "$F77" && test "X$F77" != "Xno"; then
13521 ac_ext=f
13522 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13523 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13527 archive_cmds_need_lc_F77=no
13528 allow_undefined_flag_F77=
13529 always_export_symbols_F77=no
13530 archive_expsym_cmds_F77=
13531 export_dynamic_flag_spec_F77=
13532 hardcode_direct_F77=no
13533 hardcode_libdir_flag_spec_F77=
13534 hardcode_libdir_flag_spec_ld_F77=
13535 hardcode_libdir_separator_F77=
13536 hardcode_minus_L_F77=no
13537 hardcode_automatic_F77=no
13538 module_cmds_F77=
13539 module_expsym_cmds_F77=
13540 link_all_deplibs_F77=unknown
13541 old_archive_cmds_F77=$old_archive_cmds
13542 no_undefined_flag_F77=
13543 whole_archive_flag_spec_F77=
13544 enable_shared_with_static_runtimes_F77=no
13546 # Source file extension for f77 test sources.
13547 ac_ext=f
13549 # Object file extension for compiled f77 test sources.
13550 objext=o
13551 objext_F77=$objext
13553 # Code to be used in simple compile tests
13554 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13556 # Code to be used in simple link tests
13557 lt_simple_link_test_code=" program t\n end\n"
13559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13561 # If no C compiler was specified, use CC.
13562 LTCC=${LTCC-"$CC"}
13564 # Allow CC to be a program name with arguments.
13565 compiler=$CC
13568 # Allow CC to be a program name with arguments.
13569 lt_save_CC="$CC"
13570 CC=${F77-"f77"}
13571 compiler=$CC
13572 compiler_F77=$CC
13573 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13575 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13576 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13577 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13578 echo "${ECHO_T}$can_build_shared" >&6
13580 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13581 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13582 test "$can_build_shared" = "no" && enable_shared=no
13584 # On AIX, shared libraries and static libraries use the same namespace, and
13585 # are all built from PIC.
13586 case "$host_os" in
13587 aix3*)
13588 test "$enable_shared" = yes && enable_static=no
13589 if test -n "$RANLIB"; then
13590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13591 postinstall_cmds='$RANLIB $lib'
13594 aix4* | aix5*)
13595 test "$enable_shared" = yes && enable_static=no
13597 esac
13598 echo "$as_me:$LINENO: result: $enable_shared" >&5
13599 echo "${ECHO_T}$enable_shared" >&6
13601 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13602 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13603 # Make sure either enable_shared or enable_static is yes.
13604 test "$enable_shared" = yes || enable_static=yes
13605 echo "$as_me:$LINENO: result: $enable_static" >&5
13606 echo "${ECHO_T}$enable_static" >&6
13608 test "$ld_shlibs_F77" = no && can_build_shared=no
13610 GCC_F77="$G77"
13611 LD_F77="$LD"
13613 lt_prog_compiler_wl_F77=
13614 lt_prog_compiler_pic_F77=
13615 lt_prog_compiler_static_F77=
13617 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13618 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13620 if test "$GCC" = yes; then
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 lt_prog_compiler_static_F77='-static'
13624 case $host_os in
13625 aix*)
13626 # All AIX code is PIC.
13627 if test "$host_cpu" = ia64; then
13628 # AIX 5 now supports IA64 processor
13629 lt_prog_compiler_static_F77='-Bstatic'
13633 amigaos*)
13634 # FIXME: we need at least 68020 code to build shared libraries, but
13635 # adding the `-m68020' flag to GCC prevents building anything better,
13636 # like `-m68040'.
13637 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13640 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13641 # PIC is the default for these OSes.
13644 mingw* | pw32* | os2*)
13645 # This hack is so that the source file can tell whether it is being
13646 # built for inclusion in a dll (and should export symbols for example).
13647 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic_F77='-fno-common'
13656 msdosdjgpp*)
13657 # Just because we use GCC doesn't mean we suddenly get shared libraries
13658 # on systems that don't support them.
13659 lt_prog_compiler_can_build_shared_F77=no
13660 enable_shared=no
13663 sysv4*MP*)
13664 if test -d /usr/nec; then
13665 lt_prog_compiler_pic_F77=-Kconform_pic
13669 hpux*)
13670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13671 # not for PA HP-UX.
13672 case "$host_cpu" in
13673 hppa*64*|ia64*)
13674 # +Z the default
13677 lt_prog_compiler_pic_F77='-fPIC'
13679 esac
13683 lt_prog_compiler_pic_F77='-fPIC'
13685 esac
13686 else
13687 # PORTME Check for flag to pass linker flags through the system compiler.
13688 case $host_os in
13689 aix*)
13690 lt_prog_compiler_wl_F77='-Wl,'
13691 if test "$host_cpu" = ia64; then
13692 # AIX 5 now supports IA64 processor
13693 lt_prog_compiler_static_F77='-Bstatic'
13694 else
13695 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13698 darwin*)
13699 # PIC is the default on this platform
13700 # Common symbols not allowed in MH_DYLIB files
13701 case "$cc_basename" in
13702 xlc*)
13703 lt_prog_compiler_pic_F77='-qnocommon'
13704 lt_prog_compiler_wl_F77='-Wl,'
13706 esac
13709 mingw* | pw32* | os2*)
13710 # This hack is so that the source file can tell whether it is being
13711 # built for inclusion in a dll (and should export symbols for example).
13712 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13715 hpux9* | hpux10* | hpux11*)
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13718 # not for PA HP-UX.
13719 case "$host_cpu" in
13720 hppa*64*|ia64*)
13721 # +Z the default
13724 lt_prog_compiler_pic_F77='+Z'
13726 esac
13727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13728 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13731 irix5* | irix6* | nonstopux*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 # PIC (with -KPIC) is the default.
13734 lt_prog_compiler_static_F77='-non_shared'
13737 newsos6)
13738 lt_prog_compiler_pic_F77='-KPIC'
13739 lt_prog_compiler_static_F77='-Bstatic'
13742 linux*)
13743 case $cc_basename in
13744 icc* | ecc*)
13745 lt_prog_compiler_wl_F77='-Wl,'
13746 lt_prog_compiler_pic_F77='-KPIC'
13747 lt_prog_compiler_static_F77='-static'
13749 pgcc | pgf77 | pgf90)
13750 # Portland Group compilers (*not* the Pentium gcc compiler,
13751 # which looks to be a dead project)
13752 lt_prog_compiler_wl_F77='-Wl,'
13753 lt_prog_compiler_pic_F77='-fpic'
13754 lt_prog_compiler_static_F77='-static'
13756 ccc*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 # All Alpha code is PIC.
13759 lt_prog_compiler_static_F77='-non_shared'
13761 como)
13762 lt_prog_compiler_wl_F77='-lopt='
13764 esac
13767 osf3* | osf4* | osf5*)
13768 lt_prog_compiler_wl_F77='-Wl,'
13769 # All OSF/1 code is PIC.
13770 lt_prog_compiler_static_F77='-non_shared'
13773 sco3.2v5*)
13774 lt_prog_compiler_pic_F77='-Kpic'
13775 lt_prog_compiler_static_F77='-dn'
13778 solaris*)
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 lt_prog_compiler_pic_F77='-KPIC'
13781 lt_prog_compiler_static_F77='-Bstatic'
13784 sunos4*)
13785 lt_prog_compiler_wl_F77='-Qoption ld '
13786 lt_prog_compiler_pic_F77='-PIC'
13787 lt_prog_compiler_static_F77='-Bstatic'
13790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13791 lt_prog_compiler_wl_F77='-Wl,'
13792 lt_prog_compiler_pic_F77='-KPIC'
13793 lt_prog_compiler_static_F77='-Bstatic'
13796 sysv4*MP*)
13797 if test -d /usr/nec ;then
13798 lt_prog_compiler_pic_F77='-Kconform_pic'
13799 lt_prog_compiler_static_F77='-Bstatic'
13803 unicos*)
13804 lt_prog_compiler_wl_F77='-Wl,'
13805 lt_prog_compiler_can_build_shared_F77=no
13808 uts4*)
13809 lt_prog_compiler_pic_F77='-pic'
13810 lt_prog_compiler_static_F77='-Bstatic'
13814 lt_prog_compiler_can_build_shared_F77=no
13816 esac
13819 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13820 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13823 # Check to make sure the PIC flag actually works.
13825 if test -n "$lt_prog_compiler_pic_F77"; then
13827 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13828 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13829 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 lt_prog_compiler_pic_works_F77=no
13833 ac_outfile=conftest.$ac_objext
13834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13835 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13836 # Insert the option either (1) after the last *FLAGS variable, or
13837 # (2) before a word containing "conftest.", or (3) at the end.
13838 # Note that $ac_compile itself does not contain backslashes and begins
13839 # with a dollar sign (not a hyphen), so the echo should work correctly.
13840 # The option is referenced via a variable to avoid confusing sed.
13841 lt_compile=`echo "$ac_compile" | $SED \
13842 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13844 -e 's:$: $lt_compiler_flag:'`
13845 (eval echo "\"\$as_me:13845: $lt_compile\"" >&5)
13846 (eval "$lt_compile" 2>conftest.err)
13847 ac_status=$?
13848 cat conftest.err >&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 if (exit $ac_status) && test -s "$ac_outfile"; then
13851 # The compiler can only warn and ignore the option if not recognized
13852 # So say no if there are warnings
13853 if test ! -s conftest.err; then
13854 lt_prog_compiler_pic_works_F77=yes
13857 $rm conftest*
13860 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13861 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13863 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13864 case $lt_prog_compiler_pic_F77 in
13865 "" | " "*) ;;
13866 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13867 esac
13868 else
13869 lt_prog_compiler_pic_F77=
13870 lt_prog_compiler_can_build_shared_F77=no
13874 case "$host_os" in
13875 # For platforms which do not support PIC, -DPIC is meaningless:
13876 *djgpp*)
13877 lt_prog_compiler_pic_F77=
13880 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13882 esac
13884 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13886 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 else
13889 lt_cv_prog_compiler_c_o_F77=no
13890 $rm -r conftest 2>/dev/null
13891 mkdir conftest
13892 cd conftest
13893 mkdir out
13894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13896 lt_compiler_flag="-o out/conftest2.$ac_objext"
13897 # Insert the option either (1) after the last *FLAGS variable, or
13898 # (2) before a word containing "conftest.", or (3) at the end.
13899 # Note that $ac_compile itself does not contain backslashes and begins
13900 # with a dollar sign (not a hyphen), so the echo should work correctly.
13901 lt_compile=`echo "$ac_compile" | $SED \
13902 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13904 -e 's:$: $lt_compiler_flag:'`
13905 (eval echo "\"\$as_me:13905: $lt_compile\"" >&5)
13906 (eval "$lt_compile" 2>out/conftest.err)
13907 ac_status=$?
13908 cat out/conftest.err >&5
13909 echo "$as_me:13909: \$? = $ac_status" >&5
13910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13911 then
13912 # The compiler can only warn and ignore the option if not recognized
13913 # So say no if there are warnings
13914 if test ! -s out/conftest.err; then
13915 lt_cv_prog_compiler_c_o_F77=yes
13918 chmod u+w .
13919 $rm conftest*
13920 # SGI C++ compiler will create directory out/ii_files/ for
13921 # template instantiation
13922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13923 $rm out/* && rmdir out
13924 cd ..
13925 rmdir conftest
13926 $rm conftest*
13929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13933 hard_links="nottested"
13934 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13935 # do not overwrite the value of need_locks provided by the user
13936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13938 hard_links=yes
13939 $rm conftest*
13940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13941 touch conftest.a
13942 ln conftest.a conftest.b 2>&5 || hard_links=no
13943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13944 echo "$as_me:$LINENO: result: $hard_links" >&5
13945 echo "${ECHO_T}$hard_links" >&6
13946 if test "$hard_links" = no; then
13947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13949 need_locks=warn
13951 else
13952 need_locks=no
13955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13958 runpath_var=
13959 allow_undefined_flag_F77=
13960 enable_shared_with_static_runtimes_F77=no
13961 archive_cmds_F77=
13962 archive_expsym_cmds_F77=
13963 old_archive_From_new_cmds_F77=
13964 old_archive_from_expsyms_cmds_F77=
13965 export_dynamic_flag_spec_F77=
13966 whole_archive_flag_spec_F77=
13967 thread_safe_flag_spec_F77=
13968 hardcode_libdir_flag_spec_F77=
13969 hardcode_libdir_flag_spec_ld_F77=
13970 hardcode_libdir_separator_F77=
13971 hardcode_direct_F77=no
13972 hardcode_minus_L_F77=no
13973 hardcode_shlibpath_var_F77=unsupported
13974 link_all_deplibs_F77=unknown
13975 hardcode_automatic_F77=no
13976 module_cmds_F77=
13977 module_expsym_cmds_F77=
13978 always_export_symbols_F77=no
13979 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13980 # include_expsyms should be a list of space-separated symbols to be *always*
13981 # included in the symbol list
13982 include_expsyms_F77=
13983 # exclude_expsyms can be an extended regexp of symbols to exclude
13984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13986 # as well as any symbol that contains `d'.
13987 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13989 # platforms (ab)use it in PIC code, but their linkers get confused if
13990 # the symbol is explicitly referenced. Since portable code cannot
13991 # rely on this symbol name, it's probably fine to never include it in
13992 # preloaded symbol tables.
13993 extract_expsyms_cmds=
13995 case $host_os in
13996 cygwin* | mingw* | pw32*)
13997 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13998 # When not using gcc, we currently assume that we are using
13999 # Microsoft Visual C++.
14000 if test "$GCC" != yes; then
14001 with_gnu_ld=no
14004 openbsd*)
14005 with_gnu_ld=no
14007 esac
14009 ld_shlibs_F77=yes
14010 if test "$with_gnu_ld" = yes; then
14011 # If archive_cmds runs LD, not CC, wlarc should be empty
14012 wlarc='${wl}'
14014 # See if GNU ld supports shared libraries.
14015 case $host_os in
14016 aix3* | aix4* | aix5*)
14017 # On AIX/PPC, the GNU linker is very broken
14018 if test "$host_cpu" != ia64; then
14019 ld_shlibs_F77=no
14020 cat <<EOF 1>&2
14022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14023 *** to be unable to reliably create shared libraries on AIX.
14024 *** Therefore, libtool is disabling shared libraries support. If you
14025 *** really care for shared libraries, you may want to modify your PATH
14026 *** so that a non-GNU linker is found, and then restart.
14032 amigaos*)
14033 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)'
14034 hardcode_libdir_flag_spec_F77='-L$libdir'
14035 hardcode_minus_L_F77=yes
14037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14038 # that the semantics of dynamic libraries on AmigaOS, at least up
14039 # to version 4, is to share data among multiple programs linked
14040 # with the same dynamic library. Since this doesn't match the
14041 # behavior of shared libraries on other platforms, we can't use
14042 # them.
14043 ld_shlibs_F77=no
14046 beos*)
14047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14048 allow_undefined_flag_F77=unsupported
14049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14050 # support --undefined. This deserves some investigation. FIXME
14051 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 else
14053 ld_shlibs_F77=no
14057 cygwin* | mingw* | pw32*)
14058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14059 # as there is no search path for DLLs.
14060 hardcode_libdir_flag_spec_F77='-L$libdir'
14061 allow_undefined_flag_F77=unsupported
14062 always_export_symbols_F77=no
14063 enable_shared_with_static_runtimes_F77=yes
14064 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14067 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14068 # If the export-symbols file already is a .def file (1st line
14069 # is EXPORTS), use it as is; otherwise, prepend...
14070 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14071 cp $export_symbols $output_objdir/$soname.def;
14072 else
14073 echo EXPORTS > $output_objdir/$soname.def;
14074 cat $export_symbols >> $output_objdir/$soname.def;
14076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14077 else
14078 ld_shlibs_F77=no
14082 netbsd*)
14083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14084 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14085 wlarc=
14086 else
14087 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14092 solaris* | sysv5*)
14093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14094 ld_shlibs_F77=no
14095 cat <<EOF 1>&2
14097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14098 *** create shared libraries on Solaris systems. Therefore, libtool
14099 *** is disabling shared libraries support. We urge you to upgrade GNU
14100 *** binutils to release 2.9.1 or newer. Another option is to modify
14101 *** your PATH or compiler configuration so that the native linker is
14102 *** used, and then restart.
14105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 else
14109 ld_shlibs_F77=no
14113 sunos4*)
14114 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14115 wlarc=
14116 hardcode_direct_F77=yes
14117 hardcode_shlibpath_var_F77=no
14120 linux*)
14121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14122 tmp_addflag=
14123 case $CC,$host_cpu in
14124 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14125 tmp_addflag=' -fpic' ;;
14126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14127 tmp_addflag=' -i_dynamic' ;;
14128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14129 tmp_addflag=' -i_dynamic -nofor_main' ;;
14130 ifc* | ifort*) # Intel Fortran compiler
14131 tmp_addflag=' -nofor_main' ;;
14132 esac
14133 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14134 supports_anon_versioning=no
14135 case `$LD -v 2>/dev/null` in
14136 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14137 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14138 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14139 *\ 2.11.*) ;; # other 2.11 versions
14140 *) supports_anon_versioning=yes ;;
14141 esac
14142 if test $supports_anon_versioning = yes; then
14143 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14145 $echo "local: *; };" >> $output_objdir/$libname.ver~
14146 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14147 else
14148 archive_expsym_cmds_F77=$archive_cmds_F77
14150 else
14151 ld_shlibs_F77=no
14156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14159 else
14160 ld_shlibs_F77=no
14163 esac
14165 if test "$ld_shlibs_F77" = yes; then
14166 runpath_var=LD_RUN_PATH
14167 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14168 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14169 # ancient GNU ld didn't support --whole-archive et. al.
14170 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14171 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14172 else
14173 whole_archive_flag_spec_F77=
14176 else
14177 # PORTME fill in a description of your system's linker (not GNU ld)
14178 case $host_os in
14179 aix3*)
14180 allow_undefined_flag_F77=unsupported
14181 always_export_symbols_F77=yes
14182 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'
14183 # Note: this linker hardcodes the directories in LIBPATH if there
14184 # are no directories specified by -L.
14185 hardcode_minus_L_F77=yes
14186 if test "$GCC" = yes && test -z "$link_static_flag"; then
14187 # Neither direct hardcoding nor static linking is supported with a
14188 # broken collect2.
14189 hardcode_direct_F77=unsupported
14193 aix4* | aix5*)
14194 if test "$host_cpu" = ia64; then
14195 # On IA64, the linker does run time linking by default, so we don't
14196 # have to do anything special.
14197 aix_use_runtimelinking=no
14198 exp_sym_flag='-Bexport'
14199 no_entry_flag=""
14200 else
14201 # If we're using GNU nm, then we don't want the "-C" option.
14202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14203 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14204 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'
14205 else
14206 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'
14208 aix_use_runtimelinking=no
14210 # Test if we are trying to use run time linking or normal
14211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14212 # need to do runtime linking.
14213 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14214 for ld_flag in $LDFLAGS; do
14215 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14216 aix_use_runtimelinking=yes
14217 break
14219 done
14220 esac
14222 exp_sym_flag='-bexport'
14223 no_entry_flag='-bnoentry'
14226 # When large executables or shared objects are built, AIX ld can
14227 # have problems creating the table of contents. If linking a library
14228 # or program results in "error TOC overflow" add -mminimal-toc to
14229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14232 archive_cmds_F77=''
14233 hardcode_direct_F77=yes
14234 hardcode_libdir_separator_F77=':'
14235 link_all_deplibs_F77=yes
14237 if test "$GCC" = yes; then
14238 case $host_os in aix4.[012]|aix4.[012].*)
14239 # We only want to do this on AIX 4.2 and lower, the check
14240 # below for broken collect2 doesn't work under 4.3+
14241 collect2name=`${CC} -print-prog-name=collect2`
14242 if test -f "$collect2name" && \
14243 strings "$collect2name" | grep resolve_lib_name >/dev/null
14244 then
14245 # We have reworked collect2
14246 hardcode_direct_F77=yes
14247 else
14248 # We have old collect2
14249 hardcode_direct_F77=unsupported
14250 # It fails to find uninstalled libraries when the uninstalled
14251 # path is not listed in the libpath. Setting hardcode_minus_L
14252 # to unsupported forces relinking
14253 hardcode_minus_L_F77=yes
14254 hardcode_libdir_flag_spec_F77='-L$libdir'
14255 hardcode_libdir_separator_F77=
14257 esac
14258 shared_flag='-shared'
14259 if test "$aix_use_runtimelinking" = yes; then
14260 shared_flag="$shared_flag "'${wl}-G'
14262 else
14263 # not using gcc
14264 if test "$host_cpu" = ia64; then
14265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14266 # chokes on -Wl,-G. The following line is correct:
14267 shared_flag='-G'
14268 else
14269 if test "$aix_use_runtimelinking" = yes; then
14270 shared_flag='${wl}-G'
14271 else
14272 shared_flag='${wl}-bM:SRE'
14277 # It seems that -bexpall does not export symbols beginning with
14278 # underscore (_), so it is better to generate a list of symbols to export.
14279 always_export_symbols_F77=yes
14280 if test "$aix_use_runtimelinking" = yes; then
14281 # Warning - without using the other runtime loading flags (-brtl),
14282 # -berok will link without error, but may produce a broken library.
14283 allow_undefined_flag_F77='-berok'
14284 # Determine the default libpath from the value encoded in an empty executable.
14285 cat >conftest.$ac_ext <<_ACEOF
14286 program main
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292 (eval $ac_link) 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_f77_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14315 # Check for a 64-bit object if we didn't find anything.
14316 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; }
14317 }'`; fi
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14323 rm -f conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14327 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14328 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"
14329 else
14330 if test "$host_cpu" = ia64; then
14331 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14332 allow_undefined_flag_F77="-z nodefs"
14333 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"
14334 else
14335 # Determine the default libpath from the value encoded in an empty executable.
14336 cat >conftest.$ac_ext <<_ACEOF
14337 program main
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343 (eval $ac_link) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -z "$ac_f77_werror_flag"
14351 || test ! -s conftest.err'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14366 # Check for a 64-bit object if we didn't find anything.
14367 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; }
14368 }'`; fi
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14374 rm -f conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14378 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14379 # Warning - without using the other run time loading flags,
14380 # -berok will link without error, but may produce a broken library.
14381 no_undefined_flag_F77=' ${wl}-bernotok'
14382 allow_undefined_flag_F77=' ${wl}-berok'
14383 # -bexpall does not export symbols beginning with underscore (_)
14384 always_export_symbols_F77=yes
14385 # Exported symbols can be pulled into shared objects from archives
14386 whole_archive_flag_spec_F77=' '
14387 archive_cmds_need_lc_F77=yes
14388 # This is similar to how AIX traditionally builds it's shared libraries.
14389 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'
14394 amigaos*)
14395 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)'
14396 hardcode_libdir_flag_spec_F77='-L$libdir'
14397 hardcode_minus_L_F77=yes
14398 # see comment about different semantics on the GNU ld section
14399 ld_shlibs_F77=no
14402 bsdi[45]*)
14403 export_dynamic_flag_spec_F77=-rdynamic
14406 cygwin* | mingw* | pw32*)
14407 # When not using gcc, we currently assume that we are using
14408 # Microsoft Visual C++.
14409 # hardcode_libdir_flag_spec is actually meaningless, as there is
14410 # no search path for DLLs.
14411 hardcode_libdir_flag_spec_F77=' '
14412 allow_undefined_flag_F77=unsupported
14413 # Tell ltmain to make .lib files, not .a files.
14414 libext=lib
14415 # Tell ltmain to make .dll files, not .so files.
14416 shrext_cmds=".dll"
14417 # FIXME: Setting linknames here is a bad hack.
14418 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14419 # The linker will automatically build a .lib file if we build a DLL.
14420 old_archive_From_new_cmds_F77='true'
14421 # FIXME: Should let the user specify the lib program.
14422 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14423 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14424 enable_shared_with_static_runtimes_F77=yes
14427 darwin* | rhapsody*)
14428 case "$host_os" in
14429 rhapsody* | darwin1.[012])
14430 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14432 *) # Darwin 1.3 on
14433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14434 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14435 else
14436 case ${MACOSX_DEPLOYMENT_TARGET} in
14437 10.[012])
14438 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14440 10.*)
14441 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14443 esac
14446 esac
14447 archive_cmds_need_lc_F77=no
14448 hardcode_direct_F77=no
14449 hardcode_automatic_F77=yes
14450 hardcode_shlibpath_var_F77=unsupported
14451 whole_archive_flag_spec_F77=''
14452 link_all_deplibs_F77=yes
14453 if test "$GCC" = yes ; then
14454 output_verbose_link_cmd='echo'
14455 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14456 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14458 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14459 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14460 else
14461 case "$cc_basename" in
14462 xlc*)
14463 output_verbose_link_cmd='echo'
14464 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14465 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14467 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14468 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14471 ld_shlibs_F77=no
14473 esac
14477 dgux*)
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479 hardcode_libdir_flag_spec_F77='-L$libdir'
14480 hardcode_shlibpath_var_F77=no
14483 freebsd1*)
14484 ld_shlibs_F77=no
14487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14488 # support. Future versions do this automatically, but an explicit c++rt0.o
14489 # does not break anything, and helps significantly (at the cost of a little
14490 # extra space).
14491 freebsd2.2*)
14492 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14493 hardcode_libdir_flag_spec_F77='-R$libdir'
14494 hardcode_direct_F77=yes
14495 hardcode_shlibpath_var_F77=no
14498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14499 freebsd2*)
14500 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14501 hardcode_direct_F77=yes
14502 hardcode_minus_L_F77=yes
14503 hardcode_shlibpath_var_F77=no
14506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14507 freebsd* | kfreebsd*-gnu | dragonfly*)
14508 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14509 hardcode_libdir_flag_spec_F77='-R$libdir'
14510 hardcode_direct_F77=yes
14511 hardcode_shlibpath_var_F77=no
14514 hpux9*)
14515 if test "$GCC" = yes; then
14516 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'
14517 else
14518 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'
14520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14521 hardcode_libdir_separator_F77=:
14522 hardcode_direct_F77=yes
14524 # hardcode_minus_L: Not really in the search PATH,
14525 # but as the default location of the library.
14526 hardcode_minus_L_F77=yes
14527 export_dynamic_flag_spec_F77='${wl}-E'
14530 hpux10* | hpux11*)
14531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14532 case "$host_cpu" in
14533 hppa*64*|ia64*)
14534 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14539 esac
14540 else
14541 case "$host_cpu" in
14542 hppa*64*|ia64*)
14543 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14546 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14548 esac
14550 if test "$with_gnu_ld" = no; then
14551 case "$host_cpu" in
14552 hppa*64*)
14553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14554 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14555 hardcode_libdir_separator_F77=:
14556 hardcode_direct_F77=no
14557 hardcode_shlibpath_var_F77=no
14559 ia64*)
14560 hardcode_libdir_flag_spec_F77='-L$libdir'
14561 hardcode_direct_F77=no
14562 hardcode_shlibpath_var_F77=no
14564 # hardcode_minus_L: Not really in the search PATH,
14565 # but as the default location of the library.
14566 hardcode_minus_L_F77=yes
14569 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14570 hardcode_libdir_separator_F77=:
14571 hardcode_direct_F77=yes
14572 export_dynamic_flag_spec_F77='${wl}-E'
14574 # hardcode_minus_L: Not really in the search PATH,
14575 # but as the default location of the library.
14576 hardcode_minus_L_F77=yes
14578 esac
14582 irix5* | irix6* | nonstopux*)
14583 if test "$GCC" = yes; then
14584 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'
14585 else
14586 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'
14587 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14590 hardcode_libdir_separator_F77=:
14591 link_all_deplibs_F77=yes
14594 netbsd*)
14595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14597 else
14598 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14600 hardcode_libdir_flag_spec_F77='-R$libdir'
14601 hardcode_direct_F77=yes
14602 hardcode_shlibpath_var_F77=no
14605 newsos6)
14606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607 hardcode_direct_F77=yes
14608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14609 hardcode_libdir_separator_F77=:
14610 hardcode_shlibpath_var_F77=no
14613 openbsd*)
14614 hardcode_direct_F77=yes
14615 hardcode_shlibpath_var_F77=no
14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14618 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14620 export_dynamic_flag_spec_F77='${wl}-E'
14621 else
14622 case $host_os in
14623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14625 hardcode_libdir_flag_spec_F77='-R$libdir'
14628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14629 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14631 esac
14635 os2*)
14636 hardcode_libdir_flag_spec_F77='-L$libdir'
14637 hardcode_minus_L_F77=yes
14638 allow_undefined_flag_F77=unsupported
14639 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'
14640 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14643 osf3*)
14644 if test "$GCC" = yes; then
14645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14646 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'
14647 else
14648 allow_undefined_flag_F77=' -expect_unresolved \*'
14649 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'
14651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14652 hardcode_libdir_separator_F77=:
14655 osf4* | osf5*) # as osf3* with the addition of -msym flag
14656 if test "$GCC" = yes; then
14657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14658 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'
14659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14660 else
14661 allow_undefined_flag_F77=' -expect_unresolved \*'
14662 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'
14663 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14664 $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'
14666 # Both c and cxx compiler support -rpath directly
14667 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14669 hardcode_libdir_separator_F77=:
14672 sco3.2v5*)
14673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_shlibpath_var_F77=no
14675 export_dynamic_flag_spec_F77='${wl}-Bexport'
14676 runpath_var=LD_RUN_PATH
14677 hardcode_runpath_var=yes
14680 solaris*)
14681 no_undefined_flag_F77=' -z text'
14682 if test "$GCC" = yes; then
14683 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14685 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14686 else
14687 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14691 hardcode_libdir_flag_spec_F77='-R$libdir'
14692 hardcode_shlibpath_var_F77=no
14693 case $host_os in
14694 solaris2.[0-5] | solaris2.[0-5].*) ;;
14695 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14696 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14697 esac
14698 link_all_deplibs_F77=yes
14701 sunos4*)
14702 if test "x$host_vendor" = xsequent; then
14703 # Use $CC to link under sequent, because it throws in some extra .o
14704 # files that make .init and .fini sections work.
14705 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14706 else
14707 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_libdir_flag_spec_F77='-L$libdir'
14710 hardcode_direct_F77=yes
14711 hardcode_minus_L_F77=yes
14712 hardcode_shlibpath_var_F77=no
14715 sysv4)
14716 case $host_vendor in
14717 sni)
14718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=yes # is this really true???
14721 siemens)
14722 ## LD is ld it makes a PLAMLIB
14723 ## CC just makes a GrossModule.
14724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14725 reload_cmds_F77='$CC -r -o $output$reload_objs'
14726 hardcode_direct_F77=no
14728 motorola)
14729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14730 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14732 esac
14733 runpath_var='LD_RUN_PATH'
14734 hardcode_shlibpath_var_F77=no
14737 sysv4.3*)
14738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14739 hardcode_shlibpath_var_F77=no
14740 export_dynamic_flag_spec_F77='-Bexport'
14743 sysv4*MP*)
14744 if test -d /usr/nec; then
14745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14746 hardcode_shlibpath_var_F77=no
14747 runpath_var=LD_RUN_PATH
14748 hardcode_runpath_var=yes
14749 ld_shlibs_F77=yes
14753 sysv4.2uw2*)
14754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_direct_F77=yes
14756 hardcode_minus_L_F77=no
14757 hardcode_shlibpath_var_F77=no
14758 hardcode_runpath_var=yes
14759 runpath_var=LD_RUN_PATH
14762 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14763 no_undefined_flag_F77='${wl}-z ${wl}text'
14764 if test "$GCC" = yes; then
14765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 else
14767 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14769 runpath_var='LD_RUN_PATH'
14770 hardcode_shlibpath_var_F77=no
14773 sysv5*)
14774 no_undefined_flag_F77=' -z text'
14775 # $CC -shared without GNU ld will not create a library from C++
14776 # object files and a static libstdc++, better avoid it by now
14777 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14780 hardcode_libdir_flag_spec_F77=
14781 hardcode_shlibpath_var_F77=no
14782 runpath_var='LD_RUN_PATH'
14785 uts4*)
14786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_libdir_flag_spec_F77='-L$libdir'
14788 hardcode_shlibpath_var_F77=no
14792 ld_shlibs_F77=no
14794 esac
14797 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14798 echo "${ECHO_T}$ld_shlibs_F77" >&6
14799 test "$ld_shlibs_F77" = no && can_build_shared=no
14801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14802 if test "$GCC" = yes; then
14803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14807 # Do we need to explicitly link libc?
14809 case "x$archive_cmds_need_lc_F77" in
14810 x|xyes)
14811 # Assume -lc should be added
14812 archive_cmds_need_lc_F77=yes
14814 if test "$enable_shared" = yes && test "$GCC" = yes; then
14815 case $archive_cmds_F77 in
14816 *'~'*)
14817 # FIXME: we may have to deal with multi-command sequences.
14819 '$CC '*)
14820 # Test whether the compiler implicitly links with -lc since on some
14821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14822 # to ld, don't add -lc before -lgcc.
14823 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14825 $rm conftest*
14826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829 (eval $ac_compile) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } 2>conftest.err; then
14833 soname=conftest
14834 lib=conftest
14835 libobjs=conftest.$ac_objext
14836 deplibs=
14837 wl=$lt_prog_compiler_wl_F77
14838 compiler_flags=-v
14839 linker_flags=-v
14840 verstring=
14841 output_objdir=.
14842 libname=conftest
14843 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14844 allow_undefined_flag_F77=
14845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14846 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }
14850 then
14851 archive_cmds_need_lc_F77=no
14852 else
14853 archive_cmds_need_lc_F77=yes
14855 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14856 else
14857 cat conftest.err 1>&5
14859 $rm conftest*
14860 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14861 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14863 esac
14866 esac
14868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14870 library_names_spec=
14871 libname_spec='lib$name'
14872 soname_spec=
14873 shrext_cmds=".so"
14874 postinstall_cmds=
14875 postuninstall_cmds=
14876 finish_cmds=
14877 finish_eval=
14878 shlibpath_var=
14879 shlibpath_overrides_runpath=unknown
14880 version_type=none
14881 dynamic_linker="$host_os ld.so"
14882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14883 if test "$GCC" = yes; then
14884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14886 # if the path contains ";" then we assume it to be the separator
14887 # otherwise default to the standard path separator (i.e. ":") - it is
14888 # assumed that no part of a normal pathname contains ";" but that should
14889 # okay in the real world where ";" in dirpaths is itself problematic.
14890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14891 else
14892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14894 else
14895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14897 need_lib_prefix=unknown
14898 hardcode_into_libs=no
14900 # when you set need_version to no, make sure it does not cause -set_version
14901 # flags to be left without arguments
14902 need_version=unknown
14904 case $host_os in
14905 aix3*)
14906 version_type=linux
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14908 shlibpath_var=LIBPATH
14910 # AIX 3 has no versioning support, so we append a major version to the name.
14911 soname_spec='${libname}${release}${shared_ext}$major'
14914 aix4* | aix5*)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 hardcode_into_libs=yes
14919 if test "$host_cpu" = ia64; then
14920 # AIX 5 supports IA64
14921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 else
14924 # With GCC up to 2.95.x, collect2 would create an import file
14925 # for dependence libraries. The import file would start with
14926 # the line `#! .'. This would cause the generated library to
14927 # depend on `.', always an invalid library. This was fixed in
14928 # development snapshots of GCC prior to 3.0.
14929 case $host_os in
14930 aix4 | aix4.[01] | aix4.[01].*)
14931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14932 echo ' yes '
14933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14935 else
14936 can_build_shared=no
14939 esac
14940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14941 # soname into executable. Probably we can add versioning support to
14942 # collect2, so additional links can be useful in future.
14943 if test "$aix_use_runtimelinking" = yes; then
14944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14945 # instead of lib<name>.a to let people know that these are not
14946 # typical AIX shared libraries.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 else
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='${libname}${release}.a $libname.a'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LIBPATH
14958 amigaos*)
14959 library_names_spec='$libname.ixlibrary $libname.a'
14960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14961 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'
14964 beos*)
14965 library_names_spec='${libname}${shared_ext}'
14966 dynamic_linker="$host_os ld.so"
14967 shlibpath_var=LIBRARY_PATH
14970 bsdi[45]*)
14971 version_type=linux
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14979 # the default ld.so.conf also contains /usr/contrib/lib and
14980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14981 # libtool to hard-code these into programs
14984 cygwin* | mingw* | pw32*)
14985 version_type=windows
14986 shrext_cmds=".dll"
14987 need_version=no
14988 need_lib_prefix=no
14990 case $GCC,$host_os in
14991 yes,cygwin* | yes,mingw* | yes,pw32*)
14992 library_names_spec='$libname.dll.a'
14993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14994 postinstall_cmds='base_file=`basename \${file}`~
14995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14996 dldir=$destdir/`dirname \$dlpath`~
14997 test -d \$dldir || mkdir -p \$dldir~
14998 $install_prog $dir/$dlname \$dldir/$dlname'
14999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15000 dlpath=$dir/\$dldll~
15001 $rm \$dlpath'
15002 shlibpath_overrides_runpath=yes
15004 case $host_os in
15005 cygwin*)
15006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15010 mingw*)
15011 # MinGW DLLs use traditional 'lib' prefix
15012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15015 # It is most probably a Windows format PATH printed by
15016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15017 # path with ; separators, and with drive letters. We can handle the
15018 # drive letters (cygwin fileutils understands them), so leave them,
15019 # especially as we might pass files found there to a mingw objdump,
15020 # which wouldn't understand a cygwinified path. Ahh.
15021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15022 else
15023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15026 pw32*)
15027 # pw32 DLLs use 'pw' prefix rather than 'lib'
15028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15030 esac
15034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15036 esac
15037 dynamic_linker='Win32 ld.exe'
15038 # FIXME: first we should search . and the directory the executable is in
15039 shlibpath_var=PATH
15042 darwin* | rhapsody*)
15043 dynamic_linker="$host_os dyld"
15044 version_type=darwin
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15048 soname_spec='${libname}${release}${major}$shared_ext'
15049 shlibpath_overrides_runpath=yes
15050 shlibpath_var=DYLD_LIBRARY_PATH
15051 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15052 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15053 if test "$GCC" = yes; then
15054 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15055 else
15056 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15061 dgux*)
15062 version_type=linux
15063 need_lib_prefix=no
15064 need_version=no
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15070 freebsd1*)
15071 dynamic_linker=no
15074 kfreebsd*-gnu)
15075 version_type=linux
15076 need_lib_prefix=no
15077 need_version=no
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=no
15082 hardcode_into_libs=yes
15083 dynamic_linker='GNU ld.so'
15086 freebsd* | dragonfly*)
15087 # DragonFly does not have aout. When/if they implement a new
15088 # versioning mechanism, adjust this.
15089 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15090 version_type=freebsd-$objformat
15091 case $version_type in
15092 freebsd-elf*)
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15094 need_version=no
15095 need_lib_prefix=no
15097 freebsd-*)
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15099 need_version=yes
15101 esac
15102 shlibpath_var=LD_LIBRARY_PATH
15103 case $host_os in
15104 freebsd2*)
15105 shlibpath_overrides_runpath=yes
15107 freebsd3.[01]* | freebsdelf3.[01]*)
15108 shlibpath_overrides_runpath=yes
15109 hardcode_into_libs=yes
15111 *) # from 3.2 on
15112 shlibpath_overrides_runpath=no
15113 hardcode_into_libs=yes
15115 esac
15118 gnu*)
15119 version_type=linux
15120 need_lib_prefix=no
15121 need_version=no
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 shlibpath_var=LD_LIBRARY_PATH
15125 hardcode_into_libs=yes
15128 hpux9* | hpux10* | hpux11*)
15129 # Give a soname corresponding to the major version so that dld.sl refuses to
15130 # link against other versions.
15131 version_type=sunos
15132 need_lib_prefix=no
15133 need_version=no
15134 case "$host_cpu" in
15135 ia64*)
15136 shrext_cmds='.so'
15137 hardcode_into_libs=yes
15138 dynamic_linker="$host_os dld.so"
15139 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 if test "X$HPUX_IA64_MODE" = X32; then
15144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15145 else
15146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15150 hppa*64*)
15151 shrext_cmds='.sl'
15152 hardcode_into_libs=yes
15153 dynamic_linker="$host_os dld.sl"
15154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15162 shrext_cmds='.sl'
15163 dynamic_linker="$host_os dld.sl"
15164 shlibpath_var=SHLIB_PATH
15165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15169 esac
15170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15171 postinstall_cmds='chmod 555 $lib'
15174 irix5* | irix6* | nonstopux*)
15175 case $host_os in
15176 nonstopux*) version_type=nonstopux ;;
15178 if test "$lt_cv_prog_gnu_ld" = yes; then
15179 version_type=linux
15180 else
15181 version_type=irix
15182 fi ;;
15183 esac
15184 need_lib_prefix=no
15185 need_version=no
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15188 case $host_os in
15189 irix5* | nonstopux*)
15190 libsuff= shlibsuff=
15193 case $LD in # libtool.m4 will add one of these switches to LD
15194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15195 libsuff= shlibsuff= libmagic=32-bit;;
15196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15197 libsuff=32 shlibsuff=N32 libmagic=N32;;
15198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15200 *) libsuff= shlibsuff= libmagic=never-match;;
15201 esac
15203 esac
15204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15205 shlibpath_overrides_runpath=no
15206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15208 hardcode_into_libs=yes
15211 # No shared lib support for Linux oldld, aout, or coff.
15212 linux*oldld* | linux*aout* | linux*coff*)
15213 dynamic_linker=no
15216 # This must be Linux ELF.
15217 linux*)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=no
15226 # This implies no fast_install, which is unacceptable.
15227 # Some rework will be needed to allow for fast_install
15228 # before this can be enabled.
15229 hardcode_into_libs=yes
15231 # Append ld.so.conf contents to the search path
15232 if test -f /etc/ld.so.conf; then
15233 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15237 # We used to test for /lib/ld.so.1 and disable shared libraries on
15238 # powerpc, because MkLinux only supported shared libraries with the
15239 # GNU dynamic linker. Since this was broken with cross compilers,
15240 # most powerpc-linux boxes support dynamic linking these days and
15241 # people can always --disable-shared, the test was removed, and we
15242 # assume the GNU/Linux dynamic linker is in use.
15243 dynamic_linker='GNU/Linux ld.so'
15246 knetbsd*-gnu)
15247 version_type=linux
15248 need_lib_prefix=no
15249 need_version=no
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=no
15254 hardcode_into_libs=yes
15255 dynamic_linker='GNU ld.so'
15258 netbsd*)
15259 version_type=sunos
15260 need_lib_prefix=no
15261 need_version=no
15262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265 dynamic_linker='NetBSD (a.out) ld.so'
15266 else
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 dynamic_linker='NetBSD ld.elf_so'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15276 newsos6)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15283 nto-qnx*)
15284 version_type=linux
15285 need_lib_prefix=no
15286 need_version=no
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15293 openbsd*)
15294 version_type=sunos
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15301 case $host_os in
15302 openbsd2.[89] | openbsd2.[89].*)
15303 shlibpath_overrides_runpath=no
15306 shlibpath_overrides_runpath=yes
15308 esac
15309 else
15310 shlibpath_overrides_runpath=yes
15314 os2*)
15315 libname_spec='$name'
15316 shrext_cmds=".dll"
15317 need_lib_prefix=no
15318 library_names_spec='$libname${shared_ext} $libname.a'
15319 dynamic_linker='OS/2 ld.exe'
15320 shlibpath_var=LIBPATH
15323 osf3* | osf4* | osf5*)
15324 version_type=osf
15325 need_lib_prefix=no
15326 need_version=no
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15334 sco3.2v5*)
15335 version_type=osf
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 shlibpath_var=LD_LIBRARY_PATH
15341 solaris*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15350 # ldd complains unless libraries are executable
15351 postinstall_cmds='chmod +x $lib'
15354 sunos4*)
15355 version_type=sunos
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 if test "$with_gnu_ld" = yes; then
15361 need_lib_prefix=no
15363 need_version=yes
15366 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15367 version_type=linux
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 case $host_vendor in
15372 sni)
15373 shlibpath_overrides_runpath=no
15374 need_lib_prefix=no
15375 export_dynamic_flag_spec='${wl}-Blargedynsym'
15376 runpath_var=LD_RUN_PATH
15378 siemens)
15379 need_lib_prefix=no
15381 motorola)
15382 need_lib_prefix=no
15383 need_version=no
15384 shlibpath_overrides_runpath=no
15385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15387 esac
15390 sysv4*MP*)
15391 if test -d /usr/nec ;then
15392 version_type=linux
15393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15394 soname_spec='$libname${shared_ext}.$major'
15395 shlibpath_var=LD_LIBRARY_PATH
15399 uts4*)
15400 version_type=linux
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15407 dynamic_linker=no
15409 esac
15410 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15411 echo "${ECHO_T}$dynamic_linker" >&6
15412 test "$dynamic_linker" = no && can_build_shared=no
15414 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15415 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15416 hardcode_action_F77=
15417 if test -n "$hardcode_libdir_flag_spec_F77" || \
15418 test -n "$runpath_var_F77" || \
15419 test "X$hardcode_automatic_F77" = "Xyes" ; then
15421 # We can hardcode non-existant directories.
15422 if test "$hardcode_direct_F77" != no &&
15423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15424 # have to relink, otherwise we might link with an installed library
15425 # when we should be linking with a yet-to-be-installed one
15426 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15427 test "$hardcode_minus_L_F77" != no; then
15428 # Linking always hardcodes the temporary library directory.
15429 hardcode_action_F77=relink
15430 else
15431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15432 hardcode_action_F77=immediate
15434 else
15435 # We cannot hardcode anything, or else we can only hardcode existing
15436 # directories.
15437 hardcode_action_F77=unsupported
15439 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15440 echo "${ECHO_T}$hardcode_action_F77" >&6
15442 if test "$hardcode_action_F77" = relink; then
15443 # Fast installation is not supported
15444 enable_fast_install=no
15445 elif test "$shlibpath_overrides_runpath" = yes ||
15446 test "$enable_shared" = no; then
15447 # Fast installation is not necessary
15448 enable_fast_install=needless
15451 striplib=
15452 old_striplib=
15453 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15454 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15455 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15457 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15458 echo "$as_me:$LINENO: result: yes" >&5
15459 echo "${ECHO_T}yes" >&6
15460 else
15461 # FIXME - insert some real tests, host_os isn't really good enough
15462 case $host_os in
15463 darwin*)
15464 if test -n "$STRIP" ; then
15465 striplib="$STRIP -x"
15466 echo "$as_me:$LINENO: result: yes" >&5
15467 echo "${ECHO_T}yes" >&6
15468 else
15469 echo "$as_me:$LINENO: result: no" >&5
15470 echo "${ECHO_T}no" >&6
15474 echo "$as_me:$LINENO: result: no" >&5
15475 echo "${ECHO_T}no" >&6
15477 esac
15482 # The else clause should only fire when bootstrapping the
15483 # libtool distribution, otherwise you forgot to ship ltmain.sh
15484 # with your package, and you will get complaints that there are
15485 # no rules to generate ltmain.sh.
15486 if test -f "$ltmain"; then
15487 # See if we are running on zsh, and set the options which allow our commands through
15488 # without removal of \ escapes.
15489 if test -n "${ZSH_VERSION+set}" ; then
15490 setopt NO_GLOB_SUBST
15492 # Now quote all the things that may contain metacharacters while being
15493 # careful not to overquote the AC_SUBSTed values. We take copies of the
15494 # variables and quote the copies for generation of the libtool script.
15495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15496 SED SHELL STRIP \
15497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15499 deplibs_check_method reload_flag reload_cmds need_locks \
15500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15501 lt_cv_sys_global_symbol_to_c_name_address \
15502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15503 old_postinstall_cmds old_postuninstall_cmds \
15504 compiler_F77 \
15505 CC_F77 \
15506 LD_F77 \
15507 lt_prog_compiler_wl_F77 \
15508 lt_prog_compiler_pic_F77 \
15509 lt_prog_compiler_static_F77 \
15510 lt_prog_compiler_no_builtin_flag_F77 \
15511 export_dynamic_flag_spec_F77 \
15512 thread_safe_flag_spec_F77 \
15513 whole_archive_flag_spec_F77 \
15514 enable_shared_with_static_runtimes_F77 \
15515 old_archive_cmds_F77 \
15516 old_archive_from_new_cmds_F77 \
15517 predep_objects_F77 \
15518 postdep_objects_F77 \
15519 predeps_F77 \
15520 postdeps_F77 \
15521 compiler_lib_search_path_F77 \
15522 archive_cmds_F77 \
15523 archive_expsym_cmds_F77 \
15524 postinstall_cmds_F77 \
15525 postuninstall_cmds_F77 \
15526 old_archive_from_expsyms_cmds_F77 \
15527 allow_undefined_flag_F77 \
15528 no_undefined_flag_F77 \
15529 export_symbols_cmds_F77 \
15530 hardcode_libdir_flag_spec_F77 \
15531 hardcode_libdir_flag_spec_ld_F77 \
15532 hardcode_libdir_separator_F77 \
15533 hardcode_automatic_F77 \
15534 module_cmds_F77 \
15535 module_expsym_cmds_F77 \
15536 lt_cv_prog_compiler_c_o_F77 \
15537 exclude_expsyms_F77 \
15538 include_expsyms_F77; do
15540 case $var in
15541 old_archive_cmds_F77 | \
15542 old_archive_from_new_cmds_F77 | \
15543 archive_cmds_F77 | \
15544 archive_expsym_cmds_F77 | \
15545 module_cmds_F77 | \
15546 module_expsym_cmds_F77 | \
15547 old_archive_from_expsyms_cmds_F77 | \
15548 export_symbols_cmds_F77 | \
15549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15550 postinstall_cmds | postuninstall_cmds | \
15551 old_postinstall_cmds | old_postuninstall_cmds | \
15552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15553 # Double-quote double-evaled strings.
15554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15559 esac
15560 done
15562 case $lt_echo in
15563 *'\$0 --fallback-echo"')
15564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15566 esac
15568 cfgfile="$ofile"
15570 cat <<__EOF__ >> "$cfgfile"
15571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15575 # Shell to use when invoking shell scripts.
15576 SHELL=$lt_SHELL
15578 # Whether or not to build shared libraries.
15579 build_libtool_libs=$enable_shared
15581 # Whether or not to build static libraries.
15582 build_old_libs=$enable_static
15584 # Whether or not to add -lc for building shared libraries.
15585 build_libtool_need_lc=$archive_cmds_need_lc_F77
15587 # Whether or not to disallow shared libs when runtime libs are static
15588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15590 # Whether or not to optimize for fast installation.
15591 fast_install=$enable_fast_install
15593 # The host system.
15594 host_alias=$host_alias
15595 host=$host
15596 host_os=$host_os
15598 # The build system.
15599 build_alias=$build_alias
15600 build=$build
15601 build_os=$build_os
15603 # An echo program that does not interpret backslashes.
15604 echo=$lt_echo
15606 # The archiver.
15607 AR=$lt_AR
15608 AR_FLAGS=$lt_AR_FLAGS
15610 # A C compiler.
15611 LTCC=$lt_LTCC
15613 # A language-specific compiler.
15614 CC=$lt_compiler_F77
15616 # Is the compiler the GNU C compiler?
15617 with_gcc=$GCC_F77
15619 # An ERE matcher.
15620 EGREP=$lt_EGREP
15622 # The linker used to build libraries.
15623 LD=$lt_LD_F77
15625 # Whether we need hard or soft links.
15626 LN_S=$lt_LN_S
15628 # A BSD-compatible nm program.
15629 NM=$lt_NM
15631 # A symbol stripping program
15632 STRIP=$lt_STRIP
15634 # Used to examine libraries when file_magic_cmd begins "file"
15635 MAGIC_CMD=$MAGIC_CMD
15637 # Used on cygwin: DLL creation program.
15638 DLLTOOL="$DLLTOOL"
15640 # Used on cygwin: object dumper.
15641 OBJDUMP="$OBJDUMP"
15643 # Used on cygwin: assembler.
15644 AS="$AS"
15646 # The name of the directory that contains temporary libtool files.
15647 objdir=$objdir
15649 # How to create reloadable object files.
15650 reload_flag=$lt_reload_flag
15651 reload_cmds=$lt_reload_cmds
15653 # How to pass a linker flag through the compiler.
15654 wl=$lt_lt_prog_compiler_wl_F77
15656 # Object file suffix (normally "o").
15657 objext="$ac_objext"
15659 # Old archive suffix (normally "a").
15660 libext="$libext"
15662 # Shared library suffix (normally ".so").
15663 shrext_cmds='$shrext_cmds'
15665 # Executable file suffix (normally "").
15666 exeext="$exeext"
15668 # Additional compiler flags for building library objects.
15669 pic_flag=$lt_lt_prog_compiler_pic_F77
15670 pic_mode=$pic_mode
15672 # What is the maximum length of a command?
15673 max_cmd_len=$lt_cv_sys_max_cmd_len
15675 # Does compiler simultaneously support -c and -o options?
15676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15678 # Must we lock files when doing compilation ?
15679 need_locks=$lt_need_locks
15681 # Do we need the lib prefix for modules?
15682 need_lib_prefix=$need_lib_prefix
15684 # Do we need a version for libraries?
15685 need_version=$need_version
15687 # Whether dlopen is supported.
15688 dlopen_support=$enable_dlopen
15690 # Whether dlopen of programs is supported.
15691 dlopen_self=$enable_dlopen_self
15693 # Whether dlopen of statically linked programs is supported.
15694 dlopen_self_static=$enable_dlopen_self_static
15696 # Compiler flag to prevent dynamic linking.
15697 link_static_flag=$lt_lt_prog_compiler_static_F77
15699 # Compiler flag to turn off builtin functions.
15700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15702 # Compiler flag to allow reflexive dlopens.
15703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15705 # Compiler flag to generate shared objects directly from archives.
15706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15708 # Compiler flag to generate thread-safe objects.
15709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15711 # Library versioning type.
15712 version_type=$version_type
15714 # Format of library name prefix.
15715 libname_spec=$lt_libname_spec
15717 # List of archive names. First name is the real one, the rest are links.
15718 # The last name is the one that the linker finds with -lNAME.
15719 library_names_spec=$lt_library_names_spec
15721 # The coded name of the library, if different from the real name.
15722 soname_spec=$lt_soname_spec
15724 # Commands used to build and install an old-style archive.
15725 RANLIB=$lt_RANLIB
15726 old_archive_cmds=$lt_old_archive_cmds_F77
15727 old_postinstall_cmds=$lt_old_postinstall_cmds
15728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15730 # Create an old-style archive from a shared archive.
15731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15733 # Create a temporary old-style archive to link instead of a shared archive.
15734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15736 # Commands used to build and install a shared archive.
15737 archive_cmds=$lt_archive_cmds_F77
15738 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15739 postinstall_cmds=$lt_postinstall_cmds
15740 postuninstall_cmds=$lt_postuninstall_cmds
15742 # Commands used to build a loadable module (assumed same as above if empty)
15743 module_cmds=$lt_module_cmds_F77
15744 module_expsym_cmds=$lt_module_expsym_cmds_F77
15746 # Commands to strip libraries.
15747 old_striplib=$lt_old_striplib
15748 striplib=$lt_striplib
15750 # Dependencies to place before the objects being linked to create a
15751 # shared library.
15752 predep_objects=$lt_predep_objects_F77
15754 # Dependencies to place after the objects being linked to create a
15755 # shared library.
15756 postdep_objects=$lt_postdep_objects_F77
15758 # Dependencies to place before the objects being linked to create a
15759 # shared library.
15760 predeps=$lt_predeps_F77
15762 # Dependencies to place after the objects being linked to create a
15763 # shared library.
15764 postdeps=$lt_postdeps_F77
15766 # The library search path used internally by the compiler when linking
15767 # a shared library.
15768 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15770 # Method to check whether dependent libraries are shared objects.
15771 deplibs_check_method=$lt_deplibs_check_method
15773 # Command to use when deplibs_check_method == file_magic.
15774 file_magic_cmd=$lt_file_magic_cmd
15776 # Flag that allows shared libraries with undefined symbols to be built.
15777 allow_undefined_flag=$lt_allow_undefined_flag_F77
15779 # Flag that forces no undefined symbols.
15780 no_undefined_flag=$lt_no_undefined_flag_F77
15782 # Commands used to finish a libtool library installation in a directory.
15783 finish_cmds=$lt_finish_cmds
15785 # Same as above, but a single script fragment to be evaled but not shown.
15786 finish_eval=$lt_finish_eval
15788 # Take the output of nm and produce a listing of raw symbols and C names.
15789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15791 # Transform the output of nm in a proper C declaration
15792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15794 # Transform the output of nm in a C name address pair
15795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15797 # This is the shared library runtime path variable.
15798 runpath_var=$runpath_var
15800 # This is the shared library path variable.
15801 shlibpath_var=$shlibpath_var
15803 # Is shlibpath searched before the hard-coded library search path?
15804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15806 # How to hardcode a shared library path into an executable.
15807 hardcode_action=$hardcode_action_F77
15809 # Whether we should hardcode library paths into libraries.
15810 hardcode_into_libs=$hardcode_into_libs
15812 # Flag to hardcode \$libdir into a binary during linking.
15813 # This must work even if \$libdir does not exist.
15814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15816 # If ld is used when linking, flag to hardcode \$libdir into
15817 # a binary during linking. This must work even if \$libdir does
15818 # not exist.
15819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15821 # Whether we need a single -rpath flag with a separated argument.
15822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15825 # resulting binary.
15826 hardcode_direct=$hardcode_direct_F77
15828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15829 # resulting binary.
15830 hardcode_minus_L=$hardcode_minus_L_F77
15832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15833 # the resulting binary.
15834 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15836 # Set to yes if building a shared library automatically hardcodes DIR into the library
15837 # and all subsequent libraries and executables linked against it.
15838 hardcode_automatic=$hardcode_automatic_F77
15840 # Variables whose values should be saved in libtool wrapper scripts and
15841 # restored at relink time.
15842 variables_saved_for_relink="$variables_saved_for_relink"
15844 # Whether libtool must link a program against all its dependency libraries.
15845 link_all_deplibs=$link_all_deplibs_F77
15847 # Compile-time system search path for libraries
15848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15850 # Run-time system search path for libraries
15851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15853 # Fix the shell variable \$srcfile for the compiler.
15854 fix_srcfile_path="$fix_srcfile_path_F77"
15856 # Set to yes if exported symbols are required.
15857 always_export_symbols=$always_export_symbols_F77
15859 # The commands to list exported symbols.
15860 export_symbols_cmds=$lt_export_symbols_cmds_F77
15862 # The commands to extract the exported symbol list from a shared archive.
15863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15865 # Symbols that should not be listed in the preloaded symbols.
15866 exclude_expsyms=$lt_exclude_expsyms_F77
15868 # Symbols that must always be exported.
15869 include_expsyms=$lt_include_expsyms_F77
15871 # ### END LIBTOOL TAG CONFIG: $tagname
15873 __EOF__
15876 else
15877 # If there is no Makefile yet, we rely on a make rule to execute
15878 # `config.status --recheck' to rerun these tests and create the
15879 # libtool script then.
15880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15881 if test -f "$ltmain_in"; then
15882 test -f Makefile && make "$ltmain"
15887 ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15893 CC="$lt_save_CC"
15895 else
15896 tagname=""
15900 GCJ)
15901 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15905 # Source file extension for Java test sources.
15906 ac_ext=java
15908 # Object file extension for compiled Java test sources.
15909 objext=o
15910 objext_GCJ=$objext
15912 # Code to be used in simple compile tests
15913 lt_simple_compile_test_code="class foo {}\n"
15915 # Code to be used in simple link tests
15916 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15920 # If no C compiler was specified, use CC.
15921 LTCC=${LTCC-"$CC"}
15923 # Allow CC to be a program name with arguments.
15924 compiler=$CC
15927 # Allow CC to be a program name with arguments.
15928 lt_save_CC="$CC"
15929 CC=${GCJ-"gcj"}
15930 compiler=$CC
15931 compiler_GCJ=$CC
15933 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15934 archive_cmds_need_lc_GCJ=no
15936 ## CAVEAT EMPTOR:
15937 ## There is no encapsulation within the following macros, do not change
15938 ## the running order or otherwise move them around unless you know exactly
15939 ## what you are doing...
15941 lt_prog_compiler_no_builtin_flag_GCJ=
15943 if test "$GCC" = yes; then
15944 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15947 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15948 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15949 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 lt_cv_prog_compiler_rtti_exceptions=no
15953 ac_outfile=conftest.$ac_objext
15954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="-fno-rtti -fno-exceptions"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 # The option is referenced via a variable to avoid confusing sed.
15961 lt_compile=`echo "$ac_compile" | $SED \
15962 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964 -e 's:$: $lt_compiler_flag:'`
15965 (eval echo "\"\$as_me:15965: $lt_compile\"" >&5)
15966 (eval "$lt_compile" 2>conftest.err)
15967 ac_status=$?
15968 cat conftest.err >&5
15969 echo "$as_me:15969: \$? = $ac_status" >&5
15970 if (exit $ac_status) && test -s "$ac_outfile"; then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings
15973 if test ! -s conftest.err; then
15974 lt_cv_prog_compiler_rtti_exceptions=yes
15977 $rm conftest*
15980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15981 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15984 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15985 else
15991 lt_prog_compiler_wl_GCJ=
15992 lt_prog_compiler_pic_GCJ=
15993 lt_prog_compiler_static_GCJ=
15995 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15996 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15998 if test "$GCC" = yes; then
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 lt_prog_compiler_static_GCJ='-static'
16002 case $host_os in
16003 aix*)
16004 # All AIX code is PIC.
16005 if test "$host_cpu" = ia64; then
16006 # AIX 5 now supports IA64 processor
16007 lt_prog_compiler_static_GCJ='-Bstatic'
16011 amigaos*)
16012 # FIXME: we need at least 68020 code to build shared libraries, but
16013 # adding the `-m68020' flag to GCC prevents building anything better,
16014 # like `-m68040'.
16015 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16018 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16019 # PIC is the default for these OSes.
16022 mingw* | pw32* | os2*)
16023 # This hack is so that the source file can tell whether it is being
16024 # built for inclusion in a dll (and should export symbols for example).
16025 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16028 darwin* | rhapsody*)
16029 # PIC is the default on this platform
16030 # Common symbols not allowed in MH_DYLIB files
16031 lt_prog_compiler_pic_GCJ='-fno-common'
16034 msdosdjgpp*)
16035 # Just because we use GCC doesn't mean we suddenly get shared libraries
16036 # on systems that don't support them.
16037 lt_prog_compiler_can_build_shared_GCJ=no
16038 enable_shared=no
16041 sysv4*MP*)
16042 if test -d /usr/nec; then
16043 lt_prog_compiler_pic_GCJ=-Kconform_pic
16047 hpux*)
16048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16049 # not for PA HP-UX.
16050 case "$host_cpu" in
16051 hppa*64*|ia64*)
16052 # +Z the default
16055 lt_prog_compiler_pic_GCJ='-fPIC'
16057 esac
16061 lt_prog_compiler_pic_GCJ='-fPIC'
16063 esac
16064 else
16065 # PORTME Check for flag to pass linker flags through the system compiler.
16066 case $host_os in
16067 aix*)
16068 lt_prog_compiler_wl_GCJ='-Wl,'
16069 if test "$host_cpu" = ia64; then
16070 # AIX 5 now supports IA64 processor
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16072 else
16073 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16076 darwin*)
16077 # PIC is the default on this platform
16078 # Common symbols not allowed in MH_DYLIB files
16079 case "$cc_basename" in
16080 xlc*)
16081 lt_prog_compiler_pic_GCJ='-qnocommon'
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16084 esac
16087 mingw* | pw32* | os2*)
16088 # This hack is so that the source file can tell whether it is being
16089 # built for inclusion in a dll (and should export symbols for example).
16090 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16093 hpux9* | hpux10* | hpux11*)
16094 lt_prog_compiler_wl_GCJ='-Wl,'
16095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16096 # not for PA HP-UX.
16097 case "$host_cpu" in
16098 hppa*64*|ia64*)
16099 # +Z the default
16102 lt_prog_compiler_pic_GCJ='+Z'
16104 esac
16105 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16106 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16109 irix5* | irix6* | nonstopux*)
16110 lt_prog_compiler_wl_GCJ='-Wl,'
16111 # PIC (with -KPIC) is the default.
16112 lt_prog_compiler_static_GCJ='-non_shared'
16115 newsos6)
16116 lt_prog_compiler_pic_GCJ='-KPIC'
16117 lt_prog_compiler_static_GCJ='-Bstatic'
16120 linux*)
16121 case $cc_basename in
16122 icc* | ecc*)
16123 lt_prog_compiler_wl_GCJ='-Wl,'
16124 lt_prog_compiler_pic_GCJ='-KPIC'
16125 lt_prog_compiler_static_GCJ='-static'
16127 pgcc | pgf77 | pgf90)
16128 # Portland Group compilers (*not* the Pentium gcc compiler,
16129 # which looks to be a dead project)
16130 lt_prog_compiler_wl_GCJ='-Wl,'
16131 lt_prog_compiler_pic_GCJ='-fpic'
16132 lt_prog_compiler_static_GCJ='-static'
16134 ccc*)
16135 lt_prog_compiler_wl_GCJ='-Wl,'
16136 # All Alpha code is PIC.
16137 lt_prog_compiler_static_GCJ='-non_shared'
16139 como)
16140 lt_prog_compiler_wl_GCJ='-lopt='
16142 esac
16145 osf3* | osf4* | osf5*)
16146 lt_prog_compiler_wl_GCJ='-Wl,'
16147 # All OSF/1 code is PIC.
16148 lt_prog_compiler_static_GCJ='-non_shared'
16151 sco3.2v5*)
16152 lt_prog_compiler_pic_GCJ='-Kpic'
16153 lt_prog_compiler_static_GCJ='-dn'
16156 solaris*)
16157 lt_prog_compiler_wl_GCJ='-Wl,'
16158 lt_prog_compiler_pic_GCJ='-KPIC'
16159 lt_prog_compiler_static_GCJ='-Bstatic'
16162 sunos4*)
16163 lt_prog_compiler_wl_GCJ='-Qoption ld '
16164 lt_prog_compiler_pic_GCJ='-PIC'
16165 lt_prog_compiler_static_GCJ='-Bstatic'
16168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16169 lt_prog_compiler_wl_GCJ='-Wl,'
16170 lt_prog_compiler_pic_GCJ='-KPIC'
16171 lt_prog_compiler_static_GCJ='-Bstatic'
16174 sysv4*MP*)
16175 if test -d /usr/nec ;then
16176 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16177 lt_prog_compiler_static_GCJ='-Bstatic'
16181 unicos*)
16182 lt_prog_compiler_wl_GCJ='-Wl,'
16183 lt_prog_compiler_can_build_shared_GCJ=no
16186 uts4*)
16187 lt_prog_compiler_pic_GCJ='-pic'
16188 lt_prog_compiler_static_GCJ='-Bstatic'
16192 lt_prog_compiler_can_build_shared_GCJ=no
16194 esac
16197 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16198 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16201 # Check to make sure the PIC flag actually works.
16203 if test -n "$lt_prog_compiler_pic_GCJ"; then
16205 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16207 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 lt_prog_compiler_pic_works_GCJ=no
16211 ac_outfile=conftest.$ac_objext
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16214 # Insert the option either (1) after the last *FLAGS variable, or
16215 # (2) before a word containing "conftest.", or (3) at the end.
16216 # Note that $ac_compile itself does not contain backslashes and begins
16217 # with a dollar sign (not a hyphen), so the echo should work correctly.
16218 # The option is referenced via a variable to avoid confusing sed.
16219 lt_compile=`echo "$ac_compile" | $SED \
16220 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222 -e 's:$: $lt_compiler_flag:'`
16223 (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224 (eval "$lt_compile" 2>conftest.err)
16225 ac_status=$?
16226 cat conftest.err >&5
16227 echo "$as_me:16227: \$? = $ac_status" >&5
16228 if (exit $ac_status) && test -s "$ac_outfile"; then
16229 # The compiler can only warn and ignore the option if not recognized
16230 # So say no if there are warnings
16231 if test ! -s conftest.err; then
16232 lt_prog_compiler_pic_works_GCJ=yes
16235 $rm conftest*
16238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16239 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16241 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16242 case $lt_prog_compiler_pic_GCJ in
16243 "" | " "*) ;;
16244 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16245 esac
16246 else
16247 lt_prog_compiler_pic_GCJ=
16248 lt_prog_compiler_can_build_shared_GCJ=no
16252 case "$host_os" in
16253 # For platforms which do not support PIC, -DPIC is meaningless:
16254 *djgpp*)
16255 lt_prog_compiler_pic_GCJ=
16258 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16260 esac
16262 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16264 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 lt_cv_prog_compiler_c_o_GCJ=no
16268 $rm -r conftest 2>/dev/null
16269 mkdir conftest
16270 cd conftest
16271 mkdir out
16272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16274 lt_compiler_flag="-o out/conftest2.$ac_objext"
16275 # Insert the option either (1) after the last *FLAGS variable, or
16276 # (2) before a word containing "conftest.", or (3) at the end.
16277 # Note that $ac_compile itself does not contain backslashes and begins
16278 # with a dollar sign (not a hyphen), so the echo should work correctly.
16279 lt_compile=`echo "$ac_compile" | $SED \
16280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16282 -e 's:$: $lt_compiler_flag:'`
16283 (eval echo "\"\$as_me:16283: $lt_compile\"" >&5)
16284 (eval "$lt_compile" 2>out/conftest.err)
16285 ac_status=$?
16286 cat out/conftest.err >&5
16287 echo "$as_me:16287: \$? = $ac_status" >&5
16288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16289 then
16290 # The compiler can only warn and ignore the option if not recognized
16291 # So say no if there are warnings
16292 if test ! -s out/conftest.err; then
16293 lt_cv_prog_compiler_c_o_GCJ=yes
16296 chmod u+w .
16297 $rm conftest*
16298 # SGI C++ compiler will create directory out/ii_files/ for
16299 # template instantiation
16300 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16301 $rm out/* && rmdir out
16302 cd ..
16303 rmdir conftest
16304 $rm conftest*
16307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16308 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16311 hard_links="nottested"
16312 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16313 # do not overwrite the value of need_locks provided by the user
16314 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16315 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16316 hard_links=yes
16317 $rm conftest*
16318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16319 touch conftest.a
16320 ln conftest.a conftest.b 2>&5 || hard_links=no
16321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16322 echo "$as_me:$LINENO: result: $hard_links" >&5
16323 echo "${ECHO_T}$hard_links" >&6
16324 if test "$hard_links" = no; then
16325 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16326 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16327 need_locks=warn
16329 else
16330 need_locks=no
16333 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16334 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16336 runpath_var=
16337 allow_undefined_flag_GCJ=
16338 enable_shared_with_static_runtimes_GCJ=no
16339 archive_cmds_GCJ=
16340 archive_expsym_cmds_GCJ=
16341 old_archive_From_new_cmds_GCJ=
16342 old_archive_from_expsyms_cmds_GCJ=
16343 export_dynamic_flag_spec_GCJ=
16344 whole_archive_flag_spec_GCJ=
16345 thread_safe_flag_spec_GCJ=
16346 hardcode_libdir_flag_spec_GCJ=
16347 hardcode_libdir_flag_spec_ld_GCJ=
16348 hardcode_libdir_separator_GCJ=
16349 hardcode_direct_GCJ=no
16350 hardcode_minus_L_GCJ=no
16351 hardcode_shlibpath_var_GCJ=unsupported
16352 link_all_deplibs_GCJ=unknown
16353 hardcode_automatic_GCJ=no
16354 module_cmds_GCJ=
16355 module_expsym_cmds_GCJ=
16356 always_export_symbols_GCJ=no
16357 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16358 # include_expsyms should be a list of space-separated symbols to be *always*
16359 # included in the symbol list
16360 include_expsyms_GCJ=
16361 # exclude_expsyms can be an extended regexp of symbols to exclude
16362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16364 # as well as any symbol that contains `d'.
16365 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16367 # platforms (ab)use it in PIC code, but their linkers get confused if
16368 # the symbol is explicitly referenced. Since portable code cannot
16369 # rely on this symbol name, it's probably fine to never include it in
16370 # preloaded symbol tables.
16371 extract_expsyms_cmds=
16373 case $host_os in
16374 cygwin* | mingw* | pw32*)
16375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16376 # When not using gcc, we currently assume that we are using
16377 # Microsoft Visual C++.
16378 if test "$GCC" != yes; then
16379 with_gnu_ld=no
16382 openbsd*)
16383 with_gnu_ld=no
16385 esac
16387 ld_shlibs_GCJ=yes
16388 if test "$with_gnu_ld" = yes; then
16389 # If archive_cmds runs LD, not CC, wlarc should be empty
16390 wlarc='${wl}'
16392 # See if GNU ld supports shared libraries.
16393 case $host_os in
16394 aix3* | aix4* | aix5*)
16395 # On AIX/PPC, the GNU linker is very broken
16396 if test "$host_cpu" != ia64; then
16397 ld_shlibs_GCJ=no
16398 cat <<EOF 1>&2
16400 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16401 *** to be unable to reliably create shared libraries on AIX.
16402 *** Therefore, libtool is disabling shared libraries support. If you
16403 *** really care for shared libraries, you may want to modify your PATH
16404 *** so that a non-GNU linker is found, and then restart.
16410 amigaos*)
16411 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)'
16412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16413 hardcode_minus_L_GCJ=yes
16415 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16416 # that the semantics of dynamic libraries on AmigaOS, at least up
16417 # to version 4, is to share data among multiple programs linked
16418 # with the same dynamic library. Since this doesn't match the
16419 # behavior of shared libraries on other platforms, we can't use
16420 # them.
16421 ld_shlibs_GCJ=no
16424 beos*)
16425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16426 allow_undefined_flag_GCJ=unsupported
16427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16428 # support --undefined. This deserves some investigation. FIXME
16429 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16430 else
16431 ld_shlibs_GCJ=no
16435 cygwin* | mingw* | pw32*)
16436 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16437 # as there is no search path for DLLs.
16438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16439 allow_undefined_flag_GCJ=unsupported
16440 always_export_symbols_GCJ=no
16441 enable_shared_with_static_runtimes_GCJ=yes
16442 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16444 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16445 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16446 # If the export-symbols file already is a .def file (1st line
16447 # is EXPORTS), use it as is; otherwise, prepend...
16448 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16449 cp $export_symbols $output_objdir/$soname.def;
16450 else
16451 echo EXPORTS > $output_objdir/$soname.def;
16452 cat $export_symbols >> $output_objdir/$soname.def;
16454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16455 else
16456 ld_shlibs_GCJ=no
16460 netbsd*)
16461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16462 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16463 wlarc=
16464 else
16465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16470 solaris* | sysv5*)
16471 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16472 ld_shlibs_GCJ=no
16473 cat <<EOF 1>&2
16475 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16476 *** create shared libraries on Solaris systems. Therefore, libtool
16477 *** is disabling shared libraries support. We urge you to upgrade GNU
16478 *** binutils to release 2.9.1 or newer. Another option is to modify
16479 *** your PATH or compiler configuration so that the native linker is
16480 *** used, and then restart.
16483 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486 else
16487 ld_shlibs_GCJ=no
16491 sunos4*)
16492 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493 wlarc=
16494 hardcode_direct_GCJ=yes
16495 hardcode_shlibpath_var_GCJ=no
16498 linux*)
16499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500 tmp_addflag=
16501 case $CC,$host_cpu in
16502 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16503 tmp_addflag=' -fpic' ;;
16504 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16505 tmp_addflag=' -i_dynamic' ;;
16506 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16507 tmp_addflag=' -i_dynamic -nofor_main' ;;
16508 ifc* | ifort*) # Intel Fortran compiler
16509 tmp_addflag=' -nofor_main' ;;
16510 esac
16511 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512 supports_anon_versioning=no
16513 case `$LD -v 2>/dev/null` in
16514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16517 *\ 2.11.*) ;; # other 2.11 versions
16518 *) supports_anon_versioning=yes ;;
16519 esac
16520 if test $supports_anon_versioning = yes; then
16521 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16523 $echo "local: *; };" >> $output_objdir/$libname.ver~
16524 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16525 else
16526 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16528 else
16529 ld_shlibs_GCJ=no
16534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16537 else
16538 ld_shlibs_GCJ=no
16541 esac
16543 if test "$ld_shlibs_GCJ" = yes; then
16544 runpath_var=LD_RUN_PATH
16545 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16546 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16547 # ancient GNU ld didn't support --whole-archive et. al.
16548 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16549 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16550 else
16551 whole_archive_flag_spec_GCJ=
16554 else
16555 # PORTME fill in a description of your system's linker (not GNU ld)
16556 case $host_os in
16557 aix3*)
16558 allow_undefined_flag_GCJ=unsupported
16559 always_export_symbols_GCJ=yes
16560 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'
16561 # Note: this linker hardcodes the directories in LIBPATH if there
16562 # are no directories specified by -L.
16563 hardcode_minus_L_GCJ=yes
16564 if test "$GCC" = yes && test -z "$link_static_flag"; then
16565 # Neither direct hardcoding nor static linking is supported with a
16566 # broken collect2.
16567 hardcode_direct_GCJ=unsupported
16571 aix4* | aix5*)
16572 if test "$host_cpu" = ia64; then
16573 # On IA64, the linker does run time linking by default, so we don't
16574 # have to do anything special.
16575 aix_use_runtimelinking=no
16576 exp_sym_flag='-Bexport'
16577 no_entry_flag=""
16578 else
16579 # If we're using GNU nm, then we don't want the "-C" option.
16580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16582 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'
16583 else
16584 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'
16586 aix_use_runtimelinking=no
16588 # Test if we are trying to use run time linking or normal
16589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16590 # need to do runtime linking.
16591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16592 for ld_flag in $LDFLAGS; do
16593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16594 aix_use_runtimelinking=yes
16595 break
16597 done
16598 esac
16600 exp_sym_flag='-bexport'
16601 no_entry_flag='-bnoentry'
16604 # When large executables or shared objects are built, AIX ld can
16605 # have problems creating the table of contents. If linking a library
16606 # or program results in "error TOC overflow" add -mminimal-toc to
16607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16610 archive_cmds_GCJ=''
16611 hardcode_direct_GCJ=yes
16612 hardcode_libdir_separator_GCJ=':'
16613 link_all_deplibs_GCJ=yes
16615 if test "$GCC" = yes; then
16616 case $host_os in aix4.[012]|aix4.[012].*)
16617 # We only want to do this on AIX 4.2 and lower, the check
16618 # below for broken collect2 doesn't work under 4.3+
16619 collect2name=`${CC} -print-prog-name=collect2`
16620 if test -f "$collect2name" && \
16621 strings "$collect2name" | grep resolve_lib_name >/dev/null
16622 then
16623 # We have reworked collect2
16624 hardcode_direct_GCJ=yes
16625 else
16626 # We have old collect2
16627 hardcode_direct_GCJ=unsupported
16628 # It fails to find uninstalled libraries when the uninstalled
16629 # path is not listed in the libpath. Setting hardcode_minus_L
16630 # to unsupported forces relinking
16631 hardcode_minus_L_GCJ=yes
16632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633 hardcode_libdir_separator_GCJ=
16635 esac
16636 shared_flag='-shared'
16637 if test "$aix_use_runtimelinking" = yes; then
16638 shared_flag="$shared_flag "'${wl}-G'
16640 else
16641 # not using gcc
16642 if test "$host_cpu" = ia64; then
16643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16644 # chokes on -Wl,-G. The following line is correct:
16645 shared_flag='-G'
16646 else
16647 if test "$aix_use_runtimelinking" = yes; then
16648 shared_flag='${wl}-G'
16649 else
16650 shared_flag='${wl}-bM:SRE'
16655 # It seems that -bexpall does not export symbols beginning with
16656 # underscore (_), so it is better to generate a list of symbols to export.
16657 always_export_symbols_GCJ=yes
16658 if test "$aix_use_runtimelinking" = yes; then
16659 # Warning - without using the other runtime loading flags (-brtl),
16660 # -berok will link without error, but may produce a broken library.
16661 allow_undefined_flag_GCJ='-berok'
16662 # Determine the default libpath from the value encoded in an empty executable.
16663 cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16671 main ()
16675 return 0;
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16680 (eval $ac_link) 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -z "$ac_c_werror_flag"
16688 || test ! -s conftest.err'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16703 # Check for a 64-bit object if we didn't find anything.
16704 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; }
16705 }'`; fi
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16711 rm -f conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16716 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"
16717 else
16718 if test "$host_cpu" = ia64; then
16719 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16720 allow_undefined_flag_GCJ="-z nodefs"
16721 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"
16722 else
16723 # Determine the default libpath from the value encoded in an empty executable.
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16732 main ()
16736 return 0;
16738 _ACEOF
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16764 # Check for a 64-bit object if we didn't find anything.
16765 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; }
16766 }'`; fi
16767 else
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16772 rm -f conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16776 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16777 # Warning - without using the other run time loading flags,
16778 # -berok will link without error, but may produce a broken library.
16779 no_undefined_flag_GCJ=' ${wl}-bernotok'
16780 allow_undefined_flag_GCJ=' ${wl}-berok'
16781 # -bexpall does not export symbols beginning with underscore (_)
16782 always_export_symbols_GCJ=yes
16783 # Exported symbols can be pulled into shared objects from archives
16784 whole_archive_flag_spec_GCJ=' '
16785 archive_cmds_need_lc_GCJ=yes
16786 # This is similar to how AIX traditionally builds it's shared libraries.
16787 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'
16792 amigaos*)
16793 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)'
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 hardcode_minus_L_GCJ=yes
16796 # see comment about different semantics on the GNU ld section
16797 ld_shlibs_GCJ=no
16800 bsdi[45]*)
16801 export_dynamic_flag_spec_GCJ=-rdynamic
16804 cygwin* | mingw* | pw32*)
16805 # When not using gcc, we currently assume that we are using
16806 # Microsoft Visual C++.
16807 # hardcode_libdir_flag_spec is actually meaningless, as there is
16808 # no search path for DLLs.
16809 hardcode_libdir_flag_spec_GCJ=' '
16810 allow_undefined_flag_GCJ=unsupported
16811 # Tell ltmain to make .lib files, not .a files.
16812 libext=lib
16813 # Tell ltmain to make .dll files, not .so files.
16814 shrext_cmds=".dll"
16815 # FIXME: Setting linknames here is a bad hack.
16816 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16817 # The linker will automatically build a .lib file if we build a DLL.
16818 old_archive_From_new_cmds_GCJ='true'
16819 # FIXME: Should let the user specify the lib program.
16820 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16821 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16822 enable_shared_with_static_runtimes_GCJ=yes
16825 darwin* | rhapsody*)
16826 case "$host_os" in
16827 rhapsody* | darwin1.[012])
16828 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16830 *) # Darwin 1.3 on
16831 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16832 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16833 else
16834 case ${MACOSX_DEPLOYMENT_TARGET} in
16835 10.[012])
16836 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16838 10.*)
16839 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16841 esac
16844 esac
16845 archive_cmds_need_lc_GCJ=no
16846 hardcode_direct_GCJ=no
16847 hardcode_automatic_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=unsupported
16849 whole_archive_flag_spec_GCJ=''
16850 link_all_deplibs_GCJ=yes
16851 if test "$GCC" = yes ; then
16852 output_verbose_link_cmd='echo'
16853 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16854 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16856 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16857 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16858 else
16859 case "$cc_basename" in
16860 xlc*)
16861 output_verbose_link_cmd='echo'
16862 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16863 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16865 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16866 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16869 ld_shlibs_GCJ=no
16871 esac
16875 dgux*)
16876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 hardcode_shlibpath_var_GCJ=no
16881 freebsd1*)
16882 ld_shlibs_GCJ=no
16885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16886 # support. Future versions do this automatically, but an explicit c++rt0.o
16887 # does not break anything, and helps significantly (at the cost of a little
16888 # extra space).
16889 freebsd2.2*)
16890 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16892 hardcode_direct_GCJ=yes
16893 hardcode_shlibpath_var_GCJ=no
16896 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16897 freebsd2*)
16898 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_direct_GCJ=yes
16900 hardcode_minus_L_GCJ=yes
16901 hardcode_shlibpath_var_GCJ=no
16904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16905 freebsd* | kfreebsd*-gnu | dragonfly*)
16906 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16907 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16908 hardcode_direct_GCJ=yes
16909 hardcode_shlibpath_var_GCJ=no
16912 hpux9*)
16913 if test "$GCC" = yes; then
16914 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'
16915 else
16916 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'
16918 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919 hardcode_libdir_separator_GCJ=:
16920 hardcode_direct_GCJ=yes
16922 # hardcode_minus_L: Not really in the search PATH,
16923 # but as the default location of the library.
16924 hardcode_minus_L_GCJ=yes
16925 export_dynamic_flag_spec_GCJ='${wl}-E'
16928 hpux10* | hpux11*)
16929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16930 case "$host_cpu" in
16931 hppa*64*|ia64*)
16932 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16937 esac
16938 else
16939 case "$host_cpu" in
16940 hppa*64*|ia64*)
16941 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16946 esac
16948 if test "$with_gnu_ld" = no; then
16949 case "$host_cpu" in
16950 hppa*64*)
16951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16952 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16953 hardcode_libdir_separator_GCJ=:
16954 hardcode_direct_GCJ=no
16955 hardcode_shlibpath_var_GCJ=no
16957 ia64*)
16958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959 hardcode_direct_GCJ=no
16960 hardcode_shlibpath_var_GCJ=no
16962 # hardcode_minus_L: Not really in the search PATH,
16963 # but as the default location of the library.
16964 hardcode_minus_L_GCJ=yes
16967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16968 hardcode_libdir_separator_GCJ=:
16969 hardcode_direct_GCJ=yes
16970 export_dynamic_flag_spec_GCJ='${wl}-E'
16972 # hardcode_minus_L: Not really in the search PATH,
16973 # but as the default location of the library.
16974 hardcode_minus_L_GCJ=yes
16976 esac
16980 irix5* | irix6* | nonstopux*)
16981 if test "$GCC" = yes; then
16982 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'
16983 else
16984 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'
16985 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988 hardcode_libdir_separator_GCJ=:
16989 link_all_deplibs_GCJ=yes
16992 netbsd*)
16993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16995 else
16996 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17003 newsos6)
17004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 hardcode_direct_GCJ=yes
17006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17007 hardcode_libdir_separator_GCJ=:
17008 hardcode_shlibpath_var_GCJ=no
17011 openbsd*)
17012 hardcode_direct_GCJ=yes
17013 hardcode_shlibpath_var_GCJ=no
17014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17015 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17016 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 else
17020 case $host_os in
17021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17022 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029 esac
17033 os2*)
17034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17035 hardcode_minus_L_GCJ=yes
17036 allow_undefined_flag_GCJ=unsupported
17037 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'
17038 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17041 osf3*)
17042 if test "$GCC" = yes; then
17043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17044 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'
17045 else
17046 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17047 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'
17049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17050 hardcode_libdir_separator_GCJ=:
17053 osf4* | osf5*) # as osf3* with the addition of -msym flag
17054 if test "$GCC" = yes; then
17055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17056 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'
17057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17058 else
17059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17060 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'
17061 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17062 $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'
17064 # Both c and cxx compiler support -rpath directly
17065 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17067 hardcode_libdir_separator_GCJ=:
17070 sco3.2v5*)
17071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_shlibpath_var_GCJ=no
17073 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17074 runpath_var=LD_RUN_PATH
17075 hardcode_runpath_var=yes
17078 solaris*)
17079 no_undefined_flag_GCJ=' -z text'
17080 if test "$GCC" = yes; then
17081 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17083 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17084 else
17085 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090 hardcode_shlibpath_var_GCJ=no
17091 case $host_os in
17092 solaris2.[0-5] | solaris2.[0-5].*) ;;
17093 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17094 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17095 esac
17096 link_all_deplibs_GCJ=yes
17099 sunos4*)
17100 if test "x$host_vendor" = xsequent; then
17101 # Use $CC to link under sequent, because it throws in some extra .o
17102 # files that make .init and .fini sections work.
17103 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17104 else
17105 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17108 hardcode_direct_GCJ=yes
17109 hardcode_minus_L_GCJ=yes
17110 hardcode_shlibpath_var_GCJ=no
17113 sysv4)
17114 case $host_vendor in
17115 sni)
17116 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117 hardcode_direct_GCJ=yes # is this really true???
17119 siemens)
17120 ## LD is ld it makes a PLAMLIB
17121 ## CC just makes a GrossModule.
17122 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17123 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17124 hardcode_direct_GCJ=no
17126 motorola)
17127 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17128 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17130 esac
17131 runpath_var='LD_RUN_PATH'
17132 hardcode_shlibpath_var_GCJ=no
17135 sysv4.3*)
17136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17137 hardcode_shlibpath_var_GCJ=no
17138 export_dynamic_flag_spec_GCJ='-Bexport'
17141 sysv4*MP*)
17142 if test -d /usr/nec; then
17143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_shlibpath_var_GCJ=no
17145 runpath_var=LD_RUN_PATH
17146 hardcode_runpath_var=yes
17147 ld_shlibs_GCJ=yes
17151 sysv4.2uw2*)
17152 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ=yes
17154 hardcode_minus_L_GCJ=no
17155 hardcode_shlibpath_var_GCJ=no
17156 hardcode_runpath_var=yes
17157 runpath_var=LD_RUN_PATH
17160 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17161 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17162 if test "$GCC" = yes; then
17163 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 else
17165 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 runpath_var='LD_RUN_PATH'
17168 hardcode_shlibpath_var_GCJ=no
17171 sysv5*)
17172 no_undefined_flag_GCJ=' -z text'
17173 # $CC -shared without GNU ld will not create a library from C++
17174 # object files and a static libstdc++, better avoid it by now
17175 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17178 hardcode_libdir_flag_spec_GCJ=
17179 hardcode_shlibpath_var_GCJ=no
17180 runpath_var='LD_RUN_PATH'
17183 uts4*)
17184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186 hardcode_shlibpath_var_GCJ=no
17190 ld_shlibs_GCJ=no
17192 esac
17195 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17196 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17197 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17200 if test "$GCC" = yes; then
17201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17205 # Do we need to explicitly link libc?
17207 case "x$archive_cmds_need_lc_GCJ" in
17208 x|xyes)
17209 # Assume -lc should be added
17210 archive_cmds_need_lc_GCJ=yes
17212 if test "$enable_shared" = yes && test "$GCC" = yes; then
17213 case $archive_cmds_GCJ in
17214 *'~'*)
17215 # FIXME: we may have to deal with multi-command sequences.
17217 '$CC '*)
17218 # Test whether the compiler implicitly links with -lc since on some
17219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17220 # to ld, don't add -lc before -lgcc.
17221 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17222 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17223 $rm conftest*
17224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17227 (eval $ac_compile) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } 2>conftest.err; then
17231 soname=conftest
17232 lib=conftest
17233 libobjs=conftest.$ac_objext
17234 deplibs=
17235 wl=$lt_prog_compiler_wl_GCJ
17236 compiler_flags=-v
17237 linker_flags=-v
17238 verstring=
17239 output_objdir=.
17240 libname=conftest
17241 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17242 allow_undefined_flag_GCJ=
17243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17244 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }
17248 then
17249 archive_cmds_need_lc_GCJ=no
17250 else
17251 archive_cmds_need_lc_GCJ=yes
17253 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17254 else
17255 cat conftest.err 1>&5
17257 $rm conftest*
17258 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17259 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17261 esac
17264 esac
17266 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17268 library_names_spec=
17269 libname_spec='lib$name'
17270 soname_spec=
17271 shrext_cmds=".so"
17272 postinstall_cmds=
17273 postuninstall_cmds=
17274 finish_cmds=
17275 finish_eval=
17276 shlibpath_var=
17277 shlibpath_overrides_runpath=unknown
17278 version_type=none
17279 dynamic_linker="$host_os ld.so"
17280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17281 if test "$GCC" = yes; then
17282 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17283 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17284 # if the path contains ";" then we assume it to be the separator
17285 # otherwise default to the standard path separator (i.e. ":") - it is
17286 # assumed that no part of a normal pathname contains ";" but that should
17287 # okay in the real world where ";" in dirpaths is itself problematic.
17288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17289 else
17290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17292 else
17293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17295 need_lib_prefix=unknown
17296 hardcode_into_libs=no
17298 # when you set need_version to no, make sure it does not cause -set_version
17299 # flags to be left without arguments
17300 need_version=unknown
17302 case $host_os in
17303 aix3*)
17304 version_type=linux
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17306 shlibpath_var=LIBPATH
17308 # AIX 3 has no versioning support, so we append a major version to the name.
17309 soname_spec='${libname}${release}${shared_ext}$major'
17312 aix4* | aix5*)
17313 version_type=linux
17314 need_lib_prefix=no
17315 need_version=no
17316 hardcode_into_libs=yes
17317 if test "$host_cpu" = ia64; then
17318 # AIX 5 supports IA64
17319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 else
17322 # With GCC up to 2.95.x, collect2 would create an import file
17323 # for dependence libraries. The import file would start with
17324 # the line `#! .'. This would cause the generated library to
17325 # depend on `.', always an invalid library. This was fixed in
17326 # development snapshots of GCC prior to 3.0.
17327 case $host_os in
17328 aix4 | aix4.[01] | aix4.[01].*)
17329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17330 echo ' yes '
17331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17333 else
17334 can_build_shared=no
17337 esac
17338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17339 # soname into executable. Probably we can add versioning support to
17340 # collect2, so additional links can be useful in future.
17341 if test "$aix_use_runtimelinking" = yes; then
17342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17343 # instead of lib<name>.a to let people know that these are not
17344 # typical AIX shared libraries.
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 else
17347 # We preserve .a as extension for shared libraries through AIX4.2
17348 # and later when we are not doing run time linking.
17349 library_names_spec='${libname}${release}.a $libname.a'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LIBPATH
17356 amigaos*)
17357 library_names_spec='$libname.ixlibrary $libname.a'
17358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17359 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'
17362 beos*)
17363 library_names_spec='${libname}${shared_ext}'
17364 dynamic_linker="$host_os ld.so"
17365 shlibpath_var=LIBRARY_PATH
17368 bsdi[45]*)
17369 version_type=linux
17370 need_version=no
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17377 # the default ld.so.conf also contains /usr/contrib/lib and
17378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17379 # libtool to hard-code these into programs
17382 cygwin* | mingw* | pw32*)
17383 version_type=windows
17384 shrext_cmds=".dll"
17385 need_version=no
17386 need_lib_prefix=no
17388 case $GCC,$host_os in
17389 yes,cygwin* | yes,mingw* | yes,pw32*)
17390 library_names_spec='$libname.dll.a'
17391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17392 postinstall_cmds='base_file=`basename \${file}`~
17393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17394 dldir=$destdir/`dirname \$dlpath`~
17395 test -d \$dldir || mkdir -p \$dldir~
17396 $install_prog $dir/$dlname \$dldir/$dlname'
17397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17398 dlpath=$dir/\$dldll~
17399 $rm \$dlpath'
17400 shlibpath_overrides_runpath=yes
17402 case $host_os in
17403 cygwin*)
17404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17408 mingw*)
17409 # MinGW DLLs use traditional 'lib' prefix
17410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17413 # It is most probably a Windows format PATH printed by
17414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17415 # path with ; separators, and with drive letters. We can handle the
17416 # drive letters (cygwin fileutils understands them), so leave them,
17417 # especially as we might pass files found there to a mingw objdump,
17418 # which wouldn't understand a cygwinified path. Ahh.
17419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17420 else
17421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17424 pw32*)
17425 # pw32 DLLs use 'pw' prefix rather than 'lib'
17426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 esac
17432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17434 esac
17435 dynamic_linker='Win32 ld.exe'
17436 # FIXME: first we should search . and the directory the executable is in
17437 shlibpath_var=PATH
17440 darwin* | rhapsody*)
17441 dynamic_linker="$host_os dyld"
17442 version_type=darwin
17443 need_lib_prefix=no
17444 need_version=no
17445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17446 soname_spec='${libname}${release}${major}$shared_ext'
17447 shlibpath_overrides_runpath=yes
17448 shlibpath_var=DYLD_LIBRARY_PATH
17449 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17450 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17451 if test "$GCC" = yes; then
17452 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17453 else
17454 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17459 dgux*)
17460 version_type=linux
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17468 freebsd1*)
17469 dynamic_linker=no
17472 kfreebsd*-gnu)
17473 version_type=linux
17474 need_lib_prefix=no
17475 need_version=no
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 shlibpath_var=LD_LIBRARY_PATH
17479 shlibpath_overrides_runpath=no
17480 hardcode_into_libs=yes
17481 dynamic_linker='GNU ld.so'
17484 freebsd* | dragonfly*)
17485 # DragonFly does not have aout. When/if they implement a new
17486 # versioning mechanism, adjust this.
17487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17488 version_type=freebsd-$objformat
17489 case $version_type in
17490 freebsd-elf*)
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17492 need_version=no
17493 need_lib_prefix=no
17495 freebsd-*)
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17497 need_version=yes
17499 esac
17500 shlibpath_var=LD_LIBRARY_PATH
17501 case $host_os in
17502 freebsd2*)
17503 shlibpath_overrides_runpath=yes
17505 freebsd3.[01]* | freebsdelf3.[01]*)
17506 shlibpath_overrides_runpath=yes
17507 hardcode_into_libs=yes
17509 *) # from 3.2 on
17510 shlibpath_overrides_runpath=no
17511 hardcode_into_libs=yes
17513 esac
17516 gnu*)
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 hardcode_into_libs=yes
17526 hpux9* | hpux10* | hpux11*)
17527 # Give a soname corresponding to the major version so that dld.sl refuses to
17528 # link against other versions.
17529 version_type=sunos
17530 need_lib_prefix=no
17531 need_version=no
17532 case "$host_cpu" in
17533 ia64*)
17534 shrext_cmds='.so'
17535 hardcode_into_libs=yes
17536 dynamic_linker="$host_os dld.so"
17537 shlibpath_var=LD_LIBRARY_PATH
17538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540 soname_spec='${libname}${release}${shared_ext}$major'
17541 if test "X$HPUX_IA64_MODE" = X32; then
17542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17543 else
17544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17548 hppa*64*)
17549 shrext_cmds='.sl'
17550 hardcode_into_libs=yes
17551 dynamic_linker="$host_os dld.sl"
17552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560 shrext_cmds='.sl'
17561 dynamic_linker="$host_os dld.sl"
17562 shlibpath_var=SHLIB_PATH
17563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17567 esac
17568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17569 postinstall_cmds='chmod 555 $lib'
17572 irix5* | irix6* | nonstopux*)
17573 case $host_os in
17574 nonstopux*) version_type=nonstopux ;;
17576 if test "$lt_cv_prog_gnu_ld" = yes; then
17577 version_type=linux
17578 else
17579 version_type=irix
17580 fi ;;
17581 esac
17582 need_lib_prefix=no
17583 need_version=no
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17586 case $host_os in
17587 irix5* | nonstopux*)
17588 libsuff= shlibsuff=
17591 case $LD in # libtool.m4 will add one of these switches to LD
17592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17593 libsuff= shlibsuff= libmagic=32-bit;;
17594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17595 libsuff=32 shlibsuff=N32 libmagic=N32;;
17596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17598 *) libsuff= shlibsuff= libmagic=never-match;;
17599 esac
17601 esac
17602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17603 shlibpath_overrides_runpath=no
17604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17606 hardcode_into_libs=yes
17609 # No shared lib support for Linux oldld, aout, or coff.
17610 linux*oldld* | linux*aout* | linux*coff*)
17611 dynamic_linker=no
17614 # This must be Linux ELF.
17615 linux*)
17616 version_type=linux
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 # This implies no fast_install, which is unacceptable.
17625 # Some rework will be needed to allow for fast_install
17626 # before this can be enabled.
17627 hardcode_into_libs=yes
17629 # Append ld.so.conf contents to the search path
17630 if test -f /etc/ld.so.conf; then
17631 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17635 # We used to test for /lib/ld.so.1 and disable shared libraries on
17636 # powerpc, because MkLinux only supported shared libraries with the
17637 # GNU dynamic linker. Since this was broken with cross compilers,
17638 # most powerpc-linux boxes support dynamic linking these days and
17639 # people can always --disable-shared, the test was removed, and we
17640 # assume the GNU/Linux dynamic linker is in use.
17641 dynamic_linker='GNU/Linux ld.so'
17644 knetbsd*-gnu)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 shlibpath_var=LD_LIBRARY_PATH
17651 shlibpath_overrides_runpath=no
17652 hardcode_into_libs=yes
17653 dynamic_linker='GNU ld.so'
17656 netbsd*)
17657 version_type=sunos
17658 need_lib_prefix=no
17659 need_version=no
17660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17663 dynamic_linker='NetBSD (a.out) ld.so'
17664 else
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 dynamic_linker='NetBSD ld.elf_so'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=yes
17671 hardcode_into_libs=yes
17674 newsos6)
17675 version_type=linux
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=yes
17681 nto-qnx*)
17682 version_type=linux
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 shlibpath_overrides_runpath=yes
17691 openbsd*)
17692 version_type=sunos
17693 need_lib_prefix=no
17694 need_version=no
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17699 case $host_os in
17700 openbsd2.[89] | openbsd2.[89].*)
17701 shlibpath_overrides_runpath=no
17704 shlibpath_overrides_runpath=yes
17706 esac
17707 else
17708 shlibpath_overrides_runpath=yes
17712 os2*)
17713 libname_spec='$name'
17714 shrext_cmds=".dll"
17715 need_lib_prefix=no
17716 library_names_spec='$libname${shared_ext} $libname.a'
17717 dynamic_linker='OS/2 ld.exe'
17718 shlibpath_var=LIBPATH
17721 osf3* | osf4* | osf5*)
17722 version_type=osf
17723 need_lib_prefix=no
17724 need_version=no
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17732 sco3.2v5*)
17733 version_type=osf
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17736 shlibpath_var=LD_LIBRARY_PATH
17739 solaris*)
17740 version_type=linux
17741 need_lib_prefix=no
17742 need_version=no
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17744 soname_spec='${libname}${release}${shared_ext}$major'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=yes
17747 hardcode_into_libs=yes
17748 # ldd complains unless libraries are executable
17749 postinstall_cmds='chmod +x $lib'
17752 sunos4*)
17753 version_type=sunos
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17756 shlibpath_var=LD_LIBRARY_PATH
17757 shlibpath_overrides_runpath=yes
17758 if test "$with_gnu_ld" = yes; then
17759 need_lib_prefix=no
17761 need_version=yes
17764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17765 version_type=linux
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 soname_spec='${libname}${release}${shared_ext}$major'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 case $host_vendor in
17770 sni)
17771 shlibpath_overrides_runpath=no
17772 need_lib_prefix=no
17773 export_dynamic_flag_spec='${wl}-Blargedynsym'
17774 runpath_var=LD_RUN_PATH
17776 siemens)
17777 need_lib_prefix=no
17779 motorola)
17780 need_lib_prefix=no
17781 need_version=no
17782 shlibpath_overrides_runpath=no
17783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17785 esac
17788 sysv4*MP*)
17789 if test -d /usr/nec ;then
17790 version_type=linux
17791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17792 soname_spec='$libname${shared_ext}.$major'
17793 shlibpath_var=LD_LIBRARY_PATH
17797 uts4*)
17798 version_type=linux
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 shlibpath_var=LD_LIBRARY_PATH
17805 dynamic_linker=no
17807 esac
17808 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17809 echo "${ECHO_T}$dynamic_linker" >&6
17810 test "$dynamic_linker" = no && can_build_shared=no
17812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17814 hardcode_action_GCJ=
17815 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17816 test -n "$runpath_var_GCJ" || \
17817 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17819 # We can hardcode non-existant directories.
17820 if test "$hardcode_direct_GCJ" != no &&
17821 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17822 # have to relink, otherwise we might link with an installed library
17823 # when we should be linking with a yet-to-be-installed one
17824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17825 test "$hardcode_minus_L_GCJ" != no; then
17826 # Linking always hardcodes the temporary library directory.
17827 hardcode_action_GCJ=relink
17828 else
17829 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17830 hardcode_action_GCJ=immediate
17832 else
17833 # We cannot hardcode anything, or else we can only hardcode existing
17834 # directories.
17835 hardcode_action_GCJ=unsupported
17837 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17838 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17840 if test "$hardcode_action_GCJ" = relink; then
17841 # Fast installation is not supported
17842 enable_fast_install=no
17843 elif test "$shlibpath_overrides_runpath" = yes ||
17844 test "$enable_shared" = no; then
17845 # Fast installation is not necessary
17846 enable_fast_install=needless
17849 striplib=
17850 old_striplib=
17851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17856 echo "$as_me:$LINENO: result: yes" >&5
17857 echo "${ECHO_T}yes" >&6
17858 else
17859 # FIXME - insert some real tests, host_os isn't really good enough
17860 case $host_os in
17861 darwin*)
17862 if test -n "$STRIP" ; then
17863 striplib="$STRIP -x"
17864 echo "$as_me:$LINENO: result: yes" >&5
17865 echo "${ECHO_T}yes" >&6
17866 else
17867 echo "$as_me:$LINENO: result: no" >&5
17868 echo "${ECHO_T}no" >&6
17872 echo "$as_me:$LINENO: result: no" >&5
17873 echo "${ECHO_T}no" >&6
17875 esac
17878 if test "x$enable_dlopen" != xyes; then
17879 enable_dlopen=unknown
17880 enable_dlopen_self=unknown
17881 enable_dlopen_self_static=unknown
17882 else
17883 lt_cv_dlopen=no
17884 lt_cv_dlopen_libs=
17886 case $host_os in
17887 beos*)
17888 lt_cv_dlopen="load_add_on"
17889 lt_cv_dlopen_libs=
17890 lt_cv_dlopen_self=yes
17893 mingw* | pw32*)
17894 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen_libs=
17898 cygwin*)
17899 lt_cv_dlopen="dlopen"
17900 lt_cv_dlopen_libs=
17903 darwin*)
17904 # if libdl is installed we need to link against it
17905 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17906 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910 ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldl $LIBS"
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17919 /* Override any gcc2 internal prototype to avoid an error. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 /* We use char because int might match the return type of a gcc2
17924 builtin and then its argument prototype would still apply. */
17925 char dlopen ();
17927 main ()
17929 dlopen ();
17931 return 0;
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_dl_dlopen=yes
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_dl_dlopen=no
17963 rm -f conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17969 if test $ac_cv_lib_dl_dlopen = yes; then
17970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17971 else
17973 lt_cv_dlopen="dyld"
17974 lt_cv_dlopen_libs=
17975 lt_cv_dlopen_self=yes
17982 echo "$as_me:$LINENO: checking for shl_load" >&5
17983 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17984 if test "${ac_cv_func_shl_load+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define shl_load innocuous_shl_load
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char shl_load (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18002 #ifdef __STDC__
18003 # include <limits.h>
18004 #else
18005 # include <assert.h>
18006 #endif
18008 #undef shl_load
18010 /* Override any gcc2 internal prototype to avoid an error. */
18011 #ifdef __cplusplus
18012 extern "C"
18014 #endif
18015 /* We use char because int might match the return type of a gcc2
18016 builtin and then its argument prototype would still apply. */
18017 char shl_load ();
18018 /* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18022 choke me
18023 #else
18024 char (*f) () = shl_load;
18025 #endif
18026 #ifdef __cplusplus
18028 #endif
18031 main ()
18033 return f != shl_load;
18035 return 0;
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag"
18048 || test ! -s conftest.err'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18051 ac_status=$?
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; } &&
18054 { ac_try='test -s conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_func_shl_load=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 ac_cv_func_shl_load=no
18067 rm -f conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18071 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18072 if test $ac_cv_func_shl_load = yes; then
18073 lt_cv_dlopen="shl_load"
18074 else
18075 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18076 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-ldld $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any gcc2 internal prototype to avoid an error. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 /* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18095 char shl_load ();
18097 main ()
18099 shl_load ();
18101 return 0;
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_lib_dld_shl_load=yes
18127 else
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_cv_lib_dld_shl_load=no
18133 rm -f conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 LIBS=$ac_check_lib_save_LIBS
18137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18138 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18139 if test $ac_cv_lib_dld_shl_load = yes; then
18140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18141 else
18142 echo "$as_me:$LINENO: checking for dlopen" >&5
18143 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18144 if test "${ac_cv_func_dlopen+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18155 #define dlopen innocuous_dlopen
18157 /* System header to define __stub macros and hopefully few prototypes,
18158 which can conflict with char dlopen (); below.
18159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18160 <limits.h> exists even on freestanding compilers. */
18162 #ifdef __STDC__
18163 # include <limits.h>
18164 #else
18165 # include <assert.h>
18166 #endif
18168 #undef dlopen
18170 /* Override any gcc2 internal prototype to avoid an error. */
18171 #ifdef __cplusplus
18172 extern "C"
18174 #endif
18175 /* We use char because int might match the return type of a gcc2
18176 builtin and then its argument prototype would still apply. */
18177 char dlopen ();
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18182 choke me
18183 #else
18184 char (*f) () = dlopen;
18185 #endif
18186 #ifdef __cplusplus
18188 #endif
18191 main ()
18193 return f != dlopen;
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_c_werror_flag"
18208 || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_func_dlopen=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 ac_cv_func_dlopen=no
18227 rm -f conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18231 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18232 if test $ac_cv_func_dlopen = yes; then
18233 lt_cv_dlopen="dlopen"
18234 else
18235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 ac_check_lib_save_LIBS=$LIBS
18241 LIBS="-ldl $LIBS"
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18249 /* Override any gcc2 internal prototype to avoid an error. */
18250 #ifdef __cplusplus
18251 extern "C"
18252 #endif
18253 /* We use char because int might match the return type of a gcc2
18254 builtin and then its argument prototype would still apply. */
18255 char dlopen ();
18257 main ()
18259 dlopen ();
18261 return 0;
18263 _ACEOF
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest$ac_exeext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_lib_dl_dlopen=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_cv_lib_dl_dlopen=no
18293 rm -f conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 LIBS=$ac_check_lib_save_LIBS
18297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18299 if test $ac_cv_lib_dl_dlopen = yes; then
18300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18301 else
18302 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18303 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lsvld $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322 char dlopen ();
18324 main ()
18326 dlopen ();
18328 return 0;
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_svld_dlopen=yes
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_svld_dlopen=no
18360 rm -f conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18364 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18365 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18366 if test $ac_cv_lib_svld_dlopen = yes; then
18367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18368 else
18369 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18370 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18371 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374 ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-ldld $LIBS"
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18383 /* Override any gcc2 internal prototype to avoid an error. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char dld_link ();
18391 main ()
18393 dld_link ();
18395 return 0;
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400 (eval $ac_link) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_lib_dld_dld_link=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_lib_dld_dld_link=no
18427 rm -f conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18432 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18433 if test $ac_cv_lib_dld_dld_link = yes; then
18434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18453 esac
18455 if test "x$lt_cv_dlopen" != xno; then
18456 enable_dlopen=yes
18457 else
18458 enable_dlopen=no
18461 case $lt_cv_dlopen in
18462 dlopen)
18463 save_CPPFLAGS="$CPPFLAGS"
18464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18466 save_LDFLAGS="$LDFLAGS"
18467 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18469 save_LIBS="$LIBS"
18470 LIBS="$lt_cv_dlopen_libs $LIBS"
18472 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18473 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18474 if test "${lt_cv_dlopen_self+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 if test "$cross_compiling" = yes; then :
18478 lt_cv_dlopen_self=cross
18479 else
18480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18481 lt_status=$lt_dlunknown
18482 cat > conftest.$ac_ext <<EOF
18483 #line 18483 "configure"
18484 #include "confdefs.h"
18486 #if HAVE_DLFCN_H
18487 #include <dlfcn.h>
18488 #endif
18490 #include <stdio.h>
18492 #ifdef RTLD_GLOBAL
18493 # define LT_DLGLOBAL RTLD_GLOBAL
18494 #else
18495 # ifdef DL_GLOBAL
18496 # define LT_DLGLOBAL DL_GLOBAL
18497 # else
18498 # define LT_DLGLOBAL 0
18499 # endif
18500 #endif
18502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18503 find out it does not work in some platform. */
18504 #ifndef LT_DLLAZY_OR_NOW
18505 # ifdef RTLD_LAZY
18506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18507 # else
18508 # ifdef DL_LAZY
18509 # define LT_DLLAZY_OR_NOW DL_LAZY
18510 # else
18511 # ifdef RTLD_NOW
18512 # define LT_DLLAZY_OR_NOW RTLD_NOW
18513 # else
18514 # ifdef DL_NOW
18515 # define LT_DLLAZY_OR_NOW DL_NOW
18516 # else
18517 # define LT_DLLAZY_OR_NOW 0
18518 # endif
18519 # endif
18520 # endif
18521 # endif
18522 #endif
18524 #ifdef __cplusplus
18525 extern "C" void exit (int);
18526 #endif
18528 void fnord() { int i=42;}
18529 int main ()
18531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18532 int status = $lt_dlunknown;
18534 if (self)
18536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18537 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18538 /* dlclose (self); */
18541 exit (status);
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18549 (./conftest; exit; ) 2>/dev/null
18550 lt_status=$?
18551 case x$lt_status in
18552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18554 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18555 esac
18556 else :
18557 # compilation failed
18558 lt_cv_dlopen_self=no
18561 rm -fr conftest*
18565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18568 if test "x$lt_cv_dlopen_self" = xyes; then
18569 LDFLAGS="$LDFLAGS $link_static_flag"
18570 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18572 if test "${lt_cv_dlopen_self_static+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 if test "$cross_compiling" = yes; then :
18576 lt_cv_dlopen_self_static=cross
18577 else
18578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18579 lt_status=$lt_dlunknown
18580 cat > conftest.$ac_ext <<EOF
18581 #line 18581 "configure"
18582 #include "confdefs.h"
18584 #if HAVE_DLFCN_H
18585 #include <dlfcn.h>
18586 #endif
18588 #include <stdio.h>
18590 #ifdef RTLD_GLOBAL
18591 # define LT_DLGLOBAL RTLD_GLOBAL
18592 #else
18593 # ifdef DL_GLOBAL
18594 # define LT_DLGLOBAL DL_GLOBAL
18595 # else
18596 # define LT_DLGLOBAL 0
18597 # endif
18598 #endif
18600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18601 find out it does not work in some platform. */
18602 #ifndef LT_DLLAZY_OR_NOW
18603 # ifdef RTLD_LAZY
18604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18605 # else
18606 # ifdef DL_LAZY
18607 # define LT_DLLAZY_OR_NOW DL_LAZY
18608 # else
18609 # ifdef RTLD_NOW
18610 # define LT_DLLAZY_OR_NOW RTLD_NOW
18611 # else
18612 # ifdef DL_NOW
18613 # define LT_DLLAZY_OR_NOW DL_NOW
18614 # else
18615 # define LT_DLLAZY_OR_NOW 0
18616 # endif
18617 # endif
18618 # endif
18619 # endif
18620 #endif
18622 #ifdef __cplusplus
18623 extern "C" void exit (int);
18624 #endif
18626 void fnord() { int i=42;}
18627 int main ()
18629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18630 int status = $lt_dlunknown;
18632 if (self)
18634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18636 /* dlclose (self); */
18639 exit (status);
18642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18643 (eval $ac_link) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18647 (./conftest; exit; ) 2>/dev/null
18648 lt_status=$?
18649 case x$lt_status in
18650 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18651 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18652 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18653 esac
18654 else :
18655 # compilation failed
18656 lt_cv_dlopen_self_static=no
18659 rm -fr conftest*
18663 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18664 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18667 CPPFLAGS="$save_CPPFLAGS"
18668 LDFLAGS="$save_LDFLAGS"
18669 LIBS="$save_LIBS"
18671 esac
18673 case $lt_cv_dlopen_self in
18674 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18675 *) enable_dlopen_self=unknown ;;
18676 esac
18678 case $lt_cv_dlopen_self_static in
18679 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18680 *) enable_dlopen_self_static=unknown ;;
18681 esac
18685 # The else clause should only fire when bootstrapping the
18686 # libtool distribution, otherwise you forgot to ship ltmain.sh
18687 # with your package, and you will get complaints that there are
18688 # no rules to generate ltmain.sh.
18689 if test -f "$ltmain"; then
18690 # See if we are running on zsh, and set the options which allow our commands through
18691 # without removal of \ escapes.
18692 if test -n "${ZSH_VERSION+set}" ; then
18693 setopt NO_GLOB_SUBST
18695 # Now quote all the things that may contain metacharacters while being
18696 # careful not to overquote the AC_SUBSTed values. We take copies of the
18697 # variables and quote the copies for generation of the libtool script.
18698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18699 SED SHELL STRIP \
18700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18702 deplibs_check_method reload_flag reload_cmds need_locks \
18703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18704 lt_cv_sys_global_symbol_to_c_name_address \
18705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18706 old_postinstall_cmds old_postuninstall_cmds \
18707 compiler_GCJ \
18708 CC_GCJ \
18709 LD_GCJ \
18710 lt_prog_compiler_wl_GCJ \
18711 lt_prog_compiler_pic_GCJ \
18712 lt_prog_compiler_static_GCJ \
18713 lt_prog_compiler_no_builtin_flag_GCJ \
18714 export_dynamic_flag_spec_GCJ \
18715 thread_safe_flag_spec_GCJ \
18716 whole_archive_flag_spec_GCJ \
18717 enable_shared_with_static_runtimes_GCJ \
18718 old_archive_cmds_GCJ \
18719 old_archive_from_new_cmds_GCJ \
18720 predep_objects_GCJ \
18721 postdep_objects_GCJ \
18722 predeps_GCJ \
18723 postdeps_GCJ \
18724 compiler_lib_search_path_GCJ \
18725 archive_cmds_GCJ \
18726 archive_expsym_cmds_GCJ \
18727 postinstall_cmds_GCJ \
18728 postuninstall_cmds_GCJ \
18729 old_archive_from_expsyms_cmds_GCJ \
18730 allow_undefined_flag_GCJ \
18731 no_undefined_flag_GCJ \
18732 export_symbols_cmds_GCJ \
18733 hardcode_libdir_flag_spec_GCJ \
18734 hardcode_libdir_flag_spec_ld_GCJ \
18735 hardcode_libdir_separator_GCJ \
18736 hardcode_automatic_GCJ \
18737 module_cmds_GCJ \
18738 module_expsym_cmds_GCJ \
18739 lt_cv_prog_compiler_c_o_GCJ \
18740 exclude_expsyms_GCJ \
18741 include_expsyms_GCJ; do
18743 case $var in
18744 old_archive_cmds_GCJ | \
18745 old_archive_from_new_cmds_GCJ | \
18746 archive_cmds_GCJ | \
18747 archive_expsym_cmds_GCJ | \
18748 module_cmds_GCJ | \
18749 module_expsym_cmds_GCJ | \
18750 old_archive_from_expsyms_cmds_GCJ | \
18751 export_symbols_cmds_GCJ | \
18752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18753 postinstall_cmds | postuninstall_cmds | \
18754 old_postinstall_cmds | old_postuninstall_cmds | \
18755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18756 # Double-quote double-evaled strings.
18757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762 esac
18763 done
18765 case $lt_echo in
18766 *'\$0 --fallback-echo"')
18767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769 esac
18771 cfgfile="$ofile"
18773 cat <<__EOF__ >> "$cfgfile"
18774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18778 # Shell to use when invoking shell scripts.
18779 SHELL=$lt_SHELL
18781 # Whether or not to build shared libraries.
18782 build_libtool_libs=$enable_shared
18784 # Whether or not to build static libraries.
18785 build_old_libs=$enable_static
18787 # Whether or not to add -lc for building shared libraries.
18788 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18790 # Whether or not to disallow shared libs when runtime libs are static
18791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18793 # Whether or not to optimize for fast installation.
18794 fast_install=$enable_fast_install
18796 # The host system.
18797 host_alias=$host_alias
18798 host=$host
18799 host_os=$host_os
18801 # The build system.
18802 build_alias=$build_alias
18803 build=$build
18804 build_os=$build_os
18806 # An echo program that does not interpret backslashes.
18807 echo=$lt_echo
18809 # The archiver.
18810 AR=$lt_AR
18811 AR_FLAGS=$lt_AR_FLAGS
18813 # A C compiler.
18814 LTCC=$lt_LTCC
18816 # A language-specific compiler.
18817 CC=$lt_compiler_GCJ
18819 # Is the compiler the GNU C compiler?
18820 with_gcc=$GCC_GCJ
18822 # An ERE matcher.
18823 EGREP=$lt_EGREP
18825 # The linker used to build libraries.
18826 LD=$lt_LD_GCJ
18828 # Whether we need hard or soft links.
18829 LN_S=$lt_LN_S
18831 # A BSD-compatible nm program.
18832 NM=$lt_NM
18834 # A symbol stripping program
18835 STRIP=$lt_STRIP
18837 # Used to examine libraries when file_magic_cmd begins "file"
18838 MAGIC_CMD=$MAGIC_CMD
18840 # Used on cygwin: DLL creation program.
18841 DLLTOOL="$DLLTOOL"
18843 # Used on cygwin: object dumper.
18844 OBJDUMP="$OBJDUMP"
18846 # Used on cygwin: assembler.
18847 AS="$AS"
18849 # The name of the directory that contains temporary libtool files.
18850 objdir=$objdir
18852 # How to create reloadable object files.
18853 reload_flag=$lt_reload_flag
18854 reload_cmds=$lt_reload_cmds
18856 # How to pass a linker flag through the compiler.
18857 wl=$lt_lt_prog_compiler_wl_GCJ
18859 # Object file suffix (normally "o").
18860 objext="$ac_objext"
18862 # Old archive suffix (normally "a").
18863 libext="$libext"
18865 # Shared library suffix (normally ".so").
18866 shrext_cmds='$shrext_cmds'
18868 # Executable file suffix (normally "").
18869 exeext="$exeext"
18871 # Additional compiler flags for building library objects.
18872 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18873 pic_mode=$pic_mode
18875 # What is the maximum length of a command?
18876 max_cmd_len=$lt_cv_sys_max_cmd_len
18878 # Does compiler simultaneously support -c and -o options?
18879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18881 # Must we lock files when doing compilation ?
18882 need_locks=$lt_need_locks
18884 # Do we need the lib prefix for modules?
18885 need_lib_prefix=$need_lib_prefix
18887 # Do we need a version for libraries?
18888 need_version=$need_version
18890 # Whether dlopen is supported.
18891 dlopen_support=$enable_dlopen
18893 # Whether dlopen of programs is supported.
18894 dlopen_self=$enable_dlopen_self
18896 # Whether dlopen of statically linked programs is supported.
18897 dlopen_self_static=$enable_dlopen_self_static
18899 # Compiler flag to prevent dynamic linking.
18900 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18902 # Compiler flag to turn off builtin functions.
18903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18905 # Compiler flag to allow reflexive dlopens.
18906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18908 # Compiler flag to generate shared objects directly from archives.
18909 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18911 # Compiler flag to generate thread-safe objects.
18912 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18914 # Library versioning type.
18915 version_type=$version_type
18917 # Format of library name prefix.
18918 libname_spec=$lt_libname_spec
18920 # List of archive names. First name is the real one, the rest are links.
18921 # The last name is the one that the linker finds with -lNAME.
18922 library_names_spec=$lt_library_names_spec
18924 # The coded name of the library, if different from the real name.
18925 soname_spec=$lt_soname_spec
18927 # Commands used to build and install an old-style archive.
18928 RANLIB=$lt_RANLIB
18929 old_archive_cmds=$lt_old_archive_cmds_GCJ
18930 old_postinstall_cmds=$lt_old_postinstall_cmds
18931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18933 # Create an old-style archive from a shared archive.
18934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18936 # Create a temporary old-style archive to link instead of a shared archive.
18937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18939 # Commands used to build and install a shared archive.
18940 archive_cmds=$lt_archive_cmds_GCJ
18941 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18942 postinstall_cmds=$lt_postinstall_cmds
18943 postuninstall_cmds=$lt_postuninstall_cmds
18945 # Commands used to build a loadable module (assumed same as above if empty)
18946 module_cmds=$lt_module_cmds_GCJ
18947 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18949 # Commands to strip libraries.
18950 old_striplib=$lt_old_striplib
18951 striplib=$lt_striplib
18953 # Dependencies to place before the objects being linked to create a
18954 # shared library.
18955 predep_objects=$lt_predep_objects_GCJ
18957 # Dependencies to place after the objects being linked to create a
18958 # shared library.
18959 postdep_objects=$lt_postdep_objects_GCJ
18961 # Dependencies to place before the objects being linked to create a
18962 # shared library.
18963 predeps=$lt_predeps_GCJ
18965 # Dependencies to place after the objects being linked to create a
18966 # shared library.
18967 postdeps=$lt_postdeps_GCJ
18969 # The library search path used internally by the compiler when linking
18970 # a shared library.
18971 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18973 # Method to check whether dependent libraries are shared objects.
18974 deplibs_check_method=$lt_deplibs_check_method
18976 # Command to use when deplibs_check_method == file_magic.
18977 file_magic_cmd=$lt_file_magic_cmd
18979 # Flag that allows shared libraries with undefined symbols to be built.
18980 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18982 # Flag that forces no undefined symbols.
18983 no_undefined_flag=$lt_no_undefined_flag_GCJ
18985 # Commands used to finish a libtool library installation in a directory.
18986 finish_cmds=$lt_finish_cmds
18988 # Same as above, but a single script fragment to be evaled but not shown.
18989 finish_eval=$lt_finish_eval
18991 # Take the output of nm and produce a listing of raw symbols and C names.
18992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18994 # Transform the output of nm in a proper C declaration
18995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18997 # Transform the output of nm in a C name address pair
18998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19000 # This is the shared library runtime path variable.
19001 runpath_var=$runpath_var
19003 # This is the shared library path variable.
19004 shlibpath_var=$shlibpath_var
19006 # Is shlibpath searched before the hard-coded library search path?
19007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19009 # How to hardcode a shared library path into an executable.
19010 hardcode_action=$hardcode_action_GCJ
19012 # Whether we should hardcode library paths into libraries.
19013 hardcode_into_libs=$hardcode_into_libs
19015 # Flag to hardcode \$libdir into a binary during linking.
19016 # This must work even if \$libdir does not exist.
19017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19019 # If ld is used when linking, flag to hardcode \$libdir into
19020 # a binary during linking. This must work even if \$libdir does
19021 # not exist.
19022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19024 # Whether we need a single -rpath flag with a separated argument.
19025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19027 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_direct=$hardcode_direct_GCJ
19031 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19032 # resulting binary.
19033 hardcode_minus_L=$hardcode_minus_L_GCJ
19035 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19036 # the resulting binary.
19037 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19039 # Set to yes if building a shared library automatically hardcodes DIR into the library
19040 # and all subsequent libraries and executables linked against it.
19041 hardcode_automatic=$hardcode_automatic_GCJ
19043 # Variables whose values should be saved in libtool wrapper scripts and
19044 # restored at relink time.
19045 variables_saved_for_relink="$variables_saved_for_relink"
19047 # Whether libtool must link a program against all its dependency libraries.
19048 link_all_deplibs=$link_all_deplibs_GCJ
19050 # Compile-time system search path for libraries
19051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19053 # Run-time system search path for libraries
19054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19056 # Fix the shell variable \$srcfile for the compiler.
19057 fix_srcfile_path="$fix_srcfile_path_GCJ"
19059 # Set to yes if exported symbols are required.
19060 always_export_symbols=$always_export_symbols_GCJ
19062 # The commands to list exported symbols.
19063 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19065 # The commands to extract the exported symbol list from a shared archive.
19066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19068 # Symbols that should not be listed in the preloaded symbols.
19069 exclude_expsyms=$lt_exclude_expsyms_GCJ
19071 # Symbols that must always be exported.
19072 include_expsyms=$lt_include_expsyms_GCJ
19074 # ### END LIBTOOL TAG CONFIG: $tagname
19076 __EOF__
19079 else
19080 # If there is no Makefile yet, we rely on a make rule to execute
19081 # `config.status --recheck' to rerun these tests and create the
19082 # libtool script then.
19083 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19084 if test -f "$ltmain_in"; then
19085 test -f Makefile && make "$ltmain"
19090 ac_ext=c
19091 ac_cpp='$CPP $CPPFLAGS'
19092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096 CC="$lt_save_CC"
19098 else
19099 tagname=""
19107 # Source file extension for RC test sources.
19108 ac_ext=rc
19110 # Object file extension for compiled RC test sources.
19111 objext=o
19112 objext_RC=$objext
19114 # Code to be used in simple compile tests
19115 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19117 # Code to be used in simple link tests
19118 lt_simple_link_test_code="$lt_simple_compile_test_code"
19120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19122 # If no C compiler was specified, use CC.
19123 LTCC=${LTCC-"$CC"}
19125 # Allow CC to be a program name with arguments.
19126 compiler=$CC
19129 # Allow CC to be a program name with arguments.
19130 lt_save_CC="$CC"
19131 CC=${RC-"windres"}
19132 compiler=$CC
19133 compiler_RC=$CC
19134 lt_cv_prog_compiler_c_o_RC=yes
19136 # The else clause should only fire when bootstrapping the
19137 # libtool distribution, otherwise you forgot to ship ltmain.sh
19138 # with your package, and you will get complaints that there are
19139 # no rules to generate ltmain.sh.
19140 if test -f "$ltmain"; then
19141 # See if we are running on zsh, and set the options which allow our commands through
19142 # without removal of \ escapes.
19143 if test -n "${ZSH_VERSION+set}" ; then
19144 setopt NO_GLOB_SUBST
19146 # Now quote all the things that may contain metacharacters while being
19147 # careful not to overquote the AC_SUBSTed values. We take copies of the
19148 # variables and quote the copies for generation of the libtool script.
19149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19150 SED SHELL STRIP \
19151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19153 deplibs_check_method reload_flag reload_cmds need_locks \
19154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19155 lt_cv_sys_global_symbol_to_c_name_address \
19156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19157 old_postinstall_cmds old_postuninstall_cmds \
19158 compiler_RC \
19159 CC_RC \
19160 LD_RC \
19161 lt_prog_compiler_wl_RC \
19162 lt_prog_compiler_pic_RC \
19163 lt_prog_compiler_static_RC \
19164 lt_prog_compiler_no_builtin_flag_RC \
19165 export_dynamic_flag_spec_RC \
19166 thread_safe_flag_spec_RC \
19167 whole_archive_flag_spec_RC \
19168 enable_shared_with_static_runtimes_RC \
19169 old_archive_cmds_RC \
19170 old_archive_from_new_cmds_RC \
19171 predep_objects_RC \
19172 postdep_objects_RC \
19173 predeps_RC \
19174 postdeps_RC \
19175 compiler_lib_search_path_RC \
19176 archive_cmds_RC \
19177 archive_expsym_cmds_RC \
19178 postinstall_cmds_RC \
19179 postuninstall_cmds_RC \
19180 old_archive_from_expsyms_cmds_RC \
19181 allow_undefined_flag_RC \
19182 no_undefined_flag_RC \
19183 export_symbols_cmds_RC \
19184 hardcode_libdir_flag_spec_RC \
19185 hardcode_libdir_flag_spec_ld_RC \
19186 hardcode_libdir_separator_RC \
19187 hardcode_automatic_RC \
19188 module_cmds_RC \
19189 module_expsym_cmds_RC \
19190 lt_cv_prog_compiler_c_o_RC \
19191 exclude_expsyms_RC \
19192 include_expsyms_RC; do
19194 case $var in
19195 old_archive_cmds_RC | \
19196 old_archive_from_new_cmds_RC | \
19197 archive_cmds_RC | \
19198 archive_expsym_cmds_RC | \
19199 module_cmds_RC | \
19200 module_expsym_cmds_RC | \
19201 old_archive_from_expsyms_cmds_RC | \
19202 export_symbols_cmds_RC | \
19203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19204 postinstall_cmds | postuninstall_cmds | \
19205 old_postinstall_cmds | old_postuninstall_cmds | \
19206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19207 # Double-quote double-evaled strings.
19208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19213 esac
19214 done
19216 case $lt_echo in
19217 *'\$0 --fallback-echo"')
19218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19220 esac
19222 cfgfile="$ofile"
19224 cat <<__EOF__ >> "$cfgfile"
19225 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19229 # Shell to use when invoking shell scripts.
19230 SHELL=$lt_SHELL
19232 # Whether or not to build shared libraries.
19233 build_libtool_libs=$enable_shared
19235 # Whether or not to build static libraries.
19236 build_old_libs=$enable_static
19238 # Whether or not to add -lc for building shared libraries.
19239 build_libtool_need_lc=$archive_cmds_need_lc_RC
19241 # Whether or not to disallow shared libs when runtime libs are static
19242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19244 # Whether or not to optimize for fast installation.
19245 fast_install=$enable_fast_install
19247 # The host system.
19248 host_alias=$host_alias
19249 host=$host
19250 host_os=$host_os
19252 # The build system.
19253 build_alias=$build_alias
19254 build=$build
19255 build_os=$build_os
19257 # An echo program that does not interpret backslashes.
19258 echo=$lt_echo
19260 # The archiver.
19261 AR=$lt_AR
19262 AR_FLAGS=$lt_AR_FLAGS
19264 # A C compiler.
19265 LTCC=$lt_LTCC
19267 # A language-specific compiler.
19268 CC=$lt_compiler_RC
19270 # Is the compiler the GNU C compiler?
19271 with_gcc=$GCC_RC
19273 # An ERE matcher.
19274 EGREP=$lt_EGREP
19276 # The linker used to build libraries.
19277 LD=$lt_LD_RC
19279 # Whether we need hard or soft links.
19280 LN_S=$lt_LN_S
19282 # A BSD-compatible nm program.
19283 NM=$lt_NM
19285 # A symbol stripping program
19286 STRIP=$lt_STRIP
19288 # Used to examine libraries when file_magic_cmd begins "file"
19289 MAGIC_CMD=$MAGIC_CMD
19291 # Used on cygwin: DLL creation program.
19292 DLLTOOL="$DLLTOOL"
19294 # Used on cygwin: object dumper.
19295 OBJDUMP="$OBJDUMP"
19297 # Used on cygwin: assembler.
19298 AS="$AS"
19300 # The name of the directory that contains temporary libtool files.
19301 objdir=$objdir
19303 # How to create reloadable object files.
19304 reload_flag=$lt_reload_flag
19305 reload_cmds=$lt_reload_cmds
19307 # How to pass a linker flag through the compiler.
19308 wl=$lt_lt_prog_compiler_wl_RC
19310 # Object file suffix (normally "o").
19311 objext="$ac_objext"
19313 # Old archive suffix (normally "a").
19314 libext="$libext"
19316 # Shared library suffix (normally ".so").
19317 shrext_cmds='$shrext_cmds'
19319 # Executable file suffix (normally "").
19320 exeext="$exeext"
19322 # Additional compiler flags for building library objects.
19323 pic_flag=$lt_lt_prog_compiler_pic_RC
19324 pic_mode=$pic_mode
19326 # What is the maximum length of a command?
19327 max_cmd_len=$lt_cv_sys_max_cmd_len
19329 # Does compiler simultaneously support -c and -o options?
19330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19332 # Must we lock files when doing compilation ?
19333 need_locks=$lt_need_locks
19335 # Do we need the lib prefix for modules?
19336 need_lib_prefix=$need_lib_prefix
19338 # Do we need a version for libraries?
19339 need_version=$need_version
19341 # Whether dlopen is supported.
19342 dlopen_support=$enable_dlopen
19344 # Whether dlopen of programs is supported.
19345 dlopen_self=$enable_dlopen_self
19347 # Whether dlopen of statically linked programs is supported.
19348 dlopen_self_static=$enable_dlopen_self_static
19350 # Compiler flag to prevent dynamic linking.
19351 link_static_flag=$lt_lt_prog_compiler_static_RC
19353 # Compiler flag to turn off builtin functions.
19354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19356 # Compiler flag to allow reflexive dlopens.
19357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19359 # Compiler flag to generate shared objects directly from archives.
19360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19362 # Compiler flag to generate thread-safe objects.
19363 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19365 # Library versioning type.
19366 version_type=$version_type
19368 # Format of library name prefix.
19369 libname_spec=$lt_libname_spec
19371 # List of archive names. First name is the real one, the rest are links.
19372 # The last name is the one that the linker finds with -lNAME.
19373 library_names_spec=$lt_library_names_spec
19375 # The coded name of the library, if different from the real name.
19376 soname_spec=$lt_soname_spec
19378 # Commands used to build and install an old-style archive.
19379 RANLIB=$lt_RANLIB
19380 old_archive_cmds=$lt_old_archive_cmds_RC
19381 old_postinstall_cmds=$lt_old_postinstall_cmds
19382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19384 # Create an old-style archive from a shared archive.
19385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19387 # Create a temporary old-style archive to link instead of a shared archive.
19388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19390 # Commands used to build and install a shared archive.
19391 archive_cmds=$lt_archive_cmds_RC
19392 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19393 postinstall_cmds=$lt_postinstall_cmds
19394 postuninstall_cmds=$lt_postuninstall_cmds
19396 # Commands used to build a loadable module (assumed same as above if empty)
19397 module_cmds=$lt_module_cmds_RC
19398 module_expsym_cmds=$lt_module_expsym_cmds_RC
19400 # Commands to strip libraries.
19401 old_striplib=$lt_old_striplib
19402 striplib=$lt_striplib
19404 # Dependencies to place before the objects being linked to create a
19405 # shared library.
19406 predep_objects=$lt_predep_objects_RC
19408 # Dependencies to place after the objects being linked to create a
19409 # shared library.
19410 postdep_objects=$lt_postdep_objects_RC
19412 # Dependencies to place before the objects being linked to create a
19413 # shared library.
19414 predeps=$lt_predeps_RC
19416 # Dependencies to place after the objects being linked to create a
19417 # shared library.
19418 postdeps=$lt_postdeps_RC
19420 # The library search path used internally by the compiler when linking
19421 # a shared library.
19422 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19424 # Method to check whether dependent libraries are shared objects.
19425 deplibs_check_method=$lt_deplibs_check_method
19427 # Command to use when deplibs_check_method == file_magic.
19428 file_magic_cmd=$lt_file_magic_cmd
19430 # Flag that allows shared libraries with undefined symbols to be built.
19431 allow_undefined_flag=$lt_allow_undefined_flag_RC
19433 # Flag that forces no undefined symbols.
19434 no_undefined_flag=$lt_no_undefined_flag_RC
19436 # Commands used to finish a libtool library installation in a directory.
19437 finish_cmds=$lt_finish_cmds
19439 # Same as above, but a single script fragment to be evaled but not shown.
19440 finish_eval=$lt_finish_eval
19442 # Take the output of nm and produce a listing of raw symbols and C names.
19443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19445 # Transform the output of nm in a proper C declaration
19446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19448 # Transform the output of nm in a C name address pair
19449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19451 # This is the shared library runtime path variable.
19452 runpath_var=$runpath_var
19454 # This is the shared library path variable.
19455 shlibpath_var=$shlibpath_var
19457 # Is shlibpath searched before the hard-coded library search path?
19458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19460 # How to hardcode a shared library path into an executable.
19461 hardcode_action=$hardcode_action_RC
19463 # Whether we should hardcode library paths into libraries.
19464 hardcode_into_libs=$hardcode_into_libs
19466 # Flag to hardcode \$libdir into a binary during linking.
19467 # This must work even if \$libdir does not exist.
19468 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19470 # If ld is used when linking, flag to hardcode \$libdir into
19471 # a binary during linking. This must work even if \$libdir does
19472 # not exist.
19473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19475 # Whether we need a single -rpath flag with a separated argument.
19476 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19478 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19479 # resulting binary.
19480 hardcode_direct=$hardcode_direct_RC
19482 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19483 # resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L_RC
19486 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19487 # the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19490 # Set to yes if building a shared library automatically hardcodes DIR into the library
19491 # and all subsequent libraries and executables linked against it.
19492 hardcode_automatic=$hardcode_automatic_RC
19494 # Variables whose values should be saved in libtool wrapper scripts and
19495 # restored at relink time.
19496 variables_saved_for_relink="$variables_saved_for_relink"
19498 # Whether libtool must link a program against all its dependency libraries.
19499 link_all_deplibs=$link_all_deplibs_RC
19501 # Compile-time system search path for libraries
19502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19504 # Run-time system search path for libraries
19505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19507 # Fix the shell variable \$srcfile for the compiler.
19508 fix_srcfile_path="$fix_srcfile_path_RC"
19510 # Set to yes if exported symbols are required.
19511 always_export_symbols=$always_export_symbols_RC
19513 # The commands to list exported symbols.
19514 export_symbols_cmds=$lt_export_symbols_cmds_RC
19516 # The commands to extract the exported symbol list from a shared archive.
19517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19519 # Symbols that should not be listed in the preloaded symbols.
19520 exclude_expsyms=$lt_exclude_expsyms_RC
19522 # Symbols that must always be exported.
19523 include_expsyms=$lt_include_expsyms_RC
19525 # ### END LIBTOOL TAG CONFIG: $tagname
19527 __EOF__
19530 else
19531 # If there is no Makefile yet, we rely on a make rule to execute
19532 # `config.status --recheck' to rerun these tests and create the
19533 # libtool script then.
19534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19535 if test -f "$ltmain_in"; then
19536 test -f Makefile && make "$ltmain"
19541 ac_ext=c
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547 CC="$lt_save_CC"
19552 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19553 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19554 { (exit 1); exit 1; }; }
19556 esac
19558 # Append the new tag name to the list of available tags.
19559 if test -n "$tagname" ; then
19560 available_tags="$available_tags $tagname"
19563 done
19564 IFS="$lt_save_ifs"
19566 # Now substitute the updated list of available tags.
19567 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19568 mv "${ofile}T" "$ofile"
19569 chmod +x "$ofile"
19570 else
19571 rm -f "${ofile}T"
19572 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19573 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19574 { (exit 1); exit 1; }; }
19580 # This can be used to rebuild libtool when needed
19581 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19583 # Always use our own libtool.
19584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19586 # Prevent multiple expansion
19616 aclocaldir='${datadir}/aclocal'
19619 ac_config_files="$ac_config_files Makefile"
19622 ac_config_files="$ac_config_files m4/Makefile"
19625 ac_config_files="$ac_config_files tests/Makefile"
19628 cat >confcache <<\_ACEOF
19629 # This file is a shell script that caches the results of configure
19630 # tests run on this system so they can be shared between configure
19631 # scripts and configure runs, see configure's option --config-cache.
19632 # It is not useful on other systems. If it contains results you don't
19633 # want to keep, you may remove or edit it.
19635 # config.status only pays attention to the cache file if you give it
19636 # the --recheck option to rerun configure.
19638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19640 # following values.
19642 _ACEOF
19644 # The following way of writing the cache mishandles newlines in values,
19645 # but we know of no workaround that is simple, portable, and efficient.
19646 # So, don't put newlines in cache variables' values.
19647 # Ultrix sh set writes to stderr and can't be redirected directly,
19648 # and sets the high bit in the cache file unless we assign to the vars.
19650 (set) 2>&1 |
19651 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19652 *ac_space=\ *)
19653 # `set' does not quote correctly, so add quotes (double-quote
19654 # substitution turns \\\\ into \\, and sed turns \\ into \).
19655 sed -n \
19656 "s/'/'\\\\''/g;
19657 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19660 # `set' quotes correctly as required by POSIX, so do not add quotes.
19661 sed -n \
19662 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19664 esac;
19666 sed '
19667 t clear
19668 : clear
19669 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19670 t end
19671 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19672 : end' >>confcache
19673 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19674 if test -w $cache_file; then
19675 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19676 cat confcache >$cache_file
19677 else
19678 echo "not updating unwritable cache $cache_file"
19681 rm -f confcache
19683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19684 # Let make expand exec_prefix.
19685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19689 # trailing colons and then remove the whole line if VPATH becomes empty
19690 # (actually we leave an empty line to preserve line numbers).
19691 if test "x$srcdir" = x.; then
19692 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19693 s/:*\$(srcdir):*/:/;
19694 s/:*\${srcdir}:*/:/;
19695 s/:*@srcdir@:*/:/;
19696 s/^\([^=]*=[ ]*\):*/\1/;
19697 s/:*$//;
19698 s/^[^=]*=[ ]*$//;
19702 # Transform confdefs.h into DEFS.
19703 # Protect against shell expansion while executing Makefile rules.
19704 # Protect against Makefile macro expansion.
19706 # If the first sed substitution is executed (which looks for macros that
19707 # take arguments), then we branch to the quote section. Otherwise,
19708 # look for a macro that doesn't take arguments.
19709 cat >confdef2opt.sed <<\_ACEOF
19710 t clear
19711 : clear
19712 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19713 t quote
19714 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19715 t quote
19717 : quote
19718 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19719 s,\[,\\&,g
19720 s,\],\\&,g
19721 s,\$,$$,g
19723 _ACEOF
19724 # We use echo to avoid assuming a particular line-breaking character.
19725 # The extra dot is to prevent the shell from consuming trailing
19726 # line-breaks from the sub-command output. A line-break within
19727 # single-quotes doesn't work because, if this script is created in a
19728 # platform that uses two characters for line-breaks (e.g., DOS), tr
19729 # would break.
19730 ac_LF_and_DOT=`echo; echo .`
19731 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19732 rm -f confdef2opt.sed
19735 ac_libobjs=
19736 ac_ltlibobjs=
19737 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19738 # 1. Remove the extension, and $U if already installed.
19739 ac_i=`echo "$ac_i" |
19740 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19741 # 2. Add them.
19742 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19743 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19744 done
19745 LIBOBJS=$ac_libobjs
19747 LTLIBOBJS=$ac_ltlibobjs
19750 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19751 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19752 Usually this means the macro was only invoked conditionally." >&5
19753 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19754 Usually this means the macro was only invoked conditionally." >&2;}
19755 { (exit 1); exit 1; }; }
19757 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19758 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19759 Usually this means the macro was only invoked conditionally." >&5
19760 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19761 Usually this means the macro was only invoked conditionally." >&2;}
19762 { (exit 1); exit 1; }; }
19764 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19765 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19766 Usually this means the macro was only invoked conditionally." >&5
19767 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19768 Usually this means the macro was only invoked conditionally." >&2;}
19769 { (exit 1); exit 1; }; }
19772 : ${CONFIG_STATUS=./config.status}
19773 ac_clean_files_save=$ac_clean_files
19774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19777 cat >$CONFIG_STATUS <<_ACEOF
19778 #! $SHELL
19779 # Generated by $as_me.
19780 # Run this file to recreate the current configuration.
19781 # Compiler output produced by configure, useful for debugging
19782 # configure, is in config.log if it exists.
19784 debug=false
19785 ac_cs_recheck=false
19786 ac_cs_silent=false
19787 SHELL=\${CONFIG_SHELL-$SHELL}
19788 _ACEOF
19790 cat >>$CONFIG_STATUS <<\_ACEOF
19791 ## --------------------- ##
19792 ## M4sh Initialization. ##
19793 ## --------------------- ##
19795 # Be Bourne compatible
19796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19797 emulate sh
19798 NULLCMD=:
19799 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19800 # is contrary to our usage. Disable this feature.
19801 alias -g '${1+"$@"}'='"$@"'
19802 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19803 set -o posix
19805 DUALCASE=1; export DUALCASE # for MKS sh
19807 # Support unset when possible.
19808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19809 as_unset=unset
19810 else
19811 as_unset=false
19815 # Work around bugs in pre-3.0 UWIN ksh.
19816 $as_unset ENV MAIL MAILPATH
19817 PS1='$ '
19818 PS2='> '
19819 PS4='+ '
19821 # NLS nuisances.
19822 for as_var in \
19823 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19824 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19825 LC_TELEPHONE LC_TIME
19827 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19828 eval $as_var=C; export $as_var
19829 else
19830 $as_unset $as_var
19832 done
19834 # Required to use basename.
19835 if expr a : '\(a\)' >/dev/null 2>&1; then
19836 as_expr=expr
19837 else
19838 as_expr=false
19841 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19842 as_basename=basename
19843 else
19844 as_basename=false
19848 # Name of the executable.
19849 as_me=`$as_basename "$0" ||
19850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19851 X"$0" : 'X\(//\)$' \| \
19852 X"$0" : 'X\(/\)$' \| \
19853 . : '\(.\)' 2>/dev/null ||
19854 echo X/"$0" |
19855 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19856 /^X\/\(\/\/\)$/{ s//\1/; q; }
19857 /^X\/\(\/\).*/{ s//\1/; q; }
19858 s/.*/./; q'`
19861 # PATH needs CR, and LINENO needs CR and PATH.
19862 # Avoid depending upon Character Ranges.
19863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19866 as_cr_digits='0123456789'
19867 as_cr_alnum=$as_cr_Letters$as_cr_digits
19869 # The user is always right.
19870 if test "${PATH_SEPARATOR+set}" != set; then
19871 echo "#! /bin/sh" >conf$$.sh
19872 echo "exit 0" >>conf$$.sh
19873 chmod +x conf$$.sh
19874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19875 PATH_SEPARATOR=';'
19876 else
19877 PATH_SEPARATOR=:
19879 rm -f conf$$.sh
19883 as_lineno_1=$LINENO
19884 as_lineno_2=$LINENO
19885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19886 test "x$as_lineno_1" != "x$as_lineno_2" &&
19887 test "x$as_lineno_3" = "x$as_lineno_2" || {
19888 # Find who we are. Look in the path if we contain no path at all
19889 # relative or not.
19890 case $0 in
19891 *[\\/]* ) as_myself=$0 ;;
19892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19893 for as_dir in $PATH
19895 IFS=$as_save_IFS
19896 test -z "$as_dir" && as_dir=.
19897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19898 done
19901 esac
19902 # We did not find ourselves, most probably we were run as `sh COMMAND'
19903 # in which case we are not to be found in the path.
19904 if test "x$as_myself" = x; then
19905 as_myself=$0
19907 if test ! -f "$as_myself"; then
19908 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19909 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19910 { (exit 1); exit 1; }; }
19912 case $CONFIG_SHELL in
19914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19917 IFS=$as_save_IFS
19918 test -z "$as_dir" && as_dir=.
19919 for as_base in sh bash ksh sh5; do
19920 case $as_dir in
19922 if ("$as_dir/$as_base" -c '
19923 as_lineno_1=$LINENO
19924 as_lineno_2=$LINENO
19925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19926 test "x$as_lineno_1" != "x$as_lineno_2" &&
19927 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19928 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19929 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19930 CONFIG_SHELL=$as_dir/$as_base
19931 export CONFIG_SHELL
19932 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19933 fi;;
19934 esac
19935 done
19936 done
19938 esac
19940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19941 # uniformly replaced by the line number. The first 'sed' inserts a
19942 # line-number line before each line; the second 'sed' does the real
19943 # work. The second script uses 'N' to pair each line-number line
19944 # with the numbered line, and appends trailing '-' during
19945 # substitution so that $LINENO is not a special case at line end.
19946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19947 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19948 sed '=' <$as_myself |
19949 sed '
19951 s,$,-,
19952 : loop
19953 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19954 t loop
19955 s,-$,,
19956 s,^['$as_cr_digits']*\n,,
19957 ' >$as_me.lineno &&
19958 chmod +x $as_me.lineno ||
19959 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19960 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19961 { (exit 1); exit 1; }; }
19963 # Don't try to exec as it changes $[0], causing all sort of problems
19964 # (the dirname of $[0] is not the place where we might find the
19965 # original and so on. Autoconf is especially sensible to this).
19966 . ./$as_me.lineno
19967 # Exit status is that of the last command.
19968 exit
19972 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19973 *c*,-n*) ECHO_N= ECHO_C='
19974 ' ECHO_T=' ' ;;
19975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19977 esac
19979 if expr a : '\(a\)' >/dev/null 2>&1; then
19980 as_expr=expr
19981 else
19982 as_expr=false
19985 rm -f conf$$ conf$$.exe conf$$.file
19986 echo >conf$$.file
19987 if ln -s conf$$.file conf$$ 2>/dev/null; then
19988 # We could just check for DJGPP; but this test a) works b) is more generic
19989 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19990 if test -f conf$$.exe; then
19991 # Don't use ln at all; we don't have any links
19992 as_ln_s='cp -p'
19993 else
19994 as_ln_s='ln -s'
19996 elif ln conf$$.file conf$$ 2>/dev/null; then
19997 as_ln_s=ln
19998 else
19999 as_ln_s='cp -p'
20001 rm -f conf$$ conf$$.exe conf$$.file
20003 if mkdir -p . 2>/dev/null; then
20004 as_mkdir_p=:
20005 else
20006 test -d ./-p && rmdir ./-p
20007 as_mkdir_p=false
20010 as_executable_p="test -f"
20012 # Sed expression to map a string onto a valid CPP name.
20013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20015 # Sed expression to map a string onto a valid variable name.
20016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20019 # IFS
20020 # We need space, tab and new line, in precisely that order.
20021 as_nl='
20023 IFS=" $as_nl"
20025 # CDPATH.
20026 $as_unset CDPATH
20028 exec 6>&1
20030 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20031 # report actual input values of CONFIG_FILES etc. instead of their
20032 # values after options handling. Logging --version etc. is OK.
20033 exec 5>>config.log
20035 echo
20036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20037 ## Running $as_me. ##
20038 _ASBOX
20039 } >&5
20040 cat >&5 <<_CSEOF
20042 This file was extended by $as_me, which was
20043 generated by GNU Autoconf 2.59. Invocation command line was
20045 CONFIG_FILES = $CONFIG_FILES
20046 CONFIG_HEADERS = $CONFIG_HEADERS
20047 CONFIG_LINKS = $CONFIG_LINKS
20048 CONFIG_COMMANDS = $CONFIG_COMMANDS
20049 $ $0 $@
20051 _CSEOF
20052 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20053 echo >&5
20054 _ACEOF
20056 # Files that config.status was made for.
20057 if test -n "$ac_config_files"; then
20058 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20061 if test -n "$ac_config_headers"; then
20062 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20065 if test -n "$ac_config_links"; then
20066 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20069 if test -n "$ac_config_commands"; then
20070 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20073 cat >>$CONFIG_STATUS <<\_ACEOF
20075 ac_cs_usage="\
20076 \`$as_me' instantiates files from templates according to the
20077 current configuration.
20079 Usage: $0 [OPTIONS] [FILE]...
20081 -h, --help print this help, then exit
20082 -V, --version print version number, then exit
20083 -q, --quiet do not print progress messages
20084 -d, --debug don't remove temporary files
20085 --recheck update $as_me by reconfiguring in the same conditions
20086 --file=FILE[:TEMPLATE]
20087 instantiate the configuration file FILE
20089 Configuration files:
20090 $config_files
20092 Configuration commands:
20093 $config_commands
20095 Report bugs to <bug-autoconf@gnu.org>."
20096 _ACEOF
20098 cat >>$CONFIG_STATUS <<_ACEOF
20099 ac_cs_version="\\
20100 config.status
20101 configured by $0, generated by GNU Autoconf 2.59,
20102 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20104 Copyright (C) 2003 Free Software Foundation, Inc.
20105 This config.status script is free software; the Free Software Foundation
20106 gives unlimited permission to copy, distribute and modify it."
20107 srcdir=$srcdir
20108 INSTALL="$INSTALL"
20109 _ACEOF
20111 cat >>$CONFIG_STATUS <<\_ACEOF
20112 # If no file are specified by the user, then we need to provide default
20113 # value. By we need to know if files were specified by the user.
20114 ac_need_defaults=:
20115 while test $# != 0
20117 case $1 in
20118 --*=*)
20119 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20120 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20121 ac_shift=:
20124 ac_option=$1
20125 ac_optarg=$2
20126 ac_shift=shift
20128 *) # This is not an option, so the user has probably given explicit
20129 # arguments.
20130 ac_option=$1
20131 ac_need_defaults=false;;
20132 esac
20134 case $ac_option in
20135 # Handling of the options.
20136 _ACEOF
20137 cat >>$CONFIG_STATUS <<\_ACEOF
20138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20139 ac_cs_recheck=: ;;
20140 --version | --vers* | -V )
20141 echo "$ac_cs_version"; exit 0 ;;
20142 --he | --h)
20143 # Conflict between --help and --header
20144 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20145 Try \`$0 --help' for more information." >&5
20146 echo "$as_me: error: ambiguous option: $1
20147 Try \`$0 --help' for more information." >&2;}
20148 { (exit 1); exit 1; }; };;
20149 --help | --hel | -h )
20150 echo "$ac_cs_usage"; exit 0 ;;
20151 --debug | --d* | -d )
20152 debug=: ;;
20153 --file | --fil | --fi | --f )
20154 $ac_shift
20155 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20156 ac_need_defaults=false;;
20157 --header | --heade | --head | --hea )
20158 $ac_shift
20159 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20160 ac_need_defaults=false;;
20161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20163 ac_cs_silent=: ;;
20165 # This is an error.
20166 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20167 Try \`$0 --help' for more information." >&5
20168 echo "$as_me: error: unrecognized option: $1
20169 Try \`$0 --help' for more information." >&2;}
20170 { (exit 1); exit 1; }; } ;;
20172 *) ac_config_targets="$ac_config_targets $1" ;;
20174 esac
20175 shift
20176 done
20178 ac_configure_extra_args=
20180 if $ac_cs_silent; then
20181 exec 6>/dev/null
20182 ac_configure_extra_args="$ac_configure_extra_args --silent"
20185 _ACEOF
20186 cat >>$CONFIG_STATUS <<_ACEOF
20187 if \$ac_cs_recheck; then
20188 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20189 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20192 _ACEOF
20194 cat >>$CONFIG_STATUS <<_ACEOF
20196 # INIT-COMMANDS section.
20199 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20201 _ACEOF
20205 cat >>$CONFIG_STATUS <<\_ACEOF
20206 for ac_config_target in $ac_config_targets
20208 case "$ac_config_target" in
20209 # Handling of arguments.
20210 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20211 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20212 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20213 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20216 { (exit 1); exit 1; }; };;
20217 esac
20218 done
20220 # If the user did not use the arguments to specify the items to instantiate,
20221 # then the envvar interface is used. Set only those that are not.
20222 # We use the long form for the default assignment because of an extremely
20223 # bizarre bug on SunOS 4.1.3.
20224 if $ac_need_defaults; then
20225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20229 # Have a temporary directory for convenience. Make it in the build tree
20230 # simply because there is no reason to put it here, and in addition,
20231 # creating and moving files from /tmp can sometimes cause problems.
20232 # Create a temporary directory, and hook for its removal unless debugging.
20233 $debug ||
20235 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20236 trap '{ (exit 1); exit 1; }' 1 2 13 15
20239 # Create a (secure) tmp directory for tmp files.
20242 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20243 test -n "$tmp" && test -d "$tmp"
20244 } ||
20246 tmp=./confstat$$-$RANDOM
20247 (umask 077 && mkdir $tmp)
20248 } ||
20250 echo "$me: cannot create a temporary directory in ." >&2
20251 { (exit 1); exit 1; }
20254 _ACEOF
20256 cat >>$CONFIG_STATUS <<_ACEOF
20259 # CONFIG_FILES section.
20262 # No need to generate the scripts if there are no CONFIG_FILES.
20263 # This happens for instance when ./config.status config.h
20264 if test -n "\$CONFIG_FILES"; then
20265 # Protect against being on the right side of a sed subst in config.status.
20266 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20267 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20268 s,@SHELL@,$SHELL,;t t
20269 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20270 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20271 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20272 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20273 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20274 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20275 s,@exec_prefix@,$exec_prefix,;t t
20276 s,@prefix@,$prefix,;t t
20277 s,@program_transform_name@,$program_transform_name,;t t
20278 s,@bindir@,$bindir,;t t
20279 s,@sbindir@,$sbindir,;t t
20280 s,@libexecdir@,$libexecdir,;t t
20281 s,@datadir@,$datadir,;t t
20282 s,@sysconfdir@,$sysconfdir,;t t
20283 s,@sharedstatedir@,$sharedstatedir,;t t
20284 s,@localstatedir@,$localstatedir,;t t
20285 s,@libdir@,$libdir,;t t
20286 s,@includedir@,$includedir,;t t
20287 s,@oldincludedir@,$oldincludedir,;t t
20288 s,@infodir@,$infodir,;t t
20289 s,@mandir@,$mandir,;t t
20290 s,@build_alias@,$build_alias,;t t
20291 s,@host_alias@,$host_alias,;t t
20292 s,@target_alias@,$target_alias,;t t
20293 s,@DEFS@,$DEFS,;t t
20294 s,@ECHO_C@,$ECHO_C,;t t
20295 s,@ECHO_N@,$ECHO_N,;t t
20296 s,@ECHO_T@,$ECHO_T,;t t
20297 s,@LIBS@,$LIBS,;t t
20298 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20299 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20300 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20301 s,@CYGPATH_W@,$CYGPATH_W,;t t
20302 s,@PACKAGE@,$PACKAGE,;t t
20303 s,@VERSION@,$VERSION,;t t
20304 s,@ACLOCAL@,$ACLOCAL,;t t
20305 s,@AUTOCONF@,$AUTOCONF,;t t
20306 s,@AUTOMAKE@,$AUTOMAKE,;t t
20307 s,@AUTOHEADER@,$AUTOHEADER,;t t
20308 s,@MAKEINFO@,$MAKEINFO,;t t
20309 s,@install_sh@,$install_sh,;t t
20310 s,@STRIP@,$STRIP,;t t
20311 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20312 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20313 s,@mkdir_p@,$mkdir_p,;t t
20314 s,@AWK@,$AWK,;t t
20315 s,@SET_MAKE@,$SET_MAKE,;t t
20316 s,@am__leading_dot@,$am__leading_dot,;t t
20317 s,@AMTAR@,$AMTAR,;t t
20318 s,@am__tar@,$am__tar,;t t
20319 s,@am__untar@,$am__untar,;t t
20320 s,@CC@,$CC,;t t
20321 s,@CFLAGS@,$CFLAGS,;t t
20322 s,@LDFLAGS@,$LDFLAGS,;t t
20323 s,@CPPFLAGS@,$CPPFLAGS,;t t
20324 s,@ac_ct_CC@,$ac_ct_CC,;t t
20325 s,@EXEEXT@,$EXEEXT,;t t
20326 s,@OBJEXT@,$OBJEXT,;t t
20327 s,@DEPDIR@,$DEPDIR,;t t
20328 s,@am__include@,$am__include,;t t
20329 s,@am__quote@,$am__quote,;t t
20330 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20331 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20332 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20333 s,@CCDEPMODE@,$CCDEPMODE,;t t
20334 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20335 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20336 s,@build@,$build,;t t
20337 s,@build_cpu@,$build_cpu,;t t
20338 s,@build_vendor@,$build_vendor,;t t
20339 s,@build_os@,$build_os,;t t
20340 s,@host@,$host,;t t
20341 s,@host_cpu@,$host_cpu,;t t
20342 s,@host_vendor@,$host_vendor,;t t
20343 s,@host_os@,$host_os,;t t
20344 s,@EGREP@,$EGREP,;t t
20345 s,@LN_S@,$LN_S,;t t
20346 s,@ECHO@,$ECHO,;t t
20347 s,@AR@,$AR,;t t
20348 s,@ac_ct_AR@,$ac_ct_AR,;t t
20349 s,@RANLIB@,$RANLIB,;t t
20350 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20351 s,@DLLTOOL@,$DLLTOOL,;t t
20352 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20353 s,@AS@,$AS,;t t
20354 s,@ac_ct_AS@,$ac_ct_AS,;t t
20355 s,@OBJDUMP@,$OBJDUMP,;t t
20356 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
20357 s,@CPP@,$CPP,;t t
20358 s,@CXX@,$CXX,;t t
20359 s,@CXXFLAGS@,$CXXFLAGS,;t t
20360 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20361 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20362 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20363 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20364 s,@CXXCPP@,$CXXCPP,;t t
20365 s,@F77@,$F77,;t t
20366 s,@FFLAGS@,$FFLAGS,;t t
20367 s,@ac_ct_F77@,$ac_ct_F77,;t t
20368 s,@LIBTOOL@,$LIBTOOL,;t t
20369 s,@GCC@,$GCC,;t t
20370 s,@LD@,$LD,;t t
20371 s,@with_gnu_ld@,$with_gnu_ld,;t t
20372 s,@aclocaldir@,$aclocaldir,;t t
20373 s,@LIBOBJS@,$LIBOBJS,;t t
20374 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20375 CEOF
20377 _ACEOF
20379 cat >>$CONFIG_STATUS <<\_ACEOF
20380 # Split the substitutions into bite-sized pieces for seds with
20381 # small command number limits, like on Digital OSF/1 and HP-UX.
20382 ac_max_sed_lines=48
20383 ac_sed_frag=1 # Number of current file.
20384 ac_beg=1 # First line for current file.
20385 ac_end=$ac_max_sed_lines # Line after last line for current file.
20386 ac_more_lines=:
20387 ac_sed_cmds=
20388 while $ac_more_lines; do
20389 if test $ac_beg -gt 1; then
20390 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20391 else
20392 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20394 if test ! -s $tmp/subs.frag; then
20395 ac_more_lines=false
20396 else
20397 # The purpose of the label and of the branching condition is to
20398 # speed up the sed processing (if there are no `@' at all, there
20399 # is no need to browse any of the substitutions).
20400 # These are the two extra sed commands mentioned above.
20401 (echo ':t
20402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20403 if test -z "$ac_sed_cmds"; then
20404 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20405 else
20406 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20408 ac_sed_frag=`expr $ac_sed_frag + 1`
20409 ac_beg=$ac_end
20410 ac_end=`expr $ac_end + $ac_max_sed_lines`
20412 done
20413 if test -z "$ac_sed_cmds"; then
20414 ac_sed_cmds=cat
20416 fi # test -n "$CONFIG_FILES"
20418 _ACEOF
20419 cat >>$CONFIG_STATUS <<\_ACEOF
20420 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20422 case $ac_file in
20423 - | *:- | *:-:* ) # input from stdin
20424 cat >$tmp/stdin
20425 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20427 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20429 * ) ac_file_in=$ac_file.in ;;
20430 esac
20432 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20433 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20435 X"$ac_file" : 'X\(//\)[^/]' \| \
20436 X"$ac_file" : 'X\(//\)$' \| \
20437 X"$ac_file" : 'X\(/\)' \| \
20438 . : '\(.\)' 2>/dev/null ||
20439 echo X"$ac_file" |
20440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20442 /^X\(\/\/\)$/{ s//\1/; q; }
20443 /^X\(\/\).*/{ s//\1/; q; }
20444 s/.*/./; q'`
20445 { if $as_mkdir_p; then
20446 mkdir -p "$ac_dir"
20447 else
20448 as_dir="$ac_dir"
20449 as_dirs=
20450 while test ! -d "$as_dir"; do
20451 as_dirs="$as_dir $as_dirs"
20452 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20454 X"$as_dir" : 'X\(//\)[^/]' \| \
20455 X"$as_dir" : 'X\(//\)$' \| \
20456 X"$as_dir" : 'X\(/\)' \| \
20457 . : '\(.\)' 2>/dev/null ||
20458 echo X"$as_dir" |
20459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20461 /^X\(\/\/\)$/{ s//\1/; q; }
20462 /^X\(\/\).*/{ s//\1/; q; }
20463 s/.*/./; q'`
20464 done
20465 test ! -n "$as_dirs" || mkdir $as_dirs
20466 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20467 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20468 { (exit 1); exit 1; }; }; }
20470 ac_builddir=.
20472 if test "$ac_dir" != .; then
20473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20474 # A "../" for each directory in $ac_dir_suffix.
20475 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20476 else
20477 ac_dir_suffix= ac_top_builddir=
20480 case $srcdir in
20481 .) # No --srcdir option. We are building in place.
20482 ac_srcdir=.
20483 if test -z "$ac_top_builddir"; then
20484 ac_top_srcdir=.
20485 else
20486 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20487 fi ;;
20488 [\\/]* | ?:[\\/]* ) # Absolute path.
20489 ac_srcdir=$srcdir$ac_dir_suffix;
20490 ac_top_srcdir=$srcdir ;;
20491 *) # Relative path.
20492 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20493 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20494 esac
20496 # Do not use `cd foo && pwd` to compute absolute paths, because
20497 # the directories may not exist.
20498 case `pwd` in
20499 .) ac_abs_builddir="$ac_dir";;
20501 case "$ac_dir" in
20502 .) ac_abs_builddir=`pwd`;;
20503 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20504 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20505 esac;;
20506 esac
20507 case $ac_abs_builddir in
20508 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20510 case ${ac_top_builddir}. in
20511 .) ac_abs_top_builddir=$ac_abs_builddir;;
20512 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20513 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20514 esac;;
20515 esac
20516 case $ac_abs_builddir in
20517 .) ac_abs_srcdir=$ac_srcdir;;
20519 case $ac_srcdir in
20520 .) ac_abs_srcdir=$ac_abs_builddir;;
20521 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20522 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20523 esac;;
20524 esac
20525 case $ac_abs_builddir in
20526 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20528 case $ac_top_srcdir in
20529 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20530 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20531 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20532 esac;;
20533 esac
20536 case $INSTALL in
20537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20538 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20539 esac
20541 if test x"$ac_file" != x-; then
20542 { echo "$as_me:$LINENO: creating $ac_file" >&5
20543 echo "$as_me: creating $ac_file" >&6;}
20544 rm -f "$ac_file"
20546 # Let's still pretend it is `configure' which instantiates (i.e., don't
20547 # use $as_me), people would be surprised to read:
20548 # /* config.h. Generated by config.status. */
20549 if test x"$ac_file" = x-; then
20550 configure_input=
20551 else
20552 configure_input="$ac_file. "
20554 configure_input=$configure_input"Generated from `echo $ac_file_in |
20555 sed 's,.*/,,'` by configure."
20557 # First look for the input files in the build tree, otherwise in the
20558 # src tree.
20559 ac_file_inputs=`IFS=:
20560 for f in $ac_file_in; do
20561 case $f in
20562 -) echo $tmp/stdin ;;
20563 [\\/$]*)
20564 # Absolute (can't be DOS-style, as IFS=:)
20565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20566 echo "$as_me: error: cannot find input file: $f" >&2;}
20567 { (exit 1); exit 1; }; }
20568 echo "$f";;
20569 *) # Relative
20570 if test -f "$f"; then
20571 # Build tree
20572 echo "$f"
20573 elif test -f "$srcdir/$f"; then
20574 # Source tree
20575 echo "$srcdir/$f"
20576 else
20577 # /dev/null tree
20578 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20579 echo "$as_me: error: cannot find input file: $f" >&2;}
20580 { (exit 1); exit 1; }; }
20581 fi;;
20582 esac
20583 done` || { (exit 1); exit 1; }
20584 _ACEOF
20585 cat >>$CONFIG_STATUS <<_ACEOF
20586 sed "$ac_vpsub
20587 $extrasub
20588 _ACEOF
20589 cat >>$CONFIG_STATUS <<\_ACEOF
20591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20592 s,@configure_input@,$configure_input,;t t
20593 s,@srcdir@,$ac_srcdir,;t t
20594 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20595 s,@top_srcdir@,$ac_top_srcdir,;t t
20596 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20597 s,@builddir@,$ac_builddir,;t t
20598 s,@abs_builddir@,$ac_abs_builddir,;t t
20599 s,@top_builddir@,$ac_top_builddir,;t t
20600 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20601 s,@INSTALL@,$ac_INSTALL,;t t
20602 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20603 rm -f $tmp/stdin
20604 if test x"$ac_file" != x-; then
20605 mv $tmp/out $ac_file
20606 else
20607 cat $tmp/out
20608 rm -f $tmp/out
20611 # Run the commands associated with the file.
20612 case $ac_file in
20613 Makefile )
20614 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
20615 mv $ac_file.tmp $ac_file
20617 esac
20618 done
20619 _ACEOF
20620 cat >>$CONFIG_STATUS <<\_ACEOF
20623 # CONFIG_COMMANDS section.
20625 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20626 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20627 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20628 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20629 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20630 X"$ac_dest" : 'X\(//\)[^/]' \| \
20631 X"$ac_dest" : 'X\(//\)$' \| \
20632 X"$ac_dest" : 'X\(/\)' \| \
20633 . : '\(.\)' 2>/dev/null ||
20634 echo X"$ac_dest" |
20635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20637 /^X\(\/\/\)$/{ s//\1/; q; }
20638 /^X\(\/\).*/{ s//\1/; q; }
20639 s/.*/./; q'`
20640 { if $as_mkdir_p; then
20641 mkdir -p "$ac_dir"
20642 else
20643 as_dir="$ac_dir"
20644 as_dirs=
20645 while test ! -d "$as_dir"; do
20646 as_dirs="$as_dir $as_dirs"
20647 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20649 X"$as_dir" : 'X\(//\)[^/]' \| \
20650 X"$as_dir" : 'X\(//\)$' \| \
20651 X"$as_dir" : 'X\(/\)' \| \
20652 . : '\(.\)' 2>/dev/null ||
20653 echo X"$as_dir" |
20654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20656 /^X\(\/\/\)$/{ s//\1/; q; }
20657 /^X\(\/\).*/{ s//\1/; q; }
20658 s/.*/./; q'`
20659 done
20660 test ! -n "$as_dirs" || mkdir $as_dirs
20661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20663 { (exit 1); exit 1; }; }; }
20665 ac_builddir=.
20667 if test "$ac_dir" != .; then
20668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20669 # A "../" for each directory in $ac_dir_suffix.
20670 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20671 else
20672 ac_dir_suffix= ac_top_builddir=
20675 case $srcdir in
20676 .) # No --srcdir option. We are building in place.
20677 ac_srcdir=.
20678 if test -z "$ac_top_builddir"; then
20679 ac_top_srcdir=.
20680 else
20681 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20682 fi ;;
20683 [\\/]* | ?:[\\/]* ) # Absolute path.
20684 ac_srcdir=$srcdir$ac_dir_suffix;
20685 ac_top_srcdir=$srcdir ;;
20686 *) # Relative path.
20687 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20688 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20689 esac
20691 # Do not use `cd foo && pwd` to compute absolute paths, because
20692 # the directories may not exist.
20693 case `pwd` in
20694 .) ac_abs_builddir="$ac_dir";;
20696 case "$ac_dir" in
20697 .) ac_abs_builddir=`pwd`;;
20698 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20699 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20700 esac;;
20701 esac
20702 case $ac_abs_builddir in
20703 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20705 case ${ac_top_builddir}. in
20706 .) ac_abs_top_builddir=$ac_abs_builddir;;
20707 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20708 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20709 esac;;
20710 esac
20711 case $ac_abs_builddir in
20712 .) ac_abs_srcdir=$ac_srcdir;;
20714 case $ac_srcdir in
20715 .) ac_abs_srcdir=$ac_abs_builddir;;
20716 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20717 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20718 esac;;
20719 esac
20720 case $ac_abs_builddir in
20721 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20723 case $ac_top_srcdir in
20724 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20725 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20726 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20727 esac;;
20728 esac
20731 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20732 echo "$as_me: executing $ac_dest commands" >&6;}
20733 case $ac_dest in
20734 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20735 # Strip MF so we end up with the name of the file.
20736 mf=`echo "$mf" | sed -e 's/:.*$//'`
20737 # Check whether this is an Automake generated Makefile or not.
20738 # We used to match only the files named `Makefile.in', but
20739 # some people rename them; so instead we look at the file content.
20740 # Grep'ing the first line is not enough: some people post-process
20741 # each Makefile.in and add a new line on top of each file to say so.
20742 # So let's grep whole file.
20743 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20744 dirpart=`(dirname "$mf") 2>/dev/null ||
20745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20746 X"$mf" : 'X\(//\)[^/]' \| \
20747 X"$mf" : 'X\(//\)$' \| \
20748 X"$mf" : 'X\(/\)' \| \
20749 . : '\(.\)' 2>/dev/null ||
20750 echo X"$mf" |
20751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20753 /^X\(\/\/\)$/{ s//\1/; q; }
20754 /^X\(\/\).*/{ s//\1/; q; }
20755 s/.*/./; q'`
20756 else
20757 continue
20759 # Extract the definition of DEPDIR, am__include, and am__quote
20760 # from the Makefile without running `make'.
20761 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20762 test -z "$DEPDIR" && continue
20763 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20764 test -z "am__include" && continue
20765 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20766 # When using ansi2knr, U may be empty or an underscore; expand it
20767 U=`sed -n 's/^U = //p' < "$mf"`
20768 # Find all dependency output files, they are included files with
20769 # $(DEPDIR) in their names. We invoke sed twice because it is the
20770 # simplest approach to changing $(DEPDIR) to its actual value in the
20771 # expansion.
20772 for file in `sed -n "
20773 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20774 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20775 # Make sure the directory exists.
20776 test -f "$dirpart/$file" && continue
20777 fdir=`(dirname "$file") 2>/dev/null ||
20778 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20779 X"$file" : 'X\(//\)[^/]' \| \
20780 X"$file" : 'X\(//\)$' \| \
20781 X"$file" : 'X\(/\)' \| \
20782 . : '\(.\)' 2>/dev/null ||
20783 echo X"$file" |
20784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20786 /^X\(\/\/\)$/{ s//\1/; q; }
20787 /^X\(\/\).*/{ s//\1/; q; }
20788 s/.*/./; q'`
20789 { if $as_mkdir_p; then
20790 mkdir -p $dirpart/$fdir
20791 else
20792 as_dir=$dirpart/$fdir
20793 as_dirs=
20794 while test ! -d "$as_dir"; do
20795 as_dirs="$as_dir $as_dirs"
20796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20798 X"$as_dir" : 'X\(//\)[^/]' \| \
20799 X"$as_dir" : 'X\(//\)$' \| \
20800 X"$as_dir" : 'X\(/\)' \| \
20801 . : '\(.\)' 2>/dev/null ||
20802 echo X"$as_dir" |
20803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20805 /^X\(\/\/\)$/{ s//\1/; q; }
20806 /^X\(\/\).*/{ s//\1/; q; }
20807 s/.*/./; q'`
20808 done
20809 test ! -n "$as_dirs" || mkdir $as_dirs
20810 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20811 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20812 { (exit 1); exit 1; }; }; }
20814 # echo "creating $dirpart/$file"
20815 echo '# dummy' > "$dirpart/$file"
20816 done
20817 done
20819 esac
20820 done
20821 _ACEOF
20823 cat >>$CONFIG_STATUS <<\_ACEOF
20825 { (exit 0); exit 0; }
20826 _ACEOF
20827 chmod +x $CONFIG_STATUS
20828 ac_clean_files=$ac_clean_files_save
20831 # configure is writing to config.log, and then calls config.status.
20832 # config.status does its own redirection, appending to config.log.
20833 # Unfortunately, on DOS this fails, as config.log is still kept open
20834 # by configure, so config.status won't be able to write to it; its
20835 # output is simply discarded. So we exec the FD to /dev/null,
20836 # effectively closing config.log, so it can be properly (re)opened and
20837 # appended to by config.status. When coming back to configure, we
20838 # need to make the FD available again.
20839 if test "$no_create" != yes; then
20840 ac_cs_success=:
20841 ac_config_status_args=
20842 test "$silent" = yes &&
20843 ac_config_status_args="$ac_config_status_args --quiet"
20844 exec 5>/dev/null
20845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20846 exec 5>>config.log
20847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20848 # would make configure fail if this is the last instruction.
20849 $ac_cs_success || { (exit 1); exit 1; }