No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / tests / rpathz / configure
blob075cec1f5f0d1d17e42d97cd61e5650e29bf5a2a
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="configure.ac"
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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBRPATHX LTLIBRPATHX LIBRPATHY LTLIBRPATHY global_top_auxdir 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)
1035 --disable-rpath do not hardcode runtime library paths
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1042 both]
1043 --with-tags[=TAGS]
1044 include additional configurations [automatic]
1045 --with-gnu-ld assume the C compiler uses GNU ld default=no
1046 --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib
1047 --without-librpathx-prefix don't search for librpathx in includedir and libdir
1048 --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib
1049 --without-librpathy-prefix don't search for librpathy in includedir and libdir
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 _ACEOF
1071 if test "$ac_init_help" = "recursive"; then
1072 # If there are subdirs, report their specific --help.
1073 ac_popdir=`pwd`
1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075 test -d $ac_dir || continue
1076 ac_builddir=.
1078 if test "$ac_dir" != .; then
1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080 # A "../" for each directory in $ac_dir_suffix.
1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083 ac_dir_suffix= ac_top_builddir=
1086 case $srcdir in
1087 .) # No --srcdir option. We are building in place.
1088 ac_srcdir=.
1089 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir=.
1091 else
1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093 fi ;;
1094 [\\/]* | ?:[\\/]* ) # Absolute path.
1095 ac_srcdir=$srcdir$ac_dir_suffix;
1096 ac_top_srcdir=$srcdir ;;
1097 *) # Relative path.
1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1107 case "$ac_dir" in
1108 .) ac_abs_builddir=`pwd`;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111 esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120 esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138 esac;;
1139 esac
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
1150 test -f $ac_srcdir/configure.in; then
1151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 cd $ac_popdir
1157 done
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162 cat <<\_ACEOF
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168 exit 0
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59. Invocation command line was
1178 $ $0 $@
1180 _ACEOF
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 _ASUNAME
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1209 IFS=$as_save_IFS
1210 test -z "$as_dir" && as_dir=.
1211 echo "PATH: $as_dir"
1212 done
1214 } >&5
1216 cat >&5 <<_ACEOF
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1223 _ACEOF
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1238 for ac_arg
1240 case $ac_arg in
1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 continue ;;
1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 esac
1248 case $ac_pass in
1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252 if test $ac_must_keep_next = true; then
1253 ac_must_keep_next=false # Got value, back to normal.
1254 else
1255 case $ac_arg in
1256 *=* | --config-cache | -C | -disable-* | --disable-* \
1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259 | -with-* | --with-* | -without-* | --without-* | --x)
1260 case "$ac_configure_args0 " in
1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 esac
1264 -* ) ac_must_keep_next=true ;;
1265 esac
1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268 # Get rid of the leading space.
1269 ac_sep=" "
1271 esac
1272 done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log. We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283 # Save into config.log some information that might help in debugging.
1285 echo
1287 cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292 echo
1293 # The following way of writing the cache mishandles newlines in values,
1295 (set) 2>&1 |
1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 *ac_space=\ *)
1298 sed -n \
1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 sed -n \
1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 esac;
1308 echo
1310 cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315 echo
1316 for ac_var in $ac_subst_vars
1318 eval ac_val=$`echo $ac_var`
1319 echo "$ac_var='"'"'$ac_val'"'"'"
1320 done | sort
1321 echo
1323 if test -n "$ac_subst_files"; then
1324 cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329 echo
1330 for ac_var in $ac_subst_files
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1338 if test -s confdefs.h; then
1339 cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344 echo
1345 sed "/^$/d" confdefs.h | sort
1346 echo
1348 test "$ac_signal" != 0 &&
1349 echo "$as_me: caught signal $ac_signal"
1350 echo "$as_me: exit $exit_status"
1351 } >&5
1352 rm -f core *.core &&
1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 exit $exit_status
1356 for ac_signal in 1 2 13 15; do
1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1366 # Predefined preprocessor variables.
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396 if test "x$prefix" != xNONE; then
1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398 else
1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 for ac_site_file in $CONFIG_SITE; do
1403 if test -r "$ac_site_file"; then
1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406 sed 's/^/| /' "$ac_site_file" >&5
1407 . "$ac_site_file"
1409 done
1411 if test -r "$cache_file"; then
1412 # Some versions of bash will fail to source /dev/null (special
1413 # files actually), so we avoid doing that.
1414 if test -f "$cache_file"; then
1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417 case $cache_file in
1418 [\\/]* | ?:[\\/]* ) . $cache_file;;
1419 *) . ./$cache_file;;
1420 esac
1422 else
1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425 >$cache_file
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434 eval ac_new_set=\$ac_env_${ac_var}_set
1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436 eval ac_new_val="\$ac_env_${ac_var}_value"
1437 case $ac_old_set,$ac_new_set in
1438 set,)
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,set)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,);;
1448 if test "x$ac_old_val" != "x$ac_new_val"; then
1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452 echo "$as_me: former value: $ac_old_val" >&2;}
1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454 echo "$as_me: current value: $ac_new_val" >&2;}
1455 ac_cache_corrupted=:
1456 fi;;
1457 esac
1458 # Pass precious variables to config.status.
1459 if test "$ac_new_set" = set; then
1460 case $ac_new_val in
1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 *) ac_arg=$ac_var=$ac_new_val ;;
1464 esac
1465 case " $ac_configure_args " in
1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468 esac
1470 done
1471 if $ac_cache_corrupted; then
1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476 { (exit 1); exit 1; }; }
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 ac_aux_dir=
1504 for ac_dir in ../../../build-aux $srcdir/../../../build-aux; do
1505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1518 done
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 am__api_version="1.9"
1529 # Find a good install program. We prefer a C program (faster),
1530 # so one script is as good as another. But avoid the broken or
1531 # incompatible versions:
1532 # SysV /etc/install, /usr/sbin/install
1533 # SunOS /usr/etc/install
1534 # IRIX /sbin/install
1535 # AIX /bin/install
1536 # AmigaOS /C/install, which installs bootblocks on floppy discs
1537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1540 # OS/2's system install, which has a completely different semantic
1541 # ./install, which can be erroneously created by make from ./install.sh.
1542 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1543 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1544 if test -z "$INSTALL"; then
1545 if test "${ac_cv_path_install+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1551 IFS=$as_save_IFS
1552 test -z "$as_dir" && as_dir=.
1553 # Account for people who put trailing slashes in PATH elements.
1554 case $as_dir/ in
1555 ./ | .// | /cC/* | \
1556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1558 /usr/ucb/* ) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1562 # by default.
1563 for ac_prog in ginstall scoinst install; do
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1566 if test $ac_prog = install &&
1567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # AIX install. It has an incompatible calling convention.
1570 elif test $ac_prog = install &&
1571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1572 # program-specific install script used by HP pwplus--don't use.
1574 else
1575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1576 break 3
1579 done
1580 done
1582 esac
1583 done
1587 if test "${ac_cv_path_install+set}" = set; then
1588 INSTALL=$ac_cv_path_install
1589 else
1590 # As a last resort, use the slow shell script. We don't cache a
1591 # path for INSTALL within a source directory, because that will
1592 # break other packages using the cache if that directory is
1593 # removed, or if the path is relative.
1594 INSTALL=$ac_install_sh
1597 echo "$as_me:$LINENO: result: $INSTALL" >&5
1598 echo "${ECHO_T}$INSTALL" >&6
1600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1601 # It thinks the first close brace ends the variable substitution.
1602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1609 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 # Just in case
1611 sleep 1
1612 echo timestamp > conftest.file
1613 # Do `set' in a subshell so we don't clobber the current shell's
1614 # arguments. Must try -L first in case configure is actually a
1615 # symlink; some systems play weird games with the mod time of symlinks
1616 # (eg FreeBSD returns the mod time of the symlink's containing
1617 # directory).
1618 if (
1619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1620 if test "$*" = "X"; then
1621 # -L didn't work.
1622 set X `ls -t $srcdir/configure conftest.file`
1624 rm -f conftest.file
1625 if test "$*" != "X $srcdir/configure conftest.file" \
1626 && test "$*" != "X conftest.file $srcdir/configure"; then
1628 # If neither matched, then we have a broken ls. This can happen
1629 # if, for instance, CONFIG_SHELL is bash and it inherits a
1630 # broken ls alias from the environment. This has actually
1631 # happened. Such a system could not be considered "sane".
1632 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&5
1634 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1635 alias in your environment" >&2;}
1636 { (exit 1); exit 1; }; }
1639 test "$2" = conftest.file
1641 then
1642 # Ok.
1644 else
1645 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1646 Check your system clock" >&5
1647 echo "$as_me: error: newly created file is older than distributed files!
1648 Check your system clock" >&2;}
1649 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: yes" >&5
1652 echo "${ECHO_T}yes" >&6
1653 test "$program_prefix" != NONE &&
1654 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1655 # Use a double $ so make ignores it.
1656 test "$program_suffix" != NONE &&
1657 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1658 # Double any \ or $. echo might interpret backslashes.
1659 # By default was `s,x,x', remove it if useless.
1660 cat <<\_ACEOF >conftest.sed
1661 s/[\\$]/&&/g;s/;s,x,x,$//
1662 _ACEOF
1663 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 rm conftest.sed
1666 # expand $ac_aux_dir to an absolute path
1667 am_aux_dir=`cd $ac_aux_dir && pwd`
1669 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1670 # Use eval to expand $SHELL
1671 if eval "$MISSING --run true"; then
1672 am_missing_run="$MISSING --run "
1673 else
1674 am_missing_run=
1675 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1676 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1679 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1680 # We used to keeping the `.' as first argument, in order to
1681 # allow $(mkdir_p) to be used without argument. As in
1682 # $(mkdir_p) $(somedir)
1683 # where $(somedir) is conditionally defined. However this is wrong
1684 # for two reasons:
1685 # 1. if the package is installed by a user who cannot write `.'
1686 # make install will fail,
1687 # 2. the above comment should most certainly read
1688 # $(mkdir_p) $(DESTDIR)$(somedir)
1689 # so it does not work when $(somedir) is undefined and
1690 # $(DESTDIR) is not.
1691 # To support the latter case, we have to write
1692 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1693 # so the `.' trick is pointless.
1694 mkdir_p='mkdir -p --'
1695 else
1696 # On NextStep and OpenStep, the `mkdir' command does not
1697 # recognize any option. It will interpret all options as
1698 # directories to create, and then abort because `.' already
1699 # exists.
1700 for d in ./-p ./--version;
1702 test -d $d && rmdir $d
1703 done
1704 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1705 if test -f "$ac_aux_dir/mkinstalldirs"; then
1706 mkdir_p='$(mkinstalldirs)'
1707 else
1708 mkdir_p='$(install_sh) -d'
1712 for ac_prog in gawk mawk nawk awk
1714 # Extract the first word of "$ac_prog", so it can be a program name with args.
1715 set dummy $ac_prog; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_AWK+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$AWK"; then
1722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_AWK="$ac_prog"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1735 done
1736 done
1740 AWK=$ac_cv_prog_AWK
1741 if test -n "$AWK"; then
1742 echo "$as_me:$LINENO: result: $AWK" >&5
1743 echo "${ECHO_T}$AWK" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 test -n "$AWK" && break
1750 done
1752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1754 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1755 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 cat >conftest.make <<\_ACEOF
1759 all:
1760 @echo 'ac_maketemp="$(MAKE)"'
1761 _ACEOF
1762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1763 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1764 if test -n "$ac_maketemp"; then
1765 eval ac_cv_prog_make_${ac_make}_set=yes
1766 else
1767 eval ac_cv_prog_make_${ac_make}_set=no
1769 rm -f conftest.make
1771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774 SET_MAKE=
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 SET_MAKE="MAKE=${MAKE-make}"
1781 rm -rf .tst 2>/dev/null
1782 mkdir .tst 2>/dev/null
1783 if test -d .tst; then
1784 am__leading_dot=.
1785 else
1786 am__leading_dot=_
1788 rmdir .tst 2>/dev/null
1790 # test to see if srcdir already configured
1791 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1792 test -f $srcdir/config.status; then
1793 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1794 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1795 { (exit 1); exit 1; }; }
1798 # test whether we have cygpath
1799 if test -z "$CYGPATH_W"; then
1800 if (cygpath --version) >/dev/null 2>/dev/null; then
1801 CYGPATH_W='cygpath -w'
1802 else
1803 CYGPATH_W=echo
1808 # Define the identity of the package.
1809 PACKAGE=gettext_rpathz
1810 VERSION=0
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE "$PACKAGE"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define VERSION "$VERSION"
1820 _ACEOF
1822 # Some tools Automake needs.
1824 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1827 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1830 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1833 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1836 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840 # Installed binaries are usually stripped using `strip' when the user
1841 # run `make install-strip'. However `strip' might not be the right
1842 # tool to use in cross-compilation environments, therefore Automake
1843 # will honor the `STRIP' environment variable to overrule this program.
1844 if test "$cross_compiling" != no; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}strip; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_STRIP+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$STRIP"; then
1854 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1867 done
1868 done
1872 STRIP=$ac_cv_prog_STRIP
1873 if test -n "$STRIP"; then
1874 echo "$as_me:$LINENO: result: $STRIP" >&5
1875 echo "${ECHO_T}$STRIP" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$ac_cv_prog_STRIP"; then
1883 ac_ct_STRIP=$STRIP
1884 # Extract the first word of "strip", so it can be a program name with args.
1885 set dummy strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_STRIP"; then
1892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_STRIP="strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1905 done
1906 done
1908 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1912 if test -n "$ac_ct_STRIP"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1914 echo "${ECHO_T}$ac_ct_STRIP" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 STRIP=$ac_ct_STRIP
1921 else
1922 STRIP="$ac_cv_prog_STRIP"
1926 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928 # We need awk for the "check" target. The system "awk" is bad on
1929 # some platforms.
1930 # Always define AMTAR for backward compatibility.
1932 AMTAR=${AMTAR-"${am_missing_run}tar"}
1934 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1940 ac_ext=c
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945 if test -n "$ac_tool_prefix"; then
1946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$CC"; then
1954 ac_cv_prog_CC="$CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1967 done
1968 done
1972 CC=$ac_cv_prog_CC
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$ac_cv_prog_CC"; then
1983 ac_ct_CC=$CC
1984 # Extract the first word of "gcc", so it can be a program name with args.
1985 set dummy gcc; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$ac_ct_CC"; then
1992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_ac_ct_CC="gcc"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2005 done
2006 done
2010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2011 if test -n "$ac_ct_CC"; then
2012 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2013 echo "${ECHO_T}$ac_ct_CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 CC=$ac_ct_CC
2020 else
2021 CC="$ac_cv_prog_CC"
2024 if test -z "$CC"; then
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2027 set dummy ${ac_tool_prefix}cc; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CC="${ac_tool_prefix}cc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2062 if test -z "$ac_cv_prog_CC"; then
2063 ac_ct_CC=$CC
2064 # Extract the first word of "cc", so it can be a program name with args.
2065 set dummy cc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_ac_ct_CC="cc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 CC=$ac_ct_CC
2100 else
2101 CC="$ac_cv_prog_CC"
2105 if test -z "$CC"; then
2106 # Extract the first word of "cc", so it can be a program name with args.
2107 set dummy cc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 ac_prog_rejected=no
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2125 ac_prog_rejected=yes
2126 continue
2128 ac_cv_prog_CC="cc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2132 done
2133 done
2135 if test $ac_prog_rejected = yes; then
2136 # We found a bogon in the path, so make sure we never use it.
2137 set dummy $ac_cv_prog_CC
2138 shift
2139 if test $# != 0; then
2140 # We chose a different compiler from the bogus one.
2141 # However, it has the same basename, so the bogon will be chosen
2142 # first if we set CC to just the basename; use the full file name.
2143 shift
2144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2159 if test -z "$CC"; then
2160 if test -n "$ac_tool_prefix"; then
2161 for ac_prog in cl
2163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2184 done
2185 done
2189 CC=$ac_cv_prog_CC
2190 if test -n "$CC"; then
2191 echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6
2193 else
2194 echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6
2198 test -n "$CC" && break
2199 done
2201 if test -z "$CC"; then
2202 ac_ct_CC=$CC
2203 for ac_prog in cl
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$ac_ct_CC"; then
2213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 ac_cv_prog_ac_ct_CC="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2232 if test -n "$ac_ct_CC"; then
2233 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2234 echo "${ECHO_T}$ac_ct_CC" >&6
2235 else
2236 echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2240 test -n "$ac_ct_CC" && break
2241 done
2243 CC=$ac_ct_CC
2249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2255 # Provide some information about the compiler.
2256 echo "$as_me:$LINENO:" \
2257 "checking for C compiler version" >&5
2258 ac_compiler=`set X $ac_compile; echo $2`
2259 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2260 (eval $ac_compiler --version </dev/null >&5) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }
2264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2265 (eval $ac_compiler -v </dev/null >&5) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }
2269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2270 (eval $ac_compiler -V </dev/null >&5) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2275 cat >conftest.$ac_ext <<_ACEOF
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2283 main ()
2287 return 0;
2289 _ACEOF
2290 ac_clean_files_save=$ac_clean_files
2291 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2292 # Try to create an executable without -o first, disregard a.out.
2293 # It will help us diagnose broken compilers, and finding out an intuition
2294 # of exeext.
2295 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2296 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2297 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2298 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2299 (eval $ac_link_default) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 # Find the output, starting from the most likely. This scheme is
2304 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2305 # resort.
2307 # Be careful to initialize this variable, since it used to be cached.
2308 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2309 ac_cv_exeext=
2310 # b.out is created by i960 compilers.
2311 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2317 conftest.$ac_ext )
2318 # This is the source file.
2320 [ab].out )
2321 # We found the default executable, but exeext='' is most
2322 # certainly right.
2323 break;;
2324 *.* )
2325 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 # FIXME: I believe we export ac_cv_exeext for Libtool,
2327 # but it would be cool to find out if it's true. Does anybody
2328 # maintain Libtool? --akim.
2329 export ac_cv_exeext
2330 break;;
2332 break;;
2333 esac
2334 done
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: C compiler cannot create executables
2342 See \`config.log' for more details." >&2;}
2343 { (exit 77); exit 77; }; }
2346 ac_exeext=$ac_cv_exeext
2347 echo "$as_me:$LINENO: result: $ac_file" >&5
2348 echo "${ECHO_T}$ac_file" >&6
2350 # Check the compiler produces executables we can run. If not, either
2351 # the compiler is broken, or we cross compile.
2352 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2353 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2354 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2355 # If not cross compiling, check that we can run a simple program.
2356 if test "$cross_compiling" != yes; then
2357 if { ac_try='./$ac_file'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 cross_compiling=no
2364 else
2365 if test "$cross_compiling" = maybe; then
2366 cross_compiling=yes
2367 else
2368 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2369 If you meant to cross compile, use \`--host'.
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2378 echo "$as_me:$LINENO: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2381 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2382 ac_clean_files=$ac_clean_files_save
2383 # Check the compiler produces executables we can run. If not, either
2384 # the compiler is broken, or we cross compile.
2385 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2386 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2387 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2388 echo "${ECHO_T}$cross_compiling" >&6
2390 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2391 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; then
2397 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2398 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2399 # work properly (i.e., refer to `conftest.exe'), while it won't with
2400 # `rm'.
2401 for ac_file in conftest.exe conftest conftest.*; do
2402 test -f "$ac_file" || continue
2403 case $ac_file in
2404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2405 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 export ac_cv_exeext
2407 break;;
2408 * ) break;;
2409 esac
2410 done
2411 else
2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2415 See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2419 rm -f conftest$ac_cv_exeext
2420 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2421 echo "${ECHO_T}$ac_cv_exeext" >&6
2423 rm -f conftest.$ac_ext
2424 EXEEXT=$ac_cv_exeext
2425 ac_exeext=$EXEEXT
2426 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2427 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2428 if test "${ac_cv_objext+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 main ()
2443 return 0;
2445 _ACEOF
2446 rm -f conftest.o conftest.obj
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2456 break;;
2457 esac
2458 done
2459 else
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2472 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473 echo "${ECHO_T}$ac_cv_objext" >&6
2474 OBJEXT=$ac_cv_objext
2475 ac_objext=$OBJEXT
2476 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 main ()
2491 #ifndef __GNUC__
2492 choke me
2493 #endif
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_compiler_gnu=yes
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_compiler_gnu=no
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2532 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2533 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2534 GCC=`test $ac_compiler_gnu = yes && echo yes`
2535 ac_test_CFLAGS=${CFLAGS+set}
2536 ac_save_CFLAGS=$CFLAGS
2537 CFLAGS="-g"
2538 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2539 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2540 if test "${ac_cv_prog_cc_g+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2551 main ()
2555 return 0;
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>conftest.er1
2561 ac_status=$?
2562 grep -v '^ *+' conftest.er1 >conftest.err
2563 rm -f conftest.er1
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_c_werror_flag"
2568 || test ! -s conftest.err'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 ac_cv_prog_cc_g=yes
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 ac_cv_prog_cc_g=no
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2591 if test "$ac_test_CFLAGS" = set; then
2592 CFLAGS=$ac_save_CFLAGS
2593 elif test $ac_cv_prog_cc_g = yes; then
2594 if test "$GCC" = yes; then
2595 CFLAGS="-g -O2"
2596 else
2597 CFLAGS="-g"
2599 else
2600 if test "$GCC" = yes; then
2601 CFLAGS="-O2"
2602 else
2603 CFLAGS=
2606 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2607 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2608 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 ac_cv_prog_cc_stdc=no
2612 ac_save_CC=$CC
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2619 #include <stdarg.h>
2620 #include <stdio.h>
2621 #include <sys/types.h>
2622 #include <sys/stat.h>
2623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2624 struct buf { int x; };
2625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2626 static char *e (p, i)
2627 char **p;
2628 int i;
2630 return p[i];
2632 static char *f (char * (*g) (char **, int), char **p, ...)
2634 char *s;
2635 va_list v;
2636 va_start (v,p);
2637 s = g (p, va_arg (v,int));
2638 va_end (v);
2639 return s;
2642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2643 function prototypes and stuff, but not '\xHH' hex character constants.
2644 These don't provoke an error unfortunately, instead are silently treated
2645 as 'x'. The following induces an error, until -std1 is added to get
2646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2647 array size at least. It's necessary to write '\x00'==0 to get something
2648 that's true only with -std1. */
2649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2651 int test (int i, double x);
2652 struct s1 {int (*f) (int a);};
2653 struct s2 {int (*f) (double a);};
2654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2655 int argc;
2656 char **argv;
2658 main ()
2660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2662 return 0;
2664 _ACEOF
2665 # Don't try gcc -ansi; that turns off useful extensions and
2666 # breaks some systems' header files.
2667 # AIX -qlanglvl=ansi
2668 # Ultrix and OSF/1 -std1
2669 # HP-UX 10.20 and later -Ae
2670 # HP-UX older versions -Aa -D_HPUX_SOURCE
2671 # SVR4 -Xc -D__EXTENSIONS__
2672 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2674 CC="$ac_save_CC $ac_arg"
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_c_werror_flag"
2685 || test ! -s conftest.err'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cc_stdc=$ac_arg
2698 break
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext
2705 done
2706 rm -f conftest.$ac_ext conftest.$ac_objext
2707 CC=$ac_save_CC
2711 case "x$ac_cv_prog_cc_stdc" in
2712 x|xno)
2713 echo "$as_me:$LINENO: result: none needed" >&5
2714 echo "${ECHO_T}none needed" >&6 ;;
2716 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2717 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2718 CC="$CC $ac_cv_prog_cc_stdc" ;;
2719 esac
2721 # Some people use a C++ compiler to compile C. Since we use `exit',
2722 # in C++ we need to declare it. In case someone uses the same compiler
2723 # for both compiling C and C++ we need to have the C++ compiler decide
2724 # the declaration of exit, since it's the most demanding environment.
2725 cat >conftest.$ac_ext <<_ACEOF
2726 #ifndef __cplusplus
2727 choke me
2728 #endif
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_c_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 (eval $ac_try) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 for ac_declaration in \
2753 '' \
2754 'extern "C" void std::exit (int) throw (); using std::exit;' \
2755 'extern "C" void std::exit (int); using std::exit;' \
2756 'extern "C" void exit (int) throw ();' \
2757 'extern "C" void exit (int);' \
2758 'void exit (int);'
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 $ac_declaration
2767 #include <stdlib.h>
2769 main ()
2771 exit (42);
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_c_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 continue
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812 $ac_declaration
2814 main ()
2816 exit (42);
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 break
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850 done
2851 rm -f conftest*
2852 if test -n "$ac_declaration"; then
2853 echo '#ifdef __cplusplus' >>confdefs.h
2854 echo $ac_declaration >>confdefs.h
2855 echo '#endif' >>confdefs.h
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 DEPDIR="${am__leading_dot}deps"
2871 ac_config_commands="$ac_config_commands depfiles"
2874 am_make=${MAKE-make}
2875 cat > confinc << 'END'
2876 am__doit:
2877 @echo done
2878 .PHONY: am__doit
2880 # If we don't find an include directive, just comment out the code.
2881 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2882 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2883 am__include="#"
2884 am__quote=
2885 _am_result=none
2886 # First try GNU make style include.
2887 echo "include confinc" > confmf
2888 # We grep out `Entering directory' and `Leaving directory'
2889 # messages which can occur if `w' ends up in MAKEFLAGS.
2890 # In particular we don't look at `^make:' because GNU make might
2891 # be invoked under some other name (usually "gmake"), in which
2892 # case it prints its new name instead of `make'.
2893 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2894 am__include=include
2895 am__quote=
2896 _am_result=GNU
2898 # Now try BSD make style include.
2899 if test "$am__include" = "#"; then
2900 echo '.include "confinc"' > confmf
2901 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2902 am__include=.include
2903 am__quote="\""
2904 _am_result=BSD
2909 echo "$as_me:$LINENO: result: $_am_result" >&5
2910 echo "${ECHO_T}$_am_result" >&6
2911 rm -f confinc confmf
2913 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2914 if test "${enable_dependency_tracking+set}" = set; then
2915 enableval="$enable_dependency_tracking"
2918 if test "x$enable_dependency_tracking" != xno; then
2919 am_depcomp="$ac_aux_dir/depcomp"
2920 AMDEPBACKSLASH='\'
2924 if test "x$enable_dependency_tracking" != xno; then
2925 AMDEP_TRUE=
2926 AMDEP_FALSE='#'
2927 else
2928 AMDEP_TRUE='#'
2929 AMDEP_FALSE=
2935 depcc="$CC" am_compiler_list=
2937 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2938 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2939 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2943 # We make a subdir and do the tests there. Otherwise we can end up
2944 # making bogus files that we don't know about and never remove. For
2945 # instance it was reported that on HP-UX the gcc test will end up
2946 # making a dummy file named `D' -- because `-MD' means `put the output
2947 # in D'.
2948 mkdir conftest.dir
2949 # Copy depcomp to subdir because otherwise we won't find it if we're
2950 # using a relative directory.
2951 cp "$am_depcomp" conftest.dir
2952 cd conftest.dir
2953 # We will build objects and dependencies in a subdirectory because
2954 # it helps to detect inapplicable dependency modes. For instance
2955 # both Tru64's cc and ICC support -MD to output dependencies as a
2956 # side effect of compilation, but ICC will put the dependencies in
2957 # the current directory while Tru64 will put them in the object
2958 # directory.
2959 mkdir sub
2961 am_cv_CC_dependencies_compiler_type=none
2962 if test "$am_compiler_list" = ""; then
2963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2965 for depmode in $am_compiler_list; do
2966 # Setup a source with many dependencies, because some compilers
2967 # like to wrap large dependency lists on column 80 (with \), and
2968 # we should not choose a depcomp mode which is confused by this.
2970 # We need to recreate these files for each test, as the compiler may
2971 # overwrite some of them when testing with obscure command lines.
2972 # This happens at least with the AIX C compiler.
2973 : > sub/conftest.c
2974 for i in 1 2 3 4 5 6; do
2975 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2976 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2977 # Solaris 8's {/usr,}/bin/sh.
2978 touch sub/conftst$i.h
2979 done
2980 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2982 case $depmode in
2983 nosideeffect)
2984 # after this tag, mechanisms are not by side-effect, so they'll
2985 # only be used when explicitly requested
2986 if test "x$enable_dependency_tracking" = xyes; then
2987 continue
2988 else
2989 break
2992 none) break ;;
2993 esac
2994 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2995 # mode. It turns out that the SunPro C++ compiler does not properly
2996 # handle `-M -o', and we need to detect this.
2997 if depmode=$depmode \
2998 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3000 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3001 >/dev/null 2>conftest.err &&
3002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3005 # icc doesn't choke on unknown options, it will just issue warnings
3006 # or remarks (even with -Werror). So we grep stderr for any message
3007 # that says an option was ignored or not supported.
3008 # When given -MP, icc 7.0 and 7.1 complain thusly:
3009 # icc: Command line warning: ignoring option '-M'; no argument required
3010 # The diagnosis changed in icc 8.0:
3011 # icc: Command line remark: option '-MP' not supported
3012 if (grep 'ignoring option' conftest.err ||
3013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3014 am_cv_CC_dependencies_compiler_type=$depmode
3015 break
3018 done
3020 cd ..
3021 rm -rf conftest.dir
3022 else
3023 am_cv_CC_dependencies_compiler_type=none
3027 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3028 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3029 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3034 test "x$enable_dependency_tracking" != xno \
3035 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3036 am__fastdepCC_TRUE=
3037 am__fastdepCC_FALSE='#'
3038 else
3039 am__fastdepCC_TRUE='#'
3040 am__fastdepCC_FALSE=
3044 # Check whether --enable-shared or --disable-shared was given.
3045 if test "${enable_shared+set}" = set; then
3046 enableval="$enable_shared"
3047 p=${PACKAGE-default}
3048 case $enableval in
3049 yes) enable_shared=yes ;;
3050 no) enable_shared=no ;;
3052 enable_shared=no
3053 # Look at the argument we got. We use all the common list separators.
3054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3055 for pkg in $enableval; do
3056 IFS="$lt_save_ifs"
3057 if test "X$pkg" = "X$p"; then
3058 enable_shared=yes
3060 done
3061 IFS="$lt_save_ifs"
3063 esac
3064 else
3065 enable_shared=yes
3068 # Check whether --enable-static or --disable-static was given.
3069 if test "${enable_static+set}" = set; then
3070 enableval="$enable_static"
3071 p=${PACKAGE-default}
3072 case $enableval in
3073 yes) enable_static=yes ;;
3074 no) enable_static=no ;;
3076 enable_static=no
3077 # Look at the argument we got. We use all the common list separators.
3078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3079 for pkg in $enableval; do
3080 IFS="$lt_save_ifs"
3081 if test "X$pkg" = "X$p"; then
3082 enable_static=yes
3084 done
3085 IFS="$lt_save_ifs"
3087 esac
3088 else
3089 enable_static=yes
3092 # Check whether --enable-fast-install or --disable-fast-install was given.
3093 if test "${enable_fast_install+set}" = set; then
3094 enableval="$enable_fast_install"
3095 p=${PACKAGE-default}
3096 case $enableval in
3097 yes) enable_fast_install=yes ;;
3098 no) enable_fast_install=no ;;
3100 enable_fast_install=no
3101 # Look at the argument we got. We use all the common list separators.
3102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3103 for pkg in $enableval; do
3104 IFS="$lt_save_ifs"
3105 if test "X$pkg" = "X$p"; then
3106 enable_fast_install=yes
3108 done
3109 IFS="$lt_save_ifs"
3111 esac
3112 else
3113 enable_fast_install=yes
3116 # Make sure we can run config.sub.
3117 $ac_config_sub sun4 >/dev/null 2>&1 ||
3118 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3119 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3120 { (exit 1); exit 1; }; }
3122 echo "$as_me:$LINENO: checking build system type" >&5
3123 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3124 if test "${ac_cv_build+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 ac_cv_build_alias=$build_alias
3128 test -z "$ac_cv_build_alias" &&
3129 ac_cv_build_alias=`$ac_config_guess`
3130 test -z "$ac_cv_build_alias" &&
3131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3133 { (exit 1); exit 1; }; }
3134 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3135 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3136 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3137 { (exit 1); exit 1; }; }
3140 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3141 echo "${ECHO_T}$ac_cv_build" >&6
3142 build=$ac_cv_build
3143 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3144 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3145 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3148 echo "$as_me:$LINENO: checking host system type" >&5
3149 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3150 if test "${ac_cv_host+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_host_alias=$host_alias
3154 test -z "$ac_cv_host_alias" &&
3155 ac_cv_host_alias=$ac_cv_build_alias
3156 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3157 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3158 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3159 { (exit 1); exit 1; }; }
3162 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3163 echo "${ECHO_T}$ac_cv_host" >&6
3164 host=$ac_cv_host
3165 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3166 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3167 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3170 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3171 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3172 if test "${lt_cv_path_SED+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 # Loop through the user's path and test for sed and gsed.
3176 # Then use that list of sed's as ones to test for truncation.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for lt_ac_prog in sed gsed; do
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3185 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3187 done
3188 done
3189 done
3190 lt_ac_max=0
3191 lt_ac_count=0
3192 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3193 # along with /bin/sed that truncates output.
3194 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3195 test ! -f $lt_ac_sed && continue
3196 cat /dev/null > conftest.in
3197 lt_ac_count=0
3198 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3199 # Check for GNU sed and select it if it is found.
3200 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3201 lt_cv_path_SED=$lt_ac_sed
3202 break
3204 while true; do
3205 cat conftest.in conftest.in >conftest.tmp
3206 mv conftest.tmp conftest.in
3207 cp conftest.in conftest.nl
3208 echo >>conftest.nl
3209 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3210 cmp -s conftest.out conftest.nl || break
3211 # 10000 chars as input seems more than enough
3212 test $lt_ac_count -gt 10 && break
3213 lt_ac_count=`expr $lt_ac_count + 1`
3214 if test $lt_ac_count -gt $lt_ac_max; then
3215 lt_ac_max=$lt_ac_count
3216 lt_cv_path_SED=$lt_ac_sed
3218 done
3219 done
3223 SED=$lt_cv_path_SED
3224 echo "$as_me:$LINENO: result: $SED" >&5
3225 echo "${ECHO_T}$SED" >&6
3227 echo "$as_me:$LINENO: checking for egrep" >&5
3228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3229 if test "${ac_cv_prog_egrep+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3233 then ac_cv_prog_egrep='grep -E'
3234 else ac_cv_prog_egrep='egrep'
3237 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3238 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3239 EGREP=$ac_cv_prog_egrep
3243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3244 if test "${with_gnu_ld+set}" = set; then
3245 withval="$with_gnu_ld"
3246 test "$withval" = no || with_gnu_ld=yes
3247 else
3248 with_gnu_ld=no
3250 ac_prog=ld
3251 if test "$GCC" = yes; then
3252 # Check if gcc -print-prog-name=ld gives a path.
3253 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3255 case $host in
3256 *-*-mingw*)
3257 # gcc leaves a trailing carriage return which upsets mingw
3258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3261 esac
3262 case $ac_prog in
3263 # Accept absolute paths.
3264 [\\/]* | ?:[\\/]*)
3265 re_direlt='/[^/][^/]*/\.\./'
3266 # Canonicalize the pathname of ld
3267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3270 done
3271 test -z "$LD" && LD="$ac_prog"
3274 # If it fails, then pretend we aren't using GCC.
3275 ac_prog=ld
3278 # If it is relative, then search for the first ld in PATH.
3279 with_gnu_ld=unknown
3281 esac
3282 elif test "$with_gnu_ld" = yes; then
3283 echo "$as_me:$LINENO: checking for GNU ld" >&5
3284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3285 else
3286 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3289 if test "${lt_cv_path_LD+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -z "$LD"; then
3293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3294 for ac_dir in $PATH; do
3295 IFS="$lt_save_ifs"
3296 test -z "$ac_dir" && ac_dir=.
3297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3298 lt_cv_path_LD="$ac_dir/$ac_prog"
3299 # Check to see if the program is GNU ld. I'd rather use --version,
3300 # but apparently some GNU ld's only accept -v.
3301 # Break only if it was the GNU/non-GNU ld that we prefer.
3302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3303 *GNU* | *'with BFD'*)
3304 test "$with_gnu_ld" != no && break
3307 test "$with_gnu_ld" != yes && break
3309 esac
3311 done
3312 IFS="$lt_save_ifs"
3313 else
3314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3318 LD="$lt_cv_path_LD"
3319 if test -n "$LD"; then
3320 echo "$as_me:$LINENO: result: $LD" >&5
3321 echo "${ECHO_T}$LD" >&6
3322 else
3323 echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3328 { (exit 1); exit 1; }; }
3329 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3335 case `$LD -v 2>&1 </dev/null` in
3336 *GNU* | *'with BFD'*)
3337 lt_cv_prog_gnu_ld=yes
3340 lt_cv_prog_gnu_ld=no
3342 esac
3344 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3346 with_gnu_ld=$lt_cv_prog_gnu_ld
3349 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3350 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3351 if test "${lt_cv_ld_reload_flag+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 lt_cv_ld_reload_flag='-r'
3356 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3357 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3358 reload_flag=$lt_cv_ld_reload_flag
3359 case $reload_flag in
3360 "" | " "*) ;;
3361 *) reload_flag=" $reload_flag" ;;
3362 esac
3363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3364 case $host_os in
3365 darwin*)
3366 if test "$GCC" = yes; then
3367 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3368 else
3369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3372 esac
3374 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3375 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3376 if test "${lt_cv_path_NM+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 if test -n "$NM"; then
3380 # Let the user override the test.
3381 lt_cv_path_NM="$NM"
3382 else
3383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3384 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3385 IFS="$lt_save_ifs"
3386 test -z "$ac_dir" && ac_dir=.
3387 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3388 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3389 # Check to see if the nm accepts a BSD-compat flag.
3390 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3391 # nm: unknown option "B" ignored
3392 # Tru64's nm complains that /dev/null is an invalid object file
3393 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3394 */dev/null* | *'Invalid file or object type'*)
3395 lt_cv_path_NM="$tmp_nm -B"
3396 break
3399 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3400 */dev/null*)
3401 lt_cv_path_NM="$tmp_nm -p"
3402 break
3405 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3406 continue # so that we can try to find one that supports BSD flags
3408 esac
3409 esac
3411 done
3412 IFS="$lt_save_ifs"
3413 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3416 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3417 echo "${ECHO_T}$lt_cv_path_NM" >&6
3418 NM="$lt_cv_path_NM"
3420 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3421 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3422 LN_S=$as_ln_s
3423 if test "$LN_S" = "ln -s"; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425 echo "${ECHO_T}yes" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3428 echo "${ECHO_T}no, using $LN_S" >&6
3431 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3432 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3433 if test "${lt_cv_deplibs_check_method+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 lt_cv_file_magic_cmd='$MAGIC_CMD'
3437 lt_cv_file_magic_test_file=
3438 lt_cv_deplibs_check_method='unknown'
3439 # Need to set the preceding variable on all platforms that support
3440 # interlibrary dependencies.
3441 # 'none' -- dependencies not supported.
3442 # `unknown' -- same as none, but documents that we really don't know.
3443 # 'pass_all' -- all dependencies passed with no checks.
3444 # 'test_compile' -- check by making test program.
3445 # 'file_magic [[regex]]' -- check by looking for files in library path
3446 # which responds to the $file_magic_cmd with a given extended regex.
3447 # If you have `file' or equivalent on your system and you're not sure
3448 # whether `pass_all' will *always* work, you probably want this one.
3450 case $host_os in
3451 aix4* | aix5*)
3452 lt_cv_deplibs_check_method=pass_all
3455 beos*)
3456 lt_cv_deplibs_check_method=pass_all
3459 bsdi[45]*)
3460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3461 lt_cv_file_magic_cmd='/usr/bin/file -L'
3462 lt_cv_file_magic_test_file=/shlib/libc.so
3465 cygwin*)
3466 # func_win32_libid is a shell function defined in ltmain.sh
3467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3468 lt_cv_file_magic_cmd='func_win32_libid'
3471 mingw* | pw32*)
3472 # Base MSYS/MinGW do not provide the 'file' command needed by
3473 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3474 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3475 lt_cv_file_magic_cmd='$OBJDUMP -f'
3478 darwin* | rhapsody*)
3479 lt_cv_deplibs_check_method=pass_all
3482 freebsd* | kfreebsd*-gnu | dragonfly*)
3483 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3484 case $host_cpu in
3485 i*86 )
3486 # Not sure whether the presence of OpenBSD here was a mistake.
3487 # Let's accept both of them until this is cleared up.
3488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3489 lt_cv_file_magic_cmd=/usr/bin/file
3490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3492 esac
3493 else
3494 lt_cv_deplibs_check_method=pass_all
3498 gnu*)
3499 lt_cv_deplibs_check_method=pass_all
3502 hpux10.20* | hpux11*)
3503 lt_cv_file_magic_cmd=/usr/bin/file
3504 case "$host_cpu" in
3505 ia64*)
3506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3509 hppa*64*)
3510 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]'
3511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3517 esac
3520 irix5* | irix6* | nonstopux*)
3521 case $LD in
3522 *-32|*"-32 ") libmagic=32-bit;;
3523 *-n32|*"-n32 ") libmagic=N32;;
3524 *-64|*"-64 ") libmagic=64-bit;;
3525 *) libmagic=never-match;;
3526 esac
3527 lt_cv_deplibs_check_method=pass_all
3530 # This must be Linux ELF.
3531 linux*)
3532 lt_cv_deplibs_check_method=pass_all
3535 netbsd*)
3536 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3538 else
3539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3543 newos6*)
3544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3549 nto-qnx*)
3550 lt_cv_deplibs_check_method=unknown
3553 openbsd*)
3554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3556 else
3557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3561 osf3* | osf4* | osf5*)
3562 lt_cv_deplibs_check_method=pass_all
3565 sco3.2v5*)
3566 lt_cv_deplibs_check_method=pass_all
3569 solaris*)
3570 lt_cv_deplibs_check_method=pass_all
3573 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3574 case $host_vendor in
3575 motorola)
3576 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]'
3577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3579 ncr)
3580 lt_cv_deplibs_check_method=pass_all
3582 sequent)
3583 lt_cv_file_magic_cmd='/bin/file'
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3586 sni)
3587 lt_cv_file_magic_cmd='/bin/file'
3588 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3589 lt_cv_file_magic_test_file=/lib/libc.so
3591 siemens)
3592 lt_cv_deplibs_check_method=pass_all
3594 esac
3597 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3598 lt_cv_deplibs_check_method=pass_all
3600 esac
3603 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3604 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3605 file_magic_cmd=$lt_cv_file_magic_cmd
3606 deplibs_check_method=$lt_cv_deplibs_check_method
3607 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3612 # If no C compiler was specified, use CC.
3613 LTCC=${LTCC-"$CC"}
3615 # Allow CC to be a program name with arguments.
3616 compiler=$CC
3619 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3620 if test "${enable_libtool_lock+set}" = set; then
3621 enableval="$enable_libtool_lock"
3624 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3626 # Some flags need to be propagated to the compiler or linker for good
3627 # libtool support.
3628 case $host in
3629 ia64-*-hpux*)
3630 # Find out which ABI we are using.
3631 echo 'int i;' > conftest.$ac_ext
3632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; then
3637 case `/usr/bin/file conftest.$ac_objext` in
3638 *ELF-32*)
3639 HPUX_IA64_MODE="32"
3641 *ELF-64*)
3642 HPUX_IA64_MODE="64"
3644 esac
3646 rm -rf conftest*
3648 *-*-irix6*)
3649 # Find out which ABI we are using.
3650 echo '#line 3650 "configure"' > conftest.$ac_ext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; then
3656 if test "$lt_cv_prog_gnu_ld" = yes; then
3657 case `/usr/bin/file conftest.$ac_objext` in
3658 *32-bit*)
3659 LD="${LD-ld} -melf32bsmip"
3661 *N32*)
3662 LD="${LD-ld} -melf32bmipn32"
3664 *64-bit*)
3665 LD="${LD-ld} -melf64bmip"
3667 esac
3668 else
3669 case `/usr/bin/file conftest.$ac_objext` in
3670 *32-bit*)
3671 LD="${LD-ld} -32"
3673 *N32*)
3674 LD="${LD-ld} -n32"
3676 *64-bit*)
3677 LD="${LD-ld} -64"
3679 esac
3682 rm -rf conftest*
3685 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3686 # Find out which ABI we are using.
3687 echo 'int i;' > conftest.$ac_ext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 case "`/usr/bin/file conftest.o`" in
3694 *32-bit*)
3695 case $host in
3696 x86_64-*linux*)
3697 LD="${LD-ld} -m elf_i386"
3699 ppc64-*linux*|powerpc64-*linux*)
3700 LD="${LD-ld} -m elf32ppclinux"
3702 s390x-*linux*)
3703 LD="${LD-ld} -m elf_s390"
3705 sparc64-*linux*)
3706 LD="${LD-ld} -m elf32_sparc"
3708 esac
3710 *64-bit*)
3711 case $host in
3712 x86_64-*linux*)
3713 LD="${LD-ld} -m elf_x86_64"
3715 ppc*-*linux*|powerpc*-*linux*)
3716 LD="${LD-ld} -m elf64ppc"
3718 s390*-*linux*)
3719 LD="${LD-ld} -m elf64_s390"
3721 sparc*-*linux*)
3722 LD="${LD-ld} -m elf64_sparc"
3724 esac
3726 esac
3728 rm -rf conftest*
3731 *-*-sco3.2v5*)
3732 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3733 SAVE_CFLAGS="$CFLAGS"
3734 CFLAGS="$CFLAGS -belf"
3735 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3736 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3737 if test "${lt_cv_cc_needs_belf+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_ext=c
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3754 main ()
3758 return 0;
3760 _ACEOF
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 lt_cv_cc_needs_belf=yes
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 lt_cv_cc_needs_belf=no
3790 rm -f conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3800 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3803 CFLAGS="$SAVE_CFLAGS"
3807 esac
3809 need_locks="$enable_libtool_lock"
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3819 # On Suns, sometimes $CPP names a directory.
3820 if test -n "$CPP" && test -d "$CPP"; then
3821 CPP=
3823 if test -z "$CPP"; then
3824 if test "${ac_cv_prog_CPP+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827 # Double quotes because CPP needs to be expanded
3828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3830 ac_preproc_ok=false
3831 for ac_c_preproc_warn_flag in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #ifdef __STDC__
3846 # include <limits.h>
3847 #else
3848 # include <assert.h>
3849 #endif
3850 Syntax error
3851 _ACEOF
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev/null; then
3860 if test -s conftest.err; then
3861 ac_cpp_err=$ac_c_preproc_warn_flag
3862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3863 else
3864 ac_cpp_err=
3866 else
3867 ac_cpp_err=yes
3869 if test -z "$ac_cpp_err"; then
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Broken: fails on valid input.
3876 continue
3878 rm -f conftest.err conftest.$ac_ext
3880 # OK, works on sane cases. Now check whether non-existent headers
3881 # can be detected and how.
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3904 else
3905 ac_cpp_err=yes
3907 if test -z "$ac_cpp_err"; then
3908 # Broken: success on invalid input.
3909 continue
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 # Passes both tests.
3915 ac_preproc_ok=:
3916 break
3918 rm -f conftest.err conftest.$ac_ext
3920 done
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.err conftest.$ac_ext
3923 if $ac_preproc_ok; then
3924 break
3927 done
3928 ac_cv_prog_CPP=$CPP
3931 CPP=$ac_cv_prog_CPP
3932 else
3933 ac_cv_prog_CPP=$CPP
3935 echo "$as_me:$LINENO: result: $CPP" >&5
3936 echo "${ECHO_T}$CPP" >&6
3937 ac_preproc_ok=false
3938 for ac_c_preproc_warn_flag in '' yes
3940 # Use a header file that comes with gcc, so configuring glibc
3941 # with a fresh cross-compiler works.
3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3943 # <limits.h> exists even on freestanding compilers.
3944 # On the NeXT, cc -E runs the code through the compiler's parser,
3945 # not just through cpp. "Syntax error" is here to catch this case.
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3957 Syntax error
3958 _ACEOF
3959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
3969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970 else
3971 ac_cpp_err=
3973 else
3974 ac_cpp_err=yes
3976 if test -z "$ac_cpp_err"; then
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Broken: fails on valid input.
3983 continue
3985 rm -f conftest.err conftest.$ac_ext
3987 # OK, works on sane cases. Now check whether non-existent headers
3988 # can be detected and how.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } >/dev/null; then
4005 if test -s conftest.err; then
4006 ac_cpp_err=$ac_c_preproc_warn_flag
4007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4008 else
4009 ac_cpp_err=
4011 else
4012 ac_cpp_err=yes
4014 if test -z "$ac_cpp_err"; then
4015 # Broken: success on invalid input.
4016 continue
4017 else
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4025 rm -f conftest.err conftest.$ac_ext
4027 done
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then
4032 else
4033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." >&5
4035 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details." >&2;}
4037 { (exit 1); exit 1; }; }
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4049 if test "${ac_cv_header_stdc+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <stdlib.h>
4059 #include <stdarg.h>
4060 #include <string.h>
4061 #include <float.h>
4064 main ()
4068 return 0;
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_header_stdc=yes
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_cv_header_stdc=no
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <string.h>
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4116 else
4117 ac_cv_header_stdc=no
4119 rm -f conftest*
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4137 else
4138 ac_cv_header_stdc=no
4140 rm -f conftest*
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h. */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <ctype.h>
4156 #if ((' ' & 0x0FF) == 0x020)
4157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4159 #else
4160 # define ISLOWER(c) \
4161 (('a' <= (c) && (c) <= 'i') \
4162 || ('j' <= (c) && (c) <= 'r') \
4163 || ('s' <= (c) && (c) <= 'z'))
4164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4165 #endif
4167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 main ()
4171 int i;
4172 for (i = 0; i < 256; i++)
4173 if (XOR (islower (i), ISLOWER (i))
4174 || toupper (i) != TOUPPER (i))
4175 exit(2);
4176 exit (0);
4178 _ACEOF
4179 rm -f conftest$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4191 else
4192 echo "$as_me: program exited with status $ac_status" >&5
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 ( exit $ac_status )
4197 ac_cv_header_stdc=no
4199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4204 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4205 if test $ac_cv_header_stdc = yes; then
4207 cat >>confdefs.h <<\_ACEOF
4208 #define STDC_HEADERS 1
4209 _ACEOF
4213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4224 inttypes.h stdint.h unistd.h
4226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4227 echo "$as_me:$LINENO: checking for $ac_header" >&5
4228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4240 #include <$ac_header>
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244 (eval $ac_compile) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag"
4252 || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 eval "$as_ac_Header=yes"
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 eval "$as_ac_Header=no"
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4276 cat >>confdefs.h <<_ACEOF
4277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4278 _ACEOF
4282 done
4286 for ac_header in dlfcn.h
4288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4297 else
4298 # Is the header compilable?
4299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4308 #include <$ac_header>
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312 (eval $ac_compile) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag"
4320 || test ! -s conftest.err'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_header_compiler=yes
4333 else
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 ac_header_compiler=no
4339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4341 echo "${ECHO_T}$ac_header_compiler" >&6
4343 # Is the header present?
4344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 #include <$ac_header>
4353 _ACEOF
4354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } >/dev/null; then
4362 if test -s conftest.err; then
4363 ac_cpp_err=$ac_c_preproc_warn_flag
4364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4365 else
4366 ac_cpp_err=
4368 else
4369 ac_cpp_err=yes
4371 if test -z "$ac_cpp_err"; then
4372 ac_header_preproc=yes
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 ac_header_preproc=no
4379 rm -f conftest.err conftest.$ac_ext
4380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4381 echo "${ECHO_T}$ac_header_preproc" >&6
4383 # So? What about this header?
4384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4385 yes:no: )
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4390 ac_header_preproc=yes
4392 no:yes:* )
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4406 cat <<\_ASBOX
4407 ## ------------------------------------------ ##
4408 ## Report this to the AC_PACKAGE_NAME lists. ##
4409 ## ------------------------------------------ ##
4410 _ASBOX
4412 sed "s/^/$as_me: WARNING: /" >&2
4414 esac
4415 echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 eval "$as_ac_Header=\$ac_header_preproc"
4422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429 _ACEOF
4433 done
4435 ac_ext=cc
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4440 if test -n "$ac_tool_prefix"; then
4441 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_prog_CXX+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 if test -n "$CXX"; then
4451 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4469 CXX=$ac_cv_prog_CXX
4470 if test -n "$CXX"; then
4471 echo "$as_me:$LINENO: result: $CXX" >&5
4472 echo "${ECHO_T}$CXX" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 test -n "$CXX" && break
4479 done
4481 if test -z "$CXX"; then
4482 ac_ct_CXX=$CXX
4483 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4485 # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -n "$ac_ct_CXX"; then
4493 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_ac_ct_CXX="$ac_prog"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4511 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4512 if test -n "$ac_ct_CXX"; then
4513 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4514 echo "${ECHO_T}$ac_ct_CXX" >&6
4515 else
4516 echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6
4520 test -n "$ac_ct_CXX" && break
4521 done
4522 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4524 CXX=$ac_ct_CXX
4528 # Provide some information about the compiler.
4529 echo "$as_me:$LINENO:" \
4530 "checking for C++ compiler version" >&5
4531 ac_compiler=`set X $ac_compile; echo $2`
4532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4533 (eval $ac_compiler --version </dev/null >&5) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }
4537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4538 (eval $ac_compiler -v </dev/null >&5) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4543 (eval $ac_compiler -V </dev/null >&5) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }
4548 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4549 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4550 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4561 main ()
4563 #ifndef __GNUC__
4564 choke me
4565 #endif
4568 return 0;
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_cxx_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_compiler_gnu=yes
4594 else
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_compiler_gnu=no
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4604 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4605 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4606 GXX=`test $ac_compiler_gnu = yes && echo yes`
4607 ac_test_CXXFLAGS=${CXXFLAGS+set}
4608 ac_save_CXXFLAGS=$CXXFLAGS
4609 CXXFLAGS="-g"
4610 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4612 if test "${ac_cv_prog_cxx_g+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4623 main ()
4627 return 0;
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try='test -z "$ac_cxx_werror_flag"
4640 || test ! -s conftest.err'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; } &&
4646 { ac_try='test -s conftest.$ac_objext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_cv_prog_cxx_g=yes
4653 else
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_prog_cxx_g=no
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4662 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4663 if test "$ac_test_CXXFLAGS" = set; then
4664 CXXFLAGS=$ac_save_CXXFLAGS
4665 elif test $ac_cv_prog_cxx_g = yes; then
4666 if test "$GXX" = yes; then
4667 CXXFLAGS="-g -O2"
4668 else
4669 CXXFLAGS="-g"
4671 else
4672 if test "$GXX" = yes; then
4673 CXXFLAGS="-O2"
4674 else
4675 CXXFLAGS=
4678 for ac_declaration in \
4679 '' \
4680 'extern "C" void std::exit (int) throw (); using std::exit;' \
4681 'extern "C" void std::exit (int); using std::exit;' \
4682 'extern "C" void exit (int) throw ();' \
4683 'extern "C" void exit (int);' \
4684 'void exit (int);'
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_declaration
4693 #include <stdlib.h>
4695 main ()
4697 exit (42);
4699 return 0;
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_cxx_werror_flag"
4712 || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 continue
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_declaration
4740 main ()
4742 exit (42);
4744 return 0;
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 break
4770 else
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 done
4777 rm -f conftest*
4778 if test -n "$ac_declaration"; then
4779 echo '#ifdef __cplusplus' >>confdefs.h
4780 echo $ac_declaration >>confdefs.h
4781 echo '#endif' >>confdefs.h
4784 ac_ext=cc
4785 ac_cpp='$CXXCPP $CPPFLAGS'
4786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 depcc="$CXX" am_compiler_list=
4792 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4793 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4794 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4798 # We make a subdir and do the tests there. Otherwise we can end up
4799 # making bogus files that we don't know about and never remove. For
4800 # instance it was reported that on HP-UX the gcc test will end up
4801 # making a dummy file named `D' -- because `-MD' means `put the output
4802 # in D'.
4803 mkdir conftest.dir
4804 # Copy depcomp to subdir because otherwise we won't find it if we're
4805 # using a relative directory.
4806 cp "$am_depcomp" conftest.dir
4807 cd conftest.dir
4808 # We will build objects and dependencies in a subdirectory because
4809 # it helps to detect inapplicable dependency modes. For instance
4810 # both Tru64's cc and ICC support -MD to output dependencies as a
4811 # side effect of compilation, but ICC will put the dependencies in
4812 # the current directory while Tru64 will put them in the object
4813 # directory.
4814 mkdir sub
4816 am_cv_CXX_dependencies_compiler_type=none
4817 if test "$am_compiler_list" = ""; then
4818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4820 for depmode in $am_compiler_list; do
4821 # Setup a source with many dependencies, because some compilers
4822 # like to wrap large dependency lists on column 80 (with \), and
4823 # we should not choose a depcomp mode which is confused by this.
4825 # We need to recreate these files for each test, as the compiler may
4826 # overwrite some of them when testing with obscure command lines.
4827 # This happens at least with the AIX C compiler.
4828 : > sub/conftest.c
4829 for i in 1 2 3 4 5 6; do
4830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4832 # Solaris 8's {/usr,}/bin/sh.
4833 touch sub/conftst$i.h
4834 done
4835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4837 case $depmode in
4838 nosideeffect)
4839 # after this tag, mechanisms are not by side-effect, so they'll
4840 # only be used when explicitly requested
4841 if test "x$enable_dependency_tracking" = xyes; then
4842 continue
4843 else
4844 break
4847 none) break ;;
4848 esac
4849 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4850 # mode. It turns out that the SunPro C++ compiler does not properly
4851 # handle `-M -o', and we need to detect this.
4852 if depmode=$depmode \
4853 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4855 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4856 >/dev/null 2>conftest.err &&
4857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4858 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4860 # icc doesn't choke on unknown options, it will just issue warnings
4861 # or remarks (even with -Werror). So we grep stderr for any message
4862 # that says an option was ignored or not supported.
4863 # When given -MP, icc 7.0 and 7.1 complain thusly:
4864 # icc: Command line warning: ignoring option '-M'; no argument required
4865 # The diagnosis changed in icc 8.0:
4866 # icc: Command line remark: option '-MP' not supported
4867 if (grep 'ignoring option' conftest.err ||
4868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4869 am_cv_CXX_dependencies_compiler_type=$depmode
4870 break
4873 done
4875 cd ..
4876 rm -rf conftest.dir
4877 else
4878 am_cv_CXX_dependencies_compiler_type=none
4882 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4883 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4884 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4889 test "x$enable_dependency_tracking" != xno \
4890 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4891 am__fastdepCXX_TRUE=
4892 am__fastdepCXX_FALSE='#'
4893 else
4894 am__fastdepCXX_TRUE='#'
4895 am__fastdepCXX_FALSE=
4901 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4902 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4903 (test "X$CXX" != "Xg++"))) ; then
4904 ac_ext=cc
4905 ac_cpp='$CXXCPP $CPPFLAGS'
4906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4910 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4911 if test -z "$CXXCPP"; then
4912 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 # Double quotes because CXXCPP needs to be expanded
4916 for CXXCPP in "$CXX -E" "/lib/cpp"
4918 ac_preproc_ok=false
4919 for ac_cxx_preproc_warn_flag in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #ifdef __STDC__
4934 # include <limits.h>
4935 #else
4936 # include <assert.h>
4937 #endif
4938 Syntax error
4939 _ACEOF
4940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_cxx_preproc_warn_flag
4950 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4951 else
4952 ac_cpp_err=
4954 else
4955 ac_cpp_err=yes
4957 if test -z "$ac_cpp_err"; then
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 # Broken: fails on valid input.
4964 continue
4966 rm -f conftest.err conftest.$ac_ext
4968 # OK, works on sane cases. Now check whether non-existent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } >/dev/null; then
4986 if test -s conftest.err; then
4987 ac_cpp_err=$ac_cxx_preproc_warn_flag
4988 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989 else
4990 ac_cpp_err=
4992 else
4993 ac_cpp_err=yes
4995 if test -z "$ac_cpp_err"; then
4996 # Broken: success on invalid input.
4997 continue
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 # Passes both tests.
5003 ac_preproc_ok=:
5004 break
5006 rm -f conftest.err conftest.$ac_ext
5008 done
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.$ac_ext
5011 if $ac_preproc_ok; then
5012 break
5015 done
5016 ac_cv_prog_CXXCPP=$CXXCPP
5019 CXXCPP=$ac_cv_prog_CXXCPP
5020 else
5021 ac_cv_prog_CXXCPP=$CXXCPP
5023 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5024 echo "${ECHO_T}$CXXCPP" >&6
5025 ac_preproc_ok=false
5026 for ac_cxx_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_cxx_preproc_warn_flag
5057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058 else
5059 ac_cpp_err=
5061 else
5062 ac_cpp_err=yes
5064 if test -z "$ac_cpp_err"; then
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 # Broken: fails on valid input.
5071 continue
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether non-existent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } >/dev/null; then
5093 if test -s conftest.err; then
5094 ac_cpp_err=$ac_cxx_preproc_warn_flag
5095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096 else
5097 ac_cpp_err=
5099 else
5100 ac_cpp_err=yes
5102 if test -z "$ac_cpp_err"; then
5103 # Broken: success on invalid input.
5104 continue
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5113 rm -f conftest.err conftest.$ac_ext
5115 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then
5120 else
5121 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5128 ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137 ac_ext=f
5138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5141 if test -n "$ac_tool_prefix"; then
5142 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_F77+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 if test -n "$F77"; then
5152 ac_cv_prog_F77="$F77" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5170 F77=$ac_cv_prog_F77
5171 if test -n "$F77"; then
5172 echo "$as_me:$LINENO: result: $F77" >&5
5173 echo "${ECHO_T}$F77" >&6
5174 else
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 test -n "$F77" && break
5180 done
5182 if test -z "$F77"; then
5183 ac_ct_F77=$F77
5184 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 if test -n "$ac_ct_F77"; then
5194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_F77="$ac_prog"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5213 if test -n "$ac_ct_F77"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5215 echo "${ECHO_T}$ac_ct_F77" >&6
5216 else
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 test -n "$ac_ct_F77" && break
5222 done
5224 F77=$ac_ct_F77
5228 # Provide some information about the compiler.
5229 echo "$as_me:5229:" \
5230 "checking for Fortran 77 compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233 (eval $ac_compiler --version </dev/null >&5) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5238 (eval $ac_compiler -v </dev/null >&5) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5243 (eval $ac_compiler -V </dev/null >&5) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5247 rm -f a.out
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file. (Note that this only needs to work for GNU compilers.)
5251 ac_save_ext=$ac_ext
5252 ac_ext=F
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 program main
5260 #ifndef __GNUC__
5261 choke me
5262 #endif
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_f77_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_compiler_gnu=yes
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_compiler_gnu=no
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301 ac_ext=$ac_save_ext
5302 ac_test_FFLAGS=${FFLAGS+set}
5303 ac_save_FFLAGS=$FFLAGS
5304 FFLAGS=
5305 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5306 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5307 if test "${ac_cv_prog_f77_g+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 FFLAGS=-g
5311 cat >conftest.$ac_ext <<_ACEOF
5312 program main
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_f77_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_prog_f77_g=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_cv_prog_f77_g=no
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350 if test "$ac_test_FFLAGS" = set; then
5351 FFLAGS=$ac_save_FFLAGS
5352 elif test $ac_cv_prog_f77_g = yes; then
5353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5354 FFLAGS="-g -O2"
5355 else
5356 FFLAGS="-g"
5358 else
5359 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5360 FFLAGS="-O2"
5361 else
5362 FFLAGS=
5366 G77=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_ext=c
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5384 teststring="ABCD"
5386 case $build_os in
5387 msdosdjgpp*)
5388 # On DJGPP, this test can blow up pretty badly due to problems in libc
5389 # (any single argument exceeding 2000 bytes causes a buffer overrun
5390 # during glob expansion). Even if it were fixed, the result of this
5391 # check would be larger than it should be.
5392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5395 gnu*)
5396 # Under GNU Hurd, this test is not required because there is
5397 # no limit to the length of command line arguments.
5398 # Libtool will interpret -1 as no limit whatsoever
5399 lt_cv_sys_max_cmd_len=-1;
5402 cygwin* | mingw*)
5403 # On Win9x/ME, this test blows up -- it succeeds, but takes
5404 # about 5 minutes as the teststring grows exponentially.
5405 # Worse, since 9x/ME are not pre-emptively multitasking,
5406 # you end up with a "frozen" computer, even though with patience
5407 # the test eventually succeeds (with a max line length of 256k).
5408 # Instead, let's just punt: use the minimum linelength reported by
5409 # all of the supported platforms: 8192 (on NT/2K/XP).
5410 lt_cv_sys_max_cmd_len=8192;
5413 amigaos*)
5414 # On AmigaOS with pdksh, this test takes hours, literally.
5415 # So we just punt and use a minimum line length of 8192.
5416 lt_cv_sys_max_cmd_len=8192;
5419 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5420 # This has been around since 386BSD, at least. Likely further.
5421 if test -x /sbin/sysctl; then
5422 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5423 elif test -x /usr/sbin/sysctl; then
5424 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5425 else
5426 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5428 # And add a safety zone
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5431 osf*)
5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434 # nice to cause kernel panics so lets avoid the loop below.
5435 # First set a reasonable default.
5436 lt_cv_sys_max_cmd_len=16384
5438 if test -x /sbin/sysconfig; then
5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5441 esac
5445 # If test is not a shell built-in, we'll probably end up computing a
5446 # maximum length that is only half of the actual maximum length, but
5447 # we can't tell.
5448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5449 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5450 = "XX$teststring") >/dev/null 2>&1 &&
5451 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5452 lt_cv_sys_max_cmd_len=$new_result &&
5453 test $i != 17 # 1/2 MB should be enough
5455 i=`expr $i + 1`
5456 teststring=$teststring$teststring
5457 done
5458 teststring=
5459 # Add a significant safety factor because C++ compilers can tack on massive
5460 # amounts of additional arguments before passing them to the linker.
5461 # It appears as though 1/2 is a usable value.
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5464 esac
5468 if test -n $lt_cv_sys_max_cmd_len ; then
5469 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5470 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5471 else
5472 echo "$as_me:$LINENO: result: none" >&5
5473 echo "${ECHO_T}none" >&6
5479 # Check for command to grab the raw symbol name followed by C symbol from nm.
5480 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5486 # These are sane defaults that work on at least a few old systems.
5487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5489 # Character class describing NM global symbol codes.
5490 symcode='[BCDEGRST]'
5492 # Regexp to match symbols that can be accessed directly from C.
5493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5495 # Transform an extracted symbol line into a proper C declaration
5496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5498 # Transform an extracted symbol line into symbol name and symbol address
5499 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'"
5501 # Define system-specific variables.
5502 case $host_os in
5503 aix*)
5504 symcode='[BCDT]'
5506 cygwin* | mingw* | pw32*)
5507 symcode='[ABCDGISTW]'
5509 hpux*) # Its linker distinguishes data from code symbols
5510 if test "$host_cpu" = ia64; then
5511 symcode='[ABCDEGRST]'
5513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5514 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'"
5516 linux*)
5517 if test "$host_cpu" = ia64; then
5518 symcode='[ABCDGIRSTW]'
5519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5520 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'"
5523 irix* | nonstopux*)
5524 symcode='[BCDEGRST]'
5526 osf*)
5527 symcode='[BCDEGQRST]'
5529 solaris* | sysv5*)
5530 symcode='[BDRT]'
5532 sysv4)
5533 symcode='[DFNSTU]'
5535 esac
5537 # Handle CRLF in mingw tool chain
5538 opt_cr=
5539 case $build_os in
5540 mingw*)
5541 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5543 esac
5545 # If we're using GNU nm, then use its standard symbol codes.
5546 case `$NM -V 2>&1` in
5547 *GNU* | *'with BFD'*)
5548 symcode='[ABCDGIRSTW]' ;;
5549 esac
5551 # Try without a prefix undercore, then with it.
5552 for ac_symprfx in "" "_"; do
5554 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5555 symxfrm="\\1 $ac_symprfx\\2 \\2"
5557 # Write the raw and C identifiers.
5558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5560 # Check to see that the pipe works correctly.
5561 pipe_works=no
5563 rm -f conftest*
5564 cat > conftest.$ac_ext <<EOF
5565 #ifdef __cplusplus
5566 extern "C" {
5567 #endif
5568 char nm_test_var;
5569 void nm_test_func(){}
5570 #ifdef __cplusplus
5572 #endif
5573 int main(){nm_test_var='a';nm_test_func();return(0);}
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5581 # Now try to grab the symbols.
5582 nlist=conftest.nm
5583 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5584 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && test -s "$nlist"; then
5588 # Try sorting and uniquifying the output.
5589 if sort "$nlist" | uniq > "$nlist"T; then
5590 mv -f "$nlist"T "$nlist"
5591 else
5592 rm -f "$nlist"T
5595 # Make sure that we snagged all the symbols we need.
5596 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5597 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5598 cat <<EOF > conftest.$ac_ext
5599 #ifdef __cplusplus
5600 extern "C" {
5601 #endif
5604 # Now generate the symbol file.
5605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5607 cat <<EOF >> conftest.$ac_ext
5608 #if defined (__STDC__) && __STDC__
5609 # define lt_ptr_t void *
5610 #else
5611 # define lt_ptr_t char *
5612 # define const
5613 #endif
5615 /* The mapping between symbol names and symbols. */
5616 const struct {
5617 const char *name;
5618 lt_ptr_t address;
5620 lt_preloaded_symbols[] =
5623 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5624 cat <<\EOF >> conftest.$ac_ext
5625 {0, (lt_ptr_t) 0}
5628 #ifdef __cplusplus
5630 #endif
5632 # Now try linking the two files.
5633 mv conftest.$ac_objext conftstm.$ac_objext
5634 lt_save_LIBS="$LIBS"
5635 lt_save_CFLAGS="$CFLAGS"
5636 LIBS="conftstm.$ac_objext"
5637 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5643 pipe_works=yes
5645 LIBS="$lt_save_LIBS"
5646 CFLAGS="$lt_save_CFLAGS"
5647 else
5648 echo "cannot find nm_test_func in $nlist" >&5
5650 else
5651 echo "cannot find nm_test_var in $nlist" >&5
5653 else
5654 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5656 else
5657 echo "$progname: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 rm -f conftest* conftst*
5662 # Do not use the global_symbol_pipe unless it works.
5663 if test "$pipe_works" = yes; then
5664 break
5665 else
5666 lt_cv_sys_global_symbol_pipe=
5668 done
5672 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5673 lt_cv_sys_global_symbol_to_cdecl=
5675 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5676 echo "$as_me:$LINENO: result: failed" >&5
5677 echo "${ECHO_T}failed" >&6
5678 else
5679 echo "$as_me:$LINENO: result: ok" >&5
5680 echo "${ECHO_T}ok" >&6
5683 echo "$as_me:$LINENO: checking for objdir" >&5
5684 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5685 if test "${lt_cv_objdir+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 rm -f .libs 2>/dev/null
5689 mkdir .libs 2>/dev/null
5690 if test -d .libs; then
5691 lt_cv_objdir=.libs
5692 else
5693 # MS-DOS does not allow filenames that begin with a dot.
5694 lt_cv_objdir=_libs
5696 rmdir .libs 2>/dev/null
5698 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5699 echo "${ECHO_T}$lt_cv_objdir" >&6
5700 objdir=$lt_cv_objdir
5706 case $host_os in
5707 aix3*)
5708 # AIX sometimes has problems with the GCC collect2 program. For some
5709 # reason, if we set the COLLECT_NAMES environment variable, the problems
5710 # vanish in a puff of smoke.
5711 if test "X${COLLECT_NAMES+set}" != Xset; then
5712 COLLECT_NAMES=
5713 export COLLECT_NAMES
5716 esac
5718 # Sed substitution that helps us do robust quoting. It backslashifies
5719 # metacharacters that are still active within double-quoted strings.
5720 Xsed='sed -e s/^X//'
5721 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5723 # Same as above, but do not quote variable references.
5724 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5726 # Sed substitution to delay expansion of an escaped shell variable in a
5727 # double_quote_subst'ed string.
5728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5730 # Sed substitution to avoid accidental globbing in evaled expressions
5731 no_glob_subst='s/\*/\\\*/g'
5733 # Constants:
5734 rm="rm -f"
5736 # Global variables:
5737 default_ofile=libtool
5738 can_build_shared=yes
5740 # All known linkers require a `.a' archive for static linking (except M$VC,
5741 # which needs '.lib').
5742 libext=a
5743 ltmain="$ac_aux_dir/ltmain.sh"
5744 ofile="$default_ofile"
5745 with_gnu_ld="$lt_cv_prog_gnu_ld"
5747 if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5749 set dummy ${ac_tool_prefix}ar; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_prog_AR+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 if test -n "$AR"; then
5756 ac_cv_prog_AR="$AR" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_AR="${ac_tool_prefix}ar"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5769 done
5770 done
5774 AR=$ac_cv_prog_AR
5775 if test -n "$AR"; then
5776 echo "$as_me:$LINENO: result: $AR" >&5
5777 echo "${ECHO_T}$AR" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5784 if test -z "$ac_cv_prog_AR"; then
5785 ac_ct_AR=$AR
5786 # Extract the first word of "ar", so it can be a program name with args.
5787 set dummy ar; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 if test -n "$ac_ct_AR"; then
5794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_ac_ct_AR="ar"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5810 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5814 if test -n "$ac_ct_AR"; then
5815 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5816 echo "${ECHO_T}$ac_ct_AR" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5822 AR=$ac_ct_AR
5823 else
5824 AR="$ac_cv_prog_AR"
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_RANLIB+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 if test -n "$RANLIB"; then
5836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5854 RANLIB=$ac_cv_prog_RANLIB
5855 if test -n "$RANLIB"; then
5856 echo "$as_me:$LINENO: result: $RANLIB" >&5
5857 echo "${ECHO_T}$RANLIB" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5864 if test -z "$ac_cv_prog_RANLIB"; then
5865 ac_ct_RANLIB=$RANLIB
5866 # Extract the first word of "ranlib", so it can be a program name with args.
5867 set dummy ranlib; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 if test -n "$ac_ct_RANLIB"; then
5874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_ac_ct_RANLIB="ranlib"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5887 done
5888 done
5890 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5894 if test -n "$ac_ct_RANLIB"; then
5895 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5896 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5897 else
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5902 RANLIB=$ac_ct_RANLIB
5903 else
5904 RANLIB="$ac_cv_prog_RANLIB"
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}strip; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_prog_STRIP+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 if test -n "$STRIP"; then
5916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5934 STRIP=$ac_cv_prog_STRIP
5935 if test -n "$STRIP"; then
5936 echo "$as_me:$LINENO: result: $STRIP" >&5
5937 echo "${ECHO_T}$STRIP" >&6
5938 else
5939 echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5944 if test -z "$ac_cv_prog_STRIP"; then
5945 ac_ct_STRIP=$STRIP
5946 # Extract the first word of "strip", so it can be a program name with args.
5947 set dummy strip; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test -n "$ac_ct_STRIP"; then
5954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_STRIP="strip"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5967 done
5968 done
5970 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5974 if test -n "$ac_ct_STRIP"; then
5975 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5976 echo "${ECHO_T}$ac_ct_STRIP" >&6
5977 else
5978 echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6
5982 STRIP=$ac_ct_STRIP
5983 else
5984 STRIP="$ac_cv_prog_STRIP"
5988 old_CC="$CC"
5989 old_CFLAGS="$CFLAGS"
5991 # Set sane defaults for various variables
5992 test -z "$AR" && AR=ar
5993 test -z "$AR_FLAGS" && AR_FLAGS=cru
5994 test -z "$AS" && AS=as
5995 test -z "$CC" && CC=cc
5996 test -z "$LTCC" && LTCC=$CC
5997 test -z "$DLLTOOL" && DLLTOOL=dlltool
5998 test -z "$LD" && LD=ld
5999 test -z "$LN_S" && LN_S="ln -s"
6000 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6001 test -z "$NM" && NM=nm
6002 test -z "$SED" && SED=sed
6003 test -z "$OBJDUMP" && OBJDUMP=objdump
6004 test -z "$RANLIB" && RANLIB=:
6005 test -z "$STRIP" && STRIP=:
6006 test -z "$ac_objext" && ac_objext=o
6008 # Determine commands to create old-style static archives.
6009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6010 old_postinstall_cmds='chmod 644 $oldlib'
6011 old_postuninstall_cmds=
6013 if test -n "$RANLIB"; then
6014 case $host_os in
6015 openbsd*)
6016 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6019 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6021 esac
6022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6025 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6027 # Only perform the check for file, if the check method requires it
6028 case $deplibs_check_method in
6029 file_magic*)
6030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6031 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6032 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6033 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 case $MAGIC_CMD in
6037 [\\/*] | ?:[\\/]*)
6038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6041 lt_save_MAGIC_CMD="$MAGIC_CMD"
6042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6044 for ac_dir in $ac_dummy; do
6045 IFS="$lt_save_ifs"
6046 test -z "$ac_dir" && ac_dir=.
6047 if test -f $ac_dir/${ac_tool_prefix}file; then
6048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6049 if test -n "$file_magic_test_file"; then
6050 case $deplibs_check_method in
6051 "file_magic "*)
6052 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6055 $EGREP "$file_magic_regex" > /dev/null; then
6057 else
6058 cat <<EOF 1>&2
6060 *** Warning: the command libtool uses to detect shared libraries,
6061 *** $file_magic_cmd, produces output that libtool cannot recognize.
6062 *** The result is that libtool may fail to recognize shared libraries
6063 *** as such. This will affect the creation of libtool libraries that
6064 *** depend on shared libraries, but programs linked with such libtool
6065 *** libraries will work regardless of this problem. Nevertheless, you
6066 *** may want to report the problem to your system manager and/or to
6067 *** bug-libtool@gnu.org
6070 fi ;;
6071 esac
6073 break
6075 done
6076 IFS="$lt_save_ifs"
6077 MAGIC_CMD="$lt_save_MAGIC_CMD"
6079 esac
6082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6083 if test -n "$MAGIC_CMD"; then
6084 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6085 echo "${ECHO_T}$MAGIC_CMD" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6091 if test -z "$lt_cv_path_MAGIC_CMD"; then
6092 if test -n "$ac_tool_prefix"; then
6093 echo "$as_me:$LINENO: checking for file" >&5
6094 echo $ECHO_N "checking for file... $ECHO_C" >&6
6095 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 case $MAGIC_CMD in
6099 [\\/*] | ?:[\\/]*)
6100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6103 lt_save_MAGIC_CMD="$MAGIC_CMD"
6104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6106 for ac_dir in $ac_dummy; do
6107 IFS="$lt_save_ifs"
6108 test -z "$ac_dir" && ac_dir=.
6109 if test -f $ac_dir/file; then
6110 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6111 if test -n "$file_magic_test_file"; then
6112 case $deplibs_check_method in
6113 "file_magic "*)
6114 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6117 $EGREP "$file_magic_regex" > /dev/null; then
6119 else
6120 cat <<EOF 1>&2
6122 *** Warning: the command libtool uses to detect shared libraries,
6123 *** $file_magic_cmd, produces output that libtool cannot recognize.
6124 *** The result is that libtool may fail to recognize shared libraries
6125 *** as such. This will affect the creation of libtool libraries that
6126 *** depend on shared libraries, but programs linked with such libtool
6127 *** libraries will work regardless of this problem. Nevertheless, you
6128 *** may want to report the problem to your system manager and/or to
6129 *** bug-libtool@gnu.org
6132 fi ;;
6133 esac
6135 break
6137 done
6138 IFS="$lt_save_ifs"
6139 MAGIC_CMD="$lt_save_MAGIC_CMD"
6141 esac
6144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6145 if test -n "$MAGIC_CMD"; then
6146 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6147 echo "${ECHO_T}$MAGIC_CMD" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6
6153 else
6154 MAGIC_CMD=:
6160 esac
6162 enable_dlopen=no
6163 enable_win32_dll=no
6165 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6166 if test "${enable_libtool_lock+set}" = set; then
6167 enableval="$enable_libtool_lock"
6170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6173 # Check whether --with-pic or --without-pic was given.
6174 if test "${with_pic+set}" = set; then
6175 withval="$with_pic"
6176 pic_mode="$withval"
6177 else
6178 pic_mode=default
6180 test -z "$pic_mode" && pic_mode=default
6182 # Use C for the default configuration in the libtool script
6183 tagname=
6184 lt_save_CC="$CC"
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192 # Source file extension for C test sources.
6193 ac_ext=c
6195 # Object file extension for compiled C test sources.
6196 objext=o
6197 objext=$objext
6199 # Code to be used in simple compile tests
6200 lt_simple_compile_test_code="int some_variable = 0;\n"
6202 # Code to be used in simple link tests
6203 lt_simple_link_test_code='int main(){return(0);}\n'
6206 # If no C compiler was specified, use CC.
6207 LTCC=${LTCC-"$CC"}
6209 # Allow CC to be a program name with arguments.
6210 compiler=$CC
6214 # Check for any special shared library compilation flags.
6216 lt_prog_cc_shlib=
6217 if test "$GCC" = no; then
6218 case $host_os in
6219 sco3.2v5*)
6220 lt_prog_cc_shlib='-belf'
6222 esac
6224 if test -n "$lt_prog_cc_shlib"; then
6225 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6226 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6227 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6228 else
6229 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6230 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6231 lt_cv_prog_cc_can_build_shared=no
6237 # Check to make sure the static flag actually works.
6239 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6240 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6241 if test "${lt_prog_compiler_static_works+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 lt_prog_compiler_static_works=no
6245 save_LDFLAGS="$LDFLAGS"
6246 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6247 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6249 # The compiler can only warn and ignore the option if not recognized
6250 # So say no if there are warnings
6251 if test -s conftest.err; then
6252 # Append any errors to the config.log.
6253 cat conftest.err 1>&5
6254 else
6255 lt_prog_compiler_static_works=yes
6258 $rm conftest*
6259 LDFLAGS="$save_LDFLAGS"
6262 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6263 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6265 if test x"$lt_prog_compiler_static_works" = xyes; then
6267 else
6268 lt_prog_compiler_static=
6274 lt_prog_compiler_no_builtin_flag=
6276 if test "$GCC" = yes; then
6277 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6280 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6281 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6282 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 lt_cv_prog_compiler_rtti_exceptions=no
6286 ac_outfile=conftest.$ac_objext
6287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6288 lt_compiler_flag="-fno-rtti -fno-exceptions"
6289 # Insert the option either (1) after the last *FLAGS variable, or
6290 # (2) before a word containing "conftest.", or (3) at the end.
6291 # Note that $ac_compile itself does not contain backslashes and begins
6292 # with a dollar sign (not a hyphen), so the echo should work correctly.
6293 # The option is referenced via a variable to avoid confusing sed.
6294 lt_compile=`echo "$ac_compile" | $SED \
6295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6297 -e 's:$: $lt_compiler_flag:'`
6298 (eval echo "\"\$as_me:6298: $lt_compile\"" >&5)
6299 (eval "$lt_compile" 2>conftest.err)
6300 ac_status=$?
6301 cat conftest.err >&5
6302 echo "$as_me:6302: \$? = $ac_status" >&5
6303 if (exit $ac_status) && test -s "$ac_outfile"; then
6304 # The compiler can only warn and ignore the option if not recognized
6305 # So say no if there are warnings
6306 if test ! -s conftest.err; then
6307 lt_cv_prog_compiler_rtti_exceptions=yes
6310 $rm conftest*
6313 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6314 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6318 else
6324 lt_prog_compiler_wl=
6325 lt_prog_compiler_pic=
6326 lt_prog_compiler_static=
6328 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6331 if test "$GCC" = yes; then
6332 lt_prog_compiler_wl='-Wl,'
6333 lt_prog_compiler_static='-static'
6335 case $host_os in
6336 aix*)
6337 # All AIX code is PIC.
6338 if test "$host_cpu" = ia64; then
6339 # AIX 5 now supports IA64 processor
6340 lt_prog_compiler_static='-Bstatic'
6344 amigaos*)
6345 # FIXME: we need at least 68020 code to build shared libraries, but
6346 # adding the `-m68020' flag to GCC prevents building anything better,
6347 # like `-m68040'.
6348 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6351 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6352 # PIC is the default for these OSes.
6355 mingw* | pw32* | os2*)
6356 # This hack is so that the source file can tell whether it is being
6357 # built for inclusion in a dll (and should export symbols for example).
6358 lt_prog_compiler_pic='-DDLL_EXPORT'
6361 darwin* | rhapsody*)
6362 # PIC is the default on this platform
6363 # Common symbols not allowed in MH_DYLIB files
6364 lt_prog_compiler_pic='-fno-common'
6367 msdosdjgpp*)
6368 # Just because we use GCC doesn't mean we suddenly get shared libraries
6369 # on systems that don't support them.
6370 lt_prog_compiler_can_build_shared=no
6371 enable_shared=no
6374 sysv4*MP*)
6375 if test -d /usr/nec; then
6376 lt_prog_compiler_pic=-Kconform_pic
6380 hpux*)
6381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382 # not for PA HP-UX.
6383 case "$host_cpu" in
6384 hppa*64*|ia64*)
6385 # +Z the default
6388 lt_prog_compiler_pic='-fPIC'
6390 esac
6394 lt_prog_compiler_pic='-fPIC'
6396 esac
6397 else
6398 # PORTME Check for flag to pass linker flags through the system compiler.
6399 case $host_os in
6400 aix*)
6401 lt_prog_compiler_wl='-Wl,'
6402 if test "$host_cpu" = ia64; then
6403 # AIX 5 now supports IA64 processor
6404 lt_prog_compiler_static='-Bstatic'
6405 else
6406 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6409 darwin*)
6410 # PIC is the default on this platform
6411 # Common symbols not allowed in MH_DYLIB files
6412 case "$cc_basename" in
6413 xlc*)
6414 lt_prog_compiler_pic='-qnocommon'
6415 lt_prog_compiler_wl='-Wl,'
6417 esac
6420 mingw* | pw32* | os2*)
6421 # This hack is so that the source file can tell whether it is being
6422 # built for inclusion in a dll (and should export symbols for example).
6423 lt_prog_compiler_pic='-DDLL_EXPORT'
6426 hpux9* | hpux10* | hpux11*)
6427 lt_prog_compiler_wl='-Wl,'
6428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6429 # not for PA HP-UX.
6430 case "$host_cpu" in
6431 hppa*64*|ia64*)
6432 # +Z the default
6435 lt_prog_compiler_pic='+Z'
6437 esac
6438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6439 lt_prog_compiler_static='${wl}-a ${wl}archive'
6442 irix5* | irix6* | nonstopux*)
6443 lt_prog_compiler_wl='-Wl,'
6444 # PIC (with -KPIC) is the default.
6445 lt_prog_compiler_static='-non_shared'
6448 newsos6)
6449 lt_prog_compiler_pic='-KPIC'
6450 lt_prog_compiler_static='-Bstatic'
6453 linux*)
6454 case $cc_basename in
6455 icc* | ecc*)
6456 lt_prog_compiler_wl='-Wl,'
6457 lt_prog_compiler_pic='-KPIC'
6458 lt_prog_compiler_static='-static'
6460 pgcc | pgf77 | pgf90)
6461 # Portland Group compilers (*not* the Pentium gcc compiler,
6462 # which looks to be a dead project)
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_pic='-fpic'
6465 lt_prog_compiler_static='-static'
6467 ccc*)
6468 lt_prog_compiler_wl='-Wl,'
6469 # All Alpha code is PIC.
6470 lt_prog_compiler_static='-non_shared'
6472 como)
6473 lt_prog_compiler_wl='-lopt='
6475 esac
6478 osf3* | osf4* | osf5*)
6479 lt_prog_compiler_wl='-Wl,'
6480 # All OSF/1 code is PIC.
6481 lt_prog_compiler_static='-non_shared'
6484 sco3.2v5*)
6485 lt_prog_compiler_pic='-Kpic'
6486 lt_prog_compiler_static='-dn'
6489 solaris*)
6490 lt_prog_compiler_wl='-Wl,'
6491 lt_prog_compiler_pic='-KPIC'
6492 lt_prog_compiler_static='-Bstatic'
6495 sunos4*)
6496 lt_prog_compiler_wl='-Qoption ld '
6497 lt_prog_compiler_pic='-PIC'
6498 lt_prog_compiler_static='-Bstatic'
6501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_pic='-KPIC'
6504 lt_prog_compiler_static='-Bstatic'
6507 sysv4*MP*)
6508 if test -d /usr/nec ;then
6509 lt_prog_compiler_pic='-Kconform_pic'
6510 lt_prog_compiler_static='-Bstatic'
6514 unicos*)
6515 lt_prog_compiler_wl='-Wl,'
6516 lt_prog_compiler_can_build_shared=no
6519 uts4*)
6520 lt_prog_compiler_pic='-pic'
6521 lt_prog_compiler_static='-Bstatic'
6525 lt_prog_compiler_can_build_shared=no
6527 esac
6530 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6531 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6534 # Check to make sure the PIC flag actually works.
6536 if test -n "$lt_prog_compiler_pic"; then
6538 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6539 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6540 if test "${lt_prog_compiler_pic_works+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 lt_prog_compiler_pic_works=no
6544 ac_outfile=conftest.$ac_objext
6545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6546 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6547 # Insert the option either (1) after the last *FLAGS variable, or
6548 # (2) before a word containing "conftest.", or (3) at the end.
6549 # Note that $ac_compile itself does not contain backslashes and begins
6550 # with a dollar sign (not a hyphen), so the echo should work correctly.
6551 # The option is referenced via a variable to avoid confusing sed.
6552 lt_compile=`echo "$ac_compile" | $SED \
6553 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6555 -e 's:$: $lt_compiler_flag:'`
6556 (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
6557 (eval "$lt_compile" 2>conftest.err)
6558 ac_status=$?
6559 cat conftest.err >&5
6560 echo "$as_me:6560: \$? = $ac_status" >&5
6561 if (exit $ac_status) && test -s "$ac_outfile"; then
6562 # The compiler can only warn and ignore the option if not recognized
6563 # So say no if there are warnings
6564 if test ! -s conftest.err; then
6565 lt_prog_compiler_pic_works=yes
6568 $rm conftest*
6571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6572 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6574 if test x"$lt_prog_compiler_pic_works" = xyes; then
6575 case $lt_prog_compiler_pic in
6576 "" | " "*) ;;
6577 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6578 esac
6579 else
6580 lt_prog_compiler_pic=
6581 lt_prog_compiler_can_build_shared=no
6585 case "$host_os" in
6586 # For platforms which do not support PIC, -DPIC is meaningless:
6587 *djgpp*)
6588 lt_prog_compiler_pic=
6591 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6593 esac
6595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 lt_cv_prog_compiler_c_o=no
6601 $rm -r conftest 2>/dev/null
6602 mkdir conftest
6603 cd conftest
6604 mkdir out
6605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6607 lt_compiler_flag="-o out/conftest2.$ac_objext"
6608 # Insert the option either (1) after the last *FLAGS variable, or
6609 # (2) before a word containing "conftest.", or (3) at the end.
6610 # Note that $ac_compile itself does not contain backslashes and begins
6611 # with a dollar sign (not a hyphen), so the echo should work correctly.
6612 lt_compile=`echo "$ac_compile" | $SED \
6613 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6615 -e 's:$: $lt_compiler_flag:'`
6616 (eval echo "\"\$as_me:6616: $lt_compile\"" >&5)
6617 (eval "$lt_compile" 2>out/conftest.err)
6618 ac_status=$?
6619 cat out/conftest.err >&5
6620 echo "$as_me:6620: \$? = $ac_status" >&5
6621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6622 then
6623 # The compiler can only warn and ignore the option if not recognized
6624 # So say no if there are warnings
6625 if test ! -s out/conftest.err; then
6626 lt_cv_prog_compiler_c_o=yes
6629 chmod u+w .
6630 $rm conftest*
6631 # SGI C++ compiler will create directory out/ii_files/ for
6632 # template instantiation
6633 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6634 $rm out/* && rmdir out
6635 cd ..
6636 rmdir conftest
6637 $rm conftest*
6640 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6641 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6644 hard_links="nottested"
6645 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6646 # do not overwrite the value of need_locks provided by the user
6647 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6648 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6649 hard_links=yes
6650 $rm conftest*
6651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6652 touch conftest.a
6653 ln conftest.a conftest.b 2>&5 || hard_links=no
6654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6655 echo "$as_me:$LINENO: result: $hard_links" >&5
6656 echo "${ECHO_T}$hard_links" >&6
6657 if test "$hard_links" = no; then
6658 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6659 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6660 need_locks=warn
6662 else
6663 need_locks=no
6666 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6667 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6669 runpath_var=
6670 allow_undefined_flag=
6671 enable_shared_with_static_runtimes=no
6672 archive_cmds=
6673 archive_expsym_cmds=
6674 old_archive_From_new_cmds=
6675 old_archive_from_expsyms_cmds=
6676 export_dynamic_flag_spec=
6677 whole_archive_flag_spec=
6678 thread_safe_flag_spec=
6679 hardcode_libdir_flag_spec=
6680 hardcode_libdir_flag_spec_ld=
6681 hardcode_libdir_separator=
6682 hardcode_direct=no
6683 hardcode_minus_L=no
6684 hardcode_shlibpath_var=unsupported
6685 link_all_deplibs=unknown
6686 hardcode_automatic=no
6687 module_cmds=
6688 module_expsym_cmds=
6689 always_export_symbols=no
6690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6691 # include_expsyms should be a list of space-separated symbols to be *always*
6692 # included in the symbol list
6693 include_expsyms=
6694 # exclude_expsyms can be an extended regexp of symbols to exclude
6695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6697 # as well as any symbol that contains `d'.
6698 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6700 # platforms (ab)use it in PIC code, but their linkers get confused if
6701 # the symbol is explicitly referenced. Since portable code cannot
6702 # rely on this symbol name, it's probably fine to never include it in
6703 # preloaded symbol tables.
6704 extract_expsyms_cmds=
6706 case $host_os in
6707 cygwin* | mingw* | pw32*)
6708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6709 # When not using gcc, we currently assume that we are using
6710 # Microsoft Visual C++.
6711 if test "$GCC" != yes; then
6712 with_gnu_ld=no
6715 openbsd*)
6716 with_gnu_ld=no
6718 esac
6720 ld_shlibs=yes
6721 if test "$with_gnu_ld" = yes; then
6722 # If archive_cmds runs LD, not CC, wlarc should be empty
6723 wlarc='${wl}'
6725 # See if GNU ld supports shared libraries.
6726 case $host_os in
6727 aix3* | aix4* | aix5*)
6728 # On AIX/PPC, the GNU linker is very broken
6729 if test "$host_cpu" != ia64; then
6730 ld_shlibs=no
6731 cat <<EOF 1>&2
6733 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6734 *** to be unable to reliably create shared libraries on AIX.
6735 *** Therefore, libtool is disabling shared libraries support. If you
6736 *** really care for shared libraries, you may want to modify your PATH
6737 *** so that a non-GNU linker is found, and then restart.
6743 amigaos*)
6744 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)'
6745 hardcode_libdir_flag_spec='-L$libdir'
6746 hardcode_minus_L=yes
6748 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6749 # that the semantics of dynamic libraries on AmigaOS, at least up
6750 # to version 4, is to share data among multiple programs linked
6751 # with the same dynamic library. Since this doesn't match the
6752 # behavior of shared libraries on other platforms, we can't use
6753 # them.
6754 ld_shlibs=no
6757 beos*)
6758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6759 allow_undefined_flag=unsupported
6760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6761 # support --undefined. This deserves some investigation. FIXME
6762 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763 else
6764 ld_shlibs=no
6768 cygwin* | mingw* | pw32*)
6769 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6770 # as there is no search path for DLLs.
6771 hardcode_libdir_flag_spec='-L$libdir'
6772 allow_undefined_flag=unsupported
6773 always_export_symbols=no
6774 enable_shared_with_static_runtimes=yes
6775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6777 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6779 # If the export-symbols file already is a .def file (1st line
6780 # is EXPORTS), use it as is; otherwise, prepend...
6781 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6782 cp $export_symbols $output_objdir/$soname.def;
6783 else
6784 echo EXPORTS > $output_objdir/$soname.def;
6785 cat $export_symbols >> $output_objdir/$soname.def;
6787 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6788 else
6789 ld_shlibs=no
6793 netbsd*)
6794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6796 wlarc=
6797 else
6798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803 solaris* | sysv5*)
6804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6805 ld_shlibs=no
6806 cat <<EOF 1>&2
6808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6809 *** create shared libraries on Solaris systems. Therefore, libtool
6810 *** is disabling shared libraries support. We urge you to upgrade GNU
6811 *** binutils to release 2.9.1 or newer. Another option is to modify
6812 *** your PATH or compiler configuration so that the native linker is
6813 *** used, and then restart.
6816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819 else
6820 ld_shlibs=no
6824 sunos4*)
6825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6826 wlarc=
6827 hardcode_direct=yes
6828 hardcode_shlibpath_var=no
6831 linux*)
6832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6833 tmp_addflag=
6834 case $CC,$host_cpu in
6835 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6836 tmp_addflag=' -fpic' ;;
6837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6838 tmp_addflag=' -i_dynamic' ;;
6839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6840 tmp_addflag=' -i_dynamic -nofor_main' ;;
6841 ifc* | ifort*) # Intel Fortran compiler
6842 tmp_addflag=' -nofor_main' ;;
6843 esac
6844 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845 supports_anon_versioning=no
6846 case `$LD -v 2>/dev/null` in
6847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6850 *\ 2.11.*) ;; # other 2.11 versions
6851 *) supports_anon_versioning=yes ;;
6852 esac
6853 if test $supports_anon_versioning = yes; then
6854 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6856 $echo "local: *; };" >> $output_objdir/$libname.ver~
6857 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6858 else
6859 archive_expsym_cmds=$archive_cmds
6861 else
6862 ld_shlibs=no
6867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6870 else
6871 ld_shlibs=no
6874 esac
6876 if test "$ld_shlibs" = yes; then
6877 runpath_var=LD_RUN_PATH
6878 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6879 export_dynamic_flag_spec='${wl}--export-dynamic'
6880 # ancient GNU ld didn't support --whole-archive et. al.
6881 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6882 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6883 else
6884 whole_archive_flag_spec=
6887 else
6888 # PORTME fill in a description of your system's linker (not GNU ld)
6889 case $host_os in
6890 aix3*)
6891 allow_undefined_flag=unsupported
6892 always_export_symbols=yes
6893 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'
6894 # Note: this linker hardcodes the directories in LIBPATH if there
6895 # are no directories specified by -L.
6896 hardcode_minus_L=yes
6897 if test "$GCC" = yes && test -z "$link_static_flag"; then
6898 # Neither direct hardcoding nor static linking is supported with a
6899 # broken collect2.
6900 hardcode_direct=unsupported
6904 aix4* | aix5*)
6905 if test "$host_cpu" = ia64; then
6906 # On IA64, the linker does run time linking by default, so we don't
6907 # have to do anything special.
6908 aix_use_runtimelinking=no
6909 exp_sym_flag='-Bexport'
6910 no_entry_flag=""
6911 else
6912 # If we're using GNU nm, then we don't want the "-C" option.
6913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6915 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'
6916 else
6917 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'
6919 aix_use_runtimelinking=no
6921 # Test if we are trying to use run time linking or normal
6922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6923 # need to do runtime linking.
6924 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6925 for ld_flag in $LDFLAGS; do
6926 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6927 aix_use_runtimelinking=yes
6928 break
6930 done
6931 esac
6933 exp_sym_flag='-bexport'
6934 no_entry_flag='-bnoentry'
6937 # When large executables or shared objects are built, AIX ld can
6938 # have problems creating the table of contents. If linking a library
6939 # or program results in "error TOC overflow" add -mminimal-toc to
6940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6943 archive_cmds=''
6944 hardcode_direct=yes
6945 hardcode_libdir_separator=':'
6946 link_all_deplibs=yes
6948 if test "$GCC" = yes; then
6949 case $host_os in aix4.[012]|aix4.[012].*)
6950 # We only want to do this on AIX 4.2 and lower, the check
6951 # below for broken collect2 doesn't work under 4.3+
6952 collect2name=`${CC} -print-prog-name=collect2`
6953 if test -f "$collect2name" && \
6954 strings "$collect2name" | grep resolve_lib_name >/dev/null
6955 then
6956 # We have reworked collect2
6957 hardcode_direct=yes
6958 else
6959 # We have old collect2
6960 hardcode_direct=unsupported
6961 # It fails to find uninstalled libraries when the uninstalled
6962 # path is not listed in the libpath. Setting hardcode_minus_L
6963 # to unsupported forces relinking
6964 hardcode_minus_L=yes
6965 hardcode_libdir_flag_spec='-L$libdir'
6966 hardcode_libdir_separator=
6968 esac
6969 shared_flag='-shared'
6970 if test "$aix_use_runtimelinking" = yes; then
6971 shared_flag="$shared_flag "'${wl}-G'
6973 else
6974 # not using gcc
6975 if test "$host_cpu" = ia64; then
6976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6977 # chokes on -Wl,-G. The following line is correct:
6978 shared_flag='-G'
6979 else
6980 if test "$aix_use_runtimelinking" = yes; then
6981 shared_flag='${wl}-G'
6982 else
6983 shared_flag='${wl}-bM:SRE'
6988 # It seems that -bexpall does not export symbols beginning with
6989 # underscore (_), so it is better to generate a list of symbols to export.
6990 always_export_symbols=yes
6991 if test "$aix_use_runtimelinking" = yes; then
6992 # Warning - without using the other runtime loading flags (-brtl),
6993 # -berok will link without error, but may produce a broken library.
6994 allow_undefined_flag='-berok'
6995 # Determine the default libpath from the value encoded in an empty executable.
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7004 main ()
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7036 # Check for a 64-bit object if we didn't find anything.
7037 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; }
7038 }'`; fi
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7044 rm -f conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7049 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"
7050 else
7051 if test "$host_cpu" = ia64; then
7052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7053 allow_undefined_flag="-z nodefs"
7054 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"
7055 else
7056 # Determine the default libpath from the value encoded in an empty executable.
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7065 main ()
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074 (eval $ac_link) 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest$ac_exeext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7097 # Check for a 64-bit object if we didn't find anything.
7098 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; }
7099 }'`; fi
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7105 rm -f conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7110 # Warning - without using the other run time loading flags,
7111 # -berok will link without error, but may produce a broken library.
7112 no_undefined_flag=' ${wl}-bernotok'
7113 allow_undefined_flag=' ${wl}-berok'
7114 # -bexpall does not export symbols beginning with underscore (_)
7115 always_export_symbols=yes
7116 # Exported symbols can be pulled into shared objects from archives
7117 whole_archive_flag_spec=' '
7118 archive_cmds_need_lc=yes
7119 # This is similar to how AIX traditionally builds it's shared libraries.
7120 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'
7125 amigaos*)
7126 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)'
7127 hardcode_libdir_flag_spec='-L$libdir'
7128 hardcode_minus_L=yes
7129 # see comment about different semantics on the GNU ld section
7130 ld_shlibs=no
7133 bsdi[45]*)
7134 export_dynamic_flag_spec=-rdynamic
7137 cygwin* | mingw* | pw32*)
7138 # When not using gcc, we currently assume that we are using
7139 # Microsoft Visual C++.
7140 # hardcode_libdir_flag_spec is actually meaningless, as there is
7141 # no search path for DLLs.
7142 hardcode_libdir_flag_spec=' '
7143 allow_undefined_flag=unsupported
7144 # Tell ltmain to make .lib files, not .a files.
7145 libext=lib
7146 # Tell ltmain to make .dll files, not .so files.
7147 shrext_cmds=".dll"
7148 # FIXME: Setting linknames here is a bad hack.
7149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7150 # The linker will automatically build a .lib file if we build a DLL.
7151 old_archive_From_new_cmds='true'
7152 # FIXME: Should let the user specify the lib program.
7153 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7154 fix_srcfile_path='`cygpath -w "$srcfile"`'
7155 enable_shared_with_static_runtimes=yes
7158 darwin* | rhapsody*)
7159 case "$host_os" in
7160 rhapsody* | darwin1.[012])
7161 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7163 *) # Darwin 1.3 on
7164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7165 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7166 else
7167 case ${MACOSX_DEPLOYMENT_TARGET} in
7168 10.[012])
7169 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7171 10.*)
7172 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7174 esac
7177 esac
7178 archive_cmds_need_lc=no
7179 hardcode_direct=no
7180 hardcode_automatic=yes
7181 hardcode_shlibpath_var=unsupported
7182 whole_archive_flag_spec=''
7183 link_all_deplibs=yes
7184 if test "$GCC" = yes ; then
7185 output_verbose_link_cmd='echo'
7186 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7187 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7189 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}'
7190 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}'
7191 else
7192 case "$cc_basename" in
7193 xlc*)
7194 output_verbose_link_cmd='echo'
7195 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7196 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7198 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}'
7199 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}'
7202 ld_shlibs=no
7204 esac
7208 dgux*)
7209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_shlibpath_var=no
7214 freebsd1*)
7215 ld_shlibs=no
7218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7219 # support. Future versions do this automatically, but an explicit c++rt0.o
7220 # does not break anything, and helps significantly (at the cost of a little
7221 # extra space).
7222 freebsd2.2*)
7223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7224 hardcode_libdir_flag_spec='-R$libdir'
7225 hardcode_direct=yes
7226 hardcode_shlibpath_var=no
7229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7230 freebsd2*)
7231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7232 hardcode_direct=yes
7233 hardcode_minus_L=yes
7234 hardcode_shlibpath_var=no
7237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7238 freebsd* | kfreebsd*-gnu | dragonfly*)
7239 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7240 hardcode_libdir_flag_spec='-R$libdir'
7241 hardcode_direct=yes
7242 hardcode_shlibpath_var=no
7245 hpux9*)
7246 if test "$GCC" = yes; then
7247 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'
7248 else
7249 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'
7251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252 hardcode_libdir_separator=:
7253 hardcode_direct=yes
7255 # hardcode_minus_L: Not really in the search PATH,
7256 # but as the default location of the library.
7257 hardcode_minus_L=yes
7258 export_dynamic_flag_spec='${wl}-E'
7261 hpux10* | hpux11*)
7262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7263 case "$host_cpu" in
7264 hppa*64*|ia64*)
7265 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7270 esac
7271 else
7272 case "$host_cpu" in
7273 hppa*64*|ia64*)
7274 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7279 esac
7281 if test "$with_gnu_ld" = no; then
7282 case "$host_cpu" in
7283 hppa*64*)
7284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7285 hardcode_libdir_flag_spec_ld='+b $libdir'
7286 hardcode_libdir_separator=:
7287 hardcode_direct=no
7288 hardcode_shlibpath_var=no
7290 ia64*)
7291 hardcode_libdir_flag_spec='-L$libdir'
7292 hardcode_direct=no
7293 hardcode_shlibpath_var=no
7295 # hardcode_minus_L: Not really in the search PATH,
7296 # but as the default location of the library.
7297 hardcode_minus_L=yes
7300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7301 hardcode_libdir_separator=:
7302 hardcode_direct=yes
7303 export_dynamic_flag_spec='${wl}-E'
7305 # hardcode_minus_L: Not really in the search PATH,
7306 # but as the default location of the library.
7307 hardcode_minus_L=yes
7309 esac
7313 irix5* | irix6* | nonstopux*)
7314 if test "$GCC" = yes; then
7315 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'
7316 else
7317 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'
7318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7321 hardcode_libdir_separator=:
7322 link_all_deplibs=yes
7325 netbsd*)
7326 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7328 else
7329 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7331 hardcode_libdir_flag_spec='-R$libdir'
7332 hardcode_direct=yes
7333 hardcode_shlibpath_var=no
7336 newsos6)
7337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338 hardcode_direct=yes
7339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7340 hardcode_libdir_separator=:
7341 hardcode_shlibpath_var=no
7344 openbsd*)
7345 hardcode_direct=yes
7346 hardcode_shlibpath_var=no
7347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7349 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7351 export_dynamic_flag_spec='${wl}-E'
7352 else
7353 case $host_os in
7354 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7356 hardcode_libdir_flag_spec='-R$libdir'
7359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7362 esac
7366 os2*)
7367 hardcode_libdir_flag_spec='-L$libdir'
7368 hardcode_minus_L=yes
7369 allow_undefined_flag=unsupported
7370 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'
7371 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7374 osf3*)
7375 if test "$GCC" = yes; then
7376 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7377 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'
7378 else
7379 allow_undefined_flag=' -expect_unresolved \*'
7380 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'
7382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7383 hardcode_libdir_separator=:
7386 osf4* | osf5*) # as osf3* with the addition of -msym flag
7387 if test "$GCC" = yes; then
7388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7389 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'
7390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7391 else
7392 allow_undefined_flag=' -expect_unresolved \*'
7393 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'
7394 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7395 $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'
7397 # Both c and cxx compiler support -rpath directly
7398 hardcode_libdir_flag_spec='-rpath $libdir'
7400 hardcode_libdir_separator=:
7403 sco3.2v5*)
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_shlibpath_var=no
7406 export_dynamic_flag_spec='${wl}-Bexport'
7407 runpath_var=LD_RUN_PATH
7408 hardcode_runpath_var=yes
7411 solaris*)
7412 no_undefined_flag=' -z text'
7413 if test "$GCC" = yes; then
7414 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7415 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7416 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7417 else
7418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7422 hardcode_libdir_flag_spec='-R$libdir'
7423 hardcode_shlibpath_var=no
7424 case $host_os in
7425 solaris2.[0-5] | solaris2.[0-5].*) ;;
7426 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7427 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7428 esac
7429 link_all_deplibs=yes
7432 sunos4*)
7433 if test "x$host_vendor" = xsequent; then
7434 # Use $CC to link under sequent, because it throws in some extra .o
7435 # files that make .init and .fini sections work.
7436 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7437 else
7438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_direct=yes
7442 hardcode_minus_L=yes
7443 hardcode_shlibpath_var=no
7446 sysv4)
7447 case $host_vendor in
7448 sni)
7449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 hardcode_direct=yes # is this really true???
7452 siemens)
7453 ## LD is ld it makes a PLAMLIB
7454 ## CC just makes a GrossModule.
7455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7456 reload_cmds='$CC -r -o $output$reload_objs'
7457 hardcode_direct=no
7459 motorola)
7460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7463 esac
7464 runpath_var='LD_RUN_PATH'
7465 hardcode_shlibpath_var=no
7468 sysv4.3*)
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_shlibpath_var=no
7471 export_dynamic_flag_spec='-Bexport'
7474 sysv4*MP*)
7475 if test -d /usr/nec; then
7476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7477 hardcode_shlibpath_var=no
7478 runpath_var=LD_RUN_PATH
7479 hardcode_runpath_var=yes
7480 ld_shlibs=yes
7484 sysv4.2uw2*)
7485 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7486 hardcode_direct=yes
7487 hardcode_minus_L=no
7488 hardcode_shlibpath_var=no
7489 hardcode_runpath_var=yes
7490 runpath_var=LD_RUN_PATH
7493 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7494 no_undefined_flag='${wl}-z ${wl}text'
7495 if test "$GCC" = yes; then
7496 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 else
7498 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7500 runpath_var='LD_RUN_PATH'
7501 hardcode_shlibpath_var=no
7504 sysv5*)
7505 no_undefined_flag=' -z text'
7506 # $CC -shared without GNU ld will not create a library from C++
7507 # object files and a static libstdc++, better avoid it by now
7508 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7509 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7511 hardcode_libdir_flag_spec=
7512 hardcode_shlibpath_var=no
7513 runpath_var='LD_RUN_PATH'
7516 uts4*)
7517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7518 hardcode_libdir_flag_spec='-L$libdir'
7519 hardcode_shlibpath_var=no
7523 ld_shlibs=no
7525 esac
7528 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7529 echo "${ECHO_T}$ld_shlibs" >&6
7530 test "$ld_shlibs" = no && can_build_shared=no
7532 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7533 if test "$GCC" = yes; then
7534 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7538 # Do we need to explicitly link libc?
7540 case "x$archive_cmds_need_lc" in
7541 x|xyes)
7542 # Assume -lc should be added
7543 archive_cmds_need_lc=yes
7545 if test "$enable_shared" = yes && test "$GCC" = yes; then
7546 case $archive_cmds in
7547 *'~'*)
7548 # FIXME: we may have to deal with multi-command sequences.
7550 '$CC '*)
7551 # Test whether the compiler implicitly links with -lc since on some
7552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7553 # to ld, don't add -lc before -lgcc.
7554 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7555 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7556 $rm conftest*
7557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560 (eval $ac_compile) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } 2>conftest.err; then
7564 soname=conftest
7565 lib=conftest
7566 libobjs=conftest.$ac_objext
7567 deplibs=
7568 wl=$lt_prog_compiler_wl
7569 compiler_flags=-v
7570 linker_flags=-v
7571 verstring=
7572 output_objdir=.
7573 libname=conftest
7574 lt_save_allow_undefined_flag=$allow_undefined_flag
7575 allow_undefined_flag=
7576 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7577 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }
7581 then
7582 archive_cmds_need_lc=no
7583 else
7584 archive_cmds_need_lc=yes
7586 allow_undefined_flag=$lt_save_allow_undefined_flag
7587 else
7588 cat conftest.err 1>&5
7590 $rm conftest*
7591 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7592 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7594 esac
7597 esac
7599 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7600 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7601 library_names_spec=
7602 libname_spec='lib$name'
7603 soname_spec=
7604 shrext_cmds=".so"
7605 postinstall_cmds=
7606 postuninstall_cmds=
7607 finish_cmds=
7608 finish_eval=
7609 shlibpath_var=
7610 shlibpath_overrides_runpath=unknown
7611 version_type=none
7612 dynamic_linker="$host_os ld.so"
7613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7614 if test "$GCC" = yes; then
7615 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7616 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7617 # if the path contains ";" then we assume it to be the separator
7618 # otherwise default to the standard path separator (i.e. ":") - it is
7619 # assumed that no part of a normal pathname contains ";" but that should
7620 # okay in the real world where ";" in dirpaths is itself problematic.
7621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7622 else
7623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7625 else
7626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7628 need_lib_prefix=unknown
7629 hardcode_into_libs=no
7631 # when you set need_version to no, make sure it does not cause -set_version
7632 # flags to be left without arguments
7633 need_version=unknown
7635 case $host_os in
7636 aix3*)
7637 version_type=linux
7638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7639 shlibpath_var=LIBPATH
7641 # AIX 3 has no versioning support, so we append a major version to the name.
7642 soname_spec='${libname}${release}${shared_ext}$major'
7645 aix4* | aix5*)
7646 version_type=linux
7647 need_lib_prefix=no
7648 need_version=no
7649 hardcode_into_libs=yes
7650 if test "$host_cpu" = ia64; then
7651 # AIX 5 supports IA64
7652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7653 shlibpath_var=LD_LIBRARY_PATH
7654 else
7655 # With GCC up to 2.95.x, collect2 would create an import file
7656 # for dependence libraries. The import file would start with
7657 # the line `#! .'. This would cause the generated library to
7658 # depend on `.', always an invalid library. This was fixed in
7659 # development snapshots of GCC prior to 3.0.
7660 case $host_os in
7661 aix4 | aix4.[01] | aix4.[01].*)
7662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7663 echo ' yes '
7664 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7666 else
7667 can_build_shared=no
7670 esac
7671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7672 # soname into executable. Probably we can add versioning support to
7673 # collect2, so additional links can be useful in future.
7674 if test "$aix_use_runtimelinking" = yes; then
7675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7676 # instead of lib<name>.a to let people know that these are not
7677 # typical AIX shared libraries.
7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7679 else
7680 # We preserve .a as extension for shared libraries through AIX4.2
7681 # and later when we are not doing run time linking.
7682 library_names_spec='${libname}${release}.a $libname.a'
7683 soname_spec='${libname}${release}${shared_ext}$major'
7685 shlibpath_var=LIBPATH
7689 amigaos*)
7690 library_names_spec='$libname.ixlibrary $libname.a'
7691 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7692 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'
7695 beos*)
7696 library_names_spec='${libname}${shared_ext}'
7697 dynamic_linker="$host_os ld.so"
7698 shlibpath_var=LIBRARY_PATH
7701 bsdi[45]*)
7702 version_type=linux
7703 need_version=no
7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7705 soname_spec='${libname}${release}${shared_ext}$major'
7706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7707 shlibpath_var=LD_LIBRARY_PATH
7708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7710 # the default ld.so.conf also contains /usr/contrib/lib and
7711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7712 # libtool to hard-code these into programs
7715 cygwin* | mingw* | pw32*)
7716 version_type=windows
7717 shrext_cmds=".dll"
7718 need_version=no
7719 need_lib_prefix=no
7721 case $GCC,$host_os in
7722 yes,cygwin* | yes,mingw* | yes,pw32*)
7723 library_names_spec='$libname.dll.a'
7724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7725 postinstall_cmds='base_file=`basename \${file}`~
7726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7727 dldir=$destdir/`dirname \$dlpath`~
7728 test -d \$dldir || mkdir -p \$dldir~
7729 $install_prog $dir/$dlname \$dldir/$dlname'
7730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7731 dlpath=$dir/\$dldll~
7732 $rm \$dlpath'
7733 shlibpath_overrides_runpath=yes
7735 case $host_os in
7736 cygwin*)
7737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7741 mingw*)
7742 # MinGW DLLs use traditional 'lib' prefix
7743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7746 # It is most probably a Windows format PATH printed by
7747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7748 # path with ; separators, and with drive letters. We can handle the
7749 # drive letters (cygwin fileutils understands them), so leave them,
7750 # especially as we might pass files found there to a mingw objdump,
7751 # which wouldn't understand a cygwinified path. Ahh.
7752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7753 else
7754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7757 pw32*)
7758 # pw32 DLLs use 'pw' prefix rather than 'lib'
7759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7761 esac
7765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7767 esac
7768 dynamic_linker='Win32 ld.exe'
7769 # FIXME: first we should search . and the directory the executable is in
7770 shlibpath_var=PATH
7773 darwin* | rhapsody*)
7774 dynamic_linker="$host_os dyld"
7775 version_type=darwin
7776 need_lib_prefix=no
7777 need_version=no
7778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7779 soname_spec='${libname}${release}${major}$shared_ext'
7780 shlibpath_overrides_runpath=yes
7781 shlibpath_var=DYLD_LIBRARY_PATH
7782 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7784 if test "$GCC" = yes; then
7785 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"`
7786 else
7787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7792 dgux*)
7793 version_type=linux
7794 need_lib_prefix=no
7795 need_version=no
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 shlibpath_var=LD_LIBRARY_PATH
7801 freebsd1*)
7802 dynamic_linker=no
7805 kfreebsd*-gnu)
7806 version_type=linux
7807 need_lib_prefix=no
7808 need_version=no
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 shlibpath_var=LD_LIBRARY_PATH
7812 shlibpath_overrides_runpath=no
7813 hardcode_into_libs=yes
7814 dynamic_linker='GNU ld.so'
7817 freebsd* | dragonfly*)
7818 # DragonFly does not have aout. When/if they implement a new
7819 # versioning mechanism, adjust this.
7820 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7821 version_type=freebsd-$objformat
7822 case $version_type in
7823 freebsd-elf*)
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7825 need_version=no
7826 need_lib_prefix=no
7828 freebsd-*)
7829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7830 need_version=yes
7832 esac
7833 shlibpath_var=LD_LIBRARY_PATH
7834 case $host_os in
7835 freebsd2*)
7836 shlibpath_overrides_runpath=yes
7838 freebsd3.[01]* | freebsdelf3.[01]*)
7839 shlibpath_overrides_runpath=yes
7840 hardcode_into_libs=yes
7842 *) # from 3.2 on
7843 shlibpath_overrides_runpath=no
7844 hardcode_into_libs=yes
7846 esac
7849 gnu*)
7850 version_type=linux
7851 need_lib_prefix=no
7852 need_version=no
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7854 soname_spec='${libname}${release}${shared_ext}$major'
7855 shlibpath_var=LD_LIBRARY_PATH
7856 hardcode_into_libs=yes
7859 hpux9* | hpux10* | hpux11*)
7860 # Give a soname corresponding to the major version so that dld.sl refuses to
7861 # link against other versions.
7862 version_type=sunos
7863 need_lib_prefix=no
7864 need_version=no
7865 case "$host_cpu" in
7866 ia64*)
7867 shrext_cmds='.so'
7868 hardcode_into_libs=yes
7869 dynamic_linker="$host_os dld.so"
7870 shlibpath_var=LD_LIBRARY_PATH
7871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7874 if test "X$HPUX_IA64_MODE" = X32; then
7875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7876 else
7877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7881 hppa*64*)
7882 shrext_cmds='.sl'
7883 hardcode_into_libs=yes
7884 dynamic_linker="$host_os dld.sl"
7885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7893 shrext_cmds='.sl'
7894 dynamic_linker="$host_os dld.sl"
7895 shlibpath_var=SHLIB_PATH
7896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7900 esac
7901 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7902 postinstall_cmds='chmod 555 $lib'
7905 irix5* | irix6* | nonstopux*)
7906 case $host_os in
7907 nonstopux*) version_type=nonstopux ;;
7909 if test "$lt_cv_prog_gnu_ld" = yes; then
7910 version_type=linux
7911 else
7912 version_type=irix
7913 fi ;;
7914 esac
7915 need_lib_prefix=no
7916 need_version=no
7917 soname_spec='${libname}${release}${shared_ext}$major'
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7919 case $host_os in
7920 irix5* | nonstopux*)
7921 libsuff= shlibsuff=
7924 case $LD in # libtool.m4 will add one of these switches to LD
7925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7926 libsuff= shlibsuff= libmagic=32-bit;;
7927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7928 libsuff=32 shlibsuff=N32 libmagic=N32;;
7929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7931 *) libsuff= shlibsuff= libmagic=never-match;;
7932 esac
7934 esac
7935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7936 shlibpath_overrides_runpath=no
7937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7939 hardcode_into_libs=yes
7942 # No shared lib support for Linux oldld, aout, or coff.
7943 linux*oldld* | linux*aout* | linux*coff*)
7944 dynamic_linker=no
7947 # This must be Linux ELF.
7948 linux*)
7949 version_type=linux
7950 need_lib_prefix=no
7951 need_version=no
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953 soname_spec='${libname}${release}${shared_ext}$major'
7954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=no
7957 # This implies no fast_install, which is unacceptable.
7958 # Some rework will be needed to allow for fast_install
7959 # before this can be enabled.
7960 hardcode_into_libs=yes
7962 # Append ld.so.conf contents to the search path
7963 if test -f /etc/ld.so.conf; then
7964 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' ' '`
7965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7968 # We used to test for /lib/ld.so.1 and disable shared libraries on
7969 # powerpc, because MkLinux only supported shared libraries with the
7970 # GNU dynamic linker. Since this was broken with cross compilers,
7971 # most powerpc-linux boxes support dynamic linking these days and
7972 # people can always --disable-shared, the test was removed, and we
7973 # assume the GNU/Linux dynamic linker is in use.
7974 dynamic_linker='GNU/Linux ld.so'
7977 knetbsd*-gnu)
7978 version_type=linux
7979 need_lib_prefix=no
7980 need_version=no
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7982 soname_spec='${libname}${release}${shared_ext}$major'
7983 shlibpath_var=LD_LIBRARY_PATH
7984 shlibpath_overrides_runpath=no
7985 hardcode_into_libs=yes
7986 dynamic_linker='GNU ld.so'
7989 netbsd*)
7990 version_type=sunos
7991 need_lib_prefix=no
7992 need_version=no
7993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7996 dynamic_linker='NetBSD (a.out) ld.so'
7997 else
7998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7999 soname_spec='${libname}${release}${shared_ext}$major'
8000 dynamic_linker='NetBSD ld.elf_so'
8002 shlibpath_var=LD_LIBRARY_PATH
8003 shlibpath_overrides_runpath=yes
8004 hardcode_into_libs=yes
8007 newsos6)
8008 version_type=linux
8009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8010 shlibpath_var=LD_LIBRARY_PATH
8011 shlibpath_overrides_runpath=yes
8014 nto-qnx*)
8015 version_type=linux
8016 need_lib_prefix=no
8017 need_version=no
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 shlibpath_var=LD_LIBRARY_PATH
8021 shlibpath_overrides_runpath=yes
8024 openbsd*)
8025 version_type=sunos
8026 need_lib_prefix=no
8027 need_version=no
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8030 shlibpath_var=LD_LIBRARY_PATH
8031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8032 case $host_os in
8033 openbsd2.[89] | openbsd2.[89].*)
8034 shlibpath_overrides_runpath=no
8037 shlibpath_overrides_runpath=yes
8039 esac
8040 else
8041 shlibpath_overrides_runpath=yes
8045 os2*)
8046 libname_spec='$name'
8047 shrext_cmds=".dll"
8048 need_lib_prefix=no
8049 library_names_spec='$libname${shared_ext} $libname.a'
8050 dynamic_linker='OS/2 ld.exe'
8051 shlibpath_var=LIBPATH
8054 osf3* | osf4* | osf5*)
8055 version_type=osf
8056 need_lib_prefix=no
8057 need_version=no
8058 soname_spec='${libname}${release}${shared_ext}$major'
8059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060 shlibpath_var=LD_LIBRARY_PATH
8061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8065 sco3.2v5*)
8066 version_type=osf
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 shlibpath_var=LD_LIBRARY_PATH
8072 solaris*)
8073 version_type=linux
8074 need_lib_prefix=no
8075 need_version=no
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077 soname_spec='${libname}${release}${shared_ext}$major'
8078 shlibpath_var=LD_LIBRARY_PATH
8079 shlibpath_overrides_runpath=yes
8080 hardcode_into_libs=yes
8081 # ldd complains unless libraries are executable
8082 postinstall_cmds='chmod +x $lib'
8085 sunos4*)
8086 version_type=sunos
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 shlibpath_overrides_runpath=yes
8091 if test "$with_gnu_ld" = yes; then
8092 need_lib_prefix=no
8094 need_version=yes
8097 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8098 version_type=linux
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8100 soname_spec='${libname}${release}${shared_ext}$major'
8101 shlibpath_var=LD_LIBRARY_PATH
8102 case $host_vendor in
8103 sni)
8104 shlibpath_overrides_runpath=no
8105 need_lib_prefix=no
8106 export_dynamic_flag_spec='${wl}-Blargedynsym'
8107 runpath_var=LD_RUN_PATH
8109 siemens)
8110 need_lib_prefix=no
8112 motorola)
8113 need_lib_prefix=no
8114 need_version=no
8115 shlibpath_overrides_runpath=no
8116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8118 esac
8121 sysv4*MP*)
8122 if test -d /usr/nec ;then
8123 version_type=linux
8124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8125 soname_spec='$libname${shared_ext}.$major'
8126 shlibpath_var=LD_LIBRARY_PATH
8130 uts4*)
8131 version_type=linux
8132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8133 soname_spec='${libname}${release}${shared_ext}$major'
8134 shlibpath_var=LD_LIBRARY_PATH
8138 dynamic_linker=no
8140 esac
8141 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8142 echo "${ECHO_T}$dynamic_linker" >&6
8143 test "$dynamic_linker" = no && can_build_shared=no
8145 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8146 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8147 hardcode_action=
8148 if test -n "$hardcode_libdir_flag_spec" || \
8149 test -n "$runpath_var" || \
8150 test "X$hardcode_automatic" = "Xyes" ; then
8152 # We can hardcode non-existant directories.
8153 if test "$hardcode_direct" != no &&
8154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8155 # have to relink, otherwise we might link with an installed library
8156 # when we should be linking with a yet-to-be-installed one
8157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8158 test "$hardcode_minus_L" != no; then
8159 # Linking always hardcodes the temporary library directory.
8160 hardcode_action=relink
8161 else
8162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8163 hardcode_action=immediate
8165 else
8166 # We cannot hardcode anything, or else we can only hardcode existing
8167 # directories.
8168 hardcode_action=unsupported
8170 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8171 echo "${ECHO_T}$hardcode_action" >&6
8173 if test "$hardcode_action" = relink; then
8174 # Fast installation is not supported
8175 enable_fast_install=no
8176 elif test "$shlibpath_overrides_runpath" = yes ||
8177 test "$enable_shared" = no; then
8178 # Fast installation is not necessary
8179 enable_fast_install=needless
8182 striplib=
8183 old_striplib=
8184 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8185 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8186 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8187 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8188 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8189 echo "$as_me:$LINENO: result: yes" >&5
8190 echo "${ECHO_T}yes" >&6
8191 else
8192 # FIXME - insert some real tests, host_os isn't really good enough
8193 case $host_os in
8194 darwin*)
8195 if test -n "$STRIP" ; then
8196 striplib="$STRIP -x"
8197 echo "$as_me:$LINENO: result: yes" >&5
8198 echo "${ECHO_T}yes" >&6
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8208 esac
8211 if test "x$enable_dlopen" != xyes; then
8212 enable_dlopen=unknown
8213 enable_dlopen_self=unknown
8214 enable_dlopen_self_static=unknown
8215 else
8216 lt_cv_dlopen=no
8217 lt_cv_dlopen_libs=
8219 case $host_os in
8220 beos*)
8221 lt_cv_dlopen="load_add_on"
8222 lt_cv_dlopen_libs=
8223 lt_cv_dlopen_self=yes
8226 mingw* | pw32*)
8227 lt_cv_dlopen="LoadLibrary"
8228 lt_cv_dlopen_libs=
8231 cygwin*)
8232 lt_cv_dlopen="dlopen"
8233 lt_cv_dlopen_libs=
8236 darwin*)
8237 # if libdl is installed we need to link against it
8238 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 ac_check_lib_save_LIBS=$LIBS
8244 LIBS="-ldl $LIBS"
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258 char dlopen ();
8260 main ()
8262 dlopen ();
8264 return 0;
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269 (eval $ac_link) 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag"
8277 || test ! -s conftest.err'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; } &&
8283 { ac_try='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_lib_dl_dlopen=yes
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_cv_lib_dl_dlopen=no
8296 rm -f conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8302 if test $ac_cv_lib_dl_dlopen = yes; then
8303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8304 else
8306 lt_cv_dlopen="dyld"
8307 lt_cv_dlopen_libs=
8308 lt_cv_dlopen_self=yes
8315 echo "$as_me:$LINENO: checking for shl_load" >&5
8316 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8317 if test "${ac_cv_func_shl_load+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8328 #define shl_load innocuous_shl_load
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char shl_load (); below.
8332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333 <limits.h> exists even on freestanding compilers. */
8335 #ifdef __STDC__
8336 # include <limits.h>
8337 #else
8338 # include <assert.h>
8339 #endif
8341 #undef shl_load
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 #ifdef __cplusplus
8345 extern "C"
8347 #endif
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350 char shl_load ();
8351 /* The GNU C library defines this for functions which it implements
8352 to always fail with ENOSYS. Some functions are actually named
8353 something starting with __ and the normal name is an alias. */
8354 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8355 choke me
8356 #else
8357 char (*f) () = shl_load;
8358 #endif
8359 #ifdef __cplusplus
8361 #endif
8364 main ()
8366 return f != shl_load;
8368 return 0;
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_func_shl_load=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 ac_cv_func_shl_load=no
8400 rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8405 if test $ac_cv_func_shl_load = yes; then
8406 lt_cv_dlopen="shl_load"
8407 else
8408 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-ldld $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char shl_load ();
8430 main ()
8432 shl_load ();
8434 return 0;
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_dld_shl_load=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_dld_shl_load=no
8466 rm -f conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8471 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8472 if test $ac_cv_lib_dld_shl_load = yes; then
8473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8474 else
8475 echo "$as_me:$LINENO: checking for dlopen" >&5
8476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8477 if test "${ac_cv_func_dlopen+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8488 #define dlopen innocuous_dlopen
8490 /* System header to define __stub macros and hopefully few prototypes,
8491 which can conflict with char dlopen (); below.
8492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8493 <limits.h> exists even on freestanding compilers. */
8495 #ifdef __STDC__
8496 # include <limits.h>
8497 #else
8498 # include <assert.h>
8499 #endif
8501 #undef dlopen
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 #ifdef __cplusplus
8505 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510 char dlopen ();
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8515 choke me
8516 #else
8517 char (*f) () = dlopen;
8518 #endif
8519 #ifdef __cplusplus
8521 #endif
8524 main ()
8526 return f != dlopen;
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5
8550 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_func_dlopen=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_cv_func_dlopen=no
8560 rm -f conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8564 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8565 if test $ac_cv_func_dlopen = yes; then
8566 lt_cv_dlopen="dlopen"
8567 else
8568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573 ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-ldl $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char dlopen ();
8590 main ()
8592 dlopen ();
8594 return 0;
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_cv_lib_dl_dlopen=yes
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_lib_dl_dlopen=no
8626 rm -f conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8632 if test $ac_cv_lib_dl_dlopen = yes; then
8633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8634 else
8635 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8636 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8637 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lsvld $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h. */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8649 /* Override any gcc2 internal prototype to avoid an error. */
8650 #ifdef __cplusplus
8651 extern "C"
8652 #endif
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char dlopen ();
8657 main ()
8659 dlopen ();
8661 return 0;
8663 _ACEOF
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_lib_svld_dlopen=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_lib_svld_dlopen=no
8693 rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8698 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8699 if test $ac_cv_lib_svld_dlopen = yes; then
8700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8701 else
8702 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8703 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8704 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 ac_check_lib_save_LIBS=$LIBS
8708 LIBS="-ldld $LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8722 char dld_link ();
8724 main ()
8726 dld_link ();
8728 return 0;
8730 _ACEOF
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_lib_dld_dld_link=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_lib_dld_dld_link=no
8760 rm -f conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 LIBS=$ac_check_lib_save_LIBS
8764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8766 if test $ac_cv_lib_dld_dld_link = yes; then
8767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8786 esac
8788 if test "x$lt_cv_dlopen" != xno; then
8789 enable_dlopen=yes
8790 else
8791 enable_dlopen=no
8794 case $lt_cv_dlopen in
8795 dlopen)
8796 save_CPPFLAGS="$CPPFLAGS"
8797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8799 save_LDFLAGS="$LDFLAGS"
8800 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8802 save_LIBS="$LIBS"
8803 LIBS="$lt_cv_dlopen_libs $LIBS"
8805 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8807 if test "${lt_cv_dlopen_self+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 if test "$cross_compiling" = yes; then :
8811 lt_cv_dlopen_self=cross
8812 else
8813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8814 lt_status=$lt_dlunknown
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8819 #if HAVE_DLFCN_H
8820 #include <dlfcn.h>
8821 #endif
8823 #include <stdio.h>
8825 #ifdef RTLD_GLOBAL
8826 # define LT_DLGLOBAL RTLD_GLOBAL
8827 #else
8828 # ifdef DL_GLOBAL
8829 # define LT_DLGLOBAL DL_GLOBAL
8830 # else
8831 # define LT_DLGLOBAL 0
8832 # endif
8833 #endif
8835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8836 find out it does not work in some platform. */
8837 #ifndef LT_DLLAZY_OR_NOW
8838 # ifdef RTLD_LAZY
8839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8840 # else
8841 # ifdef DL_LAZY
8842 # define LT_DLLAZY_OR_NOW DL_LAZY
8843 # else
8844 # ifdef RTLD_NOW
8845 # define LT_DLLAZY_OR_NOW RTLD_NOW
8846 # else
8847 # ifdef DL_NOW
8848 # define LT_DLLAZY_OR_NOW DL_NOW
8849 # else
8850 # define LT_DLLAZY_OR_NOW 0
8851 # endif
8852 # endif
8853 # endif
8854 # endif
8855 #endif
8857 #ifdef __cplusplus
8858 extern "C" void exit (int);
8859 #endif
8861 void fnord() { int i=42;}
8862 int main ()
8864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8865 int status = $lt_dlunknown;
8867 if (self)
8869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8871 /* dlclose (self); */
8874 exit (status);
8877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8878 (eval $ac_link) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8882 (./conftest; exit; ) 2>/dev/null
8883 lt_status=$?
8884 case x$lt_status in
8885 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8886 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8887 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8888 esac
8889 else :
8890 # compilation failed
8891 lt_cv_dlopen_self=no
8894 rm -fr conftest*
8898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8899 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8901 if test "x$lt_cv_dlopen_self" = xyes; then
8902 LDFLAGS="$LDFLAGS $link_static_flag"
8903 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8904 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8905 if test "${lt_cv_dlopen_self_static+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908 if test "$cross_compiling" = yes; then :
8909 lt_cv_dlopen_self_static=cross
8910 else
8911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8912 lt_status=$lt_dlunknown
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8917 #if HAVE_DLFCN_H
8918 #include <dlfcn.h>
8919 #endif
8921 #include <stdio.h>
8923 #ifdef RTLD_GLOBAL
8924 # define LT_DLGLOBAL RTLD_GLOBAL
8925 #else
8926 # ifdef DL_GLOBAL
8927 # define LT_DLGLOBAL DL_GLOBAL
8928 # else
8929 # define LT_DLGLOBAL 0
8930 # endif
8931 #endif
8933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8934 find out it does not work in some platform. */
8935 #ifndef LT_DLLAZY_OR_NOW
8936 # ifdef RTLD_LAZY
8937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8938 # else
8939 # ifdef DL_LAZY
8940 # define LT_DLLAZY_OR_NOW DL_LAZY
8941 # else
8942 # ifdef RTLD_NOW
8943 # define LT_DLLAZY_OR_NOW RTLD_NOW
8944 # else
8945 # ifdef DL_NOW
8946 # define LT_DLLAZY_OR_NOW DL_NOW
8947 # else
8948 # define LT_DLLAZY_OR_NOW 0
8949 # endif
8950 # endif
8951 # endif
8952 # endif
8953 #endif
8955 #ifdef __cplusplus
8956 extern "C" void exit (int);
8957 #endif
8959 void fnord() { int i=42;}
8960 int main ()
8962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8963 int status = $lt_dlunknown;
8965 if (self)
8967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8969 /* dlclose (self); */
8972 exit (status);
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8980 (./conftest; exit; ) 2>/dev/null
8981 lt_status=$?
8982 case x$lt_status in
8983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8985 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8986 esac
8987 else :
8988 # compilation failed
8989 lt_cv_dlopen_self_static=no
8992 rm -fr conftest*
8996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8997 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9000 CPPFLAGS="$save_CPPFLAGS"
9001 LDFLAGS="$save_LDFLAGS"
9002 LIBS="$save_LIBS"
9004 esac
9006 case $lt_cv_dlopen_self in
9007 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9008 *) enable_dlopen_self=unknown ;;
9009 esac
9011 case $lt_cv_dlopen_self_static in
9012 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9013 *) enable_dlopen_self_static=unknown ;;
9014 esac
9018 # Report which librarie types wil actually be built
9019 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9020 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9021 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9022 echo "${ECHO_T}$can_build_shared" >&6
9024 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9025 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9026 test "$can_build_shared" = "no" && enable_shared=no
9028 # On AIX, shared libraries and static libraries use the same namespace, and
9029 # are all built from PIC.
9030 case "$host_os" in
9031 aix3*)
9032 test "$enable_shared" = yes && enable_static=no
9033 if test -n "$RANLIB"; then
9034 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9035 postinstall_cmds='$RANLIB $lib'
9039 aix4* | aix5*)
9040 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9041 test "$enable_shared" = yes && enable_static=no
9044 esac
9045 echo "$as_me:$LINENO: result: $enable_shared" >&5
9046 echo "${ECHO_T}$enable_shared" >&6
9048 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9049 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9050 # Make sure either enable_shared or enable_static is yes.
9051 test "$enable_shared" = yes || enable_static=yes
9052 echo "$as_me:$LINENO: result: $enable_static" >&5
9053 echo "${ECHO_T}$enable_static" >&6
9055 # The else clause should only fire when bootstrapping the
9056 # libtool distribution, otherwise you forgot to ship ltmain.sh
9057 # with your package, and you will get complaints that there are
9058 # no rules to generate ltmain.sh.
9059 if test -f "$ltmain"; then
9060 # See if we are running on zsh, and set the options which allow our commands through
9061 # without removal of \ escapes.
9062 if test -n "${ZSH_VERSION+set}" ; then
9063 setopt NO_GLOB_SUBST
9065 # Now quote all the things that may contain metacharacters while being
9066 # careful not to overquote the AC_SUBSTed values. We take copies of the
9067 # variables and quote the copies for generation of the libtool script.
9068 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9069 SED SHELL STRIP \
9070 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9071 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9072 deplibs_check_method reload_flag reload_cmds need_locks \
9073 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9074 lt_cv_sys_global_symbol_to_c_name_address \
9075 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9076 old_postinstall_cmds old_postuninstall_cmds \
9077 compiler \
9078 CC \
9079 LD \
9080 lt_prog_compiler_wl \
9081 lt_prog_compiler_pic \
9082 lt_prog_compiler_static \
9083 lt_prog_compiler_no_builtin_flag \
9084 export_dynamic_flag_spec \
9085 thread_safe_flag_spec \
9086 whole_archive_flag_spec \
9087 enable_shared_with_static_runtimes \
9088 old_archive_cmds \
9089 old_archive_from_new_cmds \
9090 predep_objects \
9091 postdep_objects \
9092 predeps \
9093 postdeps \
9094 compiler_lib_search_path \
9095 archive_cmds \
9096 archive_expsym_cmds \
9097 postinstall_cmds \
9098 postuninstall_cmds \
9099 old_archive_from_expsyms_cmds \
9100 allow_undefined_flag \
9101 no_undefined_flag \
9102 export_symbols_cmds \
9103 hardcode_libdir_flag_spec \
9104 hardcode_libdir_flag_spec_ld \
9105 hardcode_libdir_separator \
9106 hardcode_automatic \
9107 module_cmds \
9108 module_expsym_cmds \
9109 lt_cv_prog_compiler_c_o \
9110 exclude_expsyms \
9111 include_expsyms; do
9113 case $var in
9114 old_archive_cmds | \
9115 old_archive_from_new_cmds | \
9116 archive_cmds | \
9117 archive_expsym_cmds | \
9118 module_cmds | \
9119 module_expsym_cmds | \
9120 old_archive_from_expsyms_cmds | \
9121 export_symbols_cmds | \
9122 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9123 postinstall_cmds | postuninstall_cmds | \
9124 old_postinstall_cmds | old_postuninstall_cmds | \
9125 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9126 # Double-quote double-evaled strings.
9127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9132 esac
9133 done
9135 case $lt_echo in
9136 *'\$0 --fallback-echo"')
9137 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9139 esac
9141 cfgfile="${ofile}T"
9142 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9143 $rm -f "$cfgfile"
9144 { echo "$as_me:$LINENO: creating $ofile" >&5
9145 echo "$as_me: creating $ofile" >&6;}
9147 cat <<__EOF__ >> "$cfgfile"
9148 #! $SHELL
9150 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9151 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9152 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9154 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9155 # Free Software Foundation, Inc.
9157 # This file is part of GNU Libtool:
9158 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9160 # This program is free software; you can redistribute it and/or modify
9161 # it under the terms of the GNU General Public License as published by
9162 # the Free Software Foundation; either version 2 of the License, or
9163 # (at your option) any later version.
9165 # This program is distributed in the hope that it will be useful, but
9166 # WITHOUT ANY WARRANTY; without even the implied warranty of
9167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9168 # General Public License for more details.
9170 # You should have received a copy of the GNU General Public License
9171 # along with this program; if not, write to the Free Software
9172 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9174 # As a special exception to the GNU General Public License, if you
9175 # distribute this file as part of a program that contains a
9176 # configuration script generated by Autoconf, you may include it under
9177 # the same distribution terms that you use for the rest of that program.
9179 # A sed program that does not truncate output.
9180 SED=$lt_SED
9182 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9183 Xsed="$SED -e s/^X//"
9185 # The HP-UX ksh and POSIX shell print the target directory to stdout
9186 # if CDPATH is set.
9187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9189 # The names of the tagged configurations supported by this script.
9190 available_tags=
9192 # ### BEGIN LIBTOOL CONFIG
9194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9196 # Shell to use when invoking shell scripts.
9197 SHELL=$lt_SHELL
9199 # Whether or not to build shared libraries.
9200 build_libtool_libs=$enable_shared
9202 # Whether or not to build static libraries.
9203 build_old_libs=$enable_static
9205 # Whether or not to add -lc for building shared libraries.
9206 build_libtool_need_lc=$archive_cmds_need_lc
9208 # Whether or not to disallow shared libs when runtime libs are static
9209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9211 # Whether or not to optimize for fast installation.
9212 fast_install=$enable_fast_install
9214 # The host system.
9215 host_alias=$host_alias
9216 host=$host
9217 host_os=$host_os
9219 # The build system.
9220 build_alias=$build_alias
9221 build=$build
9222 build_os=$build_os
9224 # An echo program that does not interpret backslashes.
9225 echo=$lt_echo
9227 # The archiver.
9228 AR=$lt_AR
9229 AR_FLAGS=$lt_AR_FLAGS
9231 # A C compiler.
9232 LTCC=$lt_LTCC
9234 # A language-specific compiler.
9235 CC=$lt_compiler
9237 # Is the compiler the GNU C compiler?
9238 with_gcc=$GCC
9240 # An ERE matcher.
9241 EGREP=$lt_EGREP
9243 # The linker used to build libraries.
9244 LD=$lt_LD
9246 # Whether we need hard or soft links.
9247 LN_S=$lt_LN_S
9249 # A BSD-compatible nm program.
9250 NM=$lt_NM
9252 # A symbol stripping program
9253 STRIP=$lt_STRIP
9255 # Used to examine libraries when file_magic_cmd begins "file"
9256 MAGIC_CMD=$MAGIC_CMD
9258 # Used on cygwin: DLL creation program.
9259 DLLTOOL="$DLLTOOL"
9261 # Used on cygwin: object dumper.
9262 OBJDUMP="$OBJDUMP"
9264 # Used on cygwin: assembler.
9265 AS="$AS"
9267 # The name of the directory that contains temporary libtool files.
9268 objdir=$objdir
9270 # How to create reloadable object files.
9271 reload_flag=$lt_reload_flag
9272 reload_cmds=$lt_reload_cmds
9274 # How to pass a linker flag through the compiler.
9275 wl=$lt_lt_prog_compiler_wl
9277 # Object file suffix (normally "o").
9278 objext="$ac_objext"
9280 # Old archive suffix (normally "a").
9281 libext="$libext"
9283 # Shared library suffix (normally ".so").
9284 shrext_cmds='$shrext_cmds'
9286 # Executable file suffix (normally "").
9287 exeext="$exeext"
9289 # Additional compiler flags for building library objects.
9290 pic_flag=$lt_lt_prog_compiler_pic
9291 pic_mode=$pic_mode
9293 # What is the maximum length of a command?
9294 max_cmd_len=$lt_cv_sys_max_cmd_len
9296 # Does compiler simultaneously support -c and -o options?
9297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9299 # Must we lock files when doing compilation ?
9300 need_locks=$lt_need_locks
9302 # Do we need the lib prefix for modules?
9303 need_lib_prefix=$need_lib_prefix
9305 # Do we need a version for libraries?
9306 need_version=$need_version
9308 # Whether dlopen is supported.
9309 dlopen_support=$enable_dlopen
9311 # Whether dlopen of programs is supported.
9312 dlopen_self=$enable_dlopen_self
9314 # Whether dlopen of statically linked programs is supported.
9315 dlopen_self_static=$enable_dlopen_self_static
9317 # Compiler flag to prevent dynamic linking.
9318 link_static_flag=$lt_lt_prog_compiler_static
9320 # Compiler flag to turn off builtin functions.
9321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9323 # Compiler flag to allow reflexive dlopens.
9324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9326 # Compiler flag to generate shared objects directly from archives.
9327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9329 # Compiler flag to generate thread-safe objects.
9330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9332 # Library versioning type.
9333 version_type=$version_type
9335 # Format of library name prefix.
9336 libname_spec=$lt_libname_spec
9338 # List of archive names. First name is the real one, the rest are links.
9339 # The last name is the one that the linker finds with -lNAME.
9340 library_names_spec=$lt_library_names_spec
9342 # The coded name of the library, if different from the real name.
9343 soname_spec=$lt_soname_spec
9345 # Commands used to build and install an old-style archive.
9346 RANLIB=$lt_RANLIB
9347 old_archive_cmds=$lt_old_archive_cmds
9348 old_postinstall_cmds=$lt_old_postinstall_cmds
9349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9351 # Create an old-style archive from a shared archive.
9352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9354 # Create a temporary old-style archive to link instead of a shared archive.
9355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9357 # Commands used to build and install a shared archive.
9358 archive_cmds=$lt_archive_cmds
9359 archive_expsym_cmds=$lt_archive_expsym_cmds
9360 postinstall_cmds=$lt_postinstall_cmds
9361 postuninstall_cmds=$lt_postuninstall_cmds
9363 # Commands used to build a loadable module (assumed same as above if empty)
9364 module_cmds=$lt_module_cmds
9365 module_expsym_cmds=$lt_module_expsym_cmds
9367 # Commands to strip libraries.
9368 old_striplib=$lt_old_striplib
9369 striplib=$lt_striplib
9371 # Dependencies to place before the objects being linked to create a
9372 # shared library.
9373 predep_objects=$lt_predep_objects
9375 # Dependencies to place after the objects being linked to create a
9376 # shared library.
9377 postdep_objects=$lt_postdep_objects
9379 # Dependencies to place before the objects being linked to create a
9380 # shared library.
9381 predeps=$lt_predeps
9383 # Dependencies to place after the objects being linked to create a
9384 # shared library.
9385 postdeps=$lt_postdeps
9387 # The library search path used internally by the compiler when linking
9388 # a shared library.
9389 compiler_lib_search_path=$lt_compiler_lib_search_path
9391 # Method to check whether dependent libraries are shared objects.
9392 deplibs_check_method=$lt_deplibs_check_method
9394 # Command to use when deplibs_check_method == file_magic.
9395 file_magic_cmd=$lt_file_magic_cmd
9397 # Flag that allows shared libraries with undefined symbols to be built.
9398 allow_undefined_flag=$lt_allow_undefined_flag
9400 # Flag that forces no undefined symbols.
9401 no_undefined_flag=$lt_no_undefined_flag
9403 # Commands used to finish a libtool library installation in a directory.
9404 finish_cmds=$lt_finish_cmds
9406 # Same as above, but a single script fragment to be evaled but not shown.
9407 finish_eval=$lt_finish_eval
9409 # Take the output of nm and produce a listing of raw symbols and C names.
9410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9412 # Transform the output of nm in a proper C declaration
9413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9415 # Transform the output of nm in a C name address pair
9416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9418 # This is the shared library runtime path variable.
9419 runpath_var=$runpath_var
9421 # This is the shared library path variable.
9422 shlibpath_var=$shlibpath_var
9424 # Is shlibpath searched before the hard-coded library search path?
9425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9427 # How to hardcode a shared library path into an executable.
9428 hardcode_action=$hardcode_action
9430 # Whether we should hardcode library paths into libraries.
9431 hardcode_into_libs=$hardcode_into_libs
9433 # Flag to hardcode \$libdir into a binary during linking.
9434 # This must work even if \$libdir does not exist.
9435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9437 # If ld is used when linking, flag to hardcode \$libdir into
9438 # a binary during linking. This must work even if \$libdir does
9439 # not exist.
9440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9442 # Whether we need a single -rpath flag with a separated argument.
9443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9446 # resulting binary.
9447 hardcode_direct=$hardcode_direct
9449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9450 # resulting binary.
9451 hardcode_minus_L=$hardcode_minus_L
9453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9454 # the resulting binary.
9455 hardcode_shlibpath_var=$hardcode_shlibpath_var
9457 # Set to yes if building a shared library automatically hardcodes DIR into the library
9458 # and all subsequent libraries and executables linked against it.
9459 hardcode_automatic=$hardcode_automatic
9461 # Variables whose values should be saved in libtool wrapper scripts and
9462 # restored at relink time.
9463 variables_saved_for_relink="$variables_saved_for_relink"
9465 # Whether libtool must link a program against all its dependency libraries.
9466 link_all_deplibs=$link_all_deplibs
9468 # Compile-time system search path for libraries
9469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9471 # Run-time system search path for libraries
9472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9474 # Fix the shell variable \$srcfile for the compiler.
9475 fix_srcfile_path="$fix_srcfile_path"
9477 # Set to yes if exported symbols are required.
9478 always_export_symbols=$always_export_symbols
9480 # The commands to list exported symbols.
9481 export_symbols_cmds=$lt_export_symbols_cmds
9483 # The commands to extract the exported symbol list from a shared archive.
9484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9486 # Symbols that should not be listed in the preloaded symbols.
9487 exclude_expsyms=$lt_exclude_expsyms
9489 # Symbols that must always be exported.
9490 include_expsyms=$lt_include_expsyms
9492 # ### END LIBTOOL CONFIG
9494 __EOF__
9497 case $host_os in
9498 aix3*)
9499 cat <<\EOF >> "$cfgfile"
9501 # AIX sometimes has problems with the GCC collect2 program. For some
9502 # reason, if we set the COLLECT_NAMES environment variable, the problems
9503 # vanish in a puff of smoke.
9504 if test "X${COLLECT_NAMES+set}" != Xset; then
9505 COLLECT_NAMES=
9506 export COLLECT_NAMES
9510 esac
9512 # We use sed instead of cat because bash on DJGPP gets confused if
9513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9514 # text mode, it properly converts lines to CR/LF. This bash problem
9515 # is reportedly fixed, but why not run on old versions too?
9516 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9518 mv -f "$cfgfile" "$ofile" || \
9519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9520 chmod +x "$ofile"
9522 else
9523 # If there is no Makefile yet, we rely on a make rule to execute
9524 # `config.status --recheck' to rerun these tests and create the
9525 # libtool script then.
9526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9527 if test -f "$ltmain_in"; then
9528 test -f Makefile && make "$ltmain"
9533 ac_ext=c
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9539 CC="$lt_save_CC"
9542 # Check whether --with-tags or --without-tags was given.
9543 if test "${with_tags+set}" = set; then
9544 withval="$with_tags"
9545 tagnames="$withval"
9548 if test -f "$ltmain" && test -n "$tagnames"; then
9549 if test ! -f "${ofile}"; then
9550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9551 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9554 if test -z "$LTCC"; then
9555 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9556 if test -z "$LTCC"; then
9557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9558 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9559 else
9560 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9561 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9565 # Extract list of available tagged configurations in $ofile.
9566 # Note that this assumes the entire list is on one line.
9567 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9570 for tagname in $tagnames; do
9571 IFS="$lt_save_ifs"
9572 # Check whether tagname contains only valid characters
9573 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9574 "") ;;
9575 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9576 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9577 { (exit 1); exit 1; }; }
9579 esac
9581 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9582 then
9583 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9584 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9585 { (exit 1); exit 1; }; }
9588 # Update the list of available tags.
9589 if test -n "$tagname"; then
9590 echo appending configuration tag \"$tagname\" to $ofile
9592 case $tagname in
9593 CXX)
9594 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9595 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9596 (test "X$CXX" != "Xg++"))) ; then
9597 ac_ext=cc
9598 ac_cpp='$CXXCPP $CPPFLAGS'
9599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9606 archive_cmds_need_lc_CXX=no
9607 allow_undefined_flag_CXX=
9608 always_export_symbols_CXX=no
9609 archive_expsym_cmds_CXX=
9610 export_dynamic_flag_spec_CXX=
9611 hardcode_direct_CXX=no
9612 hardcode_libdir_flag_spec_CXX=
9613 hardcode_libdir_flag_spec_ld_CXX=
9614 hardcode_libdir_separator_CXX=
9615 hardcode_minus_L_CXX=no
9616 hardcode_automatic_CXX=no
9617 module_cmds_CXX=
9618 module_expsym_cmds_CXX=
9619 link_all_deplibs_CXX=unknown
9620 old_archive_cmds_CXX=$old_archive_cmds
9621 no_undefined_flag_CXX=
9622 whole_archive_flag_spec_CXX=
9623 enable_shared_with_static_runtimes_CXX=no
9625 # Dependencies to place before and after the object being linked:
9626 predep_objects_CXX=
9627 postdep_objects_CXX=
9628 predeps_CXX=
9629 postdeps_CXX=
9630 compiler_lib_search_path_CXX=
9632 # Source file extension for C++ test sources.
9633 ac_ext=cc
9635 # Object file extension for compiled C++ test sources.
9636 objext=o
9637 objext_CXX=$objext
9639 # Code to be used in simple compile tests
9640 lt_simple_compile_test_code="int some_variable = 0;\n"
9642 # Code to be used in simple link tests
9643 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9647 # If no C compiler was specified, use CC.
9648 LTCC=${LTCC-"$CC"}
9650 # Allow CC to be a program name with arguments.
9651 compiler=$CC
9654 # Allow CC to be a program name with arguments.
9655 lt_save_CC=$CC
9656 lt_save_LD=$LD
9657 lt_save_GCC=$GCC
9658 GCC=$GXX
9659 lt_save_with_gnu_ld=$with_gnu_ld
9660 lt_save_path_LD=$lt_cv_path_LD
9661 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9662 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9663 else
9664 unset lt_cv_prog_gnu_ld
9666 if test -n "${lt_cv_path_LDCXX+set}"; then
9667 lt_cv_path_LD=$lt_cv_path_LDCXX
9668 else
9669 unset lt_cv_path_LD
9671 test -z "${LDCXX+set}" || LD=$LDCXX
9672 CC=${CXX-"c++"}
9673 compiler=$CC
9674 compiler_CXX=$CC
9675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9677 # We don't want -fno-exception wen compiling C++ code, so set the
9678 # no_builtin_flag separately
9679 if test "$GXX" = yes; then
9680 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9681 else
9682 lt_prog_compiler_no_builtin_flag_CXX=
9685 if test "$GXX" = yes; then
9686 # Set up default GNU C++ configuration
9689 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9690 if test "${with_gnu_ld+set}" = set; then
9691 withval="$with_gnu_ld"
9692 test "$withval" = no || with_gnu_ld=yes
9693 else
9694 with_gnu_ld=no
9696 ac_prog=ld
9697 if test "$GCC" = yes; then
9698 # Check if gcc -print-prog-name=ld gives a path.
9699 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9700 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9701 case $host in
9702 *-*-mingw*)
9703 # gcc leaves a trailing carriage return which upsets mingw
9704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9707 esac
9708 case $ac_prog in
9709 # Accept absolute paths.
9710 [\\/]* | ?:[\\/]*)
9711 re_direlt='/[^/][^/]*/\.\./'
9712 # Canonicalize the pathname of ld
9713 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9715 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9716 done
9717 test -z "$LD" && LD="$ac_prog"
9720 # If it fails, then pretend we aren't using GCC.
9721 ac_prog=ld
9724 # If it is relative, then search for the first ld in PATH.
9725 with_gnu_ld=unknown
9727 esac
9728 elif test "$with_gnu_ld" = yes; then
9729 echo "$as_me:$LINENO: checking for GNU ld" >&5
9730 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9731 else
9732 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9733 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9735 if test "${lt_cv_path_LD+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 if test -z "$LD"; then
9739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9740 for ac_dir in $PATH; do
9741 IFS="$lt_save_ifs"
9742 test -z "$ac_dir" && ac_dir=.
9743 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9744 lt_cv_path_LD="$ac_dir/$ac_prog"
9745 # Check to see if the program is GNU ld. I'd rather use --version,
9746 # but apparently some GNU ld's only accept -v.
9747 # Break only if it was the GNU/non-GNU ld that we prefer.
9748 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9749 *GNU* | *'with BFD'*)
9750 test "$with_gnu_ld" != no && break
9753 test "$with_gnu_ld" != yes && break
9755 esac
9757 done
9758 IFS="$lt_save_ifs"
9759 else
9760 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9764 LD="$lt_cv_path_LD"
9765 if test -n "$LD"; then
9766 echo "$as_me:$LINENO: result: $LD" >&5
9767 echo "${ECHO_T}$LD" >&6
9768 else
9769 echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6
9772 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9773 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9774 { (exit 1); exit 1; }; }
9775 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9776 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9777 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9781 case `$LD -v 2>&1 </dev/null` in
9782 *GNU* | *'with BFD'*)
9783 lt_cv_prog_gnu_ld=yes
9786 lt_cv_prog_gnu_ld=no
9788 esac
9790 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9791 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9792 with_gnu_ld=$lt_cv_prog_gnu_ld
9796 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9797 # archiving commands below assume that GNU ld is being used.
9798 if test "$with_gnu_ld" = yes; then
9799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 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'
9802 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9805 # If archive_cmds runs LD, not CC, wlarc should be empty
9806 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9807 # investigate it a little bit more. (MM)
9808 wlarc='${wl}'
9810 # ancient GNU ld didn't support --whole-archive et. al.
9811 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9812 grep 'no-whole-archive' > /dev/null; then
9813 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9814 else
9815 whole_archive_flag_spec_CXX=
9817 else
9818 with_gnu_ld=no
9819 wlarc=
9821 # A generic and very simple default shared library creation
9822 # command for GNU C++ for the case where it uses the native
9823 # linker, instead of GNU ld. If possible, this setting should
9824 # overridden to take advantage of the native linker features on
9825 # the platform it is being used on.
9826 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9829 # Commands to make compiler produce verbose output that lists
9830 # what "hidden" libraries, object files and flags are used when
9831 # linking a shared library.
9832 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834 else
9835 GXX=no
9836 with_gnu_ld=no
9837 wlarc=
9840 # PORTME: fill in a description of your system's C++ link characteristics
9841 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9843 ld_shlibs_CXX=yes
9844 case $host_os in
9845 aix3*)
9846 # FIXME: insert proper C++ library support
9847 ld_shlibs_CXX=no
9849 aix4* | aix5*)
9850 if test "$host_cpu" = ia64; then
9851 # On IA64, the linker does run time linking by default, so we don't
9852 # have to do anything special.
9853 aix_use_runtimelinking=no
9854 exp_sym_flag='-Bexport'
9855 no_entry_flag=""
9856 else
9857 aix_use_runtimelinking=no
9859 # Test if we are trying to use run time linking or normal
9860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9861 # need to do runtime linking.
9862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9863 for ld_flag in $LDFLAGS; do
9864 case $ld_flag in
9865 *-brtl*)
9866 aix_use_runtimelinking=yes
9867 break
9869 esac
9870 done
9871 esac
9873 exp_sym_flag='-bexport'
9874 no_entry_flag='-bnoentry'
9877 # When large executables or shared objects are built, AIX ld can
9878 # have problems creating the table of contents. If linking a library
9879 # or program results in "error TOC overflow" add -mminimal-toc to
9880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9883 archive_cmds_CXX=''
9884 hardcode_direct_CXX=yes
9885 hardcode_libdir_separator_CXX=':'
9886 link_all_deplibs_CXX=yes
9888 if test "$GXX" = yes; then
9889 case $host_os in aix4.[012]|aix4.[012].*)
9890 # We only want to do this on AIX 4.2 and lower, the check
9891 # below for broken collect2 doesn't work under 4.3+
9892 collect2name=`${CC} -print-prog-name=collect2`
9893 if test -f "$collect2name" && \
9894 strings "$collect2name" | grep resolve_lib_name >/dev/null
9895 then
9896 # We have reworked collect2
9897 hardcode_direct_CXX=yes
9898 else
9899 # We have old collect2
9900 hardcode_direct_CXX=unsupported
9901 # It fails to find uninstalled libraries when the uninstalled
9902 # path is not listed in the libpath. Setting hardcode_minus_L
9903 # to unsupported forces relinking
9904 hardcode_minus_L_CXX=yes
9905 hardcode_libdir_flag_spec_CXX='-L$libdir'
9906 hardcode_libdir_separator_CXX=
9908 esac
9909 shared_flag='-shared'
9910 if test "$aix_use_runtimelinking" = yes; then
9911 shared_flag="$shared_flag "'${wl}-G'
9913 else
9914 # not using gcc
9915 if test "$host_cpu" = ia64; then
9916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9917 # chokes on -Wl,-G. The following line is correct:
9918 shared_flag='-G'
9919 else
9920 if test "$aix_use_runtimelinking" = yes; then
9921 shared_flag='${wl}-G'
9922 else
9923 shared_flag='${wl}-bM:SRE'
9928 # It seems that -bexpall does not export symbols beginning with
9929 # underscore (_), so it is better to generate a list of symbols to export.
9930 always_export_symbols_CXX=yes
9931 if test "$aix_use_runtimelinking" = yes; then
9932 # Warning - without using the other runtime loading flags (-brtl),
9933 # -berok will link without error, but may produce a broken library.
9934 allow_undefined_flag_CXX='-berok'
9935 # Determine the default libpath from the value encoded in an empty executable.
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9944 main ()
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953 (eval $ac_link) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_cxx_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976 # Check for a 64-bit object if we didn't find anything.
9977 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; }
9978 }'`; fi
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9990 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"
9991 else
9992 if test "$host_cpu" = ia64; then
9993 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9994 allow_undefined_flag_CXX="-z nodefs"
9995 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"
9996 else
9997 # Determine the default libpath from the value encoded in an empty executable.
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10006 main ()
10010 return 0;
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_cxx_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10038 # Check for a 64-bit object if we didn't find anything.
10039 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; }
10040 }'`; fi
10041 else
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10046 rm -f conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10051 # Warning - without using the other run time loading flags,
10052 # -berok will link without error, but may produce a broken library.
10053 no_undefined_flag_CXX=' ${wl}-bernotok'
10054 allow_undefined_flag_CXX=' ${wl}-berok'
10055 # -bexpall does not export symbols beginning with underscore (_)
10056 always_export_symbols_CXX=yes
10057 # Exported symbols can be pulled into shared objects from archives
10058 whole_archive_flag_spec_CXX=' '
10059 archive_cmds_need_lc_CXX=yes
10060 # This is similar to how AIX traditionally builds it's shared libraries.
10061 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'
10065 chorus*)
10066 case $cc_basename in
10068 # FIXME: insert proper C++ library support
10069 ld_shlibs_CXX=no
10071 esac
10075 cygwin* | mingw* | pw32*)
10076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10077 # as there is no search path for DLLs.
10078 hardcode_libdir_flag_spec_CXX='-L$libdir'
10079 allow_undefined_flag_CXX=unsupported
10080 always_export_symbols_CXX=no
10081 enable_shared_with_static_runtimes_CXX=yes
10083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10084 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'
10085 # If the export-symbols file already is a .def file (1st line
10086 # is EXPORTS), use it as is; otherwise, prepend...
10087 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10088 cp $export_symbols $output_objdir/$soname.def;
10089 else
10090 echo EXPORTS > $output_objdir/$soname.def;
10091 cat $export_symbols >> $output_objdir/$soname.def;
10093 $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'
10094 else
10095 ld_shlibs_CXX=no
10098 darwin* | rhapsody*)
10099 case "$host_os" in
10100 rhapsody* | darwin1.[012])
10101 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10103 *) # Darwin 1.3 on
10104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10105 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10106 else
10107 case ${MACOSX_DEPLOYMENT_TARGET} in
10108 10.[012])
10109 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10111 10.*)
10112 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10114 esac
10117 esac
10118 archive_cmds_need_lc_CXX=no
10119 hardcode_direct_CXX=no
10120 hardcode_automatic_CXX=yes
10121 hardcode_shlibpath_var_CXX=unsupported
10122 whole_archive_flag_spec_CXX=''
10123 link_all_deplibs_CXX=yes
10125 if test "$GXX" = yes ; then
10126 lt_int_apple_cc_single_mod=no
10127 output_verbose_link_cmd='echo'
10128 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10129 lt_int_apple_cc_single_mod=yes
10131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10132 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10133 else
10134 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'
10136 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10139 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}'
10140 else
10141 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}'
10143 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}'
10144 else
10145 case "$cc_basename" in
10146 xlc*)
10147 output_verbose_link_cmd='echo'
10148 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'
10149 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10151 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}'
10152 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}'
10155 ld_shlibs_CXX=no
10157 esac
10161 dgux*)
10162 case $cc_basename in
10163 ec++)
10164 # FIXME: insert proper C++ library support
10165 ld_shlibs_CXX=no
10167 ghcx)
10168 # Green Hills C++ Compiler
10169 # FIXME: insert proper C++ library support
10170 ld_shlibs_CXX=no
10173 # FIXME: insert proper C++ library support
10174 ld_shlibs_CXX=no
10176 esac
10178 freebsd[12]*)
10179 # C++ shared libraries reported to be fairly broken before switch to ELF
10180 ld_shlibs_CXX=no
10182 freebsd-elf*)
10183 archive_cmds_need_lc_CXX=no
10185 freebsd* | kfreebsd*-gnu | dragonfly*)
10186 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10187 # conventions
10188 ld_shlibs_CXX=yes
10190 gnu*)
10192 hpux9*)
10193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10194 hardcode_libdir_separator_CXX=:
10195 export_dynamic_flag_spec_CXX='${wl}-E'
10196 hardcode_direct_CXX=yes
10197 hardcode_minus_L_CXX=yes # Not in the search PATH,
10198 # but as the default
10199 # location of the library.
10201 case $cc_basename in
10203 # FIXME: insert proper C++ library support
10204 ld_shlibs_CXX=no
10206 aCC)
10207 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'
10208 # Commands to make compiler produce verbose output that lists
10209 # what "hidden" libraries, object files and flags are used when
10210 # linking a shared library.
10212 # There doesn't appear to be a way to prevent this compiler from
10213 # explicitly linking system object files so we need to strip them
10214 # from the output so that they don't get included in the library
10215 # dependencies.
10216 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'
10219 if test "$GXX" = yes; then
10220 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'
10221 else
10222 # FIXME: insert proper C++ library support
10223 ld_shlibs_CXX=no
10226 esac
10228 hpux10*|hpux11*)
10229 if test $with_gnu_ld = no; then
10230 case "$host_cpu" in
10231 hppa*64*)
10232 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10233 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10234 hardcode_libdir_separator_CXX=:
10236 ia64*)
10237 hardcode_libdir_flag_spec_CXX='-L$libdir'
10240 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10241 hardcode_libdir_separator_CXX=:
10242 export_dynamic_flag_spec_CXX='${wl}-E'
10244 esac
10246 case "$host_cpu" in
10247 hppa*64*)
10248 hardcode_direct_CXX=no
10249 hardcode_shlibpath_var_CXX=no
10251 ia64*)
10252 hardcode_direct_CXX=no
10253 hardcode_shlibpath_var_CXX=no
10254 hardcode_minus_L_CXX=yes # Not in the search PATH,
10255 # but as the default
10256 # location of the library.
10259 hardcode_direct_CXX=yes
10260 hardcode_minus_L_CXX=yes # Not in the search PATH,
10261 # but as the default
10262 # location of the library.
10264 esac
10266 case $cc_basename in
10268 # FIXME: insert proper C++ library support
10269 ld_shlibs_CXX=no
10271 aCC)
10272 case "$host_cpu" in
10273 hppa*64*|ia64*)
10274 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10279 esac
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10284 # There doesn't appear to be a way to prevent this compiler from
10285 # explicitly linking system object files so we need to strip them
10286 # from the output so that they don't get included in the library
10287 # dependencies.
10288 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'
10291 if test "$GXX" = yes; then
10292 if test $with_gnu_ld = no; then
10293 case "$host_cpu" in
10294 ia64*|hppa*64*)
10295 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10298 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'
10300 esac
10302 else
10303 # FIXME: insert proper C++ library support
10304 ld_shlibs_CXX=no
10307 esac
10309 irix5* | irix6*)
10310 case $cc_basename in
10312 # SGI C++
10313 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'
10315 # Archives containing C++ object files must be created using
10316 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10317 # necessary to make sure instantiated templates are included
10318 # in the archive.
10319 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10322 if test "$GXX" = yes; then
10323 if test "$with_gnu_ld" = no; then
10324 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'
10325 else
10326 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'
10329 link_all_deplibs_CXX=yes
10331 esac
10332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10333 hardcode_libdir_separator_CXX=:
10335 linux*)
10336 case $cc_basename in
10337 KCC)
10338 # Kuck and Associates, Inc. (KAI) C++ Compiler
10340 # KCC will only create a shared library if the output file
10341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10342 # to its proper name (with version) after linking.
10343 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'
10344 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'
10345 # Commands to make compiler produce verbose output that lists
10346 # what "hidden" libraries, object files and flags are used when
10347 # linking a shared library.
10349 # There doesn't appear to be a way to prevent this compiler from
10350 # explicitly linking system object files so we need to strip them
10351 # from the output so that they don't get included in the library
10352 # dependencies.
10353 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'
10355 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10358 # Archives containing C++ object files must be created using
10359 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10360 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10362 icpc)
10363 # Intel C++
10364 with_gnu_ld=yes
10365 # version 8.0 and above of icpc choke on multiply defined symbols
10366 # if we add $predep_objects and $postdep_objects, however 7.1 and
10367 # earlier do not add the objects themselves.
10368 case `$CC -V 2>&1` in
10369 *"Version 7."*)
10370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371 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'
10373 *) # Version 8.0 or newer
10374 tmp_idyn=
10375 case $host_cpu in
10376 ia64*) tmp_idyn=' -i_dynamic';;
10377 esac
10378 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379 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'
10381 esac
10382 archive_cmds_need_lc_CXX=no
10383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10385 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10387 pgCC)
10388 # Portland Group C++ compiler
10389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10390 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'
10392 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10395 cxx)
10396 # Compaq C++
10397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398 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'
10400 runpath_var=LD_RUN_PATH
10401 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10402 hardcode_libdir_separator_CXX=:
10404 # Commands to make compiler produce verbose output that lists
10405 # what "hidden" libraries, object files and flags are used when
10406 # linking a shared library.
10408 # There doesn't appear to be a way to prevent this compiler from
10409 # explicitly linking system object files so we need to strip them
10410 # from the output so that they don't get included in the library
10411 # dependencies.
10412 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'
10414 esac
10416 lynxos*)
10417 # FIXME: insert proper C++ library support
10418 ld_shlibs_CXX=no
10420 m88k*)
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10424 mvs*)
10425 case $cc_basename in
10426 cxx)
10427 # FIXME: insert proper C++ library support
10428 ld_shlibs_CXX=no
10431 # FIXME: insert proper C++ library support
10432 ld_shlibs_CXX=no
10434 esac
10436 netbsd*)
10437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10438 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10439 wlarc=
10440 hardcode_libdir_flag_spec_CXX='-R$libdir'
10441 hardcode_direct_CXX=yes
10442 hardcode_shlibpath_var_CXX=no
10444 # Workaround some broken pre-1.5 toolchains
10445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10447 openbsd2*)
10448 # C++ shared libraries are fairly broken
10449 ld_shlibs_CXX=no
10451 openbsd*)
10452 hardcode_direct_CXX=yes
10453 hardcode_shlibpath_var_CXX=no
10454 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10457 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10458 export_dynamic_flag_spec_CXX='${wl}-E'
10459 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10461 output_verbose_link_cmd='echo'
10463 osf3*)
10464 case $cc_basename in
10465 KCC)
10466 # Kuck and Associates, Inc. (KAI) C++ Compiler
10468 # KCC will only create a shared library if the output file
10469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10470 # to its proper name (with version) after linking.
10471 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'
10473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10474 hardcode_libdir_separator_CXX=:
10476 # Archives containing C++ object files must be created using
10477 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10478 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10481 RCC)
10482 # Rational C++ 2.4.1
10483 # FIXME: insert proper C++ library support
10484 ld_shlibs_CXX=no
10486 cxx)
10487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10488 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'
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10497 # There doesn't appear to be a way to prevent this compiler from
10498 # explicitly linking system object files so we need to strip them
10499 # from the output so that they don't get included in the library
10500 # dependencies.
10501 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'
10504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10506 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'
10508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10509 hardcode_libdir_separator_CXX=:
10511 # Commands to make compiler produce verbose output that lists
10512 # what "hidden" libraries, object files and flags are used when
10513 # linking a shared library.
10514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10516 else
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10521 esac
10523 osf4* | osf5*)
10524 case $cc_basename in
10525 KCC)
10526 # Kuck and Associates, Inc. (KAI) C++ Compiler
10528 # KCC will only create a shared library if the output file
10529 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10530 # to its proper name (with version) after linking.
10531 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'
10533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10534 hardcode_libdir_separator_CXX=:
10536 # Archives containing C++ object files must be created using
10537 # the KAI C++ compiler.
10538 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10540 RCC)
10541 # Rational C++ 2.4.1
10542 # FIXME: insert proper C++ library support
10543 ld_shlibs_CXX=no
10545 cxx)
10546 allow_undefined_flag_CXX=' -expect_unresolved \*'
10547 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'
10548 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10549 echo "-hidden">> $lib.exp~
10550 $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~
10551 $rm $lib.exp'
10553 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10554 hardcode_libdir_separator_CXX=:
10556 # Commands to make compiler produce verbose output that lists
10557 # what "hidden" libraries, object files and flags are used when
10558 # linking a shared library.
10560 # There doesn't appear to be a way to prevent this compiler from
10561 # explicitly linking system object files so we need to strip them
10562 # from the output so that they don't get included in the library
10563 # dependencies.
10564 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'
10567 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10569 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'
10571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10572 hardcode_libdir_separator_CXX=:
10574 # Commands to make compiler produce verbose output that lists
10575 # what "hidden" libraries, object files and flags are used when
10576 # linking a shared library.
10577 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10579 else
10580 # FIXME: insert proper C++ library support
10581 ld_shlibs_CXX=no
10584 esac
10586 psos*)
10587 # FIXME: insert proper C++ library support
10588 ld_shlibs_CXX=no
10590 sco*)
10591 archive_cmds_need_lc_CXX=no
10592 case $cc_basename in
10594 # FIXME: insert proper C++ library support
10595 ld_shlibs_CXX=no
10598 # FIXME: insert proper C++ library support
10599 ld_shlibs_CXX=no
10601 esac
10603 sunos4*)
10604 case $cc_basename in
10606 # Sun C++ 4.x
10607 # FIXME: insert proper C++ library support
10608 ld_shlibs_CXX=no
10610 lcc)
10611 # Lucid
10612 # FIXME: insert proper C++ library support
10613 ld_shlibs_CXX=no
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10619 esac
10621 solaris*)
10622 case $cc_basename in
10624 # Sun C++ 4.2, 5.x and Centerline C++
10625 no_undefined_flag_CXX=' -zdefs'
10626 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10628 $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'
10630 hardcode_libdir_flag_spec_CXX='-R$libdir'
10631 hardcode_shlibpath_var_CXX=no
10632 case $host_os in
10633 solaris2.[0-5] | solaris2.[0-5].*) ;;
10635 # The C++ compiler is used as linker so we must use $wl
10636 # flag to pass the commands to the underlying system
10637 # linker.
10638 # Supported since Solaris 2.6 (maybe 2.5.1?)
10639 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10641 esac
10642 link_all_deplibs_CXX=yes
10644 # Commands to make compiler produce verbose output that lists
10645 # what "hidden" libraries, object files and flags are used when
10646 # linking a shared library.
10648 # There doesn't appear to be a way to prevent this compiler from
10649 # explicitly linking system object files so we need to strip them
10650 # from the output so that they don't get included in the library
10651 # dependencies.
10652 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'
10654 # Archives containing C++ object files must be created using
10655 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10656 # necessary to make sure instantiated templates are included
10657 # in the archive.
10658 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10660 gcx)
10661 # Green Hills C++ Compiler
10662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10664 # The C++ compiler must be used to create the archive.
10665 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10668 # GNU C++ compiler with Solaris linker
10669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10670 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10671 if $CC --version | grep -v '^2\.7' > /dev/null; then
10672 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10673 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10674 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10676 # Commands to make compiler produce verbose output that lists
10677 # what "hidden" libraries, object files and flags are used when
10678 # linking a shared library.
10679 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10680 else
10681 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10682 # platform.
10683 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10685 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10687 # Commands to make compiler produce verbose output that lists
10688 # what "hidden" libraries, object files and flags are used when
10689 # linking a shared library.
10690 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10693 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10696 esac
10698 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10699 archive_cmds_need_lc_CXX=no
10701 tandem*)
10702 case $cc_basename in
10703 NCC)
10704 # NonStop-UX NCC 3.20
10705 # FIXME: insert proper C++ library support
10706 ld_shlibs_CXX=no
10709 # FIXME: insert proper C++ library support
10710 ld_shlibs_CXX=no
10712 esac
10714 vxworks*)
10715 # FIXME: insert proper C++ library support
10716 ld_shlibs_CXX=no
10719 # FIXME: insert proper C++ library support
10720 ld_shlibs_CXX=no
10722 esac
10723 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10724 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10725 test "$ld_shlibs_CXX" = no && can_build_shared=no
10727 GCC_CXX="$GXX"
10728 LD_CXX="$LD"
10731 cat > conftest.$ac_ext <<EOF
10732 class Foo
10734 public:
10735 Foo (void) { a = 0; }
10736 private:
10737 int a;
10741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742 (eval $ac_compile) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; then
10746 # Parse the compiler output and extract the necessary
10747 # objects, libraries and library flags.
10749 # Sentinel used to keep track of whether or not we are before
10750 # the conftest object file.
10751 pre_test_object_deps_done=no
10753 # The `*' in the case matches for architectures that use `case' in
10754 # $output_verbose_cmd can trigger glob expansion during the loop
10755 # eval without this substitution.
10756 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10758 for p in `eval $output_verbose_link_cmd`; do
10759 case $p in
10761 -L* | -R* | -l*)
10762 # Some compilers place space between "-{L,R}" and the path.
10763 # Remove the space.
10764 if test $p = "-L" \
10765 || test $p = "-R"; then
10766 prev=$p
10767 continue
10768 else
10769 prev=
10772 if test "$pre_test_object_deps_done" = no; then
10773 case $p in
10774 -L* | -R*)
10775 # Internal compiler library paths should come after those
10776 # provided the user. The postdeps already come after the
10777 # user supplied libs so there is no need to process them.
10778 if test -z "$compiler_lib_search_path_CXX"; then
10779 compiler_lib_search_path_CXX="${prev}${p}"
10780 else
10781 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10784 # The "-l" case would never come before the object being
10785 # linked, so don't bother handling this case.
10786 esac
10787 else
10788 if test -z "$postdeps_CXX"; then
10789 postdeps_CXX="${prev}${p}"
10790 else
10791 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10796 *.$objext)
10797 # This assumes that the test object file only shows up
10798 # once in the compiler output.
10799 if test "$p" = "conftest.$objext"; then
10800 pre_test_object_deps_done=yes
10801 continue
10804 if test "$pre_test_object_deps_done" = no; then
10805 if test -z "$predep_objects_CXX"; then
10806 predep_objects_CXX="$p"
10807 else
10808 predep_objects_CXX="$predep_objects_CXX $p"
10810 else
10811 if test -z "$postdep_objects_CXX"; then
10812 postdep_objects_CXX="$p"
10813 else
10814 postdep_objects_CXX="$postdep_objects_CXX $p"
10819 *) ;; # Ignore the rest.
10821 esac
10822 done
10824 # Clean up.
10825 rm -f a.out a.exe
10826 else
10827 echo "libtool.m4: error: problem compiling CXX test program"
10830 $rm -f confest.$objext
10832 case " $postdeps_CXX " in
10833 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10834 esac
10836 lt_prog_compiler_wl_CXX=
10837 lt_prog_compiler_pic_CXX=
10838 lt_prog_compiler_static_CXX=
10840 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10841 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10843 # C++ specific cases for pic, static, wl, etc.
10844 if test "$GXX" = yes; then
10845 lt_prog_compiler_wl_CXX='-Wl,'
10846 lt_prog_compiler_static_CXX='-static'
10848 case $host_os in
10849 aix*)
10850 # All AIX code is PIC.
10851 if test "$host_cpu" = ia64; then
10852 # AIX 5 now supports IA64 processor
10853 lt_prog_compiler_static_CXX='-Bstatic'
10856 amigaos*)
10857 # FIXME: we need at least 68020 code to build shared libraries, but
10858 # adding the `-m68020' flag to GCC prevents building anything better,
10859 # like `-m68040'.
10860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10862 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10863 # PIC is the default for these OSes.
10865 mingw* | os2* | pw32*)
10866 # This hack is so that the source file can tell whether it is being
10867 # built for inclusion in a dll (and should export symbols for example).
10868 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10870 darwin* | rhapsody*)
10871 # PIC is the default on this platform
10872 # Common symbols not allowed in MH_DYLIB files
10873 lt_prog_compiler_pic_CXX='-fno-common'
10875 *djgpp*)
10876 # DJGPP does not support shared libraries at all
10877 lt_prog_compiler_pic_CXX=
10879 sysv4*MP*)
10880 if test -d /usr/nec; then
10881 lt_prog_compiler_pic_CXX=-Kconform_pic
10884 hpux*)
10885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10886 # not for PA HP-UX.
10887 case "$host_cpu" in
10888 hppa*64*|ia64*)
10891 lt_prog_compiler_pic_CXX='-fPIC'
10893 esac
10896 lt_prog_compiler_pic_CXX='-fPIC'
10898 esac
10899 else
10900 case $host_os in
10901 aix4* | aix5*)
10902 # All AIX code is PIC.
10903 if test "$host_cpu" = ia64; then
10904 # AIX 5 now supports IA64 processor
10905 lt_prog_compiler_static_CXX='-Bstatic'
10906 else
10907 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10910 chorus*)
10911 case $cc_basename in
10912 cxch68)
10913 # Green Hills C++ Compiler
10914 # _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"
10916 esac
10918 darwin*)
10919 # PIC is the default on this platform
10920 # Common symbols not allowed in MH_DYLIB files
10921 case "$cc_basename" in
10922 xlc*)
10923 lt_prog_compiler_pic_CXX='-qnocommon'
10924 lt_prog_compiler_wl_CXX='-Wl,'
10926 esac
10928 dgux*)
10929 case $cc_basename in
10930 ec++)
10931 lt_prog_compiler_pic_CXX='-KPIC'
10933 ghcx)
10934 # Green Hills C++ Compiler
10935 lt_prog_compiler_pic_CXX='-pic'
10939 esac
10941 freebsd* | kfreebsd*-gnu | dragonfly*)
10942 # FreeBSD uses GNU C++
10944 hpux9* | hpux10* | hpux11*)
10945 case $cc_basename in
10947 lt_prog_compiler_wl_CXX='-Wl,'
10948 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10949 if test "$host_cpu" != ia64; then
10950 lt_prog_compiler_pic_CXX='+Z'
10953 aCC)
10954 lt_prog_compiler_wl_CXX='-Wl,'
10955 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10956 case "$host_cpu" in
10957 hppa*64*|ia64*)
10958 # +Z the default
10961 lt_prog_compiler_pic_CXX='+Z'
10963 esac
10967 esac
10969 irix5* | irix6* | nonstopux*)
10970 case $cc_basename in
10972 lt_prog_compiler_wl_CXX='-Wl,'
10973 lt_prog_compiler_static_CXX='-non_shared'
10974 # CC pic flag -KPIC is the default.
10978 esac
10980 linux*)
10981 case $cc_basename in
10982 KCC)
10983 # KAI C++ Compiler
10984 lt_prog_compiler_wl_CXX='--backend -Wl,'
10985 lt_prog_compiler_pic_CXX='-fPIC'
10987 icpc* | ecpc*)
10988 # Intel C++
10989 lt_prog_compiler_wl_CXX='-Wl,'
10990 lt_prog_compiler_pic_CXX='-KPIC'
10991 lt_prog_compiler_static_CXX='-static'
10993 pgCC)
10994 # Portland Group C++ compiler.
10995 lt_prog_compiler_wl_CXX='-Wl,'
10996 lt_prog_compiler_pic_CXX='-fpic'
10997 lt_prog_compiler_static_CXX='-static'
10999 cxx)
11000 # Compaq C++
11001 # Make sure the PIC flag is empty. It appears that all Alpha
11002 # Linux and Compaq Tru64 Unix objects are PIC.
11003 lt_prog_compiler_pic_CXX=
11004 lt_prog_compiler_static_CXX='-non_shared'
11008 esac
11010 lynxos*)
11012 m88k*)
11014 mvs*)
11015 case $cc_basename in
11016 cxx)
11017 lt_prog_compiler_pic_CXX='-W c,exportall'
11021 esac
11023 netbsd*)
11025 osf3* | osf4* | osf5*)
11026 case $cc_basename in
11027 KCC)
11028 lt_prog_compiler_wl_CXX='--backend -Wl,'
11030 RCC)
11031 # Rational C++ 2.4.1
11032 lt_prog_compiler_pic_CXX='-pic'
11034 cxx)
11035 # Digital/Compaq C++
11036 lt_prog_compiler_wl_CXX='-Wl,'
11037 # Make sure the PIC flag is empty. It appears that all Alpha
11038 # Linux and Compaq Tru64 Unix objects are PIC.
11039 lt_prog_compiler_pic_CXX=
11040 lt_prog_compiler_static_CXX='-non_shared'
11044 esac
11046 psos*)
11048 sco*)
11049 case $cc_basename in
11051 lt_prog_compiler_pic_CXX='-fPIC'
11055 esac
11057 solaris*)
11058 case $cc_basename in
11060 # Sun C++ 4.2, 5.x and Centerline C++
11061 lt_prog_compiler_pic_CXX='-KPIC'
11062 lt_prog_compiler_static_CXX='-Bstatic'
11063 lt_prog_compiler_wl_CXX='-Qoption ld '
11065 gcx)
11066 # Green Hills C++ Compiler
11067 lt_prog_compiler_pic_CXX='-PIC'
11071 esac
11073 sunos4*)
11074 case $cc_basename in
11076 # Sun C++ 4.x
11077 lt_prog_compiler_pic_CXX='-pic'
11078 lt_prog_compiler_static_CXX='-Bstatic'
11080 lcc)
11081 # Lucid
11082 lt_prog_compiler_pic_CXX='-pic'
11086 esac
11088 tandem*)
11089 case $cc_basename in
11090 NCC)
11091 # NonStop-UX NCC 3.20
11092 lt_prog_compiler_pic_CXX='-KPIC'
11096 esac
11098 unixware*)
11100 vxworks*)
11103 lt_prog_compiler_can_build_shared_CXX=no
11105 esac
11108 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11109 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11112 # Check to make sure the PIC flag actually works.
11114 if test -n "$lt_prog_compiler_pic_CXX"; then
11116 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11117 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11118 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 lt_prog_compiler_pic_works_CXX=no
11122 ac_outfile=conftest.$ac_objext
11123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11124 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11125 # Insert the option either (1) after the last *FLAGS variable, or
11126 # (2) before a word containing "conftest.", or (3) at the end.
11127 # Note that $ac_compile itself does not contain backslashes and begins
11128 # with a dollar sign (not a hyphen), so the echo should work correctly.
11129 # The option is referenced via a variable to avoid confusing sed.
11130 lt_compile=`echo "$ac_compile" | $SED \
11131 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11133 -e 's:$: $lt_compiler_flag:'`
11134 (eval echo "\"\$as_me:11134: $lt_compile\"" >&5)
11135 (eval "$lt_compile" 2>conftest.err)
11136 ac_status=$?
11137 cat conftest.err >&5
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 if (exit $ac_status) && test -s "$ac_outfile"; then
11140 # The compiler can only warn and ignore the option if not recognized
11141 # So say no if there are warnings
11142 if test ! -s conftest.err; then
11143 lt_prog_compiler_pic_works_CXX=yes
11146 $rm conftest*
11149 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11150 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11152 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11153 case $lt_prog_compiler_pic_CXX in
11154 "" | " "*) ;;
11155 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11156 esac
11157 else
11158 lt_prog_compiler_pic_CXX=
11159 lt_prog_compiler_can_build_shared_CXX=no
11163 case "$host_os" in
11164 # For platforms which do not support PIC, -DPIC is meaningless:
11165 *djgpp*)
11166 lt_prog_compiler_pic_CXX=
11169 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11171 esac
11173 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11175 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 lt_cv_prog_compiler_c_o_CXX=no
11179 $rm -r conftest 2>/dev/null
11180 mkdir conftest
11181 cd conftest
11182 mkdir out
11183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11185 lt_compiler_flag="-o out/conftest2.$ac_objext"
11186 # Insert the option either (1) after the last *FLAGS variable, or
11187 # (2) before a word containing "conftest.", or (3) at the end.
11188 # Note that $ac_compile itself does not contain backslashes and begins
11189 # with a dollar sign (not a hyphen), so the echo should work correctly.
11190 lt_compile=`echo "$ac_compile" | $SED \
11191 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11193 -e 's:$: $lt_compiler_flag:'`
11194 (eval echo "\"\$as_me:11194: $lt_compile\"" >&5)
11195 (eval "$lt_compile" 2>out/conftest.err)
11196 ac_status=$?
11197 cat out/conftest.err >&5
11198 echo "$as_me:11198: \$? = $ac_status" >&5
11199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11200 then
11201 # The compiler can only warn and ignore the option if not recognized
11202 # So say no if there are warnings
11203 if test ! -s out/conftest.err; then
11204 lt_cv_prog_compiler_c_o_CXX=yes
11207 chmod u+w .
11208 $rm conftest*
11209 # SGI C++ compiler will create directory out/ii_files/ for
11210 # template instantiation
11211 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11212 $rm out/* && rmdir out
11213 cd ..
11214 rmdir conftest
11215 $rm conftest*
11218 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11219 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11222 hard_links="nottested"
11223 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11224 # do not overwrite the value of need_locks provided by the user
11225 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11226 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11227 hard_links=yes
11228 $rm conftest*
11229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11230 touch conftest.a
11231 ln conftest.a conftest.b 2>&5 || hard_links=no
11232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11233 echo "$as_me:$LINENO: result: $hard_links" >&5
11234 echo "${ECHO_T}$hard_links" >&6
11235 if test "$hard_links" = no; then
11236 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11238 need_locks=warn
11240 else
11241 need_locks=no
11244 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11248 case $host_os in
11249 aix4* | aix5*)
11250 # If we're using GNU nm, then we don't want the "-C" option.
11251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11253 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'
11254 else
11255 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'
11258 pw32*)
11259 export_symbols_cmds_CXX="$ltdll_cmds"
11261 cygwin* | mingw*)
11262 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'
11265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11267 esac
11269 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11270 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11271 test "$ld_shlibs_CXX" = no && can_build_shared=no
11273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274 if test "$GCC" = yes; then
11275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11279 # Do we need to explicitly link libc?
11281 case "x$archive_cmds_need_lc_CXX" in
11282 x|xyes)
11283 # Assume -lc should be added
11284 archive_cmds_need_lc_CXX=yes
11286 if test "$enable_shared" = yes && test "$GCC" = yes; then
11287 case $archive_cmds_CXX in
11288 *'~'*)
11289 # FIXME: we may have to deal with multi-command sequences.
11291 '$CC '*)
11292 # Test whether the compiler implicitly links with -lc since on some
11293 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11294 # to ld, don't add -lc before -lgcc.
11295 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11296 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11297 $rm conftest*
11298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301 (eval $ac_compile) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } 2>conftest.err; then
11305 soname=conftest
11306 lib=conftest
11307 libobjs=conftest.$ac_objext
11308 deplibs=
11309 wl=$lt_prog_compiler_wl_CXX
11310 compiler_flags=-v
11311 linker_flags=-v
11312 verstring=
11313 output_objdir=.
11314 libname=conftest
11315 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11316 allow_undefined_flag_CXX=
11317 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11318 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }
11322 then
11323 archive_cmds_need_lc_CXX=no
11324 else
11325 archive_cmds_need_lc_CXX=yes
11327 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11328 else
11329 cat conftest.err 1>&5
11331 $rm conftest*
11332 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11333 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11335 esac
11338 esac
11340 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11341 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11342 library_names_spec=
11343 libname_spec='lib$name'
11344 soname_spec=
11345 shrext_cmds=".so"
11346 postinstall_cmds=
11347 postuninstall_cmds=
11348 finish_cmds=
11349 finish_eval=
11350 shlibpath_var=
11351 shlibpath_overrides_runpath=unknown
11352 version_type=none
11353 dynamic_linker="$host_os ld.so"
11354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11355 if test "$GCC" = yes; then
11356 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11357 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11358 # if the path contains ";" then we assume it to be the separator
11359 # otherwise default to the standard path separator (i.e. ":") - it is
11360 # assumed that no part of a normal pathname contains ";" but that should
11361 # okay in the real world where ";" in dirpaths is itself problematic.
11362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11363 else
11364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11366 else
11367 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11369 need_lib_prefix=unknown
11370 hardcode_into_libs=no
11372 # when you set need_version to no, make sure it does not cause -set_version
11373 # flags to be left without arguments
11374 need_version=unknown
11376 case $host_os in
11377 aix3*)
11378 version_type=linux
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11380 shlibpath_var=LIBPATH
11382 # AIX 3 has no versioning support, so we append a major version to the name.
11383 soname_spec='${libname}${release}${shared_ext}$major'
11386 aix4* | aix5*)
11387 version_type=linux
11388 need_lib_prefix=no
11389 need_version=no
11390 hardcode_into_libs=yes
11391 if test "$host_cpu" = ia64; then
11392 # AIX 5 supports IA64
11393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 else
11396 # With GCC up to 2.95.x, collect2 would create an import file
11397 # for dependence libraries. The import file would start with
11398 # the line `#! .'. This would cause the generated library to
11399 # depend on `.', always an invalid library. This was fixed in
11400 # development snapshots of GCC prior to 3.0.
11401 case $host_os in
11402 aix4 | aix4.[01] | aix4.[01].*)
11403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11404 echo ' yes '
11405 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11407 else
11408 can_build_shared=no
11411 esac
11412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11413 # soname into executable. Probably we can add versioning support to
11414 # collect2, so additional links can be useful in future.
11415 if test "$aix_use_runtimelinking" = yes; then
11416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11417 # instead of lib<name>.a to let people know that these are not
11418 # typical AIX shared libraries.
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 else
11421 # We preserve .a as extension for shared libraries through AIX4.2
11422 # and later when we are not doing run time linking.
11423 library_names_spec='${libname}${release}.a $libname.a'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LIBPATH
11430 amigaos*)
11431 library_names_spec='$libname.ixlibrary $libname.a'
11432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433 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'
11436 beos*)
11437 library_names_spec='${libname}${shared_ext}'
11438 dynamic_linker="$host_os ld.so"
11439 shlibpath_var=LIBRARY_PATH
11442 bsdi[45]*)
11443 version_type=linux
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11450 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11451 # the default ld.so.conf also contains /usr/contrib/lib and
11452 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11453 # libtool to hard-code these into programs
11456 cygwin* | mingw* | pw32*)
11457 version_type=windows
11458 shrext_cmds=".dll"
11459 need_version=no
11460 need_lib_prefix=no
11462 case $GCC,$host_os in
11463 yes,cygwin* | yes,mingw* | yes,pw32*)
11464 library_names_spec='$libname.dll.a'
11465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11466 postinstall_cmds='base_file=`basename \${file}`~
11467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11468 dldir=$destdir/`dirname \$dlpath`~
11469 test -d \$dldir || mkdir -p \$dldir~
11470 $install_prog $dir/$dlname \$dldir/$dlname'
11471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11472 dlpath=$dir/\$dldll~
11473 $rm \$dlpath'
11474 shlibpath_overrides_runpath=yes
11476 case $host_os in
11477 cygwin*)
11478 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11482 mingw*)
11483 # MinGW DLLs use traditional 'lib' prefix
11484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11486 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11487 # It is most probably a Windows format PATH printed by
11488 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11489 # path with ; separators, and with drive letters. We can handle the
11490 # drive letters (cygwin fileutils understands them), so leave them,
11491 # especially as we might pass files found there to a mingw objdump,
11492 # which wouldn't understand a cygwinified path. Ahh.
11493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11494 else
11495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11498 pw32*)
11499 # pw32 DLLs use 'pw' prefix rather than 'lib'
11500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11502 esac
11506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11508 esac
11509 dynamic_linker='Win32 ld.exe'
11510 # FIXME: first we should search . and the directory the executable is in
11511 shlibpath_var=PATH
11514 darwin* | rhapsody*)
11515 dynamic_linker="$host_os dyld"
11516 version_type=darwin
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11520 soname_spec='${libname}${release}${major}$shared_ext'
11521 shlibpath_overrides_runpath=yes
11522 shlibpath_var=DYLD_LIBRARY_PATH
11523 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11524 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11525 if test "$GCC" = yes; then
11526 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"`
11527 else
11528 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11533 dgux*)
11534 version_type=linux
11535 need_lib_prefix=no
11536 need_version=no
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11542 freebsd1*)
11543 dynamic_linker=no
11546 kfreebsd*-gnu)
11547 version_type=linux
11548 need_lib_prefix=no
11549 need_version=no
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=no
11554 hardcode_into_libs=yes
11555 dynamic_linker='GNU ld.so'
11558 freebsd* | dragonfly*)
11559 # DragonFly does not have aout. When/if they implement a new
11560 # versioning mechanism, adjust this.
11561 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11562 version_type=freebsd-$objformat
11563 case $version_type in
11564 freebsd-elf*)
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566 need_version=no
11567 need_lib_prefix=no
11569 freebsd-*)
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571 need_version=yes
11573 esac
11574 shlibpath_var=LD_LIBRARY_PATH
11575 case $host_os in
11576 freebsd2*)
11577 shlibpath_overrides_runpath=yes
11579 freebsd3.[01]* | freebsdelf3.[01]*)
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11583 *) # from 3.2 on
11584 shlibpath_overrides_runpath=no
11585 hardcode_into_libs=yes
11587 esac
11590 gnu*)
11591 version_type=linux
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 hardcode_into_libs=yes
11600 hpux9* | hpux10* | hpux11*)
11601 # Give a soname corresponding to the major version so that dld.sl refuses to
11602 # link against other versions.
11603 version_type=sunos
11604 need_lib_prefix=no
11605 need_version=no
11606 case "$host_cpu" in
11607 ia64*)
11608 shrext_cmds='.so'
11609 hardcode_into_libs=yes
11610 dynamic_linker="$host_os dld.so"
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 if test "X$HPUX_IA64_MODE" = X32; then
11616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11617 else
11618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11622 hppa*64*)
11623 shrext_cmds='.sl'
11624 hardcode_into_libs=yes
11625 dynamic_linker="$host_os dld.sl"
11626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634 shrext_cmds='.sl'
11635 dynamic_linker="$host_os dld.sl"
11636 shlibpath_var=SHLIB_PATH
11637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11641 esac
11642 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11643 postinstall_cmds='chmod 555 $lib'
11646 irix5* | irix6* | nonstopux*)
11647 case $host_os in
11648 nonstopux*) version_type=nonstopux ;;
11650 if test "$lt_cv_prog_gnu_ld" = yes; then
11651 version_type=linux
11652 else
11653 version_type=irix
11654 fi ;;
11655 esac
11656 need_lib_prefix=no
11657 need_version=no
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11660 case $host_os in
11661 irix5* | nonstopux*)
11662 libsuff= shlibsuff=
11665 case $LD in # libtool.m4 will add one of these switches to LD
11666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11667 libsuff= shlibsuff= libmagic=32-bit;;
11668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11669 libsuff=32 shlibsuff=N32 libmagic=N32;;
11670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11672 *) libsuff= shlibsuff= libmagic=never-match;;
11673 esac
11675 esac
11676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11677 shlibpath_overrides_runpath=no
11678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11680 hardcode_into_libs=yes
11683 # No shared lib support for Linux oldld, aout, or coff.
11684 linux*oldld* | linux*aout* | linux*coff*)
11685 dynamic_linker=no
11688 # This must be Linux ELF.
11689 linux*)
11690 version_type=linux
11691 need_lib_prefix=no
11692 need_version=no
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 # This implies no fast_install, which is unacceptable.
11699 # Some rework will be needed to allow for fast_install
11700 # before this can be enabled.
11701 hardcode_into_libs=yes
11703 # Append ld.so.conf contents to the search path
11704 if test -f /etc/ld.so.conf; then
11705 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' ' '`
11706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11709 # We used to test for /lib/ld.so.1 and disable shared libraries on
11710 # powerpc, because MkLinux only supported shared libraries with the
11711 # GNU dynamic linker. Since this was broken with cross compilers,
11712 # most powerpc-linux boxes support dynamic linking these days and
11713 # people can always --disable-shared, the test was removed, and we
11714 # assume the GNU/Linux dynamic linker is in use.
11715 dynamic_linker='GNU/Linux ld.so'
11718 knetbsd*-gnu)
11719 version_type=linux
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=no
11726 hardcode_into_libs=yes
11727 dynamic_linker='GNU ld.so'
11730 netbsd*)
11731 version_type=sunos
11732 need_lib_prefix=no
11733 need_version=no
11734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737 dynamic_linker='NetBSD (a.out) ld.so'
11738 else
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 dynamic_linker='NetBSD ld.elf_so'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11745 hardcode_into_libs=yes
11748 newsos6)
11749 version_type=linux
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11755 nto-qnx*)
11756 version_type=linux
11757 need_lib_prefix=no
11758 need_version=no
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11765 openbsd*)
11766 version_type=sunos
11767 need_lib_prefix=no
11768 need_version=no
11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11773 case $host_os in
11774 openbsd2.[89] | openbsd2.[89].*)
11775 shlibpath_overrides_runpath=no
11778 shlibpath_overrides_runpath=yes
11780 esac
11781 else
11782 shlibpath_overrides_runpath=yes
11786 os2*)
11787 libname_spec='$name'
11788 shrext_cmds=".dll"
11789 need_lib_prefix=no
11790 library_names_spec='$libname${shared_ext} $libname.a'
11791 dynamic_linker='OS/2 ld.exe'
11792 shlibpath_var=LIBPATH
11795 osf3* | osf4* | osf5*)
11796 version_type=osf
11797 need_lib_prefix=no
11798 need_version=no
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11806 sco3.2v5*)
11807 version_type=osf
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11813 solaris*)
11814 version_type=linux
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11826 sunos4*)
11827 version_type=sunos
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11833 need_lib_prefix=no
11835 need_version=yes
11838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11839 version_type=linux
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11844 sni)
11845 shlibpath_overrides_runpath=no
11846 need_lib_prefix=no
11847 export_dynamic_flag_spec='${wl}-Blargedynsym'
11848 runpath_var=LD_RUN_PATH
11850 siemens)
11851 need_lib_prefix=no
11853 motorola)
11854 need_lib_prefix=no
11855 need_version=no
11856 shlibpath_overrides_runpath=no
11857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11859 esac
11862 sysv4*MP*)
11863 if test -d /usr/nec ;then
11864 version_type=linux
11865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11866 soname_spec='$libname${shared_ext}.$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11871 uts4*)
11872 version_type=linux
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11879 dynamic_linker=no
11881 esac
11882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11883 echo "${ECHO_T}$dynamic_linker" >&6
11884 test "$dynamic_linker" = no && can_build_shared=no
11886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11888 hardcode_action_CXX=
11889 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11890 test -n "$runpath_var_CXX" || \
11891 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11893 # We can hardcode non-existant directories.
11894 if test "$hardcode_direct_CXX" != no &&
11895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11896 # have to relink, otherwise we might link with an installed library
11897 # when we should be linking with a yet-to-be-installed one
11898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11899 test "$hardcode_minus_L_CXX" != no; then
11900 # Linking always hardcodes the temporary library directory.
11901 hardcode_action_CXX=relink
11902 else
11903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11904 hardcode_action_CXX=immediate
11906 else
11907 # We cannot hardcode anything, or else we can only hardcode existing
11908 # directories.
11909 hardcode_action_CXX=unsupported
11911 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11912 echo "${ECHO_T}$hardcode_action_CXX" >&6
11914 if test "$hardcode_action_CXX" = relink; then
11915 # Fast installation is not supported
11916 enable_fast_install=no
11917 elif test "$shlibpath_overrides_runpath" = yes ||
11918 test "$enable_shared" = no; then
11919 # Fast installation is not necessary
11920 enable_fast_install=needless
11923 striplib=
11924 old_striplib=
11925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11930 echo "$as_me:$LINENO: result: yes" >&5
11931 echo "${ECHO_T}yes" >&6
11932 else
11933 # FIXME - insert some real tests, host_os isn't really good enough
11934 case $host_os in
11935 darwin*)
11936 if test -n "$STRIP" ; then
11937 striplib="$STRIP -x"
11938 echo "$as_me:$LINENO: result: yes" >&5
11939 echo "${ECHO_T}yes" >&6
11940 else
11941 echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6
11946 echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11949 esac
11952 if test "x$enable_dlopen" != xyes; then
11953 enable_dlopen=unknown
11954 enable_dlopen_self=unknown
11955 enable_dlopen_self_static=unknown
11956 else
11957 lt_cv_dlopen=no
11958 lt_cv_dlopen_libs=
11960 case $host_os in
11961 beos*)
11962 lt_cv_dlopen="load_add_on"
11963 lt_cv_dlopen_libs=
11964 lt_cv_dlopen_self=yes
11967 mingw* | pw32*)
11968 lt_cv_dlopen="LoadLibrary"
11969 lt_cv_dlopen_libs=
11972 cygwin*)
11973 lt_cv_dlopen="dlopen"
11974 lt_cv_dlopen_libs=
11977 darwin*)
11978 # if libdl is installed we need to link against it
11979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-ldl $LIBS"
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11993 /* Override any gcc2 internal prototype to avoid an error. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999 char dlopen ();
12001 main ()
12003 dlopen ();
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
12017 { ac_try='test -z "$ac_cxx_werror_flag"
12018 || test ! -s conftest.err'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_lib_dl_dlopen=yes
12031 else
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_cv_lib_dl_dlopen=no
12037 rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12043 if test $ac_cv_lib_dl_dlopen = yes; then
12044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12045 else
12047 lt_cv_dlopen="dyld"
12048 lt_cv_dlopen_libs=
12049 lt_cv_dlopen_self=yes
12056 echo "$as_me:$LINENO: checking for shl_load" >&5
12057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12058 if test "${ac_cv_func_shl_load+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12069 #define shl_load innocuous_shl_load
12071 /* System header to define __stub macros and hopefully few prototypes,
12072 which can conflict with char shl_load (); below.
12073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074 <limits.h> exists even on freestanding compilers. */
12076 #ifdef __STDC__
12077 # include <limits.h>
12078 #else
12079 # include <assert.h>
12080 #endif
12082 #undef shl_load
12084 /* Override any gcc2 internal prototype to avoid an error. */
12085 #ifdef __cplusplus
12086 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char shl_load ();
12092 /* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12096 choke me
12097 #else
12098 char (*f) () = shl_load;
12099 #endif
12100 #ifdef __cplusplus
12102 #endif
12105 main ()
12107 return f != shl_load;
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_cxx_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_func_shl_load=yes
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_func_shl_load=no
12141 rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12146 if test $ac_cv_func_shl_load = yes; then
12147 lt_cv_dlopen="shl_load"
12148 else
12149 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any gcc2 internal prototype to avoid an error. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 /* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169 char shl_load ();
12171 main ()
12173 shl_load ();
12175 return 0;
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_cxx_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_lib_dld_shl_load=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_lib_dld_shl_load=no
12207 rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12213 if test $ac_cv_lib_dld_shl_load = yes; then
12214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12215 else
12216 echo "$as_me:$LINENO: checking for dlopen" >&5
12217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12218 if test "${ac_cv_func_dlopen+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h. */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229 #define dlopen innocuous_dlopen
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char dlopen (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12236 #ifdef __STDC__
12237 # include <limits.h>
12238 #else
12239 # include <assert.h>
12240 #endif
12242 #undef dlopen
12244 /* Override any gcc2 internal prototype to avoid an error. */
12245 #ifdef __cplusplus
12246 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char dlopen ();
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12256 choke me
12257 #else
12258 char (*f) () = dlopen;
12259 #endif
12260 #ifdef __cplusplus
12262 #endif
12265 main ()
12267 return f != dlopen;
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_cxx_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_func_dlopen=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_func_dlopen=no
12301 rm -f conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12306 if test $ac_cv_func_dlopen = yes; then
12307 lt_cv_dlopen="dlopen"
12308 else
12309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314 ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldl $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 /* Override any gcc2 internal prototype to avoid an error. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char dlopen ();
12331 main ()
12333 dlopen ();
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_cxx_werror_flag"
12348 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_dl_dlopen=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12373 if test $ac_cv_lib_dl_dlopen = yes; then
12374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12375 else
12376 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lsvld $LIBS"
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 /* Override any gcc2 internal prototype to avoid an error. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char dlopen ();
12398 main ()
12400 dlopen ();
12402 return 0;
12404 _ACEOF
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_cxx_werror_flag"
12415 || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_lib_svld_dlopen=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_svld_dlopen=no
12434 rm -f conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12440 if test $ac_cv_lib_svld_dlopen = yes; then
12441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12442 else
12443 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldld $LIBS"
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char dld_link ();
12465 main ()
12467 dld_link ();
12469 return 0;
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_cxx_werror_flag"
12482 || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_lib_dld_dld_link=yes
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_dld_dld_link=no
12501 rm -f conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12507 if test $ac_cv_lib_dld_dld_link = yes; then
12508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12527 esac
12529 if test "x$lt_cv_dlopen" != xno; then
12530 enable_dlopen=yes
12531 else
12532 enable_dlopen=no
12535 case $lt_cv_dlopen in
12536 dlopen)
12537 save_CPPFLAGS="$CPPFLAGS"
12538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12540 save_LDFLAGS="$LDFLAGS"
12541 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12543 save_LIBS="$LIBS"
12544 LIBS="$lt_cv_dlopen_libs $LIBS"
12546 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12548 if test "${lt_cv_dlopen_self+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 if test "$cross_compiling" = yes; then :
12552 lt_cv_dlopen_self=cross
12553 else
12554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12555 lt_status=$lt_dlunknown
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12557 "configure"
12558 #include "confdefs.h"
12560 #if HAVE_DLFCN_H
12561 #include <dlfcn.h>
12562 #endif
12564 #include <stdio.h>
12566 #ifdef RTLD_GLOBAL
12567 # define LT_DLGLOBAL RTLD_GLOBAL
12568 #else
12569 # ifdef DL_GLOBAL
12570 # define LT_DLGLOBAL DL_GLOBAL
12571 # else
12572 # define LT_DLGLOBAL 0
12573 # endif
12574 #endif
12576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12577 find out it does not work in some platform. */
12578 #ifndef LT_DLLAZY_OR_NOW
12579 # ifdef RTLD_LAZY
12580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12581 # else
12582 # ifdef DL_LAZY
12583 # define LT_DLLAZY_OR_NOW DL_LAZY
12584 # else
12585 # ifdef RTLD_NOW
12586 # define LT_DLLAZY_OR_NOW RTLD_NOW
12587 # else
12588 # ifdef DL_NOW
12589 # define LT_DLLAZY_OR_NOW DL_NOW
12590 # else
12591 # define LT_DLLAZY_OR_NOW 0
12592 # endif
12593 # endif
12594 # endif
12595 # endif
12596 #endif
12598 #ifdef __cplusplus
12599 extern "C" void exit (int);
12600 #endif
12602 void fnord() { int i=42;}
12603 int main ()
12605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12606 int status = $lt_dlunknown;
12608 if (self)
12610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12612 /* dlclose (self); */
12615 exit (status);
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12623 (./conftest; exit; ) 2>/dev/null
12624 lt_status=$?
12625 case x$lt_status in
12626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12628 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12629 esac
12630 else :
12631 # compilation failed
12632 lt_cv_dlopen_self=no
12635 rm -fr conftest*
12639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12642 if test "x$lt_cv_dlopen_self" = xyes; then
12643 LDFLAGS="$LDFLAGS $link_static_flag"
12644 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12646 if test "${lt_cv_dlopen_self_static+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649 if test "$cross_compiling" = yes; then :
12650 lt_cv_dlopen_self_static=cross
12651 else
12652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12653 lt_status=$lt_dlunknown
12654 cat > conftest.$ac_ext <<EOF
12655 #line 12655 "configure"
12656 #include "confdefs.h"
12658 #if HAVE_DLFCN_H
12659 #include <dlfcn.h>
12660 #endif
12662 #include <stdio.h>
12664 #ifdef RTLD_GLOBAL
12665 # define LT_DLGLOBAL RTLD_GLOBAL
12666 #else
12667 # ifdef DL_GLOBAL
12668 # define LT_DLGLOBAL DL_GLOBAL
12669 # else
12670 # define LT_DLGLOBAL 0
12671 # endif
12672 #endif
12674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12675 find out it does not work in some platform. */
12676 #ifndef LT_DLLAZY_OR_NOW
12677 # ifdef RTLD_LAZY
12678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12679 # else
12680 # ifdef DL_LAZY
12681 # define LT_DLLAZY_OR_NOW DL_LAZY
12682 # else
12683 # ifdef RTLD_NOW
12684 # define LT_DLLAZY_OR_NOW RTLD_NOW
12685 # else
12686 # ifdef DL_NOW
12687 # define LT_DLLAZY_OR_NOW DL_NOW
12688 # else
12689 # define LT_DLLAZY_OR_NOW 0
12690 # endif
12691 # endif
12692 # endif
12693 # endif
12694 #endif
12696 #ifdef __cplusplus
12697 extern "C" void exit (int);
12698 #endif
12700 void fnord() { int i=42;}
12701 int main ()
12703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12704 int status = $lt_dlunknown;
12706 if (self)
12708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12710 /* dlclose (self); */
12713 exit (status);
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12721 (./conftest; exit; ) 2>/dev/null
12722 lt_status=$?
12723 case x$lt_status in
12724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12727 esac
12728 else :
12729 # compilation failed
12730 lt_cv_dlopen_self_static=no
12733 rm -fr conftest*
12737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12741 CPPFLAGS="$save_CPPFLAGS"
12742 LDFLAGS="$save_LDFLAGS"
12743 LIBS="$save_LIBS"
12745 esac
12747 case $lt_cv_dlopen_self in
12748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12749 *) enable_dlopen_self=unknown ;;
12750 esac
12752 case $lt_cv_dlopen_self_static in
12753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12754 *) enable_dlopen_self_static=unknown ;;
12755 esac
12759 # The else clause should only fire when bootstrapping the
12760 # libtool distribution, otherwise you forgot to ship ltmain.sh
12761 # with your package, and you will get complaints that there are
12762 # no rules to generate ltmain.sh.
12763 if test -f "$ltmain"; then
12764 # See if we are running on zsh, and set the options which allow our commands through
12765 # without removal of \ escapes.
12766 if test -n "${ZSH_VERSION+set}" ; then
12767 setopt NO_GLOB_SUBST
12769 # Now quote all the things that may contain metacharacters while being
12770 # careful not to overquote the AC_SUBSTed values. We take copies of the
12771 # variables and quote the copies for generation of the libtool script.
12772 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12773 SED SHELL STRIP \
12774 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12775 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12776 deplibs_check_method reload_flag reload_cmds need_locks \
12777 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12778 lt_cv_sys_global_symbol_to_c_name_address \
12779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12780 old_postinstall_cmds old_postuninstall_cmds \
12781 compiler_CXX \
12782 CC_CXX \
12783 LD_CXX \
12784 lt_prog_compiler_wl_CXX \
12785 lt_prog_compiler_pic_CXX \
12786 lt_prog_compiler_static_CXX \
12787 lt_prog_compiler_no_builtin_flag_CXX \
12788 export_dynamic_flag_spec_CXX \
12789 thread_safe_flag_spec_CXX \
12790 whole_archive_flag_spec_CXX \
12791 enable_shared_with_static_runtimes_CXX \
12792 old_archive_cmds_CXX \
12793 old_archive_from_new_cmds_CXX \
12794 predep_objects_CXX \
12795 postdep_objects_CXX \
12796 predeps_CXX \
12797 postdeps_CXX \
12798 compiler_lib_search_path_CXX \
12799 archive_cmds_CXX \
12800 archive_expsym_cmds_CXX \
12801 postinstall_cmds_CXX \
12802 postuninstall_cmds_CXX \
12803 old_archive_from_expsyms_cmds_CXX \
12804 allow_undefined_flag_CXX \
12805 no_undefined_flag_CXX \
12806 export_symbols_cmds_CXX \
12807 hardcode_libdir_flag_spec_CXX \
12808 hardcode_libdir_flag_spec_ld_CXX \
12809 hardcode_libdir_separator_CXX \
12810 hardcode_automatic_CXX \
12811 module_cmds_CXX \
12812 module_expsym_cmds_CXX \
12813 lt_cv_prog_compiler_c_o_CXX \
12814 exclude_expsyms_CXX \
12815 include_expsyms_CXX; do
12817 case $var in
12818 old_archive_cmds_CXX | \
12819 old_archive_from_new_cmds_CXX | \
12820 archive_cmds_CXX | \
12821 archive_expsym_cmds_CXX | \
12822 module_cmds_CXX | \
12823 module_expsym_cmds_CXX | \
12824 old_archive_from_expsyms_cmds_CXX | \
12825 export_symbols_cmds_CXX | \
12826 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12827 postinstall_cmds | postuninstall_cmds | \
12828 old_postinstall_cmds | old_postuninstall_cmds | \
12829 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12830 # Double-quote double-evaled strings.
12831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12836 esac
12837 done
12839 case $lt_echo in
12840 *'\$0 --fallback-echo"')
12841 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12843 esac
12845 cfgfile="$ofile"
12847 cat <<__EOF__ >> "$cfgfile"
12848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12852 # Shell to use when invoking shell scripts.
12853 SHELL=$lt_SHELL
12855 # Whether or not to build shared libraries.
12856 build_libtool_libs=$enable_shared
12858 # Whether or not to build static libraries.
12859 build_old_libs=$enable_static
12861 # Whether or not to add -lc for building shared libraries.
12862 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12864 # Whether or not to disallow shared libs when runtime libs are static
12865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12867 # Whether or not to optimize for fast installation.
12868 fast_install=$enable_fast_install
12870 # The host system.
12871 host_alias=$host_alias
12872 host=$host
12873 host_os=$host_os
12875 # The build system.
12876 build_alias=$build_alias
12877 build=$build
12878 build_os=$build_os
12880 # An echo program that does not interpret backslashes.
12881 echo=$lt_echo
12883 # The archiver.
12884 AR=$lt_AR
12885 AR_FLAGS=$lt_AR_FLAGS
12887 # A C compiler.
12888 LTCC=$lt_LTCC
12890 # A language-specific compiler.
12891 CC=$lt_compiler_CXX
12893 # Is the compiler the GNU C compiler?
12894 with_gcc=$GCC_CXX
12896 # An ERE matcher.
12897 EGREP=$lt_EGREP
12899 # The linker used to build libraries.
12900 LD=$lt_LD_CXX
12902 # Whether we need hard or soft links.
12903 LN_S=$lt_LN_S
12905 # A BSD-compatible nm program.
12906 NM=$lt_NM
12908 # A symbol stripping program
12909 STRIP=$lt_STRIP
12911 # Used to examine libraries when file_magic_cmd begins "file"
12912 MAGIC_CMD=$MAGIC_CMD
12914 # Used on cygwin: DLL creation program.
12915 DLLTOOL="$DLLTOOL"
12917 # Used on cygwin: object dumper.
12918 OBJDUMP="$OBJDUMP"
12920 # Used on cygwin: assembler.
12921 AS="$AS"
12923 # The name of the directory that contains temporary libtool files.
12924 objdir=$objdir
12926 # How to create reloadable object files.
12927 reload_flag=$lt_reload_flag
12928 reload_cmds=$lt_reload_cmds
12930 # How to pass a linker flag through the compiler.
12931 wl=$lt_lt_prog_compiler_wl_CXX
12933 # Object file suffix (normally "o").
12934 objext="$ac_objext"
12936 # Old archive suffix (normally "a").
12937 libext="$libext"
12939 # Shared library suffix (normally ".so").
12940 shrext_cmds='$shrext_cmds'
12942 # Executable file suffix (normally "").
12943 exeext="$exeext"
12945 # Additional compiler flags for building library objects.
12946 pic_flag=$lt_lt_prog_compiler_pic_CXX
12947 pic_mode=$pic_mode
12949 # What is the maximum length of a command?
12950 max_cmd_len=$lt_cv_sys_max_cmd_len
12952 # Does compiler simultaneously support -c and -o options?
12953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12955 # Must we lock files when doing compilation ?
12956 need_locks=$lt_need_locks
12958 # Do we need the lib prefix for modules?
12959 need_lib_prefix=$need_lib_prefix
12961 # Do we need a version for libraries?
12962 need_version=$need_version
12964 # Whether dlopen is supported.
12965 dlopen_support=$enable_dlopen
12967 # Whether dlopen of programs is supported.
12968 dlopen_self=$enable_dlopen_self
12970 # Whether dlopen of statically linked programs is supported.
12971 dlopen_self_static=$enable_dlopen_self_static
12973 # Compiler flag to prevent dynamic linking.
12974 link_static_flag=$lt_lt_prog_compiler_static_CXX
12976 # Compiler flag to turn off builtin functions.
12977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12979 # Compiler flag to allow reflexive dlopens.
12980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12982 # Compiler flag to generate shared objects directly from archives.
12983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12985 # Compiler flag to generate thread-safe objects.
12986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12988 # Library versioning type.
12989 version_type=$version_type
12991 # Format of library name prefix.
12992 libname_spec=$lt_libname_spec
12994 # List of archive names. First name is the real one, the rest are links.
12995 # The last name is the one that the linker finds with -lNAME.
12996 library_names_spec=$lt_library_names_spec
12998 # The coded name of the library, if different from the real name.
12999 soname_spec=$lt_soname_spec
13001 # Commands used to build and install an old-style archive.
13002 RANLIB=$lt_RANLIB
13003 old_archive_cmds=$lt_old_archive_cmds_CXX
13004 old_postinstall_cmds=$lt_old_postinstall_cmds
13005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13007 # Create an old-style archive from a shared archive.
13008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13010 # Create a temporary old-style archive to link instead of a shared archive.
13011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13013 # Commands used to build and install a shared archive.
13014 archive_cmds=$lt_archive_cmds_CXX
13015 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13016 postinstall_cmds=$lt_postinstall_cmds
13017 postuninstall_cmds=$lt_postuninstall_cmds
13019 # Commands used to build a loadable module (assumed same as above if empty)
13020 module_cmds=$lt_module_cmds_CXX
13021 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13023 # Commands to strip libraries.
13024 old_striplib=$lt_old_striplib
13025 striplib=$lt_striplib
13027 # Dependencies to place before the objects being linked to create a
13028 # shared library.
13029 predep_objects=$lt_predep_objects_CXX
13031 # Dependencies to place after the objects being linked to create a
13032 # shared library.
13033 postdep_objects=$lt_postdep_objects_CXX
13035 # Dependencies to place before the objects being linked to create a
13036 # shared library.
13037 predeps=$lt_predeps_CXX
13039 # Dependencies to place after the objects being linked to create a
13040 # shared library.
13041 postdeps=$lt_postdeps_CXX
13043 # The library search path used internally by the compiler when linking
13044 # a shared library.
13045 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13047 # Method to check whether dependent libraries are shared objects.
13048 deplibs_check_method=$lt_deplibs_check_method
13050 # Command to use when deplibs_check_method == file_magic.
13051 file_magic_cmd=$lt_file_magic_cmd
13053 # Flag that allows shared libraries with undefined symbols to be built.
13054 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13056 # Flag that forces no undefined symbols.
13057 no_undefined_flag=$lt_no_undefined_flag_CXX
13059 # Commands used to finish a libtool library installation in a directory.
13060 finish_cmds=$lt_finish_cmds
13062 # Same as above, but a single script fragment to be evaled but not shown.
13063 finish_eval=$lt_finish_eval
13065 # Take the output of nm and produce a listing of raw symbols and C names.
13066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13068 # Transform the output of nm in a proper C declaration
13069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13071 # Transform the output of nm in a C name address pair
13072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13074 # This is the shared library runtime path variable.
13075 runpath_var=$runpath_var
13077 # This is the shared library path variable.
13078 shlibpath_var=$shlibpath_var
13080 # Is shlibpath searched before the hard-coded library search path?
13081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13083 # How to hardcode a shared library path into an executable.
13084 hardcode_action=$hardcode_action_CXX
13086 # Whether we should hardcode library paths into libraries.
13087 hardcode_into_libs=$hardcode_into_libs
13089 # Flag to hardcode \$libdir into a binary during linking.
13090 # This must work even if \$libdir does not exist.
13091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13093 # If ld is used when linking, flag to hardcode \$libdir into
13094 # a binary during linking. This must work even if \$libdir does
13095 # not exist.
13096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13098 # Whether we need a single -rpath flag with a separated argument.
13099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13102 # resulting binary.
13103 hardcode_direct=$hardcode_direct_CXX
13105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13106 # resulting binary.
13107 hardcode_minus_L=$hardcode_minus_L_CXX
13109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13110 # the resulting binary.
13111 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13113 # Set to yes if building a shared library automatically hardcodes DIR into the library
13114 # and all subsequent libraries and executables linked against it.
13115 hardcode_automatic=$hardcode_automatic_CXX
13117 # Variables whose values should be saved in libtool wrapper scripts and
13118 # restored at relink time.
13119 variables_saved_for_relink="$variables_saved_for_relink"
13121 # Whether libtool must link a program against all its dependency libraries.
13122 link_all_deplibs=$link_all_deplibs_CXX
13124 # Compile-time system search path for libraries
13125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13127 # Run-time system search path for libraries
13128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13130 # Fix the shell variable \$srcfile for the compiler.
13131 fix_srcfile_path="$fix_srcfile_path_CXX"
13133 # Set to yes if exported symbols are required.
13134 always_export_symbols=$always_export_symbols_CXX
13136 # The commands to list exported symbols.
13137 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13139 # The commands to extract the exported symbol list from a shared archive.
13140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13142 # Symbols that should not be listed in the preloaded symbols.
13143 exclude_expsyms=$lt_exclude_expsyms_CXX
13145 # Symbols that must always be exported.
13146 include_expsyms=$lt_include_expsyms_CXX
13148 # ### END LIBTOOL TAG CONFIG: $tagname
13150 __EOF__
13153 else
13154 # If there is no Makefile yet, we rely on a make rule to execute
13155 # `config.status --recheck' to rerun these tests and create the
13156 # libtool script then.
13157 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13158 if test -f "$ltmain_in"; then
13159 test -f Makefile && make "$ltmain"
13164 ac_ext=c
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13170 CC=$lt_save_CC
13171 LDCXX=$LD
13172 LD=$lt_save_LD
13173 GCC=$lt_save_GCC
13174 with_gnu_ldcxx=$with_gnu_ld
13175 with_gnu_ld=$lt_save_with_gnu_ld
13176 lt_cv_path_LDCXX=$lt_cv_path_LD
13177 lt_cv_path_LD=$lt_save_path_LD
13178 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13179 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13181 else
13182 tagname=""
13186 F77)
13187 if test -n "$F77" && test "X$F77" != "Xno"; then
13189 ac_ext=f
13190 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13191 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13195 archive_cmds_need_lc_F77=no
13196 allow_undefined_flag_F77=
13197 always_export_symbols_F77=no
13198 archive_expsym_cmds_F77=
13199 export_dynamic_flag_spec_F77=
13200 hardcode_direct_F77=no
13201 hardcode_libdir_flag_spec_F77=
13202 hardcode_libdir_flag_spec_ld_F77=
13203 hardcode_libdir_separator_F77=
13204 hardcode_minus_L_F77=no
13205 hardcode_automatic_F77=no
13206 module_cmds_F77=
13207 module_expsym_cmds_F77=
13208 link_all_deplibs_F77=unknown
13209 old_archive_cmds_F77=$old_archive_cmds
13210 no_undefined_flag_F77=
13211 whole_archive_flag_spec_F77=
13212 enable_shared_with_static_runtimes_F77=no
13214 # Source file extension for f77 test sources.
13215 ac_ext=f
13217 # Object file extension for compiled f77 test sources.
13218 objext=o
13219 objext_F77=$objext
13221 # Code to be used in simple compile tests
13222 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13224 # Code to be used in simple link tests
13225 lt_simple_link_test_code=" program t\n end\n"
13227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13229 # If no C compiler was specified, use CC.
13230 LTCC=${LTCC-"$CC"}
13232 # Allow CC to be a program name with arguments.
13233 compiler=$CC
13236 # Allow CC to be a program name with arguments.
13237 lt_save_CC="$CC"
13238 CC=${F77-"f77"}
13239 compiler=$CC
13240 compiler_F77=$CC
13241 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13243 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13244 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13245 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13246 echo "${ECHO_T}$can_build_shared" >&6
13248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13249 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13250 test "$can_build_shared" = "no" && enable_shared=no
13252 # On AIX, shared libraries and static libraries use the same namespace, and
13253 # are all built from PIC.
13254 case "$host_os" in
13255 aix3*)
13256 test "$enable_shared" = yes && enable_static=no
13257 if test -n "$RANLIB"; then
13258 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13259 postinstall_cmds='$RANLIB $lib'
13262 aix4* | aix5*)
13263 test "$enable_shared" = yes && enable_static=no
13265 esac
13266 echo "$as_me:$LINENO: result: $enable_shared" >&5
13267 echo "${ECHO_T}$enable_shared" >&6
13269 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13270 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13271 # Make sure either enable_shared or enable_static is yes.
13272 test "$enable_shared" = yes || enable_static=yes
13273 echo "$as_me:$LINENO: result: $enable_static" >&5
13274 echo "${ECHO_T}$enable_static" >&6
13276 test "$ld_shlibs_F77" = no && can_build_shared=no
13278 GCC_F77="$G77"
13279 LD_F77="$LD"
13281 lt_prog_compiler_wl_F77=
13282 lt_prog_compiler_pic_F77=
13283 lt_prog_compiler_static_F77=
13285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13288 if test "$GCC" = yes; then
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_static_F77='-static'
13292 case $host_os in
13293 aix*)
13294 # All AIX code is PIC.
13295 if test "$host_cpu" = ia64; then
13296 # AIX 5 now supports IA64 processor
13297 lt_prog_compiler_static_F77='-Bstatic'
13301 amigaos*)
13302 # FIXME: we need at least 68020 code to build shared libraries, but
13303 # adding the `-m68020' flag to GCC prevents building anything better,
13304 # like `-m68040'.
13305 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13309 # PIC is the default for these OSes.
13312 mingw* | pw32* | os2*)
13313 # This hack is so that the source file can tell whether it is being
13314 # built for inclusion in a dll (and should export symbols for example).
13315 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13318 darwin* | rhapsody*)
13319 # PIC is the default on this platform
13320 # Common symbols not allowed in MH_DYLIB files
13321 lt_prog_compiler_pic_F77='-fno-common'
13324 msdosdjgpp*)
13325 # Just because we use GCC doesn't mean we suddenly get shared libraries
13326 # on systems that don't support them.
13327 lt_prog_compiler_can_build_shared_F77=no
13328 enable_shared=no
13331 sysv4*MP*)
13332 if test -d /usr/nec; then
13333 lt_prog_compiler_pic_F77=-Kconform_pic
13337 hpux*)
13338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13339 # not for PA HP-UX.
13340 case "$host_cpu" in
13341 hppa*64*|ia64*)
13342 # +Z the default
13345 lt_prog_compiler_pic_F77='-fPIC'
13347 esac
13351 lt_prog_compiler_pic_F77='-fPIC'
13353 esac
13354 else
13355 # PORTME Check for flag to pass linker flags through the system compiler.
13356 case $host_os in
13357 aix*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 if test "$host_cpu" = ia64; then
13360 # AIX 5 now supports IA64 processor
13361 lt_prog_compiler_static_F77='-Bstatic'
13362 else
13363 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13366 darwin*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case "$cc_basename" in
13370 xlc*)
13371 lt_prog_compiler_pic_F77='-qnocommon'
13372 lt_prog_compiler_wl_F77='-Wl,'
13374 esac
13377 mingw* | pw32* | os2*)
13378 # This hack is so that the source file can tell whether it is being
13379 # built for inclusion in a dll (and should export symbols for example).
13380 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13383 hpux9* | hpux10* | hpux11*)
13384 lt_prog_compiler_wl_F77='-Wl,'
13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386 # not for PA HP-UX.
13387 case "$host_cpu" in
13388 hppa*64*|ia64*)
13389 # +Z the default
13392 lt_prog_compiler_pic_F77='+Z'
13394 esac
13395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13396 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13399 irix5* | irix6* | nonstopux*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 # PIC (with -KPIC) is the default.
13402 lt_prog_compiler_static_F77='-non_shared'
13405 newsos6)
13406 lt_prog_compiler_pic_F77='-KPIC'
13407 lt_prog_compiler_static_F77='-Bstatic'
13410 linux*)
13411 case $cc_basename in
13412 icc* | ecc*)
13413 lt_prog_compiler_wl_F77='-Wl,'
13414 lt_prog_compiler_pic_F77='-KPIC'
13415 lt_prog_compiler_static_F77='-static'
13417 pgcc | pgf77 | pgf90)
13418 # Portland Group compilers (*not* the Pentium gcc compiler,
13419 # which looks to be a dead project)
13420 lt_prog_compiler_wl_F77='-Wl,'
13421 lt_prog_compiler_pic_F77='-fpic'
13422 lt_prog_compiler_static_F77='-static'
13424 ccc*)
13425 lt_prog_compiler_wl_F77='-Wl,'
13426 # All Alpha code is PIC.
13427 lt_prog_compiler_static_F77='-non_shared'
13429 como)
13430 lt_prog_compiler_wl_F77='-lopt='
13432 esac
13435 osf3* | osf4* | osf5*)
13436 lt_prog_compiler_wl_F77='-Wl,'
13437 # All OSF/1 code is PIC.
13438 lt_prog_compiler_static_F77='-non_shared'
13441 sco3.2v5*)
13442 lt_prog_compiler_pic_F77='-Kpic'
13443 lt_prog_compiler_static_F77='-dn'
13446 solaris*)
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 lt_prog_compiler_pic_F77='-KPIC'
13449 lt_prog_compiler_static_F77='-Bstatic'
13452 sunos4*)
13453 lt_prog_compiler_wl_F77='-Qoption ld '
13454 lt_prog_compiler_pic_F77='-PIC'
13455 lt_prog_compiler_static_F77='-Bstatic'
13458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13459 lt_prog_compiler_wl_F77='-Wl,'
13460 lt_prog_compiler_pic_F77='-KPIC'
13461 lt_prog_compiler_static_F77='-Bstatic'
13464 sysv4*MP*)
13465 if test -d /usr/nec ;then
13466 lt_prog_compiler_pic_F77='-Kconform_pic'
13467 lt_prog_compiler_static_F77='-Bstatic'
13471 unicos*)
13472 lt_prog_compiler_wl_F77='-Wl,'
13473 lt_prog_compiler_can_build_shared_F77=no
13476 uts4*)
13477 lt_prog_compiler_pic_F77='-pic'
13478 lt_prog_compiler_static_F77='-Bstatic'
13482 lt_prog_compiler_can_build_shared_F77=no
13484 esac
13487 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13488 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13491 # Check to make sure the PIC flag actually works.
13493 if test -n "$lt_prog_compiler_pic_F77"; then
13495 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13497 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 lt_prog_compiler_pic_works_F77=no
13501 ac_outfile=conftest.$ac_objext
13502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13503 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13504 # Insert the option either (1) after the last *FLAGS variable, or
13505 # (2) before a word containing "conftest.", or (3) at the end.
13506 # Note that $ac_compile itself does not contain backslashes and begins
13507 # with a dollar sign (not a hyphen), so the echo should work correctly.
13508 # The option is referenced via a variable to avoid confusing sed.
13509 lt_compile=`echo "$ac_compile" | $SED \
13510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512 -e 's:$: $lt_compiler_flag:'`
13513 (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
13514 (eval "$lt_compile" 2>conftest.err)
13515 ac_status=$?
13516 cat conftest.err >&5
13517 echo "$as_me:13517: \$? = $ac_status" >&5
13518 if (exit $ac_status) && test -s "$ac_outfile"; then
13519 # The compiler can only warn and ignore the option if not recognized
13520 # So say no if there are warnings
13521 if test ! -s conftest.err; then
13522 lt_prog_compiler_pic_works_F77=yes
13525 $rm conftest*
13528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13529 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13531 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13532 case $lt_prog_compiler_pic_F77 in
13533 "" | " "*) ;;
13534 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13535 esac
13536 else
13537 lt_prog_compiler_pic_F77=
13538 lt_prog_compiler_can_build_shared_F77=no
13542 case "$host_os" in
13543 # For platforms which do not support PIC, -DPIC is meaningless:
13544 *djgpp*)
13545 lt_prog_compiler_pic_F77=
13548 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13550 esac
13552 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13553 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13554 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 lt_cv_prog_compiler_c_o_F77=no
13558 $rm -r conftest 2>/dev/null
13559 mkdir conftest
13560 cd conftest
13561 mkdir out
13562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13564 lt_compiler_flag="-o out/conftest2.$ac_objext"
13565 # Insert the option either (1) after the last *FLAGS variable, or
13566 # (2) before a word containing "conftest.", or (3) at the end.
13567 # Note that $ac_compile itself does not contain backslashes and begins
13568 # with a dollar sign (not a hyphen), so the echo should work correctly.
13569 lt_compile=`echo "$ac_compile" | $SED \
13570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13572 -e 's:$: $lt_compiler_flag:'`
13573 (eval echo "\"\$as_me:13573: $lt_compile\"" >&5)
13574 (eval "$lt_compile" 2>out/conftest.err)
13575 ac_status=$?
13576 cat out/conftest.err >&5
13577 echo "$as_me:13577: \$? = $ac_status" >&5
13578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13579 then
13580 # The compiler can only warn and ignore the option if not recognized
13581 # So say no if there are warnings
13582 if test ! -s out/conftest.err; then
13583 lt_cv_prog_compiler_c_o_F77=yes
13586 chmod u+w .
13587 $rm conftest*
13588 # SGI C++ compiler will create directory out/ii_files/ for
13589 # template instantiation
13590 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13591 $rm out/* && rmdir out
13592 cd ..
13593 rmdir conftest
13594 $rm conftest*
13597 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13598 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13601 hard_links="nottested"
13602 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13603 # do not overwrite the value of need_locks provided by the user
13604 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13605 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13606 hard_links=yes
13607 $rm conftest*
13608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13609 touch conftest.a
13610 ln conftest.a conftest.b 2>&5 || hard_links=no
13611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13612 echo "$as_me:$LINENO: result: $hard_links" >&5
13613 echo "${ECHO_T}$hard_links" >&6
13614 if test "$hard_links" = no; then
13615 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13616 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13617 need_locks=warn
13619 else
13620 need_locks=no
13623 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13624 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13626 runpath_var=
13627 allow_undefined_flag_F77=
13628 enable_shared_with_static_runtimes_F77=no
13629 archive_cmds_F77=
13630 archive_expsym_cmds_F77=
13631 old_archive_From_new_cmds_F77=
13632 old_archive_from_expsyms_cmds_F77=
13633 export_dynamic_flag_spec_F77=
13634 whole_archive_flag_spec_F77=
13635 thread_safe_flag_spec_F77=
13636 hardcode_libdir_flag_spec_F77=
13637 hardcode_libdir_flag_spec_ld_F77=
13638 hardcode_libdir_separator_F77=
13639 hardcode_direct_F77=no
13640 hardcode_minus_L_F77=no
13641 hardcode_shlibpath_var_F77=unsupported
13642 link_all_deplibs_F77=unknown
13643 hardcode_automatic_F77=no
13644 module_cmds_F77=
13645 module_expsym_cmds_F77=
13646 always_export_symbols_F77=no
13647 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13648 # include_expsyms should be a list of space-separated symbols to be *always*
13649 # included in the symbol list
13650 include_expsyms_F77=
13651 # exclude_expsyms can be an extended regexp of symbols to exclude
13652 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13653 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13654 # as well as any symbol that contains `d'.
13655 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13657 # platforms (ab)use it in PIC code, but their linkers get confused if
13658 # the symbol is explicitly referenced. Since portable code cannot
13659 # rely on this symbol name, it's probably fine to never include it in
13660 # preloaded symbol tables.
13661 extract_expsyms_cmds=
13663 case $host_os in
13664 cygwin* | mingw* | pw32*)
13665 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13666 # When not using gcc, we currently assume that we are using
13667 # Microsoft Visual C++.
13668 if test "$GCC" != yes; then
13669 with_gnu_ld=no
13672 openbsd*)
13673 with_gnu_ld=no
13675 esac
13677 ld_shlibs_F77=yes
13678 if test "$with_gnu_ld" = yes; then
13679 # If archive_cmds runs LD, not CC, wlarc should be empty
13680 wlarc='${wl}'
13682 # See if GNU ld supports shared libraries.
13683 case $host_os in
13684 aix3* | aix4* | aix5*)
13685 # On AIX/PPC, the GNU linker is very broken
13686 if test "$host_cpu" != ia64; then
13687 ld_shlibs_F77=no
13688 cat <<EOF 1>&2
13690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13691 *** to be unable to reliably create shared libraries on AIX.
13692 *** Therefore, libtool is disabling shared libraries support. If you
13693 *** really care for shared libraries, you may want to modify your PATH
13694 *** so that a non-GNU linker is found, and then restart.
13700 amigaos*)
13701 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)'
13702 hardcode_libdir_flag_spec_F77='-L$libdir'
13703 hardcode_minus_L_F77=yes
13705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13706 # that the semantics of dynamic libraries on AmigaOS, at least up
13707 # to version 4, is to share data among multiple programs linked
13708 # with the same dynamic library. Since this doesn't match the
13709 # behavior of shared libraries on other platforms, we can't use
13710 # them.
13711 ld_shlibs_F77=no
13714 beos*)
13715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13716 allow_undefined_flag_F77=unsupported
13717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13718 # support --undefined. This deserves some investigation. FIXME
13719 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720 else
13721 ld_shlibs_F77=no
13725 cygwin* | mingw* | pw32*)
13726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13727 # as there is no search path for DLLs.
13728 hardcode_libdir_flag_spec_F77='-L$libdir'
13729 allow_undefined_flag_F77=unsupported
13730 always_export_symbols_F77=no
13731 enable_shared_with_static_runtimes_F77=yes
13732 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13735 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13736 # If the export-symbols file already is a .def file (1st line
13737 # is EXPORTS), use it as is; otherwise, prepend...
13738 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13739 cp $export_symbols $output_objdir/$soname.def;
13740 else
13741 echo EXPORTS > $output_objdir/$soname.def;
13742 cat $export_symbols >> $output_objdir/$soname.def;
13744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13745 else
13746 ld_shlibs_F77=no
13750 netbsd*)
13751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13752 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13753 wlarc=
13754 else
13755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13760 solaris* | sysv5*)
13761 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13762 ld_shlibs_F77=no
13763 cat <<EOF 1>&2
13765 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13766 *** create shared libraries on Solaris systems. Therefore, libtool
13767 *** is disabling shared libraries support. We urge you to upgrade GNU
13768 *** binutils to release 2.9.1 or newer. Another option is to modify
13769 *** your PATH or compiler configuration so that the native linker is
13770 *** used, and then restart.
13773 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13776 else
13777 ld_shlibs_F77=no
13781 sunos4*)
13782 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13783 wlarc=
13784 hardcode_direct_F77=yes
13785 hardcode_shlibpath_var_F77=no
13788 linux*)
13789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13790 tmp_addflag=
13791 case $CC,$host_cpu in
13792 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13793 tmp_addflag=' -fpic' ;;
13794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13795 tmp_addflag=' -i_dynamic' ;;
13796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13797 tmp_addflag=' -i_dynamic -nofor_main' ;;
13798 ifc* | ifort*) # Intel Fortran compiler
13799 tmp_addflag=' -nofor_main' ;;
13800 esac
13801 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13802 supports_anon_versioning=no
13803 case `$LD -v 2>/dev/null` in
13804 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13805 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13806 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13807 *\ 2.11.*) ;; # other 2.11 versions
13808 *) supports_anon_versioning=yes ;;
13809 esac
13810 if test $supports_anon_versioning = yes; then
13811 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13813 $echo "local: *; };" >> $output_objdir/$libname.ver~
13814 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13815 else
13816 archive_expsym_cmds_F77=$archive_cmds_F77
13818 else
13819 ld_shlibs_F77=no
13824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827 else
13828 ld_shlibs_F77=no
13831 esac
13833 if test "$ld_shlibs_F77" = yes; then
13834 runpath_var=LD_RUN_PATH
13835 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13836 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13837 # ancient GNU ld didn't support --whole-archive et. al.
13838 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13839 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13840 else
13841 whole_archive_flag_spec_F77=
13844 else
13845 # PORTME fill in a description of your system's linker (not GNU ld)
13846 case $host_os in
13847 aix3*)
13848 allow_undefined_flag_F77=unsupported
13849 always_export_symbols_F77=yes
13850 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'
13851 # Note: this linker hardcodes the directories in LIBPATH if there
13852 # are no directories specified by -L.
13853 hardcode_minus_L_F77=yes
13854 if test "$GCC" = yes && test -z "$link_static_flag"; then
13855 # Neither direct hardcoding nor static linking is supported with a
13856 # broken collect2.
13857 hardcode_direct_F77=unsupported
13861 aix4* | aix5*)
13862 if test "$host_cpu" = ia64; then
13863 # On IA64, the linker does run time linking by default, so we don't
13864 # have to do anything special.
13865 aix_use_runtimelinking=no
13866 exp_sym_flag='-Bexport'
13867 no_entry_flag=""
13868 else
13869 # If we're using GNU nm, then we don't want the "-C" option.
13870 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13871 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13872 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'
13873 else
13874 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'
13876 aix_use_runtimelinking=no
13878 # Test if we are trying to use run time linking or normal
13879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13880 # need to do runtime linking.
13881 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13882 for ld_flag in $LDFLAGS; do
13883 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13884 aix_use_runtimelinking=yes
13885 break
13887 done
13888 esac
13890 exp_sym_flag='-bexport'
13891 no_entry_flag='-bnoentry'
13894 # When large executables or shared objects are built, AIX ld can
13895 # have problems creating the table of contents. If linking a library
13896 # or program results in "error TOC overflow" add -mminimal-toc to
13897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13900 archive_cmds_F77=''
13901 hardcode_direct_F77=yes
13902 hardcode_libdir_separator_F77=':'
13903 link_all_deplibs_F77=yes
13905 if test "$GCC" = yes; then
13906 case $host_os in aix4.[012]|aix4.[012].*)
13907 # We only want to do this on AIX 4.2 and lower, the check
13908 # below for broken collect2 doesn't work under 4.3+
13909 collect2name=`${CC} -print-prog-name=collect2`
13910 if test -f "$collect2name" && \
13911 strings "$collect2name" | grep resolve_lib_name >/dev/null
13912 then
13913 # We have reworked collect2
13914 hardcode_direct_F77=yes
13915 else
13916 # We have old collect2
13917 hardcode_direct_F77=unsupported
13918 # It fails to find uninstalled libraries when the uninstalled
13919 # path is not listed in the libpath. Setting hardcode_minus_L
13920 # to unsupported forces relinking
13921 hardcode_minus_L_F77=yes
13922 hardcode_libdir_flag_spec_F77='-L$libdir'
13923 hardcode_libdir_separator_F77=
13925 esac
13926 shared_flag='-shared'
13927 if test "$aix_use_runtimelinking" = yes; then
13928 shared_flag="$shared_flag "'${wl}-G'
13930 else
13931 # not using gcc
13932 if test "$host_cpu" = ia64; then
13933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13934 # chokes on -Wl,-G. The following line is correct:
13935 shared_flag='-G'
13936 else
13937 if test "$aix_use_runtimelinking" = yes; then
13938 shared_flag='${wl}-G'
13939 else
13940 shared_flag='${wl}-bM:SRE'
13945 # It seems that -bexpall does not export symbols beginning with
13946 # underscore (_), so it is better to generate a list of symbols to export.
13947 always_export_symbols_F77=yes
13948 if test "$aix_use_runtimelinking" = yes; then
13949 # Warning - without using the other runtime loading flags (-brtl),
13950 # -berok will link without error, but may produce a broken library.
13951 allow_undefined_flag_F77='-berok'
13952 # Determine the default libpath from the value encoded in an empty executable.
13953 cat >conftest.$ac_ext <<_ACEOF
13954 program main
13957 _ACEOF
13958 rm -f conftest.$ac_objext conftest$ac_exeext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13960 (eval $ac_link) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_f77_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest$ac_exeext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13983 # Check for a 64-bit object if we didn't find anything.
13984 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; }
13985 }'`; fi
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13991 rm -f conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13995 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13996 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"
13997 else
13998 if test "$host_cpu" = ia64; then
13999 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14000 allow_undefined_flag_F77="-z nodefs"
14001 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"
14002 else
14003 # Determine the default libpath from the value encoded in an empty executable.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 program main
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_f77_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14034 # Check for a 64-bit object if we didn't find anything.
14035 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; }
14036 }'`; fi
14037 else
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14042 rm -f conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14046 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14047 # Warning - without using the other run time loading flags,
14048 # -berok will link without error, but may produce a broken library.
14049 no_undefined_flag_F77=' ${wl}-bernotok'
14050 allow_undefined_flag_F77=' ${wl}-berok'
14051 # -bexpall does not export symbols beginning with underscore (_)
14052 always_export_symbols_F77=yes
14053 # Exported symbols can be pulled into shared objects from archives
14054 whole_archive_flag_spec_F77=' '
14055 archive_cmds_need_lc_F77=yes
14056 # This is similar to how AIX traditionally builds it's shared libraries.
14057 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'
14062 amigaos*)
14063 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)'
14064 hardcode_libdir_flag_spec_F77='-L$libdir'
14065 hardcode_minus_L_F77=yes
14066 # see comment about different semantics on the GNU ld section
14067 ld_shlibs_F77=no
14070 bsdi[45]*)
14071 export_dynamic_flag_spec_F77=-rdynamic
14074 cygwin* | mingw* | pw32*)
14075 # When not using gcc, we currently assume that we are using
14076 # Microsoft Visual C++.
14077 # hardcode_libdir_flag_spec is actually meaningless, as there is
14078 # no search path for DLLs.
14079 hardcode_libdir_flag_spec_F77=' '
14080 allow_undefined_flag_F77=unsupported
14081 # Tell ltmain to make .lib files, not .a files.
14082 libext=lib
14083 # Tell ltmain to make .dll files, not .so files.
14084 shrext_cmds=".dll"
14085 # FIXME: Setting linknames here is a bad hack.
14086 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14087 # The linker will automatically build a .lib file if we build a DLL.
14088 old_archive_From_new_cmds_F77='true'
14089 # FIXME: Should let the user specify the lib program.
14090 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14091 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14092 enable_shared_with_static_runtimes_F77=yes
14095 darwin* | rhapsody*)
14096 case "$host_os" in
14097 rhapsody* | darwin1.[012])
14098 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14100 *) # Darwin 1.3 on
14101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14102 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14103 else
14104 case ${MACOSX_DEPLOYMENT_TARGET} in
14105 10.[012])
14106 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14108 10.*)
14109 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14111 esac
14114 esac
14115 archive_cmds_need_lc_F77=no
14116 hardcode_direct_F77=no
14117 hardcode_automatic_F77=yes
14118 hardcode_shlibpath_var_F77=unsupported
14119 whole_archive_flag_spec_F77=''
14120 link_all_deplibs_F77=yes
14121 if test "$GCC" = yes ; then
14122 output_verbose_link_cmd='echo'
14123 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14124 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14126 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}'
14127 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}'
14128 else
14129 case "$cc_basename" in
14130 xlc*)
14131 output_verbose_link_cmd='echo'
14132 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14133 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14135 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}'
14136 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}'
14139 ld_shlibs_F77=no
14141 esac
14145 dgux*)
14146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_libdir_flag_spec_F77='-L$libdir'
14148 hardcode_shlibpath_var_F77=no
14151 freebsd1*)
14152 ld_shlibs_F77=no
14155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14156 # support. Future versions do this automatically, but an explicit c++rt0.o
14157 # does not break anything, and helps significantly (at the cost of a little
14158 # extra space).
14159 freebsd2.2*)
14160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14161 hardcode_libdir_flag_spec_F77='-R$libdir'
14162 hardcode_direct_F77=yes
14163 hardcode_shlibpath_var_F77=no
14166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14167 freebsd2*)
14168 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14169 hardcode_direct_F77=yes
14170 hardcode_minus_L_F77=yes
14171 hardcode_shlibpath_var_F77=no
14174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14175 freebsd* | kfreebsd*-gnu | dragonfly*)
14176 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14177 hardcode_libdir_flag_spec_F77='-R$libdir'
14178 hardcode_direct_F77=yes
14179 hardcode_shlibpath_var_F77=no
14182 hpux9*)
14183 if test "$GCC" = yes; then
14184 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'
14185 else
14186 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'
14188 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14189 hardcode_libdir_separator_F77=:
14190 hardcode_direct_F77=yes
14192 # hardcode_minus_L: Not really in the search PATH,
14193 # but as the default location of the library.
14194 hardcode_minus_L_F77=yes
14195 export_dynamic_flag_spec_F77='${wl}-E'
14198 hpux10* | hpux11*)
14199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14200 case "$host_cpu" in
14201 hppa*64*|ia64*)
14202 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14207 esac
14208 else
14209 case "$host_cpu" in
14210 hppa*64*|ia64*)
14211 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14214 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14216 esac
14218 if test "$with_gnu_ld" = no; then
14219 case "$host_cpu" in
14220 hppa*64*)
14221 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14222 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14223 hardcode_libdir_separator_F77=:
14224 hardcode_direct_F77=no
14225 hardcode_shlibpath_var_F77=no
14227 ia64*)
14228 hardcode_libdir_flag_spec_F77='-L$libdir'
14229 hardcode_direct_F77=no
14230 hardcode_shlibpath_var_F77=no
14232 # hardcode_minus_L: Not really in the search PATH,
14233 # but as the default location of the library.
14234 hardcode_minus_L_F77=yes
14237 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14238 hardcode_libdir_separator_F77=:
14239 hardcode_direct_F77=yes
14240 export_dynamic_flag_spec_F77='${wl}-E'
14242 # hardcode_minus_L: Not really in the search PATH,
14243 # but as the default location of the library.
14244 hardcode_minus_L_F77=yes
14246 esac
14250 irix5* | irix6* | nonstopux*)
14251 if test "$GCC" = yes; then
14252 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'
14253 else
14254 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'
14255 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14257 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14258 hardcode_libdir_separator_F77=:
14259 link_all_deplibs_F77=yes
14262 netbsd*)
14263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14264 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14265 else
14266 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14268 hardcode_libdir_flag_spec_F77='-R$libdir'
14269 hardcode_direct_F77=yes
14270 hardcode_shlibpath_var_F77=no
14273 newsos6)
14274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_direct_F77=yes
14276 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14277 hardcode_libdir_separator_F77=:
14278 hardcode_shlibpath_var_F77=no
14281 openbsd*)
14282 hardcode_direct_F77=yes
14283 hardcode_shlibpath_var_F77=no
14284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14285 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14287 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14288 export_dynamic_flag_spec_F77='${wl}-E'
14289 else
14290 case $host_os in
14291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14292 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14293 hardcode_libdir_flag_spec_F77='-R$libdir'
14296 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14299 esac
14303 os2*)
14304 hardcode_libdir_flag_spec_F77='-L$libdir'
14305 hardcode_minus_L_F77=yes
14306 allow_undefined_flag_F77=unsupported
14307 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'
14308 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14311 osf3*)
14312 if test "$GCC" = yes; then
14313 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14314 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'
14315 else
14316 allow_undefined_flag_F77=' -expect_unresolved \*'
14317 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'
14319 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14320 hardcode_libdir_separator_F77=:
14323 osf4* | osf5*) # as osf3* with the addition of -msym flag
14324 if test "$GCC" = yes; then
14325 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14326 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'
14327 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14328 else
14329 allow_undefined_flag_F77=' -expect_unresolved \*'
14330 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'
14331 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~
14332 $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'
14334 # Both c and cxx compiler support -rpath directly
14335 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14337 hardcode_libdir_separator_F77=:
14340 sco3.2v5*)
14341 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342 hardcode_shlibpath_var_F77=no
14343 export_dynamic_flag_spec_F77='${wl}-Bexport'
14344 runpath_var=LD_RUN_PATH
14345 hardcode_runpath_var=yes
14348 solaris*)
14349 no_undefined_flag_F77=' -z text'
14350 if test "$GCC" = yes; then
14351 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14354 else
14355 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14359 hardcode_libdir_flag_spec_F77='-R$libdir'
14360 hardcode_shlibpath_var_F77=no
14361 case $host_os in
14362 solaris2.[0-5] | solaris2.[0-5].*) ;;
14363 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14364 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14365 esac
14366 link_all_deplibs_F77=yes
14369 sunos4*)
14370 if test "x$host_vendor" = xsequent; then
14371 # Use $CC to link under sequent, because it throws in some extra .o
14372 # files that make .init and .fini sections work.
14373 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14374 else
14375 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14377 hardcode_libdir_flag_spec_F77='-L$libdir'
14378 hardcode_direct_F77=yes
14379 hardcode_minus_L_F77=yes
14380 hardcode_shlibpath_var_F77=no
14383 sysv4)
14384 case $host_vendor in
14385 sni)
14386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14387 hardcode_direct_F77=yes # is this really true???
14389 siemens)
14390 ## LD is ld it makes a PLAMLIB
14391 ## CC just makes a GrossModule.
14392 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14393 reload_cmds_F77='$CC -r -o $output$reload_objs'
14394 hardcode_direct_F77=no
14396 motorola)
14397 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14400 esac
14401 runpath_var='LD_RUN_PATH'
14402 hardcode_shlibpath_var_F77=no
14405 sysv4.3*)
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_shlibpath_var_F77=no
14408 export_dynamic_flag_spec_F77='-Bexport'
14411 sysv4*MP*)
14412 if test -d /usr/nec; then
14413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14414 hardcode_shlibpath_var_F77=no
14415 runpath_var=LD_RUN_PATH
14416 hardcode_runpath_var=yes
14417 ld_shlibs_F77=yes
14421 sysv4.2uw2*)
14422 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_direct_F77=yes
14424 hardcode_minus_L_F77=no
14425 hardcode_shlibpath_var_F77=no
14426 hardcode_runpath_var=yes
14427 runpath_var=LD_RUN_PATH
14430 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14431 no_undefined_flag_F77='${wl}-z ${wl}text'
14432 if test "$GCC" = yes; then
14433 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14434 else
14435 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437 runpath_var='LD_RUN_PATH'
14438 hardcode_shlibpath_var_F77=no
14441 sysv5*)
14442 no_undefined_flag_F77=' -z text'
14443 # $CC -shared without GNU ld will not create a library from C++
14444 # object files and a static libstdc++, better avoid it by now
14445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14448 hardcode_libdir_flag_spec_F77=
14449 hardcode_shlibpath_var_F77=no
14450 runpath_var='LD_RUN_PATH'
14453 uts4*)
14454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14455 hardcode_libdir_flag_spec_F77='-L$libdir'
14456 hardcode_shlibpath_var_F77=no
14460 ld_shlibs_F77=no
14462 esac
14465 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14466 echo "${ECHO_T}$ld_shlibs_F77" >&6
14467 test "$ld_shlibs_F77" = no && can_build_shared=no
14469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14470 if test "$GCC" = yes; then
14471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14475 # Do we need to explicitly link libc?
14477 case "x$archive_cmds_need_lc_F77" in
14478 x|xyes)
14479 # Assume -lc should be added
14480 archive_cmds_need_lc_F77=yes
14482 if test "$enable_shared" = yes && test "$GCC" = yes; then
14483 case $archive_cmds_F77 in
14484 *'~'*)
14485 # FIXME: we may have to deal with multi-command sequences.
14487 '$CC '*)
14488 # Test whether the compiler implicitly links with -lc since on some
14489 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14490 # to ld, don't add -lc before -lgcc.
14491 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14493 $rm conftest*
14494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14497 (eval $ac_compile) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } 2>conftest.err; then
14501 soname=conftest
14502 lib=conftest
14503 libobjs=conftest.$ac_objext
14504 deplibs=
14505 wl=$lt_prog_compiler_wl_F77
14506 compiler_flags=-v
14507 linker_flags=-v
14508 verstring=
14509 output_objdir=.
14510 libname=conftest
14511 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14512 allow_undefined_flag_F77=
14513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14514 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }
14518 then
14519 archive_cmds_need_lc_F77=no
14520 else
14521 archive_cmds_need_lc_F77=yes
14523 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14524 else
14525 cat conftest.err 1>&5
14527 $rm conftest*
14528 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14529 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14531 esac
14534 esac
14536 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14537 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14538 library_names_spec=
14539 libname_spec='lib$name'
14540 soname_spec=
14541 shrext_cmds=".so"
14542 postinstall_cmds=
14543 postuninstall_cmds=
14544 finish_cmds=
14545 finish_eval=
14546 shlibpath_var=
14547 shlibpath_overrides_runpath=unknown
14548 version_type=none
14549 dynamic_linker="$host_os ld.so"
14550 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14551 if test "$GCC" = yes; then
14552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14553 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14554 # if the path contains ";" then we assume it to be the separator
14555 # otherwise default to the standard path separator (i.e. ":") - it is
14556 # assumed that no part of a normal pathname contains ";" but that should
14557 # okay in the real world where ";" in dirpaths is itself problematic.
14558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14559 else
14560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14562 else
14563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14565 need_lib_prefix=unknown
14566 hardcode_into_libs=no
14568 # when you set need_version to no, make sure it does not cause -set_version
14569 # flags to be left without arguments
14570 need_version=unknown
14572 case $host_os in
14573 aix3*)
14574 version_type=linux
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14576 shlibpath_var=LIBPATH
14578 # AIX 3 has no versioning support, so we append a major version to the name.
14579 soname_spec='${libname}${release}${shared_ext}$major'
14582 aix4* | aix5*)
14583 version_type=linux
14584 need_lib_prefix=no
14585 need_version=no
14586 hardcode_into_libs=yes
14587 if test "$host_cpu" = ia64; then
14588 # AIX 5 supports IA64
14589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 else
14592 # With GCC up to 2.95.x, collect2 would create an import file
14593 # for dependence libraries. The import file would start with
14594 # the line `#! .'. This would cause the generated library to
14595 # depend on `.', always an invalid library. This was fixed in
14596 # development snapshots of GCC prior to 3.0.
14597 case $host_os in
14598 aix4 | aix4.[01] | aix4.[01].*)
14599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14600 echo ' yes '
14601 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14603 else
14604 can_build_shared=no
14607 esac
14608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14609 # soname into executable. Probably we can add versioning support to
14610 # collect2, so additional links can be useful in future.
14611 if test "$aix_use_runtimelinking" = yes; then
14612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14613 # instead of lib<name>.a to let people know that these are not
14614 # typical AIX shared libraries.
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 else
14617 # We preserve .a as extension for shared libraries through AIX4.2
14618 # and later when we are not doing run time linking.
14619 library_names_spec='${libname}${release}.a $libname.a'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14622 shlibpath_var=LIBPATH
14626 amigaos*)
14627 library_names_spec='$libname.ixlibrary $libname.a'
14628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14629 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'
14632 beos*)
14633 library_names_spec='${libname}${shared_ext}'
14634 dynamic_linker="$host_os ld.so"
14635 shlibpath_var=LIBRARY_PATH
14638 bsdi[45]*)
14639 version_type=linux
14640 need_version=no
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14647 # the default ld.so.conf also contains /usr/contrib/lib and
14648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14649 # libtool to hard-code these into programs
14652 cygwin* | mingw* | pw32*)
14653 version_type=windows
14654 shrext_cmds=".dll"
14655 need_version=no
14656 need_lib_prefix=no
14658 case $GCC,$host_os in
14659 yes,cygwin* | yes,mingw* | yes,pw32*)
14660 library_names_spec='$libname.dll.a'
14661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14662 postinstall_cmds='base_file=`basename \${file}`~
14663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14664 dldir=$destdir/`dirname \$dlpath`~
14665 test -d \$dldir || mkdir -p \$dldir~
14666 $install_prog $dir/$dlname \$dldir/$dlname'
14667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14668 dlpath=$dir/\$dldll~
14669 $rm \$dlpath'
14670 shlibpath_overrides_runpath=yes
14672 case $host_os in
14673 cygwin*)
14674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14678 mingw*)
14679 # MinGW DLLs use traditional 'lib' prefix
14680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14683 # It is most probably a Windows format PATH printed by
14684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14685 # path with ; separators, and with drive letters. We can handle the
14686 # drive letters (cygwin fileutils understands them), so leave them,
14687 # especially as we might pass files found there to a mingw objdump,
14688 # which wouldn't understand a cygwinified path. Ahh.
14689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14690 else
14691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14694 pw32*)
14695 # pw32 DLLs use 'pw' prefix rather than 'lib'
14696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14698 esac
14702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14704 esac
14705 dynamic_linker='Win32 ld.exe'
14706 # FIXME: first we should search . and the directory the executable is in
14707 shlibpath_var=PATH
14710 darwin* | rhapsody*)
14711 dynamic_linker="$host_os dyld"
14712 version_type=darwin
14713 need_lib_prefix=no
14714 need_version=no
14715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14716 soname_spec='${libname}${release}${major}$shared_ext'
14717 shlibpath_overrides_runpath=yes
14718 shlibpath_var=DYLD_LIBRARY_PATH
14719 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14721 if test "$GCC" = yes; then
14722 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"`
14723 else
14724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14729 dgux*)
14730 version_type=linux
14731 need_lib_prefix=no
14732 need_version=no
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 shlibpath_var=LD_LIBRARY_PATH
14738 freebsd1*)
14739 dynamic_linker=no
14742 kfreebsd*-gnu)
14743 version_type=linux
14744 need_lib_prefix=no
14745 need_version=no
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=no
14750 hardcode_into_libs=yes
14751 dynamic_linker='GNU ld.so'
14754 freebsd* | dragonfly*)
14755 # DragonFly does not have aout. When/if they implement a new
14756 # versioning mechanism, adjust this.
14757 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14758 version_type=freebsd-$objformat
14759 case $version_type in
14760 freebsd-elf*)
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14762 need_version=no
14763 need_lib_prefix=no
14765 freebsd-*)
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14767 need_version=yes
14769 esac
14770 shlibpath_var=LD_LIBRARY_PATH
14771 case $host_os in
14772 freebsd2*)
14773 shlibpath_overrides_runpath=yes
14775 freebsd3.[01]* | freebsdelf3.[01]*)
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14779 *) # from 3.2 on
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14783 esac
14786 gnu*)
14787 version_type=linux
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 hardcode_into_libs=yes
14796 hpux9* | hpux10* | hpux11*)
14797 # Give a soname corresponding to the major version so that dld.sl refuses to
14798 # link against other versions.
14799 version_type=sunos
14800 need_lib_prefix=no
14801 need_version=no
14802 case "$host_cpu" in
14803 ia64*)
14804 shrext_cmds='.so'
14805 hardcode_into_libs=yes
14806 dynamic_linker="$host_os dld.so"
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 if test "X$HPUX_IA64_MODE" = X32; then
14812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14813 else
14814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14818 hppa*64*)
14819 shrext_cmds='.sl'
14820 hardcode_into_libs=yes
14821 dynamic_linker="$host_os dld.sl"
14822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14830 shrext_cmds='.sl'
14831 dynamic_linker="$host_os dld.sl"
14832 shlibpath_var=SHLIB_PATH
14833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14837 esac
14838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14839 postinstall_cmds='chmod 555 $lib'
14842 irix5* | irix6* | nonstopux*)
14843 case $host_os in
14844 nonstopux*) version_type=nonstopux ;;
14846 if test "$lt_cv_prog_gnu_ld" = yes; then
14847 version_type=linux
14848 else
14849 version_type=irix
14850 fi ;;
14851 esac
14852 need_lib_prefix=no
14853 need_version=no
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14856 case $host_os in
14857 irix5* | nonstopux*)
14858 libsuff= shlibsuff=
14861 case $LD in # libtool.m4 will add one of these switches to LD
14862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14863 libsuff= shlibsuff= libmagic=32-bit;;
14864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14865 libsuff=32 shlibsuff=N32 libmagic=N32;;
14866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14867 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14868 *) libsuff= shlibsuff= libmagic=never-match;;
14869 esac
14871 esac
14872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14873 shlibpath_overrides_runpath=no
14874 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14875 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14876 hardcode_into_libs=yes
14879 # No shared lib support for Linux oldld, aout, or coff.
14880 linux*oldld* | linux*aout* | linux*coff*)
14881 dynamic_linker=no
14884 # This must be Linux ELF.
14885 linux*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=no
14894 # This implies no fast_install, which is unacceptable.
14895 # Some rework will be needed to allow for fast_install
14896 # before this can be enabled.
14897 hardcode_into_libs=yes
14899 # Append ld.so.conf contents to the search path
14900 if test -f /etc/ld.so.conf; then
14901 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' ' '`
14902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14905 # We used to test for /lib/ld.so.1 and disable shared libraries on
14906 # powerpc, because MkLinux only supported shared libraries with the
14907 # GNU dynamic linker. Since this was broken with cross compilers,
14908 # most powerpc-linux boxes support dynamic linking these days and
14909 # people can always --disable-shared, the test was removed, and we
14910 # assume the GNU/Linux dynamic linker is in use.
14911 dynamic_linker='GNU/Linux ld.so'
14914 knetbsd*-gnu)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=no
14922 hardcode_into_libs=yes
14923 dynamic_linker='GNU ld.so'
14926 netbsd*)
14927 version_type=sunos
14928 need_lib_prefix=no
14929 need_version=no
14930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14933 dynamic_linker='NetBSD (a.out) ld.so'
14934 else
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 dynamic_linker='NetBSD ld.elf_so'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14944 newsos6)
14945 version_type=linux
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14951 nto-qnx*)
14952 version_type=linux
14953 need_lib_prefix=no
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath=yes
14961 openbsd*)
14962 version_type=sunos
14963 need_lib_prefix=no
14964 need_version=no
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14969 case $host_os in
14970 openbsd2.[89] | openbsd2.[89].*)
14971 shlibpath_overrides_runpath=no
14974 shlibpath_overrides_runpath=yes
14976 esac
14977 else
14978 shlibpath_overrides_runpath=yes
14982 os2*)
14983 libname_spec='$name'
14984 shrext_cmds=".dll"
14985 need_lib_prefix=no
14986 library_names_spec='$libname${shared_ext} $libname.a'
14987 dynamic_linker='OS/2 ld.exe'
14988 shlibpath_var=LIBPATH
14991 osf3* | osf4* | osf5*)
14992 version_type=osf
14993 need_lib_prefix=no
14994 need_version=no
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15002 sco3.2v5*)
15003 version_type=osf
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 shlibpath_var=LD_LIBRARY_PATH
15009 solaris*)
15010 version_type=linux
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15018 # ldd complains unless libraries are executable
15019 postinstall_cmds='chmod +x $lib'
15022 sunos4*)
15023 version_type=sunos
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes
15028 if test "$with_gnu_ld" = yes; then
15029 need_lib_prefix=no
15031 need_version=yes
15034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15035 version_type=linux
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 case $host_vendor in
15040 sni)
15041 shlibpath_overrides_runpath=no
15042 need_lib_prefix=no
15043 export_dynamic_flag_spec='${wl}-Blargedynsym'
15044 runpath_var=LD_RUN_PATH
15046 siemens)
15047 need_lib_prefix=no
15049 motorola)
15050 need_lib_prefix=no
15051 need_version=no
15052 shlibpath_overrides_runpath=no
15053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15055 esac
15058 sysv4*MP*)
15059 if test -d /usr/nec ;then
15060 version_type=linux
15061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15062 soname_spec='$libname${shared_ext}.$major'
15063 shlibpath_var=LD_LIBRARY_PATH
15067 uts4*)
15068 version_type=linux
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15075 dynamic_linker=no
15077 esac
15078 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15079 echo "${ECHO_T}$dynamic_linker" >&6
15080 test "$dynamic_linker" = no && can_build_shared=no
15082 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15084 hardcode_action_F77=
15085 if test -n "$hardcode_libdir_flag_spec_F77" || \
15086 test -n "$runpath_var_F77" || \
15087 test "X$hardcode_automatic_F77" = "Xyes" ; then
15089 # We can hardcode non-existant directories.
15090 if test "$hardcode_direct_F77" != no &&
15091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15092 # have to relink, otherwise we might link with an installed library
15093 # when we should be linking with a yet-to-be-installed one
15094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15095 test "$hardcode_minus_L_F77" != no; then
15096 # Linking always hardcodes the temporary library directory.
15097 hardcode_action_F77=relink
15098 else
15099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15100 hardcode_action_F77=immediate
15102 else
15103 # We cannot hardcode anything, or else we can only hardcode existing
15104 # directories.
15105 hardcode_action_F77=unsupported
15107 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15108 echo "${ECHO_T}$hardcode_action_F77" >&6
15110 if test "$hardcode_action_F77" = relink; then
15111 # Fast installation is not supported
15112 enable_fast_install=no
15113 elif test "$shlibpath_overrides_runpath" = yes ||
15114 test "$enable_shared" = no; then
15115 # Fast installation is not necessary
15116 enable_fast_install=needless
15119 striplib=
15120 old_striplib=
15121 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15122 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15123 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15125 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15126 echo "$as_me:$LINENO: result: yes" >&5
15127 echo "${ECHO_T}yes" >&6
15128 else
15129 # FIXME - insert some real tests, host_os isn't really good enough
15130 case $host_os in
15131 darwin*)
15132 if test -n "$STRIP" ; then
15133 striplib="$STRIP -x"
15134 echo "$as_me:$LINENO: result: yes" >&5
15135 echo "${ECHO_T}yes" >&6
15136 else
15137 echo "$as_me:$LINENO: result: no" >&5
15138 echo "${ECHO_T}no" >&6
15142 echo "$as_me:$LINENO: result: no" >&5
15143 echo "${ECHO_T}no" >&6
15145 esac
15150 # The else clause should only fire when bootstrapping the
15151 # libtool distribution, otherwise you forgot to ship ltmain.sh
15152 # with your package, and you will get complaints that there are
15153 # no rules to generate ltmain.sh.
15154 if test -f "$ltmain"; then
15155 # See if we are running on zsh, and set the options which allow our commands through
15156 # without removal of \ escapes.
15157 if test -n "${ZSH_VERSION+set}" ; then
15158 setopt NO_GLOB_SUBST
15160 # Now quote all the things that may contain metacharacters while being
15161 # careful not to overquote the AC_SUBSTed values. We take copies of the
15162 # variables and quote the copies for generation of the libtool script.
15163 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15164 SED SHELL STRIP \
15165 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15166 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15167 deplibs_check_method reload_flag reload_cmds need_locks \
15168 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15169 lt_cv_sys_global_symbol_to_c_name_address \
15170 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15171 old_postinstall_cmds old_postuninstall_cmds \
15172 compiler_F77 \
15173 CC_F77 \
15174 LD_F77 \
15175 lt_prog_compiler_wl_F77 \
15176 lt_prog_compiler_pic_F77 \
15177 lt_prog_compiler_static_F77 \
15178 lt_prog_compiler_no_builtin_flag_F77 \
15179 export_dynamic_flag_spec_F77 \
15180 thread_safe_flag_spec_F77 \
15181 whole_archive_flag_spec_F77 \
15182 enable_shared_with_static_runtimes_F77 \
15183 old_archive_cmds_F77 \
15184 old_archive_from_new_cmds_F77 \
15185 predep_objects_F77 \
15186 postdep_objects_F77 \
15187 predeps_F77 \
15188 postdeps_F77 \
15189 compiler_lib_search_path_F77 \
15190 archive_cmds_F77 \
15191 archive_expsym_cmds_F77 \
15192 postinstall_cmds_F77 \
15193 postuninstall_cmds_F77 \
15194 old_archive_from_expsyms_cmds_F77 \
15195 allow_undefined_flag_F77 \
15196 no_undefined_flag_F77 \
15197 export_symbols_cmds_F77 \
15198 hardcode_libdir_flag_spec_F77 \
15199 hardcode_libdir_flag_spec_ld_F77 \
15200 hardcode_libdir_separator_F77 \
15201 hardcode_automatic_F77 \
15202 module_cmds_F77 \
15203 module_expsym_cmds_F77 \
15204 lt_cv_prog_compiler_c_o_F77 \
15205 exclude_expsyms_F77 \
15206 include_expsyms_F77; do
15208 case $var in
15209 old_archive_cmds_F77 | \
15210 old_archive_from_new_cmds_F77 | \
15211 archive_cmds_F77 | \
15212 archive_expsym_cmds_F77 | \
15213 module_cmds_F77 | \
15214 module_expsym_cmds_F77 | \
15215 old_archive_from_expsyms_cmds_F77 | \
15216 export_symbols_cmds_F77 | \
15217 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15218 postinstall_cmds | postuninstall_cmds | \
15219 old_postinstall_cmds | old_postuninstall_cmds | \
15220 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15221 # Double-quote double-evaled strings.
15222 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15227 esac
15228 done
15230 case $lt_echo in
15231 *'\$0 --fallback-echo"')
15232 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15234 esac
15236 cfgfile="$ofile"
15238 cat <<__EOF__ >> "$cfgfile"
15239 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15241 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15243 # Shell to use when invoking shell scripts.
15244 SHELL=$lt_SHELL
15246 # Whether or not to build shared libraries.
15247 build_libtool_libs=$enable_shared
15249 # Whether or not to build static libraries.
15250 build_old_libs=$enable_static
15252 # Whether or not to add -lc for building shared libraries.
15253 build_libtool_need_lc=$archive_cmds_need_lc_F77
15255 # Whether or not to disallow shared libs when runtime libs are static
15256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15258 # Whether or not to optimize for fast installation.
15259 fast_install=$enable_fast_install
15261 # The host system.
15262 host_alias=$host_alias
15263 host=$host
15264 host_os=$host_os
15266 # The build system.
15267 build_alias=$build_alias
15268 build=$build
15269 build_os=$build_os
15271 # An echo program that does not interpret backslashes.
15272 echo=$lt_echo
15274 # The archiver.
15275 AR=$lt_AR
15276 AR_FLAGS=$lt_AR_FLAGS
15278 # A C compiler.
15279 LTCC=$lt_LTCC
15281 # A language-specific compiler.
15282 CC=$lt_compiler_F77
15284 # Is the compiler the GNU C compiler?
15285 with_gcc=$GCC_F77
15287 # An ERE matcher.
15288 EGREP=$lt_EGREP
15290 # The linker used to build libraries.
15291 LD=$lt_LD_F77
15293 # Whether we need hard or soft links.
15294 LN_S=$lt_LN_S
15296 # A BSD-compatible nm program.
15297 NM=$lt_NM
15299 # A symbol stripping program
15300 STRIP=$lt_STRIP
15302 # Used to examine libraries when file_magic_cmd begins "file"
15303 MAGIC_CMD=$MAGIC_CMD
15305 # Used on cygwin: DLL creation program.
15306 DLLTOOL="$DLLTOOL"
15308 # Used on cygwin: object dumper.
15309 OBJDUMP="$OBJDUMP"
15311 # Used on cygwin: assembler.
15312 AS="$AS"
15314 # The name of the directory that contains temporary libtool files.
15315 objdir=$objdir
15317 # How to create reloadable object files.
15318 reload_flag=$lt_reload_flag
15319 reload_cmds=$lt_reload_cmds
15321 # How to pass a linker flag through the compiler.
15322 wl=$lt_lt_prog_compiler_wl_F77
15324 # Object file suffix (normally "o").
15325 objext="$ac_objext"
15327 # Old archive suffix (normally "a").
15328 libext="$libext"
15330 # Shared library suffix (normally ".so").
15331 shrext_cmds='$shrext_cmds'
15333 # Executable file suffix (normally "").
15334 exeext="$exeext"
15336 # Additional compiler flags for building library objects.
15337 pic_flag=$lt_lt_prog_compiler_pic_F77
15338 pic_mode=$pic_mode
15340 # What is the maximum length of a command?
15341 max_cmd_len=$lt_cv_sys_max_cmd_len
15343 # Does compiler simultaneously support -c and -o options?
15344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15346 # Must we lock files when doing compilation ?
15347 need_locks=$lt_need_locks
15349 # Do we need the lib prefix for modules?
15350 need_lib_prefix=$need_lib_prefix
15352 # Do we need a version for libraries?
15353 need_version=$need_version
15355 # Whether dlopen is supported.
15356 dlopen_support=$enable_dlopen
15358 # Whether dlopen of programs is supported.
15359 dlopen_self=$enable_dlopen_self
15361 # Whether dlopen of statically linked programs is supported.
15362 dlopen_self_static=$enable_dlopen_self_static
15364 # Compiler flag to prevent dynamic linking.
15365 link_static_flag=$lt_lt_prog_compiler_static_F77
15367 # Compiler flag to turn off builtin functions.
15368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15370 # Compiler flag to allow reflexive dlopens.
15371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15373 # Compiler flag to generate shared objects directly from archives.
15374 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15376 # Compiler flag to generate thread-safe objects.
15377 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15379 # Library versioning type.
15380 version_type=$version_type
15382 # Format of library name prefix.
15383 libname_spec=$lt_libname_spec
15385 # List of archive names. First name is the real one, the rest are links.
15386 # The last name is the one that the linker finds with -lNAME.
15387 library_names_spec=$lt_library_names_spec
15389 # The coded name of the library, if different from the real name.
15390 soname_spec=$lt_soname_spec
15392 # Commands used to build and install an old-style archive.
15393 RANLIB=$lt_RANLIB
15394 old_archive_cmds=$lt_old_archive_cmds_F77
15395 old_postinstall_cmds=$lt_old_postinstall_cmds
15396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15398 # Create an old-style archive from a shared archive.
15399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15401 # Create a temporary old-style archive to link instead of a shared archive.
15402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15404 # Commands used to build and install a shared archive.
15405 archive_cmds=$lt_archive_cmds_F77
15406 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15407 postinstall_cmds=$lt_postinstall_cmds
15408 postuninstall_cmds=$lt_postuninstall_cmds
15410 # Commands used to build a loadable module (assumed same as above if empty)
15411 module_cmds=$lt_module_cmds_F77
15412 module_expsym_cmds=$lt_module_expsym_cmds_F77
15414 # Commands to strip libraries.
15415 old_striplib=$lt_old_striplib
15416 striplib=$lt_striplib
15418 # Dependencies to place before the objects being linked to create a
15419 # shared library.
15420 predep_objects=$lt_predep_objects_F77
15422 # Dependencies to place after the objects being linked to create a
15423 # shared library.
15424 postdep_objects=$lt_postdep_objects_F77
15426 # Dependencies to place before the objects being linked to create a
15427 # shared library.
15428 predeps=$lt_predeps_F77
15430 # Dependencies to place after the objects being linked to create a
15431 # shared library.
15432 postdeps=$lt_postdeps_F77
15434 # The library search path used internally by the compiler when linking
15435 # a shared library.
15436 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15438 # Method to check whether dependent libraries are shared objects.
15439 deplibs_check_method=$lt_deplibs_check_method
15441 # Command to use when deplibs_check_method == file_magic.
15442 file_magic_cmd=$lt_file_magic_cmd
15444 # Flag that allows shared libraries with undefined symbols to be built.
15445 allow_undefined_flag=$lt_allow_undefined_flag_F77
15447 # Flag that forces no undefined symbols.
15448 no_undefined_flag=$lt_no_undefined_flag_F77
15450 # Commands used to finish a libtool library installation in a directory.
15451 finish_cmds=$lt_finish_cmds
15453 # Same as above, but a single script fragment to be evaled but not shown.
15454 finish_eval=$lt_finish_eval
15456 # Take the output of nm and produce a listing of raw symbols and C names.
15457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15459 # Transform the output of nm in a proper C declaration
15460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15462 # Transform the output of nm in a C name address pair
15463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15465 # This is the shared library runtime path variable.
15466 runpath_var=$runpath_var
15468 # This is the shared library path variable.
15469 shlibpath_var=$shlibpath_var
15471 # Is shlibpath searched before the hard-coded library search path?
15472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15474 # How to hardcode a shared library path into an executable.
15475 hardcode_action=$hardcode_action_F77
15477 # Whether we should hardcode library paths into libraries.
15478 hardcode_into_libs=$hardcode_into_libs
15480 # Flag to hardcode \$libdir into a binary during linking.
15481 # This must work even if \$libdir does not exist.
15482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15484 # If ld is used when linking, flag to hardcode \$libdir into
15485 # a binary during linking. This must work even if \$libdir does
15486 # not exist.
15487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15489 # Whether we need a single -rpath flag with a separated argument.
15490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15493 # resulting binary.
15494 hardcode_direct=$hardcode_direct_F77
15496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15497 # resulting binary.
15498 hardcode_minus_L=$hardcode_minus_L_F77
15500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15501 # the resulting binary.
15502 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15504 # Set to yes if building a shared library automatically hardcodes DIR into the library
15505 # and all subsequent libraries and executables linked against it.
15506 hardcode_automatic=$hardcode_automatic_F77
15508 # Variables whose values should be saved in libtool wrapper scripts and
15509 # restored at relink time.
15510 variables_saved_for_relink="$variables_saved_for_relink"
15512 # Whether libtool must link a program against all its dependency libraries.
15513 link_all_deplibs=$link_all_deplibs_F77
15515 # Compile-time system search path for libraries
15516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15518 # Run-time system search path for libraries
15519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15521 # Fix the shell variable \$srcfile for the compiler.
15522 fix_srcfile_path="$fix_srcfile_path_F77"
15524 # Set to yes if exported symbols are required.
15525 always_export_symbols=$always_export_symbols_F77
15527 # The commands to list exported symbols.
15528 export_symbols_cmds=$lt_export_symbols_cmds_F77
15530 # The commands to extract the exported symbol list from a shared archive.
15531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15533 # Symbols that should not be listed in the preloaded symbols.
15534 exclude_expsyms=$lt_exclude_expsyms_F77
15536 # Symbols that must always be exported.
15537 include_expsyms=$lt_include_expsyms_F77
15539 # ### END LIBTOOL TAG CONFIG: $tagname
15541 __EOF__
15544 else
15545 # If there is no Makefile yet, we rely on a make rule to execute
15546 # `config.status --recheck' to rerun these tests and create the
15547 # libtool script then.
15548 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15549 if test -f "$ltmain_in"; then
15550 test -f Makefile && make "$ltmain"
15555 ac_ext=c
15556 ac_cpp='$CPP $CPPFLAGS'
15557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561 CC="$lt_save_CC"
15563 else
15564 tagname=""
15568 GCJ)
15569 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15573 # Source file extension for Java test sources.
15574 ac_ext=java
15576 # Object file extension for compiled Java test sources.
15577 objext=o
15578 objext_GCJ=$objext
15580 # Code to be used in simple compile tests
15581 lt_simple_compile_test_code="class foo {}\n"
15583 # Code to be used in simple link tests
15584 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15588 # If no C compiler was specified, use CC.
15589 LTCC=${LTCC-"$CC"}
15591 # Allow CC to be a program name with arguments.
15592 compiler=$CC
15595 # Allow CC to be a program name with arguments.
15596 lt_save_CC="$CC"
15597 CC=${GCJ-"gcj"}
15598 compiler=$CC
15599 compiler_GCJ=$CC
15601 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15602 archive_cmds_need_lc_GCJ=no
15605 lt_prog_compiler_no_builtin_flag_GCJ=
15607 if test "$GCC" = yes; then
15608 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15611 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15612 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 lt_cv_prog_compiler_rtti_exceptions=no
15617 ac_outfile=conftest.$ac_objext
15618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15619 lt_compiler_flag="-fno-rtti -fno-exceptions"
15620 # Insert the option either (1) after the last *FLAGS variable, or
15621 # (2) before a word containing "conftest.", or (3) at the end.
15622 # Note that $ac_compile itself does not contain backslashes and begins
15623 # with a dollar sign (not a hyphen), so the echo should work correctly.
15624 # The option is referenced via a variable to avoid confusing sed.
15625 lt_compile=`echo "$ac_compile" | $SED \
15626 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15628 -e 's:$: $lt_compiler_flag:'`
15629 (eval echo "\"\$as_me:15629: $lt_compile\"" >&5)
15630 (eval "$lt_compile" 2>conftest.err)
15631 ac_status=$?
15632 cat conftest.err >&5
15633 echo "$as_me:15633: \$? = $ac_status" >&5
15634 if (exit $ac_status) && test -s "$ac_outfile"; then
15635 # The compiler can only warn and ignore the option if not recognized
15636 # So say no if there are warnings
15637 if test ! -s conftest.err; then
15638 lt_cv_prog_compiler_rtti_exceptions=yes
15641 $rm conftest*
15644 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15645 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15647 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15648 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15649 else
15655 lt_prog_compiler_wl_GCJ=
15656 lt_prog_compiler_pic_GCJ=
15657 lt_prog_compiler_static_GCJ=
15659 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15660 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15662 if test "$GCC" = yes; then
15663 lt_prog_compiler_wl_GCJ='-Wl,'
15664 lt_prog_compiler_static_GCJ='-static'
15666 case $host_os in
15667 aix*)
15668 # All AIX code is PIC.
15669 if test "$host_cpu" = ia64; then
15670 # AIX 5 now supports IA64 processor
15671 lt_prog_compiler_static_GCJ='-Bstatic'
15675 amigaos*)
15676 # FIXME: we need at least 68020 code to build shared libraries, but
15677 # adding the `-m68020' flag to GCC prevents building anything better,
15678 # like `-m68040'.
15679 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15682 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15683 # PIC is the default for these OSes.
15686 mingw* | pw32* | os2*)
15687 # This hack is so that the source file can tell whether it is being
15688 # built for inclusion in a dll (and should export symbols for example).
15689 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15692 darwin* | rhapsody*)
15693 # PIC is the default on this platform
15694 # Common symbols not allowed in MH_DYLIB files
15695 lt_prog_compiler_pic_GCJ='-fno-common'
15698 msdosdjgpp*)
15699 # Just because we use GCC doesn't mean we suddenly get shared libraries
15700 # on systems that don't support them.
15701 lt_prog_compiler_can_build_shared_GCJ=no
15702 enable_shared=no
15705 sysv4*MP*)
15706 if test -d /usr/nec; then
15707 lt_prog_compiler_pic_GCJ=-Kconform_pic
15711 hpux*)
15712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15713 # not for PA HP-UX.
15714 case "$host_cpu" in
15715 hppa*64*|ia64*)
15716 # +Z the default
15719 lt_prog_compiler_pic_GCJ='-fPIC'
15721 esac
15725 lt_prog_compiler_pic_GCJ='-fPIC'
15727 esac
15728 else
15729 # PORTME Check for flag to pass linker flags through the system compiler.
15730 case $host_os in
15731 aix*)
15732 lt_prog_compiler_wl_GCJ='-Wl,'
15733 if test "$host_cpu" = ia64; then
15734 # AIX 5 now supports IA64 processor
15735 lt_prog_compiler_static_GCJ='-Bstatic'
15736 else
15737 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15740 darwin*)
15741 # PIC is the default on this platform
15742 # Common symbols not allowed in MH_DYLIB files
15743 case "$cc_basename" in
15744 xlc*)
15745 lt_prog_compiler_pic_GCJ='-qnocommon'
15746 lt_prog_compiler_wl_GCJ='-Wl,'
15748 esac
15751 mingw* | pw32* | os2*)
15752 # This hack is so that the source file can tell whether it is being
15753 # built for inclusion in a dll (and should export symbols for example).
15754 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15757 hpux9* | hpux10* | hpux11*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15760 # not for PA HP-UX.
15761 case "$host_cpu" in
15762 hppa*64*|ia64*)
15763 # +Z the default
15766 lt_prog_compiler_pic_GCJ='+Z'
15768 esac
15769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15770 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15773 irix5* | irix6* | nonstopux*)
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 # PIC (with -KPIC) is the default.
15776 lt_prog_compiler_static_GCJ='-non_shared'
15779 newsos6)
15780 lt_prog_compiler_pic_GCJ='-KPIC'
15781 lt_prog_compiler_static_GCJ='-Bstatic'
15784 linux*)
15785 case $cc_basename in
15786 icc* | ecc*)
15787 lt_prog_compiler_wl_GCJ='-Wl,'
15788 lt_prog_compiler_pic_GCJ='-KPIC'
15789 lt_prog_compiler_static_GCJ='-static'
15791 pgcc | pgf77 | pgf90)
15792 # Portland Group compilers (*not* the Pentium gcc compiler,
15793 # which looks to be a dead project)
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 lt_prog_compiler_pic_GCJ='-fpic'
15796 lt_prog_compiler_static_GCJ='-static'
15798 ccc*)
15799 lt_prog_compiler_wl_GCJ='-Wl,'
15800 # All Alpha code is PIC.
15801 lt_prog_compiler_static_GCJ='-non_shared'
15803 como)
15804 lt_prog_compiler_wl_GCJ='-lopt='
15806 esac
15809 osf3* | osf4* | osf5*)
15810 lt_prog_compiler_wl_GCJ='-Wl,'
15811 # All OSF/1 code is PIC.
15812 lt_prog_compiler_static_GCJ='-non_shared'
15815 sco3.2v5*)
15816 lt_prog_compiler_pic_GCJ='-Kpic'
15817 lt_prog_compiler_static_GCJ='-dn'
15820 solaris*)
15821 lt_prog_compiler_wl_GCJ='-Wl,'
15822 lt_prog_compiler_pic_GCJ='-KPIC'
15823 lt_prog_compiler_static_GCJ='-Bstatic'
15826 sunos4*)
15827 lt_prog_compiler_wl_GCJ='-Qoption ld '
15828 lt_prog_compiler_pic_GCJ='-PIC'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15833 lt_prog_compiler_wl_GCJ='-Wl,'
15834 lt_prog_compiler_pic_GCJ='-KPIC'
15835 lt_prog_compiler_static_GCJ='-Bstatic'
15838 sysv4*MP*)
15839 if test -d /usr/nec ;then
15840 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15841 lt_prog_compiler_static_GCJ='-Bstatic'
15845 unicos*)
15846 lt_prog_compiler_wl_GCJ='-Wl,'
15847 lt_prog_compiler_can_build_shared_GCJ=no
15850 uts4*)
15851 lt_prog_compiler_pic_GCJ='-pic'
15852 lt_prog_compiler_static_GCJ='-Bstatic'
15856 lt_prog_compiler_can_build_shared_GCJ=no
15858 esac
15861 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15862 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15865 # Check to make sure the PIC flag actually works.
15867 if test -n "$lt_prog_compiler_pic_GCJ"; then
15869 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15870 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15871 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 lt_prog_compiler_pic_works_GCJ=no
15875 ac_outfile=conftest.$ac_objext
15876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15877 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15878 # Insert the option either (1) after the last *FLAGS variable, or
15879 # (2) before a word containing "conftest.", or (3) at the end.
15880 # Note that $ac_compile itself does not contain backslashes and begins
15881 # with a dollar sign (not a hyphen), so the echo should work correctly.
15882 # The option is referenced via a variable to avoid confusing sed.
15883 lt_compile=`echo "$ac_compile" | $SED \
15884 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15886 -e 's:$: $lt_compiler_flag:'`
15887 (eval echo "\"\$as_me:15887: $lt_compile\"" >&5)
15888 (eval "$lt_compile" 2>conftest.err)
15889 ac_status=$?
15890 cat conftest.err >&5
15891 echo "$as_me:15891: \$? = $ac_status" >&5
15892 if (exit $ac_status) && test -s "$ac_outfile"; then
15893 # The compiler can only warn and ignore the option if not recognized
15894 # So say no if there are warnings
15895 if test ! -s conftest.err; then
15896 lt_prog_compiler_pic_works_GCJ=yes
15899 $rm conftest*
15902 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15903 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15905 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15906 case $lt_prog_compiler_pic_GCJ in
15907 "" | " "*) ;;
15908 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15909 esac
15910 else
15911 lt_prog_compiler_pic_GCJ=
15912 lt_prog_compiler_can_build_shared_GCJ=no
15916 case "$host_os" in
15917 # For platforms which do not support PIC, -DPIC is meaningless:
15918 *djgpp*)
15919 lt_prog_compiler_pic_GCJ=
15922 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15924 esac
15926 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15928 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 lt_cv_prog_compiler_c_o_GCJ=no
15932 $rm -r conftest 2>/dev/null
15933 mkdir conftest
15934 cd conftest
15935 mkdir out
15936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15938 lt_compiler_flag="-o out/conftest2.$ac_objext"
15939 # Insert the option either (1) after the last *FLAGS variable, or
15940 # (2) before a word containing "conftest.", or (3) at the end.
15941 # Note that $ac_compile itself does not contain backslashes and begins
15942 # with a dollar sign (not a hyphen), so the echo should work correctly.
15943 lt_compile=`echo "$ac_compile" | $SED \
15944 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946 -e 's:$: $lt_compiler_flag:'`
15947 (eval echo "\"\$as_me:15947: $lt_compile\"" >&5)
15948 (eval "$lt_compile" 2>out/conftest.err)
15949 ac_status=$?
15950 cat out/conftest.err >&5
15951 echo "$as_me:15951: \$? = $ac_status" >&5
15952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15953 then
15954 # The compiler can only warn and ignore the option if not recognized
15955 # So say no if there are warnings
15956 if test ! -s out/conftest.err; then
15957 lt_cv_prog_compiler_c_o_GCJ=yes
15960 chmod u+w .
15961 $rm conftest*
15962 # SGI C++ compiler will create directory out/ii_files/ for
15963 # template instantiation
15964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15965 $rm out/* && rmdir out
15966 cd ..
15967 rmdir conftest
15968 $rm conftest*
15971 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15972 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15975 hard_links="nottested"
15976 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15977 # do not overwrite the value of need_locks provided by the user
15978 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15979 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15980 hard_links=yes
15981 $rm conftest*
15982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15983 touch conftest.a
15984 ln conftest.a conftest.b 2>&5 || hard_links=no
15985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15986 echo "$as_me:$LINENO: result: $hard_links" >&5
15987 echo "${ECHO_T}$hard_links" >&6
15988 if test "$hard_links" = no; then
15989 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15990 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15991 need_locks=warn
15993 else
15994 need_locks=no
15997 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16000 runpath_var=
16001 allow_undefined_flag_GCJ=
16002 enable_shared_with_static_runtimes_GCJ=no
16003 archive_cmds_GCJ=
16004 archive_expsym_cmds_GCJ=
16005 old_archive_From_new_cmds_GCJ=
16006 old_archive_from_expsyms_cmds_GCJ=
16007 export_dynamic_flag_spec_GCJ=
16008 whole_archive_flag_spec_GCJ=
16009 thread_safe_flag_spec_GCJ=
16010 hardcode_libdir_flag_spec_GCJ=
16011 hardcode_libdir_flag_spec_ld_GCJ=
16012 hardcode_libdir_separator_GCJ=
16013 hardcode_direct_GCJ=no
16014 hardcode_minus_L_GCJ=no
16015 hardcode_shlibpath_var_GCJ=unsupported
16016 link_all_deplibs_GCJ=unknown
16017 hardcode_automatic_GCJ=no
16018 module_cmds_GCJ=
16019 module_expsym_cmds_GCJ=
16020 always_export_symbols_GCJ=no
16021 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16022 # include_expsyms should be a list of space-separated symbols to be *always*
16023 # included in the symbol list
16024 include_expsyms_GCJ=
16025 # exclude_expsyms can be an extended regexp of symbols to exclude
16026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16028 # as well as any symbol that contains `d'.
16029 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16031 # platforms (ab)use it in PIC code, but their linkers get confused if
16032 # the symbol is explicitly referenced. Since portable code cannot
16033 # rely on this symbol name, it's probably fine to never include it in
16034 # preloaded symbol tables.
16035 extract_expsyms_cmds=
16037 case $host_os in
16038 cygwin* | mingw* | pw32*)
16039 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16040 # When not using gcc, we currently assume that we are using
16041 # Microsoft Visual C++.
16042 if test "$GCC" != yes; then
16043 with_gnu_ld=no
16046 openbsd*)
16047 with_gnu_ld=no
16049 esac
16051 ld_shlibs_GCJ=yes
16052 if test "$with_gnu_ld" = yes; then
16053 # If archive_cmds runs LD, not CC, wlarc should be empty
16054 wlarc='${wl}'
16056 # See if GNU ld supports shared libraries.
16057 case $host_os in
16058 aix3* | aix4* | aix5*)
16059 # On AIX/PPC, the GNU linker is very broken
16060 if test "$host_cpu" != ia64; then
16061 ld_shlibs_GCJ=no
16062 cat <<EOF 1>&2
16064 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16065 *** to be unable to reliably create shared libraries on AIX.
16066 *** Therefore, libtool is disabling shared libraries support. If you
16067 *** really care for shared libraries, you may want to modify your PATH
16068 *** so that a non-GNU linker is found, and then restart.
16074 amigaos*)
16075 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)'
16076 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077 hardcode_minus_L_GCJ=yes
16079 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16080 # that the semantics of dynamic libraries on AmigaOS, at least up
16081 # to version 4, is to share data among multiple programs linked
16082 # with the same dynamic library. Since this doesn't match the
16083 # behavior of shared libraries on other platforms, we can't use
16084 # them.
16085 ld_shlibs_GCJ=no
16088 beos*)
16089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 allow_undefined_flag_GCJ=unsupported
16091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16092 # support --undefined. This deserves some investigation. FIXME
16093 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094 else
16095 ld_shlibs_GCJ=no
16099 cygwin* | mingw* | pw32*)
16100 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16101 # as there is no search path for DLLs.
16102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16103 allow_undefined_flag_GCJ=unsupported
16104 always_export_symbols_GCJ=no
16105 enable_shared_with_static_runtimes_GCJ=yes
16106 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16110 # If the export-symbols file already is a .def file (1st line
16111 # is EXPORTS), use it as is; otherwise, prepend...
16112 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16113 cp $export_symbols $output_objdir/$soname.def;
16114 else
16115 echo EXPORTS > $output_objdir/$soname.def;
16116 cat $export_symbols >> $output_objdir/$soname.def;
16118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16119 else
16120 ld_shlibs_GCJ=no
16124 netbsd*)
16125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16126 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16127 wlarc=
16128 else
16129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16134 solaris* | sysv5*)
16135 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16136 ld_shlibs_GCJ=no
16137 cat <<EOF 1>&2
16139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16140 *** create shared libraries on Solaris systems. Therefore, libtool
16141 *** is disabling shared libraries support. We urge you to upgrade GNU
16142 *** binutils to release 2.9.1 or newer. Another option is to modify
16143 *** your PATH or compiler configuration so that the native linker is
16144 *** used, and then restart.
16147 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16148 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16149 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16150 else
16151 ld_shlibs_GCJ=no
16155 sunos4*)
16156 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16157 wlarc=
16158 hardcode_direct_GCJ=yes
16159 hardcode_shlibpath_var_GCJ=no
16162 linux*)
16163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16164 tmp_addflag=
16165 case $CC,$host_cpu in
16166 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16167 tmp_addflag=' -fpic' ;;
16168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16169 tmp_addflag=' -i_dynamic' ;;
16170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16171 tmp_addflag=' -i_dynamic -nofor_main' ;;
16172 ifc* | ifort*) # Intel Fortran compiler
16173 tmp_addflag=' -nofor_main' ;;
16174 esac
16175 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 supports_anon_versioning=no
16177 case `$LD -v 2>/dev/null` in
16178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16181 *\ 2.11.*) ;; # other 2.11 versions
16182 *) supports_anon_versioning=yes ;;
16183 esac
16184 if test $supports_anon_versioning = yes; then
16185 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16187 $echo "local: *; };" >> $output_objdir/$libname.ver~
16188 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16189 else
16190 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16192 else
16193 ld_shlibs_GCJ=no
16198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16199 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16201 else
16202 ld_shlibs_GCJ=no
16205 esac
16207 if test "$ld_shlibs_GCJ" = yes; then
16208 runpath_var=LD_RUN_PATH
16209 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16210 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16211 # ancient GNU ld didn't support --whole-archive et. al.
16212 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16213 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16214 else
16215 whole_archive_flag_spec_GCJ=
16218 else
16219 # PORTME fill in a description of your system's linker (not GNU ld)
16220 case $host_os in
16221 aix3*)
16222 allow_undefined_flag_GCJ=unsupported
16223 always_export_symbols_GCJ=yes
16224 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'
16225 # Note: this linker hardcodes the directories in LIBPATH if there
16226 # are no directories specified by -L.
16227 hardcode_minus_L_GCJ=yes
16228 if test "$GCC" = yes && test -z "$link_static_flag"; then
16229 # Neither direct hardcoding nor static linking is supported with a
16230 # broken collect2.
16231 hardcode_direct_GCJ=unsupported
16235 aix4* | aix5*)
16236 if test "$host_cpu" = ia64; then
16237 # On IA64, the linker does run time linking by default, so we don't
16238 # have to do anything special.
16239 aix_use_runtimelinking=no
16240 exp_sym_flag='-Bexport'
16241 no_entry_flag=""
16242 else
16243 # If we're using GNU nm, then we don't want the "-C" option.
16244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16245 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16246 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'
16247 else
16248 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'
16250 aix_use_runtimelinking=no
16252 # Test if we are trying to use run time linking or normal
16253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254 # need to do runtime linking.
16255 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16256 for ld_flag in $LDFLAGS; do
16257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16258 aix_use_runtimelinking=yes
16259 break
16261 done
16262 esac
16264 exp_sym_flag='-bexport'
16265 no_entry_flag='-bnoentry'
16268 # When large executables or shared objects are built, AIX ld can
16269 # have problems creating the table of contents. If linking a library
16270 # or program results in "error TOC overflow" add -mminimal-toc to
16271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16274 archive_cmds_GCJ=''
16275 hardcode_direct_GCJ=yes
16276 hardcode_libdir_separator_GCJ=':'
16277 link_all_deplibs_GCJ=yes
16279 if test "$GCC" = yes; then
16280 case $host_os in aix4.[012]|aix4.[012].*)
16281 # We only want to do this on AIX 4.2 and lower, the check
16282 # below for broken collect2 doesn't work under 4.3+
16283 collect2name=`${CC} -print-prog-name=collect2`
16284 if test -f "$collect2name" && \
16285 strings "$collect2name" | grep resolve_lib_name >/dev/null
16286 then
16287 # We have reworked collect2
16288 hardcode_direct_GCJ=yes
16289 else
16290 # We have old collect2
16291 hardcode_direct_GCJ=unsupported
16292 # It fails to find uninstalled libraries when the uninstalled
16293 # path is not listed in the libpath. Setting hardcode_minus_L
16294 # to unsupported forces relinking
16295 hardcode_minus_L_GCJ=yes
16296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297 hardcode_libdir_separator_GCJ=
16299 esac
16300 shared_flag='-shared'
16301 if test "$aix_use_runtimelinking" = yes; then
16302 shared_flag="$shared_flag "'${wl}-G'
16304 else
16305 # not using gcc
16306 if test "$host_cpu" = ia64; then
16307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16308 # chokes on -Wl,-G. The following line is correct:
16309 shared_flag='-G'
16310 else
16311 if test "$aix_use_runtimelinking" = yes; then
16312 shared_flag='${wl}-G'
16313 else
16314 shared_flag='${wl}-bM:SRE'
16319 # It seems that -bexpall does not export symbols beginning with
16320 # underscore (_), so it is better to generate a list of symbols to export.
16321 always_export_symbols_GCJ=yes
16322 if test "$aix_use_runtimelinking" = yes; then
16323 # Warning - without using the other runtime loading flags (-brtl),
16324 # -berok will link without error, but may produce a broken library.
16325 allow_undefined_flag_GCJ='-berok'
16326 # Determine the default libpath from the value encoded in an empty executable.
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16335 main ()
16339 return 0;
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16367 # Check for a 64-bit object if we didn't find anything.
16368 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; }
16369 }'`; fi
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16375 rm -f conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16379 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16380 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"
16381 else
16382 if test "$host_cpu" = ia64; then
16383 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16384 allow_undefined_flag_GCJ="-z nodefs"
16385 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"
16386 else
16387 # Determine the default libpath from the value encoded in an empty executable.
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16396 main ()
16400 return 0;
16402 _ACEOF
16403 rm -f conftest.$ac_objext conftest$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405 (eval $ac_link) 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16428 # Check for a 64-bit object if we didn't find anything.
16429 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; }
16430 }'`; fi
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16436 rm -f conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16440 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16441 # Warning - without using the other run time loading flags,
16442 # -berok will link without error, but may produce a broken library.
16443 no_undefined_flag_GCJ=' ${wl}-bernotok'
16444 allow_undefined_flag_GCJ=' ${wl}-berok'
16445 # -bexpall does not export symbols beginning with underscore (_)
16446 always_export_symbols_GCJ=yes
16447 # Exported symbols can be pulled into shared objects from archives
16448 whole_archive_flag_spec_GCJ=' '
16449 archive_cmds_need_lc_GCJ=yes
16450 # This is similar to how AIX traditionally builds it's shared libraries.
16451 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'
16456 amigaos*)
16457 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)'
16458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16459 hardcode_minus_L_GCJ=yes
16460 # see comment about different semantics on the GNU ld section
16461 ld_shlibs_GCJ=no
16464 bsdi[45]*)
16465 export_dynamic_flag_spec_GCJ=-rdynamic
16468 cygwin* | mingw* | pw32*)
16469 # When not using gcc, we currently assume that we are using
16470 # Microsoft Visual C++.
16471 # hardcode_libdir_flag_spec is actually meaningless, as there is
16472 # no search path for DLLs.
16473 hardcode_libdir_flag_spec_GCJ=' '
16474 allow_undefined_flag_GCJ=unsupported
16475 # Tell ltmain to make .lib files, not .a files.
16476 libext=lib
16477 # Tell ltmain to make .dll files, not .so files.
16478 shrext_cmds=".dll"
16479 # FIXME: Setting linknames here is a bad hack.
16480 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16481 # The linker will automatically build a .lib file if we build a DLL.
16482 old_archive_From_new_cmds_GCJ='true'
16483 # FIXME: Should let the user specify the lib program.
16484 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16485 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16486 enable_shared_with_static_runtimes_GCJ=yes
16489 darwin* | rhapsody*)
16490 case "$host_os" in
16491 rhapsody* | darwin1.[012])
16492 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16494 *) # Darwin 1.3 on
16495 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16496 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16497 else
16498 case ${MACOSX_DEPLOYMENT_TARGET} in
16499 10.[012])
16500 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16502 10.*)
16503 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16505 esac
16508 esac
16509 archive_cmds_need_lc_GCJ=no
16510 hardcode_direct_GCJ=no
16511 hardcode_automatic_GCJ=yes
16512 hardcode_shlibpath_var_GCJ=unsupported
16513 whole_archive_flag_spec_GCJ=''
16514 link_all_deplibs_GCJ=yes
16515 if test "$GCC" = yes ; then
16516 output_verbose_link_cmd='echo'
16517 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16520 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}'
16521 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}'
16522 else
16523 case "$cc_basename" in
16524 xlc*)
16525 output_verbose_link_cmd='echo'
16526 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16527 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16529 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}'
16530 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}'
16533 ld_shlibs_GCJ=no
16535 esac
16539 dgux*)
16540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16542 hardcode_shlibpath_var_GCJ=no
16545 freebsd1*)
16546 ld_shlibs_GCJ=no
16549 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16550 # support. Future versions do this automatically, but an explicit c++rt0.o
16551 # does not break anything, and helps significantly (at the cost of a little
16552 # extra space).
16553 freebsd2.2*)
16554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16555 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16556 hardcode_direct_GCJ=yes
16557 hardcode_shlibpath_var_GCJ=no
16560 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16561 freebsd2*)
16562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_direct_GCJ=yes
16564 hardcode_minus_L_GCJ=yes
16565 hardcode_shlibpath_var_GCJ=no
16568 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16569 freebsd* | kfreebsd*-gnu | dragonfly*)
16570 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16571 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572 hardcode_direct_GCJ=yes
16573 hardcode_shlibpath_var_GCJ=no
16576 hpux9*)
16577 if test "$GCC" = yes; then
16578 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'
16579 else
16580 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'
16582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16583 hardcode_libdir_separator_GCJ=:
16584 hardcode_direct_GCJ=yes
16586 # hardcode_minus_L: Not really in the search PATH,
16587 # but as the default location of the library.
16588 hardcode_minus_L_GCJ=yes
16589 export_dynamic_flag_spec_GCJ='${wl}-E'
16592 hpux10* | hpux11*)
16593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16594 case "$host_cpu" in
16595 hppa*64*|ia64*)
16596 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16601 esac
16602 else
16603 case "$host_cpu" in
16604 hppa*64*|ia64*)
16605 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16608 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16610 esac
16612 if test "$with_gnu_ld" = no; then
16613 case "$host_cpu" in
16614 hppa*64*)
16615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16616 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16617 hardcode_libdir_separator_GCJ=:
16618 hardcode_direct_GCJ=no
16619 hardcode_shlibpath_var_GCJ=no
16621 ia64*)
16622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623 hardcode_direct_GCJ=no
16624 hardcode_shlibpath_var_GCJ=no
16626 # hardcode_minus_L: Not really in the search PATH,
16627 # but as the default location of the library.
16628 hardcode_minus_L_GCJ=yes
16631 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16632 hardcode_libdir_separator_GCJ=:
16633 hardcode_direct_GCJ=yes
16634 export_dynamic_flag_spec_GCJ='${wl}-E'
16636 # hardcode_minus_L: Not really in the search PATH,
16637 # but as the default location of the library.
16638 hardcode_minus_L_GCJ=yes
16640 esac
16644 irix5* | irix6* | nonstopux*)
16645 if test "$GCC" = yes; then
16646 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'
16647 else
16648 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'
16649 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16652 hardcode_libdir_separator_GCJ=:
16653 link_all_deplibs_GCJ=yes
16656 netbsd*)
16657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16658 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16659 else
16660 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663 hardcode_direct_GCJ=yes
16664 hardcode_shlibpath_var_GCJ=no
16667 newsos6)
16668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_direct_GCJ=yes
16670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16671 hardcode_libdir_separator_GCJ=:
16672 hardcode_shlibpath_var_GCJ=no
16675 openbsd*)
16676 hardcode_direct_GCJ=yes
16677 hardcode_shlibpath_var_GCJ=no
16678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16679 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16682 export_dynamic_flag_spec_GCJ='${wl}-E'
16683 else
16684 case $host_os in
16685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16686 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16690 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16693 esac
16697 os2*)
16698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16699 hardcode_minus_L_GCJ=yes
16700 allow_undefined_flag_GCJ=unsupported
16701 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'
16702 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16705 osf3*)
16706 if test "$GCC" = yes; then
16707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16708 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'
16709 else
16710 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16711 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'
16713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16714 hardcode_libdir_separator_GCJ=:
16717 osf4* | osf5*) # as osf3* with the addition of -msym flag
16718 if test "$GCC" = yes; then
16719 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16720 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'
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16722 else
16723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16724 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'
16725 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~
16726 $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'
16728 # Both c and cxx compiler support -rpath directly
16729 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16731 hardcode_libdir_separator_GCJ=:
16734 sco3.2v5*)
16735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_shlibpath_var_GCJ=no
16737 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16738 runpath_var=LD_RUN_PATH
16739 hardcode_runpath_var=yes
16742 solaris*)
16743 no_undefined_flag_GCJ=' -z text'
16744 if test "$GCC" = yes; then
16745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16747 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16748 else
16749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754 hardcode_shlibpath_var_GCJ=no
16755 case $host_os in
16756 solaris2.[0-5] | solaris2.[0-5].*) ;;
16757 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16758 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16759 esac
16760 link_all_deplibs_GCJ=yes
16763 sunos4*)
16764 if test "x$host_vendor" = xsequent; then
16765 # Use $CC to link under sequent, because it throws in some extra .o
16766 # files that make .init and .fini sections work.
16767 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16768 else
16769 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16772 hardcode_direct_GCJ=yes
16773 hardcode_minus_L_GCJ=yes
16774 hardcode_shlibpath_var_GCJ=no
16777 sysv4)
16778 case $host_vendor in
16779 sni)
16780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16781 hardcode_direct_GCJ=yes # is this really true???
16783 siemens)
16784 ## LD is ld it makes a PLAMLIB
16785 ## CC just makes a GrossModule.
16786 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16787 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16788 hardcode_direct_GCJ=no
16790 motorola)
16791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16794 esac
16795 runpath_var='LD_RUN_PATH'
16796 hardcode_shlibpath_var_GCJ=no
16799 sysv4.3*)
16800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801 hardcode_shlibpath_var_GCJ=no
16802 export_dynamic_flag_spec_GCJ='-Bexport'
16805 sysv4*MP*)
16806 if test -d /usr/nec; then
16807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_shlibpath_var_GCJ=no
16809 runpath_var=LD_RUN_PATH
16810 hardcode_runpath_var=yes
16811 ld_shlibs_GCJ=yes
16815 sysv4.2uw2*)
16816 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16817 hardcode_direct_GCJ=yes
16818 hardcode_minus_L_GCJ=no
16819 hardcode_shlibpath_var_GCJ=no
16820 hardcode_runpath_var=yes
16821 runpath_var=LD_RUN_PATH
16824 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16825 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16826 if test "$GCC" = yes; then
16827 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16828 else
16829 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16831 runpath_var='LD_RUN_PATH'
16832 hardcode_shlibpath_var_GCJ=no
16835 sysv5*)
16836 no_undefined_flag_GCJ=' -z text'
16837 # $CC -shared without GNU ld will not create a library from C++
16838 # object files and a static libstdc++, better avoid it by now
16839 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16842 hardcode_libdir_flag_spec_GCJ=
16843 hardcode_shlibpath_var_GCJ=no
16844 runpath_var='LD_RUN_PATH'
16847 uts4*)
16848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16850 hardcode_shlibpath_var_GCJ=no
16854 ld_shlibs_GCJ=no
16856 esac
16859 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16860 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16861 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16864 if test "$GCC" = yes; then
16865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16869 # Do we need to explicitly link libc?
16871 case "x$archive_cmds_need_lc_GCJ" in
16872 x|xyes)
16873 # Assume -lc should be added
16874 archive_cmds_need_lc_GCJ=yes
16876 if test "$enable_shared" = yes && test "$GCC" = yes; then
16877 case $archive_cmds_GCJ in
16878 *'~'*)
16879 # FIXME: we may have to deal with multi-command sequences.
16881 '$CC '*)
16882 # Test whether the compiler implicitly links with -lc since on some
16883 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16884 # to ld, don't add -lc before -lgcc.
16885 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16886 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16887 $rm conftest*
16888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } 2>conftest.err; then
16895 soname=conftest
16896 lib=conftest
16897 libobjs=conftest.$ac_objext
16898 deplibs=
16899 wl=$lt_prog_compiler_wl_GCJ
16900 compiler_flags=-v
16901 linker_flags=-v
16902 verstring=
16903 output_objdir=.
16904 libname=conftest
16905 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16906 allow_undefined_flag_GCJ=
16907 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16908 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }
16912 then
16913 archive_cmds_need_lc_GCJ=no
16914 else
16915 archive_cmds_need_lc_GCJ=yes
16917 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16918 else
16919 cat conftest.err 1>&5
16921 $rm conftest*
16922 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16923 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16925 esac
16928 esac
16930 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16931 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16932 library_names_spec=
16933 libname_spec='lib$name'
16934 soname_spec=
16935 shrext_cmds=".so"
16936 postinstall_cmds=
16937 postuninstall_cmds=
16938 finish_cmds=
16939 finish_eval=
16940 shlibpath_var=
16941 shlibpath_overrides_runpath=unknown
16942 version_type=none
16943 dynamic_linker="$host_os ld.so"
16944 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16945 if test "$GCC" = yes; then
16946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16947 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16948 # if the path contains ";" then we assume it to be the separator
16949 # otherwise default to the standard path separator (i.e. ":") - it is
16950 # assumed that no part of a normal pathname contains ";" but that should
16951 # okay in the real world where ";" in dirpaths is itself problematic.
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16953 else
16954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16956 else
16957 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16959 need_lib_prefix=unknown
16960 hardcode_into_libs=no
16962 # when you set need_version to no, make sure it does not cause -set_version
16963 # flags to be left without arguments
16964 need_version=unknown
16966 case $host_os in
16967 aix3*)
16968 version_type=linux
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16970 shlibpath_var=LIBPATH
16972 # AIX 3 has no versioning support, so we append a major version to the name.
16973 soname_spec='${libname}${release}${shared_ext}$major'
16976 aix4* | aix5*)
16977 version_type=linux
16978 need_lib_prefix=no
16979 need_version=no
16980 hardcode_into_libs=yes
16981 if test "$host_cpu" = ia64; then
16982 # AIX 5 supports IA64
16983 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 else
16986 # With GCC up to 2.95.x, collect2 would create an import file
16987 # for dependence libraries. The import file would start with
16988 # the line `#! .'. This would cause the generated library to
16989 # depend on `.', always an invalid library. This was fixed in
16990 # development snapshots of GCC prior to 3.0.
16991 case $host_os in
16992 aix4 | aix4.[01] | aix4.[01].*)
16993 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16994 echo ' yes '
16995 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16997 else
16998 can_build_shared=no
17001 esac
17002 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17003 # soname into executable. Probably we can add versioning support to
17004 # collect2, so additional links can be useful in future.
17005 if test "$aix_use_runtimelinking" = yes; then
17006 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17007 # instead of lib<name>.a to let people know that these are not
17008 # typical AIX shared libraries.
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 else
17011 # We preserve .a as extension for shared libraries through AIX4.2
17012 # and later when we are not doing run time linking.
17013 library_names_spec='${libname}${release}.a $libname.a'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17016 shlibpath_var=LIBPATH
17020 amigaos*)
17021 library_names_spec='$libname.ixlibrary $libname.a'
17022 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17023 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'
17026 beos*)
17027 library_names_spec='${libname}${shared_ext}'
17028 dynamic_linker="$host_os ld.so"
17029 shlibpath_var=LIBRARY_PATH
17032 bsdi[45]*)
17033 version_type=linux
17034 need_version=no
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17040 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17041 # the default ld.so.conf also contains /usr/contrib/lib and
17042 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17043 # libtool to hard-code these into programs
17046 cygwin* | mingw* | pw32*)
17047 version_type=windows
17048 shrext_cmds=".dll"
17049 need_version=no
17050 need_lib_prefix=no
17052 case $GCC,$host_os in
17053 yes,cygwin* | yes,mingw* | yes,pw32*)
17054 library_names_spec='$libname.dll.a'
17055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17056 postinstall_cmds='base_file=`basename \${file}`~
17057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17058 dldir=$destdir/`dirname \$dlpath`~
17059 test -d \$dldir || mkdir -p \$dldir~
17060 $install_prog $dir/$dlname \$dldir/$dlname'
17061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17062 dlpath=$dir/\$dldll~
17063 $rm \$dlpath'
17064 shlibpath_overrides_runpath=yes
17066 case $host_os in
17067 cygwin*)
17068 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17069 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17070 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17072 mingw*)
17073 # MinGW DLLs use traditional 'lib' prefix
17074 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17075 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17076 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17077 # It is most probably a Windows format PATH printed by
17078 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17079 # path with ; separators, and with drive letters. We can handle the
17080 # drive letters (cygwin fileutils understands them), so leave them,
17081 # especially as we might pass files found there to a mingw objdump,
17082 # which wouldn't understand a cygwinified path. Ahh.
17083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084 else
17085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17088 pw32*)
17089 # pw32 DLLs use 'pw' prefix rather than 'lib'
17090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17092 esac
17096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17098 esac
17099 dynamic_linker='Win32 ld.exe'
17100 # FIXME: first we should search . and the directory the executable is in
17101 shlibpath_var=PATH
17104 darwin* | rhapsody*)
17105 dynamic_linker="$host_os dyld"
17106 version_type=darwin
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17110 soname_spec='${libname}${release}${major}$shared_ext'
17111 shlibpath_overrides_runpath=yes
17112 shlibpath_var=DYLD_LIBRARY_PATH
17113 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17114 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17115 if test "$GCC" = yes; then
17116 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"`
17117 else
17118 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17123 dgux*)
17124 version_type=linux
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17132 freebsd1*)
17133 dynamic_linker=no
17136 kfreebsd*-gnu)
17137 version_type=linux
17138 need_lib_prefix=no
17139 need_version=no
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 shlibpath_var=LD_LIBRARY_PATH
17143 shlibpath_overrides_runpath=no
17144 hardcode_into_libs=yes
17145 dynamic_linker='GNU ld.so'
17148 freebsd* | dragonfly*)
17149 # DragonFly does not have aout. When/if they implement a new
17150 # versioning mechanism, adjust this.
17151 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17152 version_type=freebsd-$objformat
17153 case $version_type in
17154 freebsd-elf*)
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17156 need_version=no
17157 need_lib_prefix=no
17159 freebsd-*)
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17161 need_version=yes
17163 esac
17164 shlibpath_var=LD_LIBRARY_PATH
17165 case $host_os in
17166 freebsd2*)
17167 shlibpath_overrides_runpath=yes
17169 freebsd3.[01]* | freebsdelf3.[01]*)
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17173 *) # from 3.2 on
17174 shlibpath_overrides_runpath=no
17175 hardcode_into_libs=yes
17177 esac
17180 gnu*)
17181 version_type=linux
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 hardcode_into_libs=yes
17190 hpux9* | hpux10* | hpux11*)
17191 # Give a soname corresponding to the major version so that dld.sl refuses to
17192 # link against other versions.
17193 version_type=sunos
17194 need_lib_prefix=no
17195 need_version=no
17196 case "$host_cpu" in
17197 ia64*)
17198 shrext_cmds='.so'
17199 hardcode_into_libs=yes
17200 dynamic_linker="$host_os dld.so"
17201 shlibpath_var=LD_LIBRARY_PATH
17202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 if test "X$HPUX_IA64_MODE" = X32; then
17206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17207 else
17208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17212 hppa*64*)
17213 shrext_cmds='.sl'
17214 hardcode_into_libs=yes
17215 dynamic_linker="$host_os dld.sl"
17216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17224 shrext_cmds='.sl'
17225 dynamic_linker="$host_os dld.sl"
17226 shlibpath_var=SHLIB_PATH
17227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17231 esac
17232 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17233 postinstall_cmds='chmod 555 $lib'
17236 irix5* | irix6* | nonstopux*)
17237 case $host_os in
17238 nonstopux*) version_type=nonstopux ;;
17240 if test "$lt_cv_prog_gnu_ld" = yes; then
17241 version_type=linux
17242 else
17243 version_type=irix
17244 fi ;;
17245 esac
17246 need_lib_prefix=no
17247 need_version=no
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17250 case $host_os in
17251 irix5* | nonstopux*)
17252 libsuff= shlibsuff=
17255 case $LD in # libtool.m4 will add one of these switches to LD
17256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17257 libsuff= shlibsuff= libmagic=32-bit;;
17258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17259 libsuff=32 shlibsuff=N32 libmagic=N32;;
17260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17262 *) libsuff= shlibsuff= libmagic=never-match;;
17263 esac
17265 esac
17266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17267 shlibpath_overrides_runpath=no
17268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17270 hardcode_into_libs=yes
17273 # No shared lib support for Linux oldld, aout, or coff.
17274 linux*oldld* | linux*aout* | linux*coff*)
17275 dynamic_linker=no
17278 # This must be Linux ELF.
17279 linux*)
17280 version_type=linux
17281 need_lib_prefix=no
17282 need_version=no
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=no
17288 # This implies no fast_install, which is unacceptable.
17289 # Some rework will be needed to allow for fast_install
17290 # before this can be enabled.
17291 hardcode_into_libs=yes
17293 # Append ld.so.conf contents to the search path
17294 if test -f /etc/ld.so.conf; then
17295 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' ' '`
17296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17299 # We used to test for /lib/ld.so.1 and disable shared libraries on
17300 # powerpc, because MkLinux only supported shared libraries with the
17301 # GNU dynamic linker. Since this was broken with cross compilers,
17302 # most powerpc-linux boxes support dynamic linking these days and
17303 # people can always --disable-shared, the test was removed, and we
17304 # assume the GNU/Linux dynamic linker is in use.
17305 dynamic_linker='GNU/Linux ld.so'
17308 knetbsd*-gnu)
17309 version_type=linux
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=no
17316 hardcode_into_libs=yes
17317 dynamic_linker='GNU ld.so'
17320 netbsd*)
17321 version_type=sunos
17322 need_lib_prefix=no
17323 need_version=no
17324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327 dynamic_linker='NetBSD (a.out) ld.so'
17328 else
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 dynamic_linker='NetBSD ld.elf_so'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes
17335 hardcode_into_libs=yes
17338 newsos6)
17339 version_type=linux
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 shlibpath_overrides_runpath=yes
17345 nto-qnx*)
17346 version_type=linux
17347 need_lib_prefix=no
17348 need_version=no
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 shlibpath_overrides_runpath=yes
17355 openbsd*)
17356 version_type=sunos
17357 need_lib_prefix=no
17358 need_version=no
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17361 shlibpath_var=LD_LIBRARY_PATH
17362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17363 case $host_os in
17364 openbsd2.[89] | openbsd2.[89].*)
17365 shlibpath_overrides_runpath=no
17368 shlibpath_overrides_runpath=yes
17370 esac
17371 else
17372 shlibpath_overrides_runpath=yes
17376 os2*)
17377 libname_spec='$name'
17378 shrext_cmds=".dll"
17379 need_lib_prefix=no
17380 library_names_spec='$libname${shared_ext} $libname.a'
17381 dynamic_linker='OS/2 ld.exe'
17382 shlibpath_var=LIBPATH
17385 osf3* | osf4* | osf5*)
17386 version_type=osf
17387 need_lib_prefix=no
17388 need_version=no
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 shlibpath_var=LD_LIBRARY_PATH
17392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17396 sco3.2v5*)
17397 version_type=osf
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400 shlibpath_var=LD_LIBRARY_PATH
17403 solaris*)
17404 version_type=linux
17405 need_lib_prefix=no
17406 need_version=no
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=yes
17411 hardcode_into_libs=yes
17412 # ldd complains unless libraries are executable
17413 postinstall_cmds='chmod +x $lib'
17416 sunos4*)
17417 version_type=sunos
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 shlibpath_overrides_runpath=yes
17422 if test "$with_gnu_ld" = yes; then
17423 need_lib_prefix=no
17425 need_version=yes
17428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17429 version_type=linux
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 case $host_vendor in
17434 sni)
17435 shlibpath_overrides_runpath=no
17436 need_lib_prefix=no
17437 export_dynamic_flag_spec='${wl}-Blargedynsym'
17438 runpath_var=LD_RUN_PATH
17440 siemens)
17441 need_lib_prefix=no
17443 motorola)
17444 need_lib_prefix=no
17445 need_version=no
17446 shlibpath_overrides_runpath=no
17447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17449 esac
17452 sysv4*MP*)
17453 if test -d /usr/nec ;then
17454 version_type=linux
17455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17456 soname_spec='$libname${shared_ext}.$major'
17457 shlibpath_var=LD_LIBRARY_PATH
17461 uts4*)
17462 version_type=linux
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
17469 dynamic_linker=no
17471 esac
17472 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17473 echo "${ECHO_T}$dynamic_linker" >&6
17474 test "$dynamic_linker" = no && can_build_shared=no
17476 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17477 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17478 hardcode_action_GCJ=
17479 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17480 test -n "$runpath_var_GCJ" || \
17481 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17483 # We can hardcode non-existant directories.
17484 if test "$hardcode_direct_GCJ" != no &&
17485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17486 # have to relink, otherwise we might link with an installed library
17487 # when we should be linking with a yet-to-be-installed one
17488 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17489 test "$hardcode_minus_L_GCJ" != no; then
17490 # Linking always hardcodes the temporary library directory.
17491 hardcode_action_GCJ=relink
17492 else
17493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17494 hardcode_action_GCJ=immediate
17496 else
17497 # We cannot hardcode anything, or else we can only hardcode existing
17498 # directories.
17499 hardcode_action_GCJ=unsupported
17501 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17502 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17504 if test "$hardcode_action_GCJ" = relink; then
17505 # Fast installation is not supported
17506 enable_fast_install=no
17507 elif test "$shlibpath_overrides_runpath" = yes ||
17508 test "$enable_shared" = no; then
17509 # Fast installation is not necessary
17510 enable_fast_install=needless
17513 striplib=
17514 old_striplib=
17515 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17516 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17517 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17520 echo "$as_me:$LINENO: result: yes" >&5
17521 echo "${ECHO_T}yes" >&6
17522 else
17523 # FIXME - insert some real tests, host_os isn't really good enough
17524 case $host_os in
17525 darwin*)
17526 if test -n "$STRIP" ; then
17527 striplib="$STRIP -x"
17528 echo "$as_me:$LINENO: result: yes" >&5
17529 echo "${ECHO_T}yes" >&6
17530 else
17531 echo "$as_me:$LINENO: result: no" >&5
17532 echo "${ECHO_T}no" >&6
17536 echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6
17539 esac
17542 if test "x$enable_dlopen" != xyes; then
17543 enable_dlopen=unknown
17544 enable_dlopen_self=unknown
17545 enable_dlopen_self_static=unknown
17546 else
17547 lt_cv_dlopen=no
17548 lt_cv_dlopen_libs=
17550 case $host_os in
17551 beos*)
17552 lt_cv_dlopen="load_add_on"
17553 lt_cv_dlopen_libs=
17554 lt_cv_dlopen_self=yes
17557 mingw* | pw32*)
17558 lt_cv_dlopen="LoadLibrary"
17559 lt_cv_dlopen_libs=
17562 cygwin*)
17563 lt_cv_dlopen="dlopen"
17564 lt_cv_dlopen_libs=
17567 darwin*)
17568 # if libdl is installed we need to link against it
17569 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 ac_check_lib_save_LIBS=$LIBS
17575 LIBS="-ldl $LIBS"
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17583 /* Override any gcc2 internal prototype to avoid an error. */
17584 #ifdef __cplusplus
17585 extern "C"
17586 #endif
17587 /* We use char because int might match the return type of a gcc2
17588 builtin and then its argument prototype would still apply. */
17589 char dlopen ();
17591 main ()
17593 dlopen ();
17595 return 0;
17597 _ACEOF
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17600 (eval $ac_link) 2>conftest.er1
17601 ac_status=$?
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
17607 { ac_try='test -z "$ac_c_werror_flag"
17608 || test ! -s conftest.err'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; } &&
17614 { ac_try='test -s conftest$ac_exeext'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 ac_cv_lib_dl_dlopen=yes
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_cv_lib_dl_dlopen=no
17627 rm -f conftest.err conftest.$ac_objext \
17628 conftest$ac_exeext conftest.$ac_ext
17629 LIBS=$ac_check_lib_save_LIBS
17631 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17633 if test $ac_cv_lib_dl_dlopen = yes; then
17634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17635 else
17637 lt_cv_dlopen="dyld"
17638 lt_cv_dlopen_libs=
17639 lt_cv_dlopen_self=yes
17646 echo "$as_me:$LINENO: checking for shl_load" >&5
17647 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17648 if test "${ac_cv_func_shl_load+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659 #define shl_load innocuous_shl_load
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char shl_load (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
17666 #ifdef __STDC__
17667 # include <limits.h>
17668 #else
17669 # include <assert.h>
17670 #endif
17672 #undef shl_load
17674 /* Override any gcc2 internal prototype to avoid an error. */
17675 #ifdef __cplusplus
17676 extern "C"
17678 #endif
17679 /* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17681 char shl_load ();
17682 /* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17686 choke me
17687 #else
17688 char (*f) () = shl_load;
17689 #endif
17690 #ifdef __cplusplus
17692 #endif
17695 main ()
17697 return f != shl_load;
17699 return 0;
17701 _ACEOF
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ac_cv_func_shl_load=yes
17725 else
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ac_cv_func_shl_load=no
17731 rm -f conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17734 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17735 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17736 if test $ac_cv_func_shl_load = yes; then
17737 lt_cv_dlopen="shl_load"
17738 else
17739 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 else
17744 ac_check_lib_save_LIBS=$LIBS
17745 LIBS="-ldld $LIBS"
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17753 /* Override any gcc2 internal prototype to avoid an error. */
17754 #ifdef __cplusplus
17755 extern "C"
17756 #endif
17757 /* We use char because int might match the return type of a gcc2
17758 builtin and then its argument prototype would still apply. */
17759 char shl_load ();
17761 main ()
17763 shl_load ();
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770 (eval $ac_link) 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_lib_dld_shl_load=yes
17791 else
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 ac_cv_lib_dld_shl_load=no
17797 rm -f conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17801 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17803 if test $ac_cv_lib_dld_shl_load = yes; then
17804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17805 else
17806 echo "$as_me:$LINENO: checking for dlopen" >&5
17807 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17808 if test "${ac_cv_func_dlopen+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define dlopen innocuous_dlopen
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char dlopen (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17826 #ifdef __STDC__
17827 # include <limits.h>
17828 #else
17829 # include <assert.h>
17830 #endif
17832 #undef dlopen
17834 /* Override any gcc2 internal prototype to avoid an error. */
17835 #ifdef __cplusplus
17836 extern "C"
17838 #endif
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char dlopen ();
17842 /* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17846 choke me
17847 #else
17848 char (*f) () = dlopen;
17849 #endif
17850 #ifdef __cplusplus
17852 #endif
17855 main ()
17857 return f != dlopen;
17859 return 0;
17861 _ACEOF
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest$ac_exeext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_cv_func_dlopen=yes
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_cv_func_dlopen=no
17891 rm -f conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17894 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17895 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17896 if test $ac_cv_func_dlopen = yes; then
17897 lt_cv_dlopen="dlopen"
17898 else
17899 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17900 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17901 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-ldl $LIBS"
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any gcc2 internal prototype to avoid an error. */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char dlopen ();
17921 main ()
17923 dlopen ();
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17950 ac_cv_lib_dl_dlopen=yes
17951 else
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_lib_dl_dlopen=no
17957 rm -f conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17962 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17963 if test $ac_cv_lib_dl_dlopen = yes; then
17964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17965 else
17966 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17967 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17968 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971 ac_check_lib_save_LIBS=$LIBS
17972 LIBS="-lsvld $LIBS"
17973 cat >conftest.$ac_ext <<_ACEOF
17974 /* confdefs.h. */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17980 /* Override any gcc2 internal prototype to avoid an error. */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 /* We use char because int might match the return type of a gcc2
17985 builtin and then its argument prototype would still apply. */
17986 char dlopen ();
17988 main ()
17990 dlopen ();
17992 return 0;
17994 _ACEOF
17995 rm -f conftest.$ac_objext conftest$ac_exeext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997 (eval $ac_link) 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_svld_dlopen=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_svld_dlopen=no
18024 rm -f conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18028 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18029 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18030 if test $ac_cv_lib_svld_dlopen = yes; then
18031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18032 else
18033 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18034 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18035 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038 ac_check_lib_save_LIBS=$LIBS
18039 LIBS="-ldld $LIBS"
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18047 /* Override any gcc2 internal prototype to avoid an error. */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 /* We use char because int might match the return type of a gcc2
18052 builtin and then its argument prototype would still apply. */
18053 char dld_link ();
18055 main ()
18057 dld_link ();
18059 return 0;
18061 _ACEOF
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18064 (eval $ac_link) 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag"
18072 || test ! -s conftest.err'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest$ac_exeext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_lib_dld_dld_link=yes
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 ac_cv_lib_dld_dld_link=no
18091 rm -f conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
18093 LIBS=$ac_check_lib_save_LIBS
18095 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18096 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18097 if test $ac_cv_lib_dld_dld_link = yes; then
18098 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18117 esac
18119 if test "x$lt_cv_dlopen" != xno; then
18120 enable_dlopen=yes
18121 else
18122 enable_dlopen=no
18125 case $lt_cv_dlopen in
18126 dlopen)
18127 save_CPPFLAGS="$CPPFLAGS"
18128 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18130 save_LDFLAGS="$LDFLAGS"
18131 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18133 save_LIBS="$LIBS"
18134 LIBS="$lt_cv_dlopen_libs $LIBS"
18136 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18137 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18138 if test "${lt_cv_dlopen_self+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 if test "$cross_compiling" = yes; then :
18142 lt_cv_dlopen_self=cross
18143 else
18144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18145 lt_status=$lt_dlunknown
18146 cat > conftest.$ac_ext <<EOF
18147 #line 18147 "configure"
18148 #include "confdefs.h"
18150 #if HAVE_DLFCN_H
18151 #include <dlfcn.h>
18152 #endif
18154 #include <stdio.h>
18156 #ifdef RTLD_GLOBAL
18157 # define LT_DLGLOBAL RTLD_GLOBAL
18158 #else
18159 # ifdef DL_GLOBAL
18160 # define LT_DLGLOBAL DL_GLOBAL
18161 # else
18162 # define LT_DLGLOBAL 0
18163 # endif
18164 #endif
18166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18167 find out it does not work in some platform. */
18168 #ifndef LT_DLLAZY_OR_NOW
18169 # ifdef RTLD_LAZY
18170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18171 # else
18172 # ifdef DL_LAZY
18173 # define LT_DLLAZY_OR_NOW DL_LAZY
18174 # else
18175 # ifdef RTLD_NOW
18176 # define LT_DLLAZY_OR_NOW RTLD_NOW
18177 # else
18178 # ifdef DL_NOW
18179 # define LT_DLLAZY_OR_NOW DL_NOW
18180 # else
18181 # define LT_DLLAZY_OR_NOW 0
18182 # endif
18183 # endif
18184 # endif
18185 # endif
18186 #endif
18188 #ifdef __cplusplus
18189 extern "C" void exit (int);
18190 #endif
18192 void fnord() { int i=42;}
18193 int main ()
18195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18196 int status = $lt_dlunknown;
18198 if (self)
18200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18202 /* dlclose (self); */
18205 exit (status);
18208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18213 (./conftest; exit; ) 2>/dev/null
18214 lt_status=$?
18215 case x$lt_status in
18216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18218 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18219 esac
18220 else :
18221 # compilation failed
18222 lt_cv_dlopen_self=no
18225 rm -fr conftest*
18229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18230 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18232 if test "x$lt_cv_dlopen_self" = xyes; then
18233 LDFLAGS="$LDFLAGS $link_static_flag"
18234 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18235 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18236 if test "${lt_cv_dlopen_self_static+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 if test "$cross_compiling" = yes; then :
18240 lt_cv_dlopen_self_static=cross
18241 else
18242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18243 lt_status=$lt_dlunknown
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18245 "configure"
18246 #include "confdefs.h"
18248 #if HAVE_DLFCN_H
18249 #include <dlfcn.h>
18250 #endif
18252 #include <stdio.h>
18254 #ifdef RTLD_GLOBAL
18255 # define LT_DLGLOBAL RTLD_GLOBAL
18256 #else
18257 # ifdef DL_GLOBAL
18258 # define LT_DLGLOBAL DL_GLOBAL
18259 # else
18260 # define LT_DLGLOBAL 0
18261 # endif
18262 #endif
18264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18265 find out it does not work in some platform. */
18266 #ifndef LT_DLLAZY_OR_NOW
18267 # ifdef RTLD_LAZY
18268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18269 # else
18270 # ifdef DL_LAZY
18271 # define LT_DLLAZY_OR_NOW DL_LAZY
18272 # else
18273 # ifdef RTLD_NOW
18274 # define LT_DLLAZY_OR_NOW RTLD_NOW
18275 # else
18276 # ifdef DL_NOW
18277 # define LT_DLLAZY_OR_NOW DL_NOW
18278 # else
18279 # define LT_DLLAZY_OR_NOW 0
18280 # endif
18281 # endif
18282 # endif
18283 # endif
18284 #endif
18286 #ifdef __cplusplus
18287 extern "C" void exit (int);
18288 #endif
18290 void fnord() { int i=42;}
18291 int main ()
18293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18294 int status = $lt_dlunknown;
18296 if (self)
18298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18300 /* dlclose (self); */
18303 exit (status);
18306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307 (eval $ac_link) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18311 (./conftest; exit; ) 2>/dev/null
18312 lt_status=$?
18313 case x$lt_status in
18314 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18315 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18316 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18317 esac
18318 else :
18319 # compilation failed
18320 lt_cv_dlopen_self_static=no
18323 rm -fr conftest*
18327 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18328 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18331 CPPFLAGS="$save_CPPFLAGS"
18332 LDFLAGS="$save_LDFLAGS"
18333 LIBS="$save_LIBS"
18335 esac
18337 case $lt_cv_dlopen_self in
18338 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18339 *) enable_dlopen_self=unknown ;;
18340 esac
18342 case $lt_cv_dlopen_self_static in
18343 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18344 *) enable_dlopen_self_static=unknown ;;
18345 esac
18349 # The else clause should only fire when bootstrapping the
18350 # libtool distribution, otherwise you forgot to ship ltmain.sh
18351 # with your package, and you will get complaints that there are
18352 # no rules to generate ltmain.sh.
18353 if test -f "$ltmain"; then
18354 # See if we are running on zsh, and set the options which allow our commands through
18355 # without removal of \ escapes.
18356 if test -n "${ZSH_VERSION+set}" ; then
18357 setopt NO_GLOB_SUBST
18359 # Now quote all the things that may contain metacharacters while being
18360 # careful not to overquote the AC_SUBSTed values. We take copies of the
18361 # variables and quote the copies for generation of the libtool script.
18362 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18363 SED SHELL STRIP \
18364 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18365 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18366 deplibs_check_method reload_flag reload_cmds need_locks \
18367 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18368 lt_cv_sys_global_symbol_to_c_name_address \
18369 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18370 old_postinstall_cmds old_postuninstall_cmds \
18371 compiler_GCJ \
18372 CC_GCJ \
18373 LD_GCJ \
18374 lt_prog_compiler_wl_GCJ \
18375 lt_prog_compiler_pic_GCJ \
18376 lt_prog_compiler_static_GCJ \
18377 lt_prog_compiler_no_builtin_flag_GCJ \
18378 export_dynamic_flag_spec_GCJ \
18379 thread_safe_flag_spec_GCJ \
18380 whole_archive_flag_spec_GCJ \
18381 enable_shared_with_static_runtimes_GCJ \
18382 old_archive_cmds_GCJ \
18383 old_archive_from_new_cmds_GCJ \
18384 predep_objects_GCJ \
18385 postdep_objects_GCJ \
18386 predeps_GCJ \
18387 postdeps_GCJ \
18388 compiler_lib_search_path_GCJ \
18389 archive_cmds_GCJ \
18390 archive_expsym_cmds_GCJ \
18391 postinstall_cmds_GCJ \
18392 postuninstall_cmds_GCJ \
18393 old_archive_from_expsyms_cmds_GCJ \
18394 allow_undefined_flag_GCJ \
18395 no_undefined_flag_GCJ \
18396 export_symbols_cmds_GCJ \
18397 hardcode_libdir_flag_spec_GCJ \
18398 hardcode_libdir_flag_spec_ld_GCJ \
18399 hardcode_libdir_separator_GCJ \
18400 hardcode_automatic_GCJ \
18401 module_cmds_GCJ \
18402 module_expsym_cmds_GCJ \
18403 lt_cv_prog_compiler_c_o_GCJ \
18404 exclude_expsyms_GCJ \
18405 include_expsyms_GCJ; do
18407 case $var in
18408 old_archive_cmds_GCJ | \
18409 old_archive_from_new_cmds_GCJ | \
18410 archive_cmds_GCJ | \
18411 archive_expsym_cmds_GCJ | \
18412 module_cmds_GCJ | \
18413 module_expsym_cmds_GCJ | \
18414 old_archive_from_expsyms_cmds_GCJ | \
18415 export_symbols_cmds_GCJ | \
18416 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18417 postinstall_cmds | postuninstall_cmds | \
18418 old_postinstall_cmds | old_postuninstall_cmds | \
18419 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18420 # Double-quote double-evaled strings.
18421 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18424 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18426 esac
18427 done
18429 case $lt_echo in
18430 *'\$0 --fallback-echo"')
18431 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18433 esac
18435 cfgfile="$ofile"
18437 cat <<__EOF__ >> "$cfgfile"
18438 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18442 # Shell to use when invoking shell scripts.
18443 SHELL=$lt_SHELL
18445 # Whether or not to build shared libraries.
18446 build_libtool_libs=$enable_shared
18448 # Whether or not to build static libraries.
18449 build_old_libs=$enable_static
18451 # Whether or not to add -lc for building shared libraries.
18452 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18454 # Whether or not to disallow shared libs when runtime libs are static
18455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18457 # Whether or not to optimize for fast installation.
18458 fast_install=$enable_fast_install
18460 # The host system.
18461 host_alias=$host_alias
18462 host=$host
18463 host_os=$host_os
18465 # The build system.
18466 build_alias=$build_alias
18467 build=$build
18468 build_os=$build_os
18470 # An echo program that does not interpret backslashes.
18471 echo=$lt_echo
18473 # The archiver.
18474 AR=$lt_AR
18475 AR_FLAGS=$lt_AR_FLAGS
18477 # A C compiler.
18478 LTCC=$lt_LTCC
18480 # A language-specific compiler.
18481 CC=$lt_compiler_GCJ
18483 # Is the compiler the GNU C compiler?
18484 with_gcc=$GCC_GCJ
18486 # An ERE matcher.
18487 EGREP=$lt_EGREP
18489 # The linker used to build libraries.
18490 LD=$lt_LD_GCJ
18492 # Whether we need hard or soft links.
18493 LN_S=$lt_LN_S
18495 # A BSD-compatible nm program.
18496 NM=$lt_NM
18498 # A symbol stripping program
18499 STRIP=$lt_STRIP
18501 # Used to examine libraries when file_magic_cmd begins "file"
18502 MAGIC_CMD=$MAGIC_CMD
18504 # Used on cygwin: DLL creation program.
18505 DLLTOOL="$DLLTOOL"
18507 # Used on cygwin: object dumper.
18508 OBJDUMP="$OBJDUMP"
18510 # Used on cygwin: assembler.
18511 AS="$AS"
18513 # The name of the directory that contains temporary libtool files.
18514 objdir=$objdir
18516 # How to create reloadable object files.
18517 reload_flag=$lt_reload_flag
18518 reload_cmds=$lt_reload_cmds
18520 # How to pass a linker flag through the compiler.
18521 wl=$lt_lt_prog_compiler_wl_GCJ
18523 # Object file suffix (normally "o").
18524 objext="$ac_objext"
18526 # Old archive suffix (normally "a").
18527 libext="$libext"
18529 # Shared library suffix (normally ".so").
18530 shrext_cmds='$shrext_cmds'
18532 # Executable file suffix (normally "").
18533 exeext="$exeext"
18535 # Additional compiler flags for building library objects.
18536 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18537 pic_mode=$pic_mode
18539 # What is the maximum length of a command?
18540 max_cmd_len=$lt_cv_sys_max_cmd_len
18542 # Does compiler simultaneously support -c and -o options?
18543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18545 # Must we lock files when doing compilation ?
18546 need_locks=$lt_need_locks
18548 # Do we need the lib prefix for modules?
18549 need_lib_prefix=$need_lib_prefix
18551 # Do we need a version for libraries?
18552 need_version=$need_version
18554 # Whether dlopen is supported.
18555 dlopen_support=$enable_dlopen
18557 # Whether dlopen of programs is supported.
18558 dlopen_self=$enable_dlopen_self
18560 # Whether dlopen of statically linked programs is supported.
18561 dlopen_self_static=$enable_dlopen_self_static
18563 # Compiler flag to prevent dynamic linking.
18564 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18566 # Compiler flag to turn off builtin functions.
18567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18569 # Compiler flag to allow reflexive dlopens.
18570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18572 # Compiler flag to generate shared objects directly from archives.
18573 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18575 # Compiler flag to generate thread-safe objects.
18576 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18578 # Library versioning type.
18579 version_type=$version_type
18581 # Format of library name prefix.
18582 libname_spec=$lt_libname_spec
18584 # List of archive names. First name is the real one, the rest are links.
18585 # The last name is the one that the linker finds with -lNAME.
18586 library_names_spec=$lt_library_names_spec
18588 # The coded name of the library, if different from the real name.
18589 soname_spec=$lt_soname_spec
18591 # Commands used to build and install an old-style archive.
18592 RANLIB=$lt_RANLIB
18593 old_archive_cmds=$lt_old_archive_cmds_GCJ
18594 old_postinstall_cmds=$lt_old_postinstall_cmds
18595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18597 # Create an old-style archive from a shared archive.
18598 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18600 # Create a temporary old-style archive to link instead of a shared archive.
18601 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18603 # Commands used to build and install a shared archive.
18604 archive_cmds=$lt_archive_cmds_GCJ
18605 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18606 postinstall_cmds=$lt_postinstall_cmds
18607 postuninstall_cmds=$lt_postuninstall_cmds
18609 # Commands used to build a loadable module (assumed same as above if empty)
18610 module_cmds=$lt_module_cmds_GCJ
18611 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18613 # Commands to strip libraries.
18614 old_striplib=$lt_old_striplib
18615 striplib=$lt_striplib
18617 # Dependencies to place before the objects being linked to create a
18618 # shared library.
18619 predep_objects=$lt_predep_objects_GCJ
18621 # Dependencies to place after the objects being linked to create a
18622 # shared library.
18623 postdep_objects=$lt_postdep_objects_GCJ
18625 # Dependencies to place before the objects being linked to create a
18626 # shared library.
18627 predeps=$lt_predeps_GCJ
18629 # Dependencies to place after the objects being linked to create a
18630 # shared library.
18631 postdeps=$lt_postdeps_GCJ
18633 # The library search path used internally by the compiler when linking
18634 # a shared library.
18635 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18637 # Method to check whether dependent libraries are shared objects.
18638 deplibs_check_method=$lt_deplibs_check_method
18640 # Command to use when deplibs_check_method == file_magic.
18641 file_magic_cmd=$lt_file_magic_cmd
18643 # Flag that allows shared libraries with undefined symbols to be built.
18644 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18646 # Flag that forces no undefined symbols.
18647 no_undefined_flag=$lt_no_undefined_flag_GCJ
18649 # Commands used to finish a libtool library installation in a directory.
18650 finish_cmds=$lt_finish_cmds
18652 # Same as above, but a single script fragment to be evaled but not shown.
18653 finish_eval=$lt_finish_eval
18655 # Take the output of nm and produce a listing of raw symbols and C names.
18656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18658 # Transform the output of nm in a proper C declaration
18659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18661 # Transform the output of nm in a C name address pair
18662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18664 # This is the shared library runtime path variable.
18665 runpath_var=$runpath_var
18667 # This is the shared library path variable.
18668 shlibpath_var=$shlibpath_var
18670 # Is shlibpath searched before the hard-coded library search path?
18671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18673 # How to hardcode a shared library path into an executable.
18674 hardcode_action=$hardcode_action_GCJ
18676 # Whether we should hardcode library paths into libraries.
18677 hardcode_into_libs=$hardcode_into_libs
18679 # Flag to hardcode \$libdir into a binary during linking.
18680 # This must work even if \$libdir does not exist.
18681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18683 # If ld is used when linking, flag to hardcode \$libdir into
18684 # a binary during linking. This must work even if \$libdir does
18685 # not exist.
18686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18688 # Whether we need a single -rpath flag with a separated argument.
18689 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18691 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18692 # resulting binary.
18693 hardcode_direct=$hardcode_direct_GCJ
18695 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18696 # resulting binary.
18697 hardcode_minus_L=$hardcode_minus_L_GCJ
18699 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18700 # the resulting binary.
18701 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18703 # Set to yes if building a shared library automatically hardcodes DIR into the library
18704 # and all subsequent libraries and executables linked against it.
18705 hardcode_automatic=$hardcode_automatic_GCJ
18707 # Variables whose values should be saved in libtool wrapper scripts and
18708 # restored at relink time.
18709 variables_saved_for_relink="$variables_saved_for_relink"
18711 # Whether libtool must link a program against all its dependency libraries.
18712 link_all_deplibs=$link_all_deplibs_GCJ
18714 # Compile-time system search path for libraries
18715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18717 # Run-time system search path for libraries
18718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18720 # Fix the shell variable \$srcfile for the compiler.
18721 fix_srcfile_path="$fix_srcfile_path_GCJ"
18723 # Set to yes if exported symbols are required.
18724 always_export_symbols=$always_export_symbols_GCJ
18726 # The commands to list exported symbols.
18727 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18729 # The commands to extract the exported symbol list from a shared archive.
18730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18732 # Symbols that should not be listed in the preloaded symbols.
18733 exclude_expsyms=$lt_exclude_expsyms_GCJ
18735 # Symbols that must always be exported.
18736 include_expsyms=$lt_include_expsyms_GCJ
18738 # ### END LIBTOOL TAG CONFIG: $tagname
18740 __EOF__
18743 else
18744 # If there is no Makefile yet, we rely on a make rule to execute
18745 # `config.status --recheck' to rerun these tests and create the
18746 # libtool script then.
18747 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18748 if test -f "$ltmain_in"; then
18749 test -f Makefile && make "$ltmain"
18754 ac_ext=c
18755 ac_cpp='$CPP $CPPFLAGS'
18756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18760 CC="$lt_save_CC"
18762 else
18763 tagname=""
18771 # Source file extension for RC test sources.
18772 ac_ext=rc
18774 # Object file extension for compiled RC test sources.
18775 objext=o
18776 objext_RC=$objext
18778 # Code to be used in simple compile tests
18779 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18781 # Code to be used in simple link tests
18782 lt_simple_link_test_code="$lt_simple_compile_test_code"
18784 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18786 # If no C compiler was specified, use CC.
18787 LTCC=${LTCC-"$CC"}
18789 # Allow CC to be a program name with arguments.
18790 compiler=$CC
18793 # Allow CC to be a program name with arguments.
18794 lt_save_CC="$CC"
18795 CC=${RC-"windres"}
18796 compiler=$CC
18797 compiler_RC=$CC
18798 lt_cv_prog_compiler_c_o_RC=yes
18800 # The else clause should only fire when bootstrapping the
18801 # libtool distribution, otherwise you forgot to ship ltmain.sh
18802 # with your package, and you will get complaints that there are
18803 # no rules to generate ltmain.sh.
18804 if test -f "$ltmain"; then
18805 # See if we are running on zsh, and set the options which allow our commands through
18806 # without removal of \ escapes.
18807 if test -n "${ZSH_VERSION+set}" ; then
18808 setopt NO_GLOB_SUBST
18810 # Now quote all the things that may contain metacharacters while being
18811 # careful not to overquote the AC_SUBSTed values. We take copies of the
18812 # variables and quote the copies for generation of the libtool script.
18813 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18814 SED SHELL STRIP \
18815 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18816 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18817 deplibs_check_method reload_flag reload_cmds need_locks \
18818 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18819 lt_cv_sys_global_symbol_to_c_name_address \
18820 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18821 old_postinstall_cmds old_postuninstall_cmds \
18822 compiler_RC \
18823 CC_RC \
18824 LD_RC \
18825 lt_prog_compiler_wl_RC \
18826 lt_prog_compiler_pic_RC \
18827 lt_prog_compiler_static_RC \
18828 lt_prog_compiler_no_builtin_flag_RC \
18829 export_dynamic_flag_spec_RC \
18830 thread_safe_flag_spec_RC \
18831 whole_archive_flag_spec_RC \
18832 enable_shared_with_static_runtimes_RC \
18833 old_archive_cmds_RC \
18834 old_archive_from_new_cmds_RC \
18835 predep_objects_RC \
18836 postdep_objects_RC \
18837 predeps_RC \
18838 postdeps_RC \
18839 compiler_lib_search_path_RC \
18840 archive_cmds_RC \
18841 archive_expsym_cmds_RC \
18842 postinstall_cmds_RC \
18843 postuninstall_cmds_RC \
18844 old_archive_from_expsyms_cmds_RC \
18845 allow_undefined_flag_RC \
18846 no_undefined_flag_RC \
18847 export_symbols_cmds_RC \
18848 hardcode_libdir_flag_spec_RC \
18849 hardcode_libdir_flag_spec_ld_RC \
18850 hardcode_libdir_separator_RC \
18851 hardcode_automatic_RC \
18852 module_cmds_RC \
18853 module_expsym_cmds_RC \
18854 lt_cv_prog_compiler_c_o_RC \
18855 exclude_expsyms_RC \
18856 include_expsyms_RC; do
18858 case $var in
18859 old_archive_cmds_RC | \
18860 old_archive_from_new_cmds_RC | \
18861 archive_cmds_RC | \
18862 archive_expsym_cmds_RC | \
18863 module_cmds_RC | \
18864 module_expsym_cmds_RC | \
18865 old_archive_from_expsyms_cmds_RC | \
18866 export_symbols_cmds_RC | \
18867 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18868 postinstall_cmds | postuninstall_cmds | \
18869 old_postinstall_cmds | old_postuninstall_cmds | \
18870 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18871 # Double-quote double-evaled strings.
18872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18877 esac
18878 done
18880 case $lt_echo in
18881 *'\$0 --fallback-echo"')
18882 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18884 esac
18886 cfgfile="$ofile"
18888 cat <<__EOF__ >> "$cfgfile"
18889 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18891 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18893 # Shell to use when invoking shell scripts.
18894 SHELL=$lt_SHELL
18896 # Whether or not to build shared libraries.
18897 build_libtool_libs=$enable_shared
18899 # Whether or not to build static libraries.
18900 build_old_libs=$enable_static
18902 # Whether or not to add -lc for building shared libraries.
18903 build_libtool_need_lc=$archive_cmds_need_lc_RC
18905 # Whether or not to disallow shared libs when runtime libs are static
18906 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18908 # Whether or not to optimize for fast installation.
18909 fast_install=$enable_fast_install
18911 # The host system.
18912 host_alias=$host_alias
18913 host=$host
18914 host_os=$host_os
18916 # The build system.
18917 build_alias=$build_alias
18918 build=$build
18919 build_os=$build_os
18921 # An echo program that does not interpret backslashes.
18922 echo=$lt_echo
18924 # The archiver.
18925 AR=$lt_AR
18926 AR_FLAGS=$lt_AR_FLAGS
18928 # A C compiler.
18929 LTCC=$lt_LTCC
18931 # A language-specific compiler.
18932 CC=$lt_compiler_RC
18934 # Is the compiler the GNU C compiler?
18935 with_gcc=$GCC_RC
18937 # An ERE matcher.
18938 EGREP=$lt_EGREP
18940 # The linker used to build libraries.
18941 LD=$lt_LD_RC
18943 # Whether we need hard or soft links.
18944 LN_S=$lt_LN_S
18946 # A BSD-compatible nm program.
18947 NM=$lt_NM
18949 # A symbol stripping program
18950 STRIP=$lt_STRIP
18952 # Used to examine libraries when file_magic_cmd begins "file"
18953 MAGIC_CMD=$MAGIC_CMD
18955 # Used on cygwin: DLL creation program.
18956 DLLTOOL="$DLLTOOL"
18958 # Used on cygwin: object dumper.
18959 OBJDUMP="$OBJDUMP"
18961 # Used on cygwin: assembler.
18962 AS="$AS"
18964 # The name of the directory that contains temporary libtool files.
18965 objdir=$objdir
18967 # How to create reloadable object files.
18968 reload_flag=$lt_reload_flag
18969 reload_cmds=$lt_reload_cmds
18971 # How to pass a linker flag through the compiler.
18972 wl=$lt_lt_prog_compiler_wl_RC
18974 # Object file suffix (normally "o").
18975 objext="$ac_objext"
18977 # Old archive suffix (normally "a").
18978 libext="$libext"
18980 # Shared library suffix (normally ".so").
18981 shrext_cmds='$shrext_cmds'
18983 # Executable file suffix (normally "").
18984 exeext="$exeext"
18986 # Additional compiler flags for building library objects.
18987 pic_flag=$lt_lt_prog_compiler_pic_RC
18988 pic_mode=$pic_mode
18990 # What is the maximum length of a command?
18991 max_cmd_len=$lt_cv_sys_max_cmd_len
18993 # Does compiler simultaneously support -c and -o options?
18994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18996 # Must we lock files when doing compilation ?
18997 need_locks=$lt_need_locks
18999 # Do we need the lib prefix for modules?
19000 need_lib_prefix=$need_lib_prefix
19002 # Do we need a version for libraries?
19003 need_version=$need_version
19005 # Whether dlopen is supported.
19006 dlopen_support=$enable_dlopen
19008 # Whether dlopen of programs is supported.
19009 dlopen_self=$enable_dlopen_self
19011 # Whether dlopen of statically linked programs is supported.
19012 dlopen_self_static=$enable_dlopen_self_static
19014 # Compiler flag to prevent dynamic linking.
19015 link_static_flag=$lt_lt_prog_compiler_static_RC
19017 # Compiler flag to turn off builtin functions.
19018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19020 # Compiler flag to allow reflexive dlopens.
19021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19023 # Compiler flag to generate shared objects directly from archives.
19024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19026 # Compiler flag to generate thread-safe objects.
19027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19029 # Library versioning type.
19030 version_type=$version_type
19032 # Format of library name prefix.
19033 libname_spec=$lt_libname_spec
19035 # List of archive names. First name is the real one, the rest are links.
19036 # The last name is the one that the linker finds with -lNAME.
19037 library_names_spec=$lt_library_names_spec
19039 # The coded name of the library, if different from the real name.
19040 soname_spec=$lt_soname_spec
19042 # Commands used to build and install an old-style archive.
19043 RANLIB=$lt_RANLIB
19044 old_archive_cmds=$lt_old_archive_cmds_RC
19045 old_postinstall_cmds=$lt_old_postinstall_cmds
19046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19048 # Create an old-style archive from a shared archive.
19049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19051 # Create a temporary old-style archive to link instead of a shared archive.
19052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19054 # Commands used to build and install a shared archive.
19055 archive_cmds=$lt_archive_cmds_RC
19056 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19057 postinstall_cmds=$lt_postinstall_cmds
19058 postuninstall_cmds=$lt_postuninstall_cmds
19060 # Commands used to build a loadable module (assumed same as above if empty)
19061 module_cmds=$lt_module_cmds_RC
19062 module_expsym_cmds=$lt_module_expsym_cmds_RC
19064 # Commands to strip libraries.
19065 old_striplib=$lt_old_striplib
19066 striplib=$lt_striplib
19068 # Dependencies to place before the objects being linked to create a
19069 # shared library.
19070 predep_objects=$lt_predep_objects_RC
19072 # Dependencies to place after the objects being linked to create a
19073 # shared library.
19074 postdep_objects=$lt_postdep_objects_RC
19076 # Dependencies to place before the objects being linked to create a
19077 # shared library.
19078 predeps=$lt_predeps_RC
19080 # Dependencies to place after the objects being linked to create a
19081 # shared library.
19082 postdeps=$lt_postdeps_RC
19084 # The library search path used internally by the compiler when linking
19085 # a shared library.
19086 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19088 # Method to check whether dependent libraries are shared objects.
19089 deplibs_check_method=$lt_deplibs_check_method
19091 # Command to use when deplibs_check_method == file_magic.
19092 file_magic_cmd=$lt_file_magic_cmd
19094 # Flag that allows shared libraries with undefined symbols to be built.
19095 allow_undefined_flag=$lt_allow_undefined_flag_RC
19097 # Flag that forces no undefined symbols.
19098 no_undefined_flag=$lt_no_undefined_flag_RC
19100 # Commands used to finish a libtool library installation in a directory.
19101 finish_cmds=$lt_finish_cmds
19103 # Same as above, but a single script fragment to be evaled but not shown.
19104 finish_eval=$lt_finish_eval
19106 # Take the output of nm and produce a listing of raw symbols and C names.
19107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19109 # Transform the output of nm in a proper C declaration
19110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19112 # Transform the output of nm in a C name address pair
19113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19115 # This is the shared library runtime path variable.
19116 runpath_var=$runpath_var
19118 # This is the shared library path variable.
19119 shlibpath_var=$shlibpath_var
19121 # Is shlibpath searched before the hard-coded library search path?
19122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19124 # How to hardcode a shared library path into an executable.
19125 hardcode_action=$hardcode_action_RC
19127 # Whether we should hardcode library paths into libraries.
19128 hardcode_into_libs=$hardcode_into_libs
19130 # Flag to hardcode \$libdir into a binary during linking.
19131 # This must work even if \$libdir does not exist.
19132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19134 # If ld is used when linking, flag to hardcode \$libdir into
19135 # a binary during linking. This must work even if \$libdir does
19136 # not exist.
19137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19139 # Whether we need a single -rpath flag with a separated argument.
19140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_direct=$hardcode_direct_RC
19146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_minus_L=$hardcode_minus_L_RC
19150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19151 # the resulting binary.
19152 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19154 # Set to yes if building a shared library automatically hardcodes DIR into the library
19155 # and all subsequent libraries and executables linked against it.
19156 hardcode_automatic=$hardcode_automatic_RC
19158 # Variables whose values should be saved in libtool wrapper scripts and
19159 # restored at relink time.
19160 variables_saved_for_relink="$variables_saved_for_relink"
19162 # Whether libtool must link a program against all its dependency libraries.
19163 link_all_deplibs=$link_all_deplibs_RC
19165 # Compile-time system search path for libraries
19166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19168 # Run-time system search path for libraries
19169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19171 # Fix the shell variable \$srcfile for the compiler.
19172 fix_srcfile_path="$fix_srcfile_path_RC"
19174 # Set to yes if exported symbols are required.
19175 always_export_symbols=$always_export_symbols_RC
19177 # The commands to list exported symbols.
19178 export_symbols_cmds=$lt_export_symbols_cmds_RC
19180 # The commands to extract the exported symbol list from a shared archive.
19181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19183 # Symbols that should not be listed in the preloaded symbols.
19184 exclude_expsyms=$lt_exclude_expsyms_RC
19186 # Symbols that must always be exported.
19187 include_expsyms=$lt_include_expsyms_RC
19189 # ### END LIBTOOL TAG CONFIG: $tagname
19191 __EOF__
19194 else
19195 # If there is no Makefile yet, we rely on a make rule to execute
19196 # `config.status --recheck' to rerun these tests and create the
19197 # libtool script then.
19198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19199 if test -f "$ltmain_in"; then
19200 test -f Makefile && make "$ltmain"
19205 ac_ext=c
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19211 CC="$lt_save_CC"
19216 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19217 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19218 { (exit 1); exit 1; }; }
19220 esac
19222 # Append the new tag name to the list of available tags.
19223 if test -n "$tagname" ; then
19224 available_tags="$available_tags $tagname"
19227 done
19228 IFS="$lt_save_ifs"
19230 # Now substitute the updated list of available tags.
19231 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19232 mv "${ofile}T" "$ofile"
19233 chmod +x "$ofile"
19234 else
19235 rm -f "${ofile}T"
19236 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19237 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19238 { (exit 1); exit 1; }; }
19244 # This can be used to rebuild libtool when needed
19245 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19247 # Always use our own libtool.
19248 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19250 # Prevent multiple expansion
19272 if test "X$prefix" = "XNONE"; then
19273 acl_final_prefix="$ac_default_prefix"
19274 else
19275 acl_final_prefix="$prefix"
19277 if test "X$exec_prefix" = "XNONE"; then
19278 acl_final_exec_prefix='${prefix}'
19279 else
19280 acl_final_exec_prefix="$exec_prefix"
19282 acl_save_prefix="$prefix"
19283 prefix="$acl_final_prefix"
19284 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19285 prefix="$acl_save_prefix"
19288 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19289 if test "${with_gnu_ld+set}" = set; then
19290 withval="$with_gnu_ld"
19291 test "$withval" = no || with_gnu_ld=yes
19292 else
19293 with_gnu_ld=no
19295 # Prepare PATH_SEPARATOR.
19296 # The user is always right.
19297 if test "${PATH_SEPARATOR+set}" != set; then
19298 echo "#! /bin/sh" >conf$$.sh
19299 echo "exit 0" >>conf$$.sh
19300 chmod +x conf$$.sh
19301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19302 PATH_SEPARATOR=';'
19303 else
19304 PATH_SEPARATOR=:
19306 rm -f conf$$.sh
19308 ac_prog=ld
19309 if test "$GCC" = yes; then
19310 # Check if gcc -print-prog-name=ld gives a path.
19311 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19312 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19313 case $host in
19314 *-*-mingw*)
19315 # gcc leaves a trailing carriage return which upsets mingw
19316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19319 esac
19320 case $ac_prog in
19321 # Accept absolute paths.
19322 [\\/]* | [A-Za-z]:[\\/]*)
19323 re_direlt='/[^/][^/]*/\.\./'
19324 # Canonicalize the path of ld
19325 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19326 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19327 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19328 done
19329 test -z "$LD" && LD="$ac_prog"
19332 # If it fails, then pretend we aren't using GCC.
19333 ac_prog=ld
19336 # If it is relative, then search for the first ld in PATH.
19337 with_gnu_ld=unknown
19339 esac
19340 elif test "$with_gnu_ld" = yes; then
19341 echo "$as_me:$LINENO: checking for GNU ld" >&5
19342 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19343 else
19344 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19345 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19347 if test "${acl_cv_path_LD+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350 if test -z "$LD"; then
19351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19352 for ac_dir in $PATH; do
19353 test -z "$ac_dir" && ac_dir=.
19354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19355 acl_cv_path_LD="$ac_dir/$ac_prog"
19356 # Check to see if the program is GNU ld. I'd rather use --version,
19357 # but apparently some GNU ld's only accept -v.
19358 # Break only if it was the GNU/non-GNU ld that we prefer.
19359 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19360 *GNU* | *'with BFD'*)
19361 test "$with_gnu_ld" != no && break ;;
19363 test "$with_gnu_ld" != yes && break ;;
19364 esac
19366 done
19367 IFS="$ac_save_ifs"
19368 else
19369 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19373 LD="$acl_cv_path_LD"
19374 if test -n "$LD"; then
19375 echo "$as_me:$LINENO: result: $LD" >&5
19376 echo "${ECHO_T}$LD" >&6
19377 else
19378 echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19381 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19382 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19383 { (exit 1); exit 1; }; }
19384 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19385 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19386 if test "${acl_cv_prog_gnu_ld+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19390 case `$LD -v 2>&1 </dev/null` in
19391 *GNU* | *'with BFD'*)
19392 acl_cv_prog_gnu_ld=yes ;;
19394 acl_cv_prog_gnu_ld=no ;;
19395 esac
19397 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19398 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
19399 with_gnu_ld=$acl_cv_prog_gnu_ld
19404 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19405 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
19406 if test "${acl_cv_rpath+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19410 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19411 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19412 . ./conftest.sh
19413 rm -f ./conftest.sh
19414 acl_cv_rpath=done
19417 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19418 echo "${ECHO_T}$acl_cv_rpath" >&6
19419 wl="$acl_cv_wl"
19420 libext="$acl_cv_libext"
19421 shlibext="$acl_cv_shlibext"
19422 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19423 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19424 hardcode_direct="$acl_cv_hardcode_direct"
19425 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19426 # Check whether --enable-rpath or --disable-rpath was given.
19427 if test "${enable_rpath+set}" = set; then
19428 enableval="$enable_rpath"
19430 else
19431 enable_rpath=yes
19439 echo "$as_me:$LINENO: checking how to link with librpathx" >&5
19440 echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6
19441 if test "${ac_cv_librpathx_libs+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19447 use_additional=yes
19449 acl_save_prefix="$prefix"
19450 prefix="$acl_final_prefix"
19451 acl_save_exec_prefix="$exec_prefix"
19452 exec_prefix="$acl_final_exec_prefix"
19454 eval additional_includedir=\"$includedir\"
19455 eval additional_libdir=\"$libdir\"
19457 exec_prefix="$acl_save_exec_prefix"
19458 prefix="$acl_save_prefix"
19461 # Check whether --with-librpathx-prefix or --without-librpathx-prefix was given.
19462 if test "${with_librpathx_prefix+set}" = set; then
19463 withval="$with_librpathx_prefix"
19465 if test "X$withval" = "Xno"; then
19466 use_additional=no
19467 else
19468 if test "X$withval" = "X"; then
19470 acl_save_prefix="$prefix"
19471 prefix="$acl_final_prefix"
19472 acl_save_exec_prefix="$exec_prefix"
19473 exec_prefix="$acl_final_exec_prefix"
19475 eval additional_includedir=\"$includedir\"
19476 eval additional_libdir=\"$libdir\"
19478 exec_prefix="$acl_save_exec_prefix"
19479 prefix="$acl_save_prefix"
19481 else
19482 additional_includedir="$withval/include"
19483 additional_libdir="$withval/lib"
19488 LIBRPATHX=
19489 LTLIBRPATHX=
19490 INCRPATHX=
19491 rpathdirs=
19492 ltrpathdirs=
19493 names_already_handled=
19494 names_next_round='rpathx '
19495 while test -n "$names_next_round"; do
19496 names_this_round="$names_next_round"
19497 names_next_round=
19498 for name in $names_this_round; do
19499 already_handled=
19500 for n in $names_already_handled; do
19501 if test "$n" = "$name"; then
19502 already_handled=yes
19503 break
19505 done
19506 if test -z "$already_handled"; then
19507 names_already_handled="$names_already_handled $name"
19508 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19509 eval value=\"\$HAVE_LIB$uppername\"
19510 if test -n "$value"; then
19511 if test "$value" = yes; then
19512 eval value=\"\$LIB$uppername\"
19513 test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value"
19514 eval value=\"\$LTLIB$uppername\"
19515 test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
19516 else
19519 else
19520 found_dir=
19521 found_la=
19522 found_so=
19523 found_a=
19524 if test $use_additional = yes; then
19525 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19526 found_dir="$additional_libdir"
19527 found_so="$additional_libdir/lib$name.$shlibext"
19528 if test -f "$additional_libdir/lib$name.la"; then
19529 found_la="$additional_libdir/lib$name.la"
19531 else
19532 if test -f "$additional_libdir/lib$name.$libext"; then
19533 found_dir="$additional_libdir"
19534 found_a="$additional_libdir/lib$name.$libext"
19535 if test -f "$additional_libdir/lib$name.la"; then
19536 found_la="$additional_libdir/lib$name.la"
19541 if test "X$found_dir" = "X"; then
19542 for x in $LDFLAGS $LTLIBRPATHX; do
19544 acl_save_prefix="$prefix"
19545 prefix="$acl_final_prefix"
19546 acl_save_exec_prefix="$exec_prefix"
19547 exec_prefix="$acl_final_exec_prefix"
19548 eval x=\"$x\"
19549 exec_prefix="$acl_save_exec_prefix"
19550 prefix="$acl_save_prefix"
19552 case "$x" in
19553 -L*)
19554 dir=`echo "X$x" | sed -e 's/^X-L//'`
19555 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19556 found_dir="$dir"
19557 found_so="$dir/lib$name.$shlibext"
19558 if test -f "$dir/lib$name.la"; then
19559 found_la="$dir/lib$name.la"
19561 else
19562 if test -f "$dir/lib$name.$libext"; then
19563 found_dir="$dir"
19564 found_a="$dir/lib$name.$libext"
19565 if test -f "$dir/lib$name.la"; then
19566 found_la="$dir/lib$name.la"
19571 esac
19572 if test "X$found_dir" != "X"; then
19573 break
19575 done
19577 if test "X$found_dir" != "X"; then
19578 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
19579 if test "X$found_so" != "X"; then
19580 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19581 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19582 else
19583 haveit=
19584 for x in $ltrpathdirs; do
19585 if test "X$x" = "X$found_dir"; then
19586 haveit=yes
19587 break
19589 done
19590 if test -z "$haveit"; then
19591 ltrpathdirs="$ltrpathdirs $found_dir"
19593 if test "$hardcode_direct" = yes; then
19594 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19595 else
19596 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19597 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19598 haveit=
19599 for x in $rpathdirs; do
19600 if test "X$x" = "X$found_dir"; then
19601 haveit=yes
19602 break
19604 done
19605 if test -z "$haveit"; then
19606 rpathdirs="$rpathdirs $found_dir"
19608 else
19609 haveit=
19610 for x in $LDFLAGS $LIBRPATHX; do
19612 acl_save_prefix="$prefix"
19613 prefix="$acl_final_prefix"
19614 acl_save_exec_prefix="$exec_prefix"
19615 exec_prefix="$acl_final_exec_prefix"
19616 eval x=\"$x\"
19617 exec_prefix="$acl_save_exec_prefix"
19618 prefix="$acl_save_prefix"
19620 if test "X$x" = "X-L$found_dir"; then
19621 haveit=yes
19622 break
19624 done
19625 if test -z "$haveit"; then
19626 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
19628 if test "$hardcode_minus_L" != no; then
19629 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19630 else
19631 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19636 else
19637 if test "X$found_a" != "X"; then
19638 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
19639 else
19640 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
19643 additional_includedir=
19644 case "$found_dir" in
19645 */lib | */lib/)
19646 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19647 additional_includedir="$basedir/include"
19649 esac
19650 if test "X$additional_includedir" != "X"; then
19651 if test "X$additional_includedir" != "X/usr/include"; then
19652 haveit=
19653 if test "X$additional_includedir" = "X/usr/local/include"; then
19654 if test -n "$GCC"; then
19655 case $host_os in
19656 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19657 esac
19660 if test -z "$haveit"; then
19661 for x in $CPPFLAGS $INCRPATHX; do
19663 acl_save_prefix="$prefix"
19664 prefix="$acl_final_prefix"
19665 acl_save_exec_prefix="$exec_prefix"
19666 exec_prefix="$acl_final_exec_prefix"
19667 eval x=\"$x\"
19668 exec_prefix="$acl_save_exec_prefix"
19669 prefix="$acl_save_prefix"
19671 if test "X$x" = "X-I$additional_includedir"; then
19672 haveit=yes
19673 break
19675 done
19676 if test -z "$haveit"; then
19677 if test -d "$additional_includedir"; then
19678 INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
19684 if test -n "$found_la"; then
19685 save_libdir="$libdir"
19686 case "$found_la" in
19687 */* | *\\*) . "$found_la" ;;
19688 *) . "./$found_la" ;;
19689 esac
19690 libdir="$save_libdir"
19691 for dep in $dependency_libs; do
19692 case "$dep" in
19693 -L*)
19694 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19695 if test "X$additional_libdir" != "X/usr/lib"; then
19696 haveit=
19697 if test "X$additional_libdir" = "X/usr/local/lib"; then
19698 if test -n "$GCC"; then
19699 case $host_os in
19700 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19701 esac
19704 if test -z "$haveit"; then
19705 haveit=
19706 for x in $LDFLAGS $LIBRPATHX; do
19708 acl_save_prefix="$prefix"
19709 prefix="$acl_final_prefix"
19710 acl_save_exec_prefix="$exec_prefix"
19711 exec_prefix="$acl_final_exec_prefix"
19712 eval x=\"$x\"
19713 exec_prefix="$acl_save_exec_prefix"
19714 prefix="$acl_save_prefix"
19716 if test "X$x" = "X-L$additional_libdir"; then
19717 haveit=yes
19718 break
19720 done
19721 if test -z "$haveit"; then
19722 if test -d "$additional_libdir"; then
19723 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
19726 haveit=
19727 for x in $LDFLAGS $LTLIBRPATHX; do
19729 acl_save_prefix="$prefix"
19730 prefix="$acl_final_prefix"
19731 acl_save_exec_prefix="$exec_prefix"
19732 exec_prefix="$acl_final_exec_prefix"
19733 eval x=\"$x\"
19734 exec_prefix="$acl_save_exec_prefix"
19735 prefix="$acl_save_prefix"
19737 if test "X$x" = "X-L$additional_libdir"; then
19738 haveit=yes
19739 break
19741 done
19742 if test -z "$haveit"; then
19743 if test -d "$additional_libdir"; then
19744 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
19750 -R*)
19751 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19752 if test "$enable_rpath" != no; then
19753 haveit=
19754 for x in $rpathdirs; do
19755 if test "X$x" = "X$dir"; then
19756 haveit=yes
19757 break
19759 done
19760 if test -z "$haveit"; then
19761 rpathdirs="$rpathdirs $dir"
19763 haveit=
19764 for x in $ltrpathdirs; do
19765 if test "X$x" = "X$dir"; then
19766 haveit=yes
19767 break
19769 done
19770 if test -z "$haveit"; then
19771 ltrpathdirs="$ltrpathdirs $dir"
19775 -l*)
19776 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19778 *.la)
19779 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19782 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep"
19783 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
19785 esac
19786 done
19788 else
19789 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19790 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
19794 done
19795 done
19796 if test "X$rpathdirs" != "X"; then
19797 if test -n "$hardcode_libdir_separator"; then
19798 alldirs=
19799 for found_dir in $rpathdirs; do
19800 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19801 done
19802 acl_save_libdir="$libdir"
19803 libdir="$alldirs"
19804 eval flag=\"$hardcode_libdir_flag_spec\"
19805 libdir="$acl_save_libdir"
19806 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19807 else
19808 for found_dir in $rpathdirs; do
19809 acl_save_libdir="$libdir"
19810 libdir="$found_dir"
19811 eval flag=\"$hardcode_libdir_flag_spec\"
19812 libdir="$acl_save_libdir"
19813 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19814 done
19817 if test "X$ltrpathdirs" != "X"; then
19818 for found_dir in $ltrpathdirs; do
19819 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
19820 done
19823 ac_cv_librpathx_libs="$LIBRPATHX"
19824 ac_cv_librpathx_ltlibs="$LTLIBRPATHX"
19825 ac_cv_librpathx_cppflags="$INCRPATHX"
19828 echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
19829 echo "${ECHO_T}$ac_cv_librpathx_libs" >&6
19830 LIBRPATHX="$ac_cv_librpathx_libs"
19831 LTLIBRPATHX="$ac_cv_librpathx_ltlibs"
19832 INCRPATHX="$ac_cv_librpathx_cppflags"
19834 for element in $INCRPATHX; do
19835 haveit=
19836 for x in $CPPFLAGS; do
19838 acl_save_prefix="$prefix"
19839 prefix="$acl_final_prefix"
19840 acl_save_exec_prefix="$exec_prefix"
19841 exec_prefix="$acl_final_exec_prefix"
19842 eval x=\"$x\"
19843 exec_prefix="$acl_save_exec_prefix"
19844 prefix="$acl_save_prefix"
19846 if test "X$x" = "X$element"; then
19847 haveit=yes
19848 break
19850 done
19851 if test -z "$haveit"; then
19852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19854 done
19858 HAVE_LIBRPATHX=yes
19867 echo "$as_me:$LINENO: checking how to link with librpathy" >&5
19868 echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6
19869 if test "${ac_cv_librpathy_libs+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19875 use_additional=yes
19877 acl_save_prefix="$prefix"
19878 prefix="$acl_final_prefix"
19879 acl_save_exec_prefix="$exec_prefix"
19880 exec_prefix="$acl_final_exec_prefix"
19882 eval additional_includedir=\"$includedir\"
19883 eval additional_libdir=\"$libdir\"
19885 exec_prefix="$acl_save_exec_prefix"
19886 prefix="$acl_save_prefix"
19889 # Check whether --with-librpathy-prefix or --without-librpathy-prefix was given.
19890 if test "${with_librpathy_prefix+set}" = set; then
19891 withval="$with_librpathy_prefix"
19893 if test "X$withval" = "Xno"; then
19894 use_additional=no
19895 else
19896 if test "X$withval" = "X"; then
19898 acl_save_prefix="$prefix"
19899 prefix="$acl_final_prefix"
19900 acl_save_exec_prefix="$exec_prefix"
19901 exec_prefix="$acl_final_exec_prefix"
19903 eval additional_includedir=\"$includedir\"
19904 eval additional_libdir=\"$libdir\"
19906 exec_prefix="$acl_save_exec_prefix"
19907 prefix="$acl_save_prefix"
19909 else
19910 additional_includedir="$withval/include"
19911 additional_libdir="$withval/lib"
19916 LIBRPATHY=
19917 LTLIBRPATHY=
19918 INCRPATHY=
19919 rpathdirs=
19920 ltrpathdirs=
19921 names_already_handled=
19922 names_next_round='rpathy rpathx'
19923 while test -n "$names_next_round"; do
19924 names_this_round="$names_next_round"
19925 names_next_round=
19926 for name in $names_this_round; do
19927 already_handled=
19928 for n in $names_already_handled; do
19929 if test "$n" = "$name"; then
19930 already_handled=yes
19931 break
19933 done
19934 if test -z "$already_handled"; then
19935 names_already_handled="$names_already_handled $name"
19936 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19937 eval value=\"\$HAVE_LIB$uppername\"
19938 if test -n "$value"; then
19939 if test "$value" = yes; then
19940 eval value=\"\$LIB$uppername\"
19941 test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value"
19942 eval value=\"\$LTLIB$uppername\"
19943 test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value"
19944 else
19947 else
19948 found_dir=
19949 found_la=
19950 found_so=
19951 found_a=
19952 if test $use_additional = yes; then
19953 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19954 found_dir="$additional_libdir"
19955 found_so="$additional_libdir/lib$name.$shlibext"
19956 if test -f "$additional_libdir/lib$name.la"; then
19957 found_la="$additional_libdir/lib$name.la"
19959 else
19960 if test -f "$additional_libdir/lib$name.$libext"; then
19961 found_dir="$additional_libdir"
19962 found_a="$additional_libdir/lib$name.$libext"
19963 if test -f "$additional_libdir/lib$name.la"; then
19964 found_la="$additional_libdir/lib$name.la"
19969 if test "X$found_dir" = "X"; then
19970 for x in $LDFLAGS $LTLIBRPATHY; do
19972 acl_save_prefix="$prefix"
19973 prefix="$acl_final_prefix"
19974 acl_save_exec_prefix="$exec_prefix"
19975 exec_prefix="$acl_final_exec_prefix"
19976 eval x=\"$x\"
19977 exec_prefix="$acl_save_exec_prefix"
19978 prefix="$acl_save_prefix"
19980 case "$x" in
19981 -L*)
19982 dir=`echo "X$x" | sed -e 's/^X-L//'`
19983 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19984 found_dir="$dir"
19985 found_so="$dir/lib$name.$shlibext"
19986 if test -f "$dir/lib$name.la"; then
19987 found_la="$dir/lib$name.la"
19989 else
19990 if test -f "$dir/lib$name.$libext"; then
19991 found_dir="$dir"
19992 found_a="$dir/lib$name.$libext"
19993 if test -f "$dir/lib$name.la"; then
19994 found_la="$dir/lib$name.la"
19999 esac
20000 if test "X$found_dir" != "X"; then
20001 break
20003 done
20005 if test "X$found_dir" != "X"; then
20006 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name"
20007 if test "X$found_so" != "X"; then
20008 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20009 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20010 else
20011 haveit=
20012 for x in $ltrpathdirs; do
20013 if test "X$x" = "X$found_dir"; then
20014 haveit=yes
20015 break
20017 done
20018 if test -z "$haveit"; then
20019 ltrpathdirs="$ltrpathdirs $found_dir"
20021 if test "$hardcode_direct" = yes; then
20022 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20023 else
20024 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20025 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20026 haveit=
20027 for x in $rpathdirs; do
20028 if test "X$x" = "X$found_dir"; then
20029 haveit=yes
20030 break
20032 done
20033 if test -z "$haveit"; then
20034 rpathdirs="$rpathdirs $found_dir"
20036 else
20037 haveit=
20038 for x in $LDFLAGS $LIBRPATHY; do
20040 acl_save_prefix="$prefix"
20041 prefix="$acl_final_prefix"
20042 acl_save_exec_prefix="$exec_prefix"
20043 exec_prefix="$acl_final_exec_prefix"
20044 eval x=\"$x\"
20045 exec_prefix="$acl_save_exec_prefix"
20046 prefix="$acl_save_prefix"
20048 if test "X$x" = "X-L$found_dir"; then
20049 haveit=yes
20050 break
20052 done
20053 if test -z "$haveit"; then
20054 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir"
20056 if test "$hardcode_minus_L" != no; then
20057 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so"
20058 else
20059 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
20064 else
20065 if test "X$found_a" != "X"; then
20066 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a"
20067 else
20068 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name"
20071 additional_includedir=
20072 case "$found_dir" in
20073 */lib | */lib/)
20074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20075 additional_includedir="$basedir/include"
20077 esac
20078 if test "X$additional_includedir" != "X"; then
20079 if test "X$additional_includedir" != "X/usr/include"; then
20080 haveit=
20081 if test "X$additional_includedir" = "X/usr/local/include"; then
20082 if test -n "$GCC"; then
20083 case $host_os in
20084 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20085 esac
20088 if test -z "$haveit"; then
20089 for x in $CPPFLAGS $INCRPATHY; do
20091 acl_save_prefix="$prefix"
20092 prefix="$acl_final_prefix"
20093 acl_save_exec_prefix="$exec_prefix"
20094 exec_prefix="$acl_final_exec_prefix"
20095 eval x=\"$x\"
20096 exec_prefix="$acl_save_exec_prefix"
20097 prefix="$acl_save_prefix"
20099 if test "X$x" = "X-I$additional_includedir"; then
20100 haveit=yes
20101 break
20103 done
20104 if test -z "$haveit"; then
20105 if test -d "$additional_includedir"; then
20106 INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir"
20112 if test -n "$found_la"; then
20113 save_libdir="$libdir"
20114 case "$found_la" in
20115 */* | *\\*) . "$found_la" ;;
20116 *) . "./$found_la" ;;
20117 esac
20118 libdir="$save_libdir"
20119 for dep in $dependency_libs; do
20120 case "$dep" in
20121 -L*)
20122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20123 if test "X$additional_libdir" != "X/usr/lib"; then
20124 haveit=
20125 if test "X$additional_libdir" = "X/usr/local/lib"; then
20126 if test -n "$GCC"; then
20127 case $host_os in
20128 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20129 esac
20132 if test -z "$haveit"; then
20133 haveit=
20134 for x in $LDFLAGS $LIBRPATHY; do
20136 acl_save_prefix="$prefix"
20137 prefix="$acl_final_prefix"
20138 acl_save_exec_prefix="$exec_prefix"
20139 exec_prefix="$acl_final_exec_prefix"
20140 eval x=\"$x\"
20141 exec_prefix="$acl_save_exec_prefix"
20142 prefix="$acl_save_prefix"
20144 if test "X$x" = "X-L$additional_libdir"; then
20145 haveit=yes
20146 break
20148 done
20149 if test -z "$haveit"; then
20150 if test -d "$additional_libdir"; then
20151 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir"
20154 haveit=
20155 for x in $LDFLAGS $LTLIBRPATHY; do
20157 acl_save_prefix="$prefix"
20158 prefix="$acl_final_prefix"
20159 acl_save_exec_prefix="$exec_prefix"
20160 exec_prefix="$acl_final_exec_prefix"
20161 eval x=\"$x\"
20162 exec_prefix="$acl_save_exec_prefix"
20163 prefix="$acl_save_prefix"
20165 if test "X$x" = "X-L$additional_libdir"; then
20166 haveit=yes
20167 break
20169 done
20170 if test -z "$haveit"; then
20171 if test -d "$additional_libdir"; then
20172 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir"
20178 -R*)
20179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20180 if test "$enable_rpath" != no; then
20181 haveit=
20182 for x in $rpathdirs; do
20183 if test "X$x" = "X$dir"; then
20184 haveit=yes
20185 break
20187 done
20188 if test -z "$haveit"; then
20189 rpathdirs="$rpathdirs $dir"
20191 haveit=
20192 for x in $ltrpathdirs; do
20193 if test "X$x" = "X$dir"; then
20194 haveit=yes
20195 break
20197 done
20198 if test -z "$haveit"; then
20199 ltrpathdirs="$ltrpathdirs $dir"
20203 -l*)
20204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20206 *.la)
20207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20210 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep"
20211 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep"
20213 esac
20214 done
20216 else
20217 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name"
20218 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name"
20222 done
20223 done
20224 if test "X$rpathdirs" != "X"; then
20225 if test -n "$hardcode_libdir_separator"; then
20226 alldirs=
20227 for found_dir in $rpathdirs; do
20228 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20229 done
20230 acl_save_libdir="$libdir"
20231 libdir="$alldirs"
20232 eval flag=\"$hardcode_libdir_flag_spec\"
20233 libdir="$acl_save_libdir"
20234 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
20235 else
20236 for found_dir in $rpathdirs; do
20237 acl_save_libdir="$libdir"
20238 libdir="$found_dir"
20239 eval flag=\"$hardcode_libdir_flag_spec\"
20240 libdir="$acl_save_libdir"
20241 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag"
20242 done
20245 if test "X$ltrpathdirs" != "X"; then
20246 for found_dir in $ltrpathdirs; do
20247 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir"
20248 done
20251 ac_cv_librpathy_libs="$LIBRPATHY"
20252 ac_cv_librpathy_ltlibs="$LTLIBRPATHY"
20253 ac_cv_librpathy_cppflags="$INCRPATHY"
20256 echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5
20257 echo "${ECHO_T}$ac_cv_librpathy_libs" >&6
20258 LIBRPATHY="$ac_cv_librpathy_libs"
20259 LTLIBRPATHY="$ac_cv_librpathy_ltlibs"
20260 INCRPATHY="$ac_cv_librpathy_cppflags"
20262 for element in $INCRPATHY; do
20263 haveit=
20264 for x in $CPPFLAGS; do
20266 acl_save_prefix="$prefix"
20267 prefix="$acl_final_prefix"
20268 acl_save_exec_prefix="$exec_prefix"
20269 exec_prefix="$acl_final_exec_prefix"
20270 eval x=\"$x\"
20271 exec_prefix="$acl_save_exec_prefix"
20272 prefix="$acl_save_prefix"
20274 if test "X$x" = "X$element"; then
20275 haveit=yes
20276 break
20278 done
20279 if test -z "$haveit"; then
20280 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20282 done
20286 HAVE_LIBRPATHY=yes
20291 ac_config_files="$ac_config_files Makefile"
20292 cat >confcache <<\_ACEOF
20293 # This file is a shell script that caches the results of configure
20294 # tests run on this system so they can be shared between configure
20295 # scripts and configure runs, see configure's option --config-cache.
20296 # It is not useful on other systems. If it contains results you don't
20297 # want to keep, you may remove or edit it.
20299 # config.status only pays attention to the cache file if you give it
20300 # the --recheck option to rerun configure.
20302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20304 # following values.
20306 _ACEOF
20308 # The following way of writing the cache mishandles newlines in values,
20309 # but we know of no workaround that is simple, portable, and efficient.
20310 # So, don't put newlines in cache variables' values.
20311 # Ultrix sh set writes to stderr and can't be redirected directly,
20312 # and sets the high bit in the cache file unless we assign to the vars.
20314 (set) 2>&1 |
20315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20316 *ac_space=\ *)
20317 # `set' does not quote correctly, so add quotes (double-quote
20318 # substitution turns \\\\ into \\, and sed turns \\ into \).
20319 sed -n \
20320 "s/'/'\\\\''/g;
20321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20324 # `set' quotes correctly as required by POSIX, so do not add quotes.
20325 sed -n \
20326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20328 esac;
20330 sed '
20331 t clear
20332 : clear
20333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20334 t end
20335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20336 : end' >>confcache
20337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20338 if test -w $cache_file; then
20339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20340 cat confcache >$cache_file
20341 else
20342 echo "not updating unwritable cache $cache_file"
20345 rm -f confcache
20347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20348 # Let make expand exec_prefix.
20349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20353 # trailing colons and then remove the whole line if VPATH becomes empty
20354 # (actually we leave an empty line to preserve line numbers).
20355 if test "x$srcdir" = x.; then
20356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20357 s/:*\$(srcdir):*/:/;
20358 s/:*\${srcdir}:*/:/;
20359 s/:*@srcdir@:*/:/;
20360 s/^\([^=]*=[ ]*\):*/\1/;
20361 s/:*$//;
20362 s/^[^=]*=[ ]*$//;
20366 # Transform confdefs.h into DEFS.
20367 # Protect against shell expansion while executing Makefile rules.
20368 # Protect against Makefile macro expansion.
20370 # If the first sed substitution is executed (which looks for macros that
20371 # take arguments), then we branch to the quote section. Otherwise,
20372 # look for a macro that doesn't take arguments.
20373 cat >confdef2opt.sed <<\_ACEOF
20374 t clear
20375 : clear
20376 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20377 t quote
20378 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20379 t quote
20381 : quote
20382 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20383 s,\[,\\&,g
20384 s,\],\\&,g
20385 s,\$,$$,g
20387 _ACEOF
20388 # We use echo to avoid assuming a particular line-breaking character.
20389 # The extra dot is to prevent the shell from consuming trailing
20390 # line-breaks from the sub-command output. A line-break within
20391 # single-quotes doesn't work because, if this script is created in a
20392 # platform that uses two characters for line-breaks (e.g., DOS), tr
20393 # would break.
20394 ac_LF_and_DOT=`echo; echo .`
20395 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20396 rm -f confdef2opt.sed
20399 ac_libobjs=
20400 ac_ltlibobjs=
20401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20402 # 1. Remove the extension, and $U if already installed.
20403 ac_i=`echo "$ac_i" |
20404 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20405 # 2. Add them.
20406 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20407 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20408 done
20409 LIBOBJS=$ac_libobjs
20411 LTLIBOBJS=$ac_ltlibobjs
20414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20415 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20416 Usually this means the macro was only invoked conditionally." >&5
20417 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20418 Usually this means the macro was only invoked conditionally." >&2;}
20419 { (exit 1); exit 1; }; }
20421 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20422 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20423 Usually this means the macro was only invoked conditionally." >&5
20424 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20425 Usually this means the macro was only invoked conditionally." >&2;}
20426 { (exit 1); exit 1; }; }
20428 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20429 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20430 Usually this means the macro was only invoked conditionally." >&5
20431 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20432 Usually this means the macro was only invoked conditionally." >&2;}
20433 { (exit 1); exit 1; }; }
20436 : ${CONFIG_STATUS=./config.status}
20437 ac_clean_files_save=$ac_clean_files
20438 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20439 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20440 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20441 cat >$CONFIG_STATUS <<_ACEOF
20442 #! $SHELL
20443 # Generated by $as_me.
20444 # Run this file to recreate the current configuration.
20445 # Compiler output produced by configure, useful for debugging
20446 # configure, is in config.log if it exists.
20448 debug=false
20449 ac_cs_recheck=false
20450 ac_cs_silent=false
20451 SHELL=\${CONFIG_SHELL-$SHELL}
20452 _ACEOF
20454 cat >>$CONFIG_STATUS <<\_ACEOF
20455 ## --------------------- ##
20456 ## M4sh Initialization. ##
20457 ## --------------------- ##
20459 # Be Bourne compatible
20460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20461 emulate sh
20462 NULLCMD=:
20463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20464 # is contrary to our usage. Disable this feature.
20465 alias -g '${1+"$@"}'='"$@"'
20466 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20467 set -o posix
20469 DUALCASE=1; export DUALCASE # for MKS sh
20471 # Support unset when possible.
20472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20473 as_unset=unset
20474 else
20475 as_unset=false
20479 # Work around bugs in pre-3.0 UWIN ksh.
20480 $as_unset ENV MAIL MAILPATH
20481 PS1='$ '
20482 PS2='> '
20483 PS4='+ '
20485 # NLS nuisances.
20486 for as_var in \
20487 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20488 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20489 LC_TELEPHONE LC_TIME
20491 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20492 eval $as_var=C; export $as_var
20493 else
20494 $as_unset $as_var
20496 done
20498 # Required to use basename.
20499 if expr a : '\(a\)' >/dev/null 2>&1; then
20500 as_expr=expr
20501 else
20502 as_expr=false
20505 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20506 as_basename=basename
20507 else
20508 as_basename=false
20512 # Name of the executable.
20513 as_me=`$as_basename "$0" ||
20514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20515 X"$0" : 'X\(//\)$' \| \
20516 X"$0" : 'X\(/\)$' \| \
20517 . : '\(.\)' 2>/dev/null ||
20518 echo X/"$0" |
20519 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20520 /^X\/\(\/\/\)$/{ s//\1/; q; }
20521 /^X\/\(\/\).*/{ s//\1/; q; }
20522 s/.*/./; q'`
20525 # PATH needs CR, and LINENO needs CR and PATH.
20526 # Avoid depending upon Character Ranges.
20527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20530 as_cr_digits='0123456789'
20531 as_cr_alnum=$as_cr_Letters$as_cr_digits
20533 # The user is always right.
20534 if test "${PATH_SEPARATOR+set}" != set; then
20535 echo "#! /bin/sh" >conf$$.sh
20536 echo "exit 0" >>conf$$.sh
20537 chmod +x conf$$.sh
20538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20539 PATH_SEPARATOR=';'
20540 else
20541 PATH_SEPARATOR=:
20543 rm -f conf$$.sh
20547 as_lineno_1=$LINENO
20548 as_lineno_2=$LINENO
20549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20550 test "x$as_lineno_1" != "x$as_lineno_2" &&
20551 test "x$as_lineno_3" = "x$as_lineno_2" || {
20552 # Find who we are. Look in the path if we contain no path at all
20553 # relative or not.
20554 case $0 in
20555 *[\\/]* ) as_myself=$0 ;;
20556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20557 for as_dir in $PATH
20559 IFS=$as_save_IFS
20560 test -z "$as_dir" && as_dir=.
20561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20562 done
20565 esac
20566 # We did not find ourselves, most probably we were run as `sh COMMAND'
20567 # in which case we are not to be found in the path.
20568 if test "x$as_myself" = x; then
20569 as_myself=$0
20571 if test ! -f "$as_myself"; then
20572 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20573 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20574 { (exit 1); exit 1; }; }
20576 case $CONFIG_SHELL in
20578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20581 IFS=$as_save_IFS
20582 test -z "$as_dir" && as_dir=.
20583 for as_base in sh bash ksh sh5; do
20584 case $as_dir in
20586 if ("$as_dir/$as_base" -c '
20587 as_lineno_1=$LINENO
20588 as_lineno_2=$LINENO
20589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20590 test "x$as_lineno_1" != "x$as_lineno_2" &&
20591 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20592 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20593 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20594 CONFIG_SHELL=$as_dir/$as_base
20595 export CONFIG_SHELL
20596 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20597 fi;;
20598 esac
20599 done
20600 done
20602 esac
20604 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20605 # uniformly replaced by the line number. The first 'sed' inserts a
20606 # line-number line before each line; the second 'sed' does the real
20607 # work. The second script uses 'N' to pair each line-number line
20608 # with the numbered line, and appends trailing '-' during
20609 # substitution so that $LINENO is not a special case at line end.
20610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20611 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20612 sed '=' <$as_myself |
20613 sed '
20615 s,$,-,
20616 : loop
20617 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20618 t loop
20619 s,-$,,
20620 s,^['$as_cr_digits']*\n,,
20621 ' >$as_me.lineno &&
20622 chmod +x $as_me.lineno ||
20623 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20624 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20625 { (exit 1); exit 1; }; }
20627 # Don't try to exec as it changes $[0], causing all sort of problems
20628 # (the dirname of $[0] is not the place where we might find the
20629 # original and so on. Autoconf is especially sensible to this).
20630 . ./$as_me.lineno
20631 # Exit status is that of the last command.
20632 exit
20636 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20637 *c*,-n*) ECHO_N= ECHO_C='
20638 ' ECHO_T=' ' ;;
20639 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20640 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20641 esac
20643 if expr a : '\(a\)' >/dev/null 2>&1; then
20644 as_expr=expr
20645 else
20646 as_expr=false
20649 rm -f conf$$ conf$$.exe conf$$.file
20650 echo >conf$$.file
20651 if ln -s conf$$.file conf$$ 2>/dev/null; then
20652 # We could just check for DJGPP; but this test a) works b) is more generic
20653 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20654 if test -f conf$$.exe; then
20655 # Don't use ln at all; we don't have any links
20656 as_ln_s='cp -p'
20657 else
20658 as_ln_s='ln -s'
20660 elif ln conf$$.file conf$$ 2>/dev/null; then
20661 as_ln_s=ln
20662 else
20663 as_ln_s='cp -p'
20665 rm -f conf$$ conf$$.exe conf$$.file
20667 if mkdir -p . 2>/dev/null; then
20668 as_mkdir_p=:
20669 else
20670 test -d ./-p && rmdir ./-p
20671 as_mkdir_p=false
20674 as_executable_p="test -f"
20676 # Sed expression to map a string onto a valid CPP name.
20677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20679 # Sed expression to map a string onto a valid variable name.
20680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20683 # IFS
20684 # We need space, tab and new line, in precisely that order.
20685 as_nl='
20687 IFS=" $as_nl"
20689 # CDPATH.
20690 $as_unset CDPATH
20692 exec 6>&1
20694 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20695 # report actual input values of CONFIG_FILES etc. instead of their
20696 # values after options handling. Logging --version etc. is OK.
20697 exec 5>>config.log
20699 echo
20700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20701 ## Running $as_me. ##
20702 _ASBOX
20703 } >&5
20704 cat >&5 <<_CSEOF
20706 This file was extended by $as_me, which was
20707 generated by GNU Autoconf 2.59. Invocation command line was
20709 CONFIG_FILES = $CONFIG_FILES
20710 CONFIG_HEADERS = $CONFIG_HEADERS
20711 CONFIG_LINKS = $CONFIG_LINKS
20712 CONFIG_COMMANDS = $CONFIG_COMMANDS
20713 $ $0 $@
20715 _CSEOF
20716 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20717 echo >&5
20718 _ACEOF
20720 # Files that config.status was made for.
20721 if test -n "$ac_config_files"; then
20722 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20725 if test -n "$ac_config_headers"; then
20726 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20729 if test -n "$ac_config_links"; then
20730 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20733 if test -n "$ac_config_commands"; then
20734 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20737 cat >>$CONFIG_STATUS <<\_ACEOF
20739 ac_cs_usage="\
20740 \`$as_me' instantiates files from templates according to the
20741 current configuration.
20743 Usage: $0 [OPTIONS] [FILE]...
20745 -h, --help print this help, then exit
20746 -V, --version print version number, then exit
20747 -q, --quiet do not print progress messages
20748 -d, --debug don't remove temporary files
20749 --recheck update $as_me by reconfiguring in the same conditions
20750 --file=FILE[:TEMPLATE]
20751 instantiate the configuration file FILE
20753 Configuration files:
20754 $config_files
20756 Configuration commands:
20757 $config_commands
20759 Report bugs to <bug-autoconf@gnu.org>."
20760 _ACEOF
20762 cat >>$CONFIG_STATUS <<_ACEOF
20763 ac_cs_version="\\
20764 config.status
20765 configured by $0, generated by GNU Autoconf 2.59,
20766 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20768 Copyright (C) 2003 Free Software Foundation, Inc.
20769 This config.status script is free software; the Free Software Foundation
20770 gives unlimited permission to copy, distribute and modify it."
20771 srcdir=$srcdir
20772 INSTALL="$INSTALL"
20773 _ACEOF
20775 cat >>$CONFIG_STATUS <<\_ACEOF
20776 # If no file are specified by the user, then we need to provide default
20777 # value. By we need to know if files were specified by the user.
20778 ac_need_defaults=:
20779 while test $# != 0
20781 case $1 in
20782 --*=*)
20783 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20784 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20785 ac_shift=:
20788 ac_option=$1
20789 ac_optarg=$2
20790 ac_shift=shift
20792 *) # This is not an option, so the user has probably given explicit
20793 # arguments.
20794 ac_option=$1
20795 ac_need_defaults=false;;
20796 esac
20798 case $ac_option in
20799 # Handling of the options.
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<\_ACEOF
20802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20803 ac_cs_recheck=: ;;
20804 --version | --vers* | -V )
20805 echo "$ac_cs_version"; exit 0 ;;
20806 --he | --h)
20807 # Conflict between --help and --header
20808 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20809 Try \`$0 --help' for more information." >&5
20810 echo "$as_me: error: ambiguous option: $1
20811 Try \`$0 --help' for more information." >&2;}
20812 { (exit 1); exit 1; }; };;
20813 --help | --hel | -h )
20814 echo "$ac_cs_usage"; exit 0 ;;
20815 --debug | --d* | -d )
20816 debug=: ;;
20817 --file | --fil | --fi | --f )
20818 $ac_shift
20819 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20820 ac_need_defaults=false;;
20821 --header | --heade | --head | --hea )
20822 $ac_shift
20823 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20824 ac_need_defaults=false;;
20825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20827 ac_cs_silent=: ;;
20829 # This is an error.
20830 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20831 Try \`$0 --help' for more information." >&5
20832 echo "$as_me: error: unrecognized option: $1
20833 Try \`$0 --help' for more information." >&2;}
20834 { (exit 1); exit 1; }; } ;;
20836 *) ac_config_targets="$ac_config_targets $1" ;;
20838 esac
20839 shift
20840 done
20842 ac_configure_extra_args=
20844 if $ac_cs_silent; then
20845 exec 6>/dev/null
20846 ac_configure_extra_args="$ac_configure_extra_args --silent"
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<_ACEOF
20851 if \$ac_cs_recheck; then
20852 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20853 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20856 _ACEOF
20858 cat >>$CONFIG_STATUS <<_ACEOF
20860 # INIT-COMMANDS section.
20863 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20865 _ACEOF
20869 cat >>$CONFIG_STATUS <<\_ACEOF
20870 for ac_config_target in $ac_config_targets
20872 case "$ac_config_target" in
20873 # Handling of arguments.
20874 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20875 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20876 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20878 { (exit 1); exit 1; }; };;
20879 esac
20880 done
20882 # If the user did not use the arguments to specify the items to instantiate,
20883 # then the envvar interface is used. Set only those that are not.
20884 # We use the long form for the default assignment because of an extremely
20885 # bizarre bug on SunOS 4.1.3.
20886 if $ac_need_defaults; then
20887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20888 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20891 # Have a temporary directory for convenience. Make it in the build tree
20892 # simply because there is no reason to put it here, and in addition,
20893 # creating and moving files from /tmp can sometimes cause problems.
20894 # Create a temporary directory, and hook for its removal unless debugging.
20895 $debug ||
20897 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20898 trap '{ (exit 1); exit 1; }' 1 2 13 15
20901 # Create a (secure) tmp directory for tmp files.
20904 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20905 test -n "$tmp" && test -d "$tmp"
20906 } ||
20908 tmp=./confstat$$-$RANDOM
20909 (umask 077 && mkdir $tmp)
20910 } ||
20912 echo "$me: cannot create a temporary directory in ." >&2
20913 { (exit 1); exit 1; }
20916 _ACEOF
20918 cat >>$CONFIG_STATUS <<_ACEOF
20921 # CONFIG_FILES section.
20924 # No need to generate the scripts if there are no CONFIG_FILES.
20925 # This happens for instance when ./config.status config.h
20926 if test -n "\$CONFIG_FILES"; then
20927 # Protect against being on the right side of a sed subst in config.status.
20928 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20929 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20930 s,@SHELL@,$SHELL,;t t
20931 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20932 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20933 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20934 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20935 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20936 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20937 s,@exec_prefix@,$exec_prefix,;t t
20938 s,@prefix@,$prefix,;t t
20939 s,@program_transform_name@,$program_transform_name,;t t
20940 s,@bindir@,$bindir,;t t
20941 s,@sbindir@,$sbindir,;t t
20942 s,@libexecdir@,$libexecdir,;t t
20943 s,@datadir@,$datadir,;t t
20944 s,@sysconfdir@,$sysconfdir,;t t
20945 s,@sharedstatedir@,$sharedstatedir,;t t
20946 s,@localstatedir@,$localstatedir,;t t
20947 s,@libdir@,$libdir,;t t
20948 s,@includedir@,$includedir,;t t
20949 s,@oldincludedir@,$oldincludedir,;t t
20950 s,@infodir@,$infodir,;t t
20951 s,@mandir@,$mandir,;t t
20952 s,@build_alias@,$build_alias,;t t
20953 s,@host_alias@,$host_alias,;t t
20954 s,@target_alias@,$target_alias,;t t
20955 s,@DEFS@,$DEFS,;t t
20956 s,@ECHO_C@,$ECHO_C,;t t
20957 s,@ECHO_N@,$ECHO_N,;t t
20958 s,@ECHO_T@,$ECHO_T,;t t
20959 s,@LIBS@,$LIBS,;t t
20960 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20961 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20962 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20963 s,@CYGPATH_W@,$CYGPATH_W,;t t
20964 s,@PACKAGE@,$PACKAGE,;t t
20965 s,@VERSION@,$VERSION,;t t
20966 s,@ACLOCAL@,$ACLOCAL,;t t
20967 s,@AUTOCONF@,$AUTOCONF,;t t
20968 s,@AUTOMAKE@,$AUTOMAKE,;t t
20969 s,@AUTOHEADER@,$AUTOHEADER,;t t
20970 s,@MAKEINFO@,$MAKEINFO,;t t
20971 s,@install_sh@,$install_sh,;t t
20972 s,@STRIP@,$STRIP,;t t
20973 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20974 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20975 s,@mkdir_p@,$mkdir_p,;t t
20976 s,@AWK@,$AWK,;t t
20977 s,@SET_MAKE@,$SET_MAKE,;t t
20978 s,@am__leading_dot@,$am__leading_dot,;t t
20979 s,@AMTAR@,$AMTAR,;t t
20980 s,@am__tar@,$am__tar,;t t
20981 s,@am__untar@,$am__untar,;t t
20982 s,@CC@,$CC,;t t
20983 s,@CFLAGS@,$CFLAGS,;t t
20984 s,@LDFLAGS@,$LDFLAGS,;t t
20985 s,@CPPFLAGS@,$CPPFLAGS,;t t
20986 s,@ac_ct_CC@,$ac_ct_CC,;t t
20987 s,@EXEEXT@,$EXEEXT,;t t
20988 s,@OBJEXT@,$OBJEXT,;t t
20989 s,@DEPDIR@,$DEPDIR,;t t
20990 s,@am__include@,$am__include,;t t
20991 s,@am__quote@,$am__quote,;t t
20992 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20993 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20994 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20995 s,@CCDEPMODE@,$CCDEPMODE,;t t
20996 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20997 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20998 s,@build@,$build,;t t
20999 s,@build_cpu@,$build_cpu,;t t
21000 s,@build_vendor@,$build_vendor,;t t
21001 s,@build_os@,$build_os,;t t
21002 s,@host@,$host,;t t
21003 s,@host_cpu@,$host_cpu,;t t
21004 s,@host_vendor@,$host_vendor,;t t
21005 s,@host_os@,$host_os,;t t
21006 s,@EGREP@,$EGREP,;t t
21007 s,@LN_S@,$LN_S,;t t
21008 s,@ECHO@,$ECHO,;t t
21009 s,@AR@,$AR,;t t
21010 s,@ac_ct_AR@,$ac_ct_AR,;t t
21011 s,@RANLIB@,$RANLIB,;t t
21012 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21013 s,@CPP@,$CPP,;t t
21014 s,@CXX@,$CXX,;t t
21015 s,@CXXFLAGS@,$CXXFLAGS,;t t
21016 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21017 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21018 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21019 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21020 s,@CXXCPP@,$CXXCPP,;t t
21021 s,@F77@,$F77,;t t
21022 s,@FFLAGS@,$FFLAGS,;t t
21023 s,@ac_ct_F77@,$ac_ct_F77,;t t
21024 s,@LIBTOOL@,$LIBTOOL,;t t
21025 s,@LIBRPATHX@,$LIBRPATHX,;t t
21026 s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t
21027 s,@LIBRPATHY@,$LIBRPATHY,;t t
21028 s,@LTLIBRPATHY@,$LTLIBRPATHY,;t t
21029 s,@global_top_auxdir@,$global_top_auxdir,;t t
21030 s,@LIBOBJS@,$LIBOBJS,;t t
21031 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21032 CEOF
21034 _ACEOF
21036 cat >>$CONFIG_STATUS <<\_ACEOF
21037 # Split the substitutions into bite-sized pieces for seds with
21038 # small command number limits, like on Digital OSF/1 and HP-UX.
21039 ac_max_sed_lines=48
21040 ac_sed_frag=1 # Number of current file.
21041 ac_beg=1 # First line for current file.
21042 ac_end=$ac_max_sed_lines # Line after last line for current file.
21043 ac_more_lines=:
21044 ac_sed_cmds=
21045 while $ac_more_lines; do
21046 if test $ac_beg -gt 1; then
21047 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21048 else
21049 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21051 if test ! -s $tmp/subs.frag; then
21052 ac_more_lines=false
21053 else
21054 # The purpose of the label and of the branching condition is to
21055 # speed up the sed processing (if there are no `@' at all, there
21056 # is no need to browse any of the substitutions).
21057 # These are the two extra sed commands mentioned above.
21058 (echo ':t
21059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21060 if test -z "$ac_sed_cmds"; then
21061 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21062 else
21063 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21065 ac_sed_frag=`expr $ac_sed_frag + 1`
21066 ac_beg=$ac_end
21067 ac_end=`expr $ac_end + $ac_max_sed_lines`
21069 done
21070 if test -z "$ac_sed_cmds"; then
21071 ac_sed_cmds=cat
21073 fi # test -n "$CONFIG_FILES"
21075 _ACEOF
21076 cat >>$CONFIG_STATUS <<\_ACEOF
21077 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21079 case $ac_file in
21080 - | *:- | *:-:* ) # input from stdin
21081 cat >$tmp/stdin
21082 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21084 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21086 * ) ac_file_in=$ac_file.in ;;
21087 esac
21089 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21090 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21091 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21092 X"$ac_file" : 'X\(//\)[^/]' \| \
21093 X"$ac_file" : 'X\(//\)$' \| \
21094 X"$ac_file" : 'X\(/\)' \| \
21095 . : '\(.\)' 2>/dev/null ||
21096 echo X"$ac_file" |
21097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21099 /^X\(\/\/\)$/{ s//\1/; q; }
21100 /^X\(\/\).*/{ s//\1/; q; }
21101 s/.*/./; q'`
21102 { if $as_mkdir_p; then
21103 mkdir -p "$ac_dir"
21104 else
21105 as_dir="$ac_dir"
21106 as_dirs=
21107 while test ! -d "$as_dir"; do
21108 as_dirs="$as_dir $as_dirs"
21109 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21110 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21111 X"$as_dir" : 'X\(//\)[^/]' \| \
21112 X"$as_dir" : 'X\(//\)$' \| \
21113 X"$as_dir" : 'X\(/\)' \| \
21114 . : '\(.\)' 2>/dev/null ||
21115 echo X"$as_dir" |
21116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21118 /^X\(\/\/\)$/{ s//\1/; q; }
21119 /^X\(\/\).*/{ s//\1/; q; }
21120 s/.*/./; q'`
21121 done
21122 test ! -n "$as_dirs" || mkdir $as_dirs
21123 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21124 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21125 { (exit 1); exit 1; }; }; }
21127 ac_builddir=.
21129 if test "$ac_dir" != .; then
21130 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21131 # A "../" for each directory in $ac_dir_suffix.
21132 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21133 else
21134 ac_dir_suffix= ac_top_builddir=
21137 case $srcdir in
21138 .) # No --srcdir option. We are building in place.
21139 ac_srcdir=.
21140 if test -z "$ac_top_builddir"; then
21141 ac_top_srcdir=.
21142 else
21143 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21144 fi ;;
21145 [\\/]* | ?:[\\/]* ) # Absolute path.
21146 ac_srcdir=$srcdir$ac_dir_suffix;
21147 ac_top_srcdir=$srcdir ;;
21148 *) # Relative path.
21149 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21150 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21151 esac
21153 # Do not use `cd foo && pwd` to compute absolute paths, because
21154 # the directories may not exist.
21155 case `pwd` in
21156 .) ac_abs_builddir="$ac_dir";;
21158 case "$ac_dir" in
21159 .) ac_abs_builddir=`pwd`;;
21160 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21161 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21162 esac;;
21163 esac
21164 case $ac_abs_builddir in
21165 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21167 case ${ac_top_builddir}. in
21168 .) ac_abs_top_builddir=$ac_abs_builddir;;
21169 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21170 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21171 esac;;
21172 esac
21173 case $ac_abs_builddir in
21174 .) ac_abs_srcdir=$ac_srcdir;;
21176 case $ac_srcdir in
21177 .) ac_abs_srcdir=$ac_abs_builddir;;
21178 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21179 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21180 esac;;
21181 esac
21182 case $ac_abs_builddir in
21183 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21185 case $ac_top_srcdir in
21186 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21187 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21188 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21189 esac;;
21190 esac
21193 case $INSTALL in
21194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21195 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21196 esac
21198 if test x"$ac_file" != x-; then
21199 { echo "$as_me:$LINENO: creating $ac_file" >&5
21200 echo "$as_me: creating $ac_file" >&6;}
21201 rm -f "$ac_file"
21203 # Let's still pretend it is `configure' which instantiates (i.e., don't
21204 # use $as_me), people would be surprised to read:
21205 # /* config.h. Generated by config.status. */
21206 if test x"$ac_file" = x-; then
21207 configure_input=
21208 else
21209 configure_input="$ac_file. "
21211 configure_input=$configure_input"Generated from `echo $ac_file_in |
21212 sed 's,.*/,,'` by configure."
21214 # First look for the input files in the build tree, otherwise in the
21215 # src tree.
21216 ac_file_inputs=`IFS=:
21217 for f in $ac_file_in; do
21218 case $f in
21219 -) echo $tmp/stdin ;;
21220 [\\/$]*)
21221 # Absolute (can't be DOS-style, as IFS=:)
21222 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21223 echo "$as_me: error: cannot find input file: $f" >&2;}
21224 { (exit 1); exit 1; }; }
21225 echo "$f";;
21226 *) # Relative
21227 if test -f "$f"; then
21228 # Build tree
21229 echo "$f"
21230 elif test -f "$srcdir/$f"; then
21231 # Source tree
21232 echo "$srcdir/$f"
21233 else
21234 # /dev/null tree
21235 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21236 echo "$as_me: error: cannot find input file: $f" >&2;}
21237 { (exit 1); exit 1; }; }
21238 fi;;
21239 esac
21240 done` || { (exit 1); exit 1; }
21241 _ACEOF
21242 cat >>$CONFIG_STATUS <<_ACEOF
21243 sed "$ac_vpsub
21244 $extrasub
21245 _ACEOF
21246 cat >>$CONFIG_STATUS <<\_ACEOF
21248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21249 s,@configure_input@,$configure_input,;t t
21250 s,@srcdir@,$ac_srcdir,;t t
21251 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21252 s,@top_srcdir@,$ac_top_srcdir,;t t
21253 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21254 s,@builddir@,$ac_builddir,;t t
21255 s,@abs_builddir@,$ac_abs_builddir,;t t
21256 s,@top_builddir@,$ac_top_builddir,;t t
21257 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21258 s,@INSTALL@,$ac_INSTALL,;t t
21259 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21260 rm -f $tmp/stdin
21261 if test x"$ac_file" != x-; then
21262 mv $tmp/out $ac_file
21263 else
21264 cat $tmp/out
21265 rm -f $tmp/out
21268 done
21269 _ACEOF
21270 cat >>$CONFIG_STATUS <<\_ACEOF
21273 # CONFIG_COMMANDS section.
21275 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21276 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21277 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21278 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21280 X"$ac_dest" : 'X\(//\)[^/]' \| \
21281 X"$ac_dest" : 'X\(//\)$' \| \
21282 X"$ac_dest" : 'X\(/\)' \| \
21283 . : '\(.\)' 2>/dev/null ||
21284 echo X"$ac_dest" |
21285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21287 /^X\(\/\/\)$/{ s//\1/; q; }
21288 /^X\(\/\).*/{ s//\1/; q; }
21289 s/.*/./; q'`
21290 { if $as_mkdir_p; then
21291 mkdir -p "$ac_dir"
21292 else
21293 as_dir="$ac_dir"
21294 as_dirs=
21295 while test ! -d "$as_dir"; do
21296 as_dirs="$as_dir $as_dirs"
21297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299 X"$as_dir" : 'X\(//\)[^/]' \| \
21300 X"$as_dir" : 'X\(//\)$' \| \
21301 X"$as_dir" : 'X\(/\)' \| \
21302 . : '\(.\)' 2>/dev/null ||
21303 echo X"$as_dir" |
21304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21306 /^X\(\/\/\)$/{ s//\1/; q; }
21307 /^X\(\/\).*/{ s//\1/; q; }
21308 s/.*/./; q'`
21309 done
21310 test ! -n "$as_dirs" || mkdir $as_dirs
21311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21313 { (exit 1); exit 1; }; }; }
21315 ac_builddir=.
21317 if test "$ac_dir" != .; then
21318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21319 # A "../" for each directory in $ac_dir_suffix.
21320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21321 else
21322 ac_dir_suffix= ac_top_builddir=
21325 case $srcdir in
21326 .) # No --srcdir option. We are building in place.
21327 ac_srcdir=.
21328 if test -z "$ac_top_builddir"; then
21329 ac_top_srcdir=.
21330 else
21331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21332 fi ;;
21333 [\\/]* | ?:[\\/]* ) # Absolute path.
21334 ac_srcdir=$srcdir$ac_dir_suffix;
21335 ac_top_srcdir=$srcdir ;;
21336 *) # Relative path.
21337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21339 esac
21341 # Do not use `cd foo && pwd` to compute absolute paths, because
21342 # the directories may not exist.
21343 case `pwd` in
21344 .) ac_abs_builddir="$ac_dir";;
21346 case "$ac_dir" in
21347 .) ac_abs_builddir=`pwd`;;
21348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21349 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21350 esac;;
21351 esac
21352 case $ac_abs_builddir in
21353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21355 case ${ac_top_builddir}. in
21356 .) ac_abs_top_builddir=$ac_abs_builddir;;
21357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21359 esac;;
21360 esac
21361 case $ac_abs_builddir in
21362 .) ac_abs_srcdir=$ac_srcdir;;
21364 case $ac_srcdir in
21365 .) ac_abs_srcdir=$ac_abs_builddir;;
21366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21368 esac;;
21369 esac
21370 case $ac_abs_builddir in
21371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21373 case $ac_top_srcdir in
21374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21377 esac;;
21378 esac
21381 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21382 echo "$as_me: executing $ac_dest commands" >&6;}
21383 case $ac_dest in
21384 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21385 # Strip MF so we end up with the name of the file.
21386 mf=`echo "$mf" | sed -e 's/:.*$//'`
21387 # Check whether this is an Automake generated Makefile or not.
21388 # We used to match only the files named `Makefile.in', but
21389 # some people rename them; so instead we look at the file content.
21390 # Grep'ing the first line is not enough: some people post-process
21391 # each Makefile.in and add a new line on top of each file to say so.
21392 # So let's grep whole file.
21393 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21394 dirpart=`(dirname "$mf") 2>/dev/null ||
21395 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21396 X"$mf" : 'X\(//\)[^/]' \| \
21397 X"$mf" : 'X\(//\)$' \| \
21398 X"$mf" : 'X\(/\)' \| \
21399 . : '\(.\)' 2>/dev/null ||
21400 echo X"$mf" |
21401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21403 /^X\(\/\/\)$/{ s//\1/; q; }
21404 /^X\(\/\).*/{ s//\1/; q; }
21405 s/.*/./; q'`
21406 else
21407 continue
21409 # Extract the definition of DEPDIR, am__include, and am__quote
21410 # from the Makefile without running `make'.
21411 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21412 test -z "$DEPDIR" && continue
21413 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21414 test -z "am__include" && continue
21415 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21416 # When using ansi2knr, U may be empty or an underscore; expand it
21417 U=`sed -n 's/^U = //p' < "$mf"`
21418 # Find all dependency output files, they are included files with
21419 # $(DEPDIR) in their names. We invoke sed twice because it is the
21420 # simplest approach to changing $(DEPDIR) to its actual value in the
21421 # expansion.
21422 for file in `sed -n "
21423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21425 # Make sure the directory exists.
21426 test -f "$dirpart/$file" && continue
21427 fdir=`(dirname "$file") 2>/dev/null ||
21428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21429 X"$file" : 'X\(//\)[^/]' \| \
21430 X"$file" : 'X\(//\)$' \| \
21431 X"$file" : 'X\(/\)' \| \
21432 . : '\(.\)' 2>/dev/null ||
21433 echo X"$file" |
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21436 /^X\(\/\/\)$/{ s//\1/; q; }
21437 /^X\(\/\).*/{ s//\1/; q; }
21438 s/.*/./; q'`
21439 { if $as_mkdir_p; then
21440 mkdir -p $dirpart/$fdir
21441 else
21442 as_dir=$dirpart/$fdir
21443 as_dirs=
21444 while test ! -d "$as_dir"; do
21445 as_dirs="$as_dir $as_dirs"
21446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21448 X"$as_dir" : 'X\(//\)[^/]' \| \
21449 X"$as_dir" : 'X\(//\)$' \| \
21450 X"$as_dir" : 'X\(/\)' \| \
21451 . : '\(.\)' 2>/dev/null ||
21452 echo X"$as_dir" |
21453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21455 /^X\(\/\/\)$/{ s//\1/; q; }
21456 /^X\(\/\).*/{ s//\1/; q; }
21457 s/.*/./; q'`
21458 done
21459 test ! -n "$as_dirs" || mkdir $as_dirs
21460 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21461 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21462 { (exit 1); exit 1; }; }; }
21464 # echo "creating $dirpart/$file"
21465 echo '# dummy' > "$dirpart/$file"
21466 done
21467 done
21469 esac
21470 done
21471 _ACEOF
21473 cat >>$CONFIG_STATUS <<\_ACEOF
21475 { (exit 0); exit 0; }
21476 _ACEOF
21477 chmod +x $CONFIG_STATUS
21478 ac_clean_files=$ac_clean_files_save
21481 # configure is writing to config.log, and then calls config.status.
21482 # config.status does its own redirection, appending to config.log.
21483 # Unfortunately, on DOS this fails, as config.log is still kept open
21484 # by configure, so config.status won't be able to write to it; its
21485 # output is simply discarded. So we exec the FD to /dev/null,
21486 # effectively closing config.log, so it can be properly (re)opened and
21487 # appended to by config.status. When coming back to configure, we
21488 # need to make the FD available again.
21489 if test "$no_create" != yes; then
21490 ac_cs_success=:
21491 ac_config_status_args=
21492 test "$silent" = yes &&
21493 ac_config_status_args="$ac_config_status_args --quiet"
21494 exec 5>/dev/null
21495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21496 exec 5>>config.log
21497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21498 # would make configure fail if this is the last instruction.
21499 $ac_cs_success || { (exit 1); exit 1; }