setting the autocommit mode to off first before displaying the records
[csql.git] / configure
blobaeee51005b1262ae2e9566168f439a44952633d8
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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.in"
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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL YACC LEX LEXLIB LEX_OUTPUT_ROOT 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_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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_CC_set=${CC+set}
924 ac_env_CC_value=$CC
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1019 if test -n "$ac_init_help"; then
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1045 Some influential environment variables:
1046 CXX C++ compiler command
1047 CXXFLAGS C++ compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 CPP C preprocessor
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1062 _ACEOF
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077 ac_dir_suffix= ac_top_builddir=
1080 case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133 esac
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 cd $ac_popdir
1151 done
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156 cat <<\_ACEOF
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1161 _ACEOF
1162 exit 0
1164 exec 5>config.log
1165 cat >&5 <<_ACEOF
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1172 $ $0 $@
1174 _ACEOF
1176 cat <<_ASUNAME
1177 ## --------- ##
1178 ## Platform. ##
1179 ## --------- ##
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198 _ASUNAME
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201 for as_dir in $PATH
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206 done
1208 } >&5
1210 cat >&5 <<_ACEOF
1213 ## ----------- ##
1214 ## Core tests. ##
1215 ## ----------- ##
1217 _ACEOF
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_configure_args=
1226 ac_configure_args0=
1227 ac_configure_args1=
1228 ac_sep=
1229 ac_must_keep_next=false
1230 for ac_pass in 1 2
1232 for ac_arg
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1248 else
1249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1258 -* ) ac_must_keep_next=true ;;
1259 esac
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1265 esac
1266 done
1267 done
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1279 echo
1281 cat <<\_ASBOX
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1285 _ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 sed -n \
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 esac;
1302 echo
1304 cat <<\_ASBOX
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319 ## ------------- ##
1320 ## Output files. ##
1321 ## ------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334 ## ----------- ##
1335 ## confdefs.h. ##
1336 ## ----------- ##
1337 _ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348 exit $exit_status
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352 done
1353 ac_signal=0
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358 echo >confdefs.h
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369 _ACEOF
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384 _ACEOF
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1401 . "$ac_site_file"
1403 done
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1416 else
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1422 # Check that the precious variables saved in the cache have kept the same
1423 # value.
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1450 fi;;
1451 esac
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 esac
1464 done
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 ac_config_headers="$ac_config_headers config.h"
1500 am__api_version="1.9"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555 /usr/ucb/* ) ;;
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1559 # by default.
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1571 else
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573 break 3
1576 done
1577 done
1579 esac
1580 done
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1586 else
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1618 # -L didn't work.
1619 set X `ls -t $srcdir/configure conftest.file`
1621 rm -f conftest.file
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1638 then
1639 # Ok.
1641 else
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669 am_missing_run="$MISSING --run "
1670 else
1671 am_missing_run=
1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677 # We used to keeping the `.' as first argument, in order to
1678 # allow $(mkdir_p) to be used without argument. As in
1679 # $(mkdir_p) $(somedir)
1680 # where $(somedir) is conditionally defined. However this is wrong
1681 # for two reasons:
1682 # 1. if the package is installed by a user who cannot write `.'
1683 # make install will fail,
1684 # 2. the above comment should most certainly read
1685 # $(mkdir_p) $(DESTDIR)$(somedir)
1686 # so it does not work when $(somedir) is undefined and
1687 # $(DESTDIR) is not.
1688 # To support the latter case, we have to write
1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690 # so the `.' trick is pointless.
1691 mkdir_p='mkdir -p --'
1692 else
1693 # On NextStep and OpenStep, the `mkdir' command does not
1694 # recognize any option. It will interpret all options as
1695 # directories to create, and then abort because `.' already
1696 # exists.
1697 for d in ./-p ./--version;
1699 test -d $d && rmdir $d
1700 done
1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702 if test -f "$ac_aux_dir/mkinstalldirs"; then
1703 mkdir_p='$(mkinstalldirs)'
1704 else
1705 mkdir_p='$(install_sh) -d'
1709 for ac_prog in gawk mawk nawk awk
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718 if test -n "$AWK"; then
1719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_AWK="$ac_prog"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1732 done
1733 done
1737 AWK=$ac_cv_prog_AWK
1738 if test -n "$AWK"; then
1739 echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 test -n "$AWK" && break
1747 done
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 cat >conftest.make <<\_ACEOF
1756 all:
1757 @echo 'ac_maketemp="$(MAKE)"'
1758 _ACEOF
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762 eval ac_cv_prog_make_${ac_make}_set=yes
1763 else
1764 eval ac_cv_prog_make_${ac_make}_set=no
1766 rm -f conftest.make
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 SET_MAKE=
1772 else
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 SET_MAKE="MAKE=${MAKE-make}"
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1781 am__leading_dot=.
1782 else
1783 am__leading_dot=_
1785 rmdir .tst 2>/dev/null
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789 test -f $srcdir/config.status; then
1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792 { (exit 1); exit 1; }; }
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797 if (cygpath --version) >/dev/null 2>/dev/null; then
1798 CYGPATH_W='cygpath -w'
1799 else
1800 CYGPATH_W=echo
1805 # Define the identity of the package.
1806 PACKAGE=csql
1807 VERSION=0.1
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1817 _ACEOF
1819 # Some tools Automake needs.
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1864 done
1865 done
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_STRIP"; then
1880 ac_ct_STRIP=$STRIP
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1902 done
1903 done
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 STRIP=$ac_ct_STRIP
1918 else
1919 STRIP="$ac_cv_prog_STRIP"
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925 # We need awk for the "check" target. The system "awk" is bad on
1926 # some platforms.
1927 # Always define AMTAR for backward compatibility.
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1938 ac_ext=cc
1939 ac_cpp='$CXXCPP $CPPFLAGS'
1940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1944 ac_ext=cc
1945 ac_cpp='$CXXCPP $CPPFLAGS'
1946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CXX+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$CXX"; then
1960 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1973 done
1974 done
1978 CXX=$ac_cv_prog_CXX
1979 if test -n "$CXX"; then
1980 echo "$as_me:$LINENO: result: $CXX" >&5
1981 echo "${ECHO_T}$CXX" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 test -n "$CXX" && break
1988 done
1990 if test -z "$CXX"; then
1991 ac_ct_CXX=$CXX
1992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_CXX"; then
2002 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CXX="$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2021 if test -n "$ac_ct_CXX"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2023 echo "${ECHO_T}$ac_ct_CXX" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$ac_ct_CXX" && break
2030 done
2031 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2033 CXX=$ac_ct_CXX
2037 # Provide some information about the compiler.
2038 echo "$as_me:$LINENO:" \
2039 "checking for C++ compiler version" >&5
2040 ac_compiler=`set X $ac_compile; echo $2`
2041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2042 (eval $ac_compiler --version </dev/null >&5) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }
2046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2047 (eval $ac_compiler -v </dev/null >&5) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2052 (eval $ac_compiler -V </dev/null >&5) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2057 cat >conftest.$ac_ext <<_ACEOF
2058 /* confdefs.h. */
2059 _ACEOF
2060 cat confdefs.h >>conftest.$ac_ext
2061 cat >>conftest.$ac_ext <<_ACEOF
2062 /* end confdefs.h. */
2065 main ()
2069 return 0;
2071 _ACEOF
2072 ac_clean_files_save=$ac_clean_files
2073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2074 # Try to create an executable without -o first, disregard a.out.
2075 # It will help us diagnose broken compilers, and finding out an intuition
2076 # of exeext.
2077 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2078 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2081 (eval $ac_link_default) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; then
2085 # Find the output, starting from the most likely. This scheme is
2086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2087 # resort.
2089 # Be careful to initialize this variable, since it used to be cached.
2090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2091 ac_cv_exeext=
2092 # b.out is created by i960 compilers.
2093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2095 test -f "$ac_file" || continue
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2099 conftest.$ac_ext )
2100 # This is the source file.
2102 [ab].out )
2103 # We found the default executable, but exeext='' is most
2104 # certainly right.
2105 break;;
2106 *.* )
2107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2108 # FIXME: I believe we export ac_cv_exeext for Libtool,
2109 # but it would be cool to find out if it's true. Does anybody
2110 # maintain Libtool? --akim.
2111 export ac_cv_exeext
2112 break;;
2114 break;;
2115 esac
2116 done
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C++ compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125 { (exit 77); exit 77; }; }
2128 ac_exeext=$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_file" >&5
2130 echo "${ECHO_T}$ac_file" >&6
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2135 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2137 # If not cross compiling, check that we can run a simple program.
2138 if test "$cross_compiling" != yes; then
2139 if { ac_try='./$ac_file'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 cross_compiling=no
2146 else
2147 if test "$cross_compiling" = maybe; then
2148 cross_compiling=yes
2149 else
2150 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2151 If you meant to cross compile, use \`--host'.
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot run C++ compiled programs.
2154 If you meant to cross compile, use \`--host'.
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2160 echo "$as_me:$LINENO: result: yes" >&5
2161 echo "${ECHO_T}yes" >&6
2163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2164 ac_clean_files=$ac_clean_files_save
2165 # Check the compiler produces executables we can run. If not, either
2166 # the compiler is broken, or we cross compile.
2167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2170 echo "${ECHO_T}$cross_compiling" >&6
2172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2175 (eval $ac_link) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2182 # `rm'.
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2185 case $ac_file in
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 export ac_cv_exeext
2189 break;;
2190 * ) break;;
2191 esac
2192 done
2193 else
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2201 rm -f conftest$ac_cv_exeext
2202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2203 echo "${ECHO_T}$ac_cv_exeext" >&6
2205 rm -f conftest.$ac_ext
2206 EXEEXT=$ac_cv_exeext
2207 ac_exeext=$EXEEXT
2208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2210 if test "${ac_cv_objext+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 main ()
2225 return 0;
2227 _ACEOF
2228 rm -f conftest.o conftest.obj
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2235 case $ac_file in
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2238 break;;
2239 esac
2240 done
2241 else
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2255 echo "${ECHO_T}$ac_cv_objext" >&6
2256 OBJEXT=$ac_cv_objext
2257 ac_objext=$OBJEXT
2258 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2259 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2260 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2271 main ()
2273 #ifndef __GNUC__
2274 choke me
2275 #endif
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_cxx_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_compiler_gnu=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_compiler_gnu=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2314 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2316 GXX=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CXXFLAGS=${CXXFLAGS+set}
2318 ac_save_CXXFLAGS=$CXXFLAGS
2319 CXXFLAGS="-g"
2320 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2321 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cxx_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2333 main ()
2337 return 0;
2339 _ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_cxx_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cxx_g=yes
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 ac_cv_prog_cxx_g=no
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2372 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2373 if test "$ac_test_CXXFLAGS" = set; then
2374 CXXFLAGS=$ac_save_CXXFLAGS
2375 elif test $ac_cv_prog_cxx_g = yes; then
2376 if test "$GXX" = yes; then
2377 CXXFLAGS="-g -O2"
2378 else
2379 CXXFLAGS="-g"
2381 else
2382 if test "$GXX" = yes; then
2383 CXXFLAGS="-O2"
2384 else
2385 CXXFLAGS=
2388 for ac_declaration in \
2389 '' \
2390 'extern "C" void std::exit (int) throw (); using std::exit;' \
2391 'extern "C" void std::exit (int); using std::exit;' \
2392 'extern "C" void exit (int) throw ();' \
2393 'extern "C" void exit (int);' \
2394 'void exit (int);'
2396 cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h. */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2402 $ac_declaration
2403 #include <stdlib.h>
2405 main ()
2407 exit (42);
2409 return 0;
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>conftest.er1
2415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_cxx_werror_flag"
2422 || test ! -s conftest.err'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2439 continue
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h. */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2448 $ac_declaration
2450 main ()
2452 exit (42);
2454 return 0;
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_cxx_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 break
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487 rm -f conftest*
2488 if test -n "$ac_declaration"; then
2489 echo '#ifdef __cplusplus' >>confdefs.h
2490 echo $ac_declaration >>confdefs.h
2491 echo '#endif' >>confdefs.h
2494 ac_ext=cc
2495 ac_cpp='$CXXCPP $CPPFLAGS'
2496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2499 DEPDIR="${am__leading_dot}deps"
2501 ac_config_commands="$ac_config_commands depfiles"
2504 am_make=${MAKE-make}
2505 cat > confinc << 'END'
2506 am__doit:
2507 @echo done
2508 .PHONY: am__doit
2510 # If we don't find an include directive, just comment out the code.
2511 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2513 am__include="#"
2514 am__quote=
2515 _am_result=none
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2524 am__include=include
2525 am__quote=
2526 _am_result=GNU
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530 echo '.include "confinc"' > confmf
2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532 am__include=.include
2533 am__quote="\""
2534 _am_result=BSD
2539 echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6
2541 rm -f confinc confmf
2543 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545 enableval="$enable_dependency_tracking"
2548 if test "x$enable_dependency_tracking" != xno; then
2549 am_depcomp="$ac_aux_dir/depcomp"
2550 AMDEPBACKSLASH='\'
2554 if test "x$enable_dependency_tracking" != xno; then
2555 AMDEP_TRUE=
2556 AMDEP_FALSE='#'
2557 else
2558 AMDEP_TRUE='#'
2559 AMDEP_FALSE=
2565 depcc="$CXX" am_compiler_list=
2567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2573 # We make a subdir and do the tests there. Otherwise we can end up
2574 # making bogus files that we don't know about and never remove. For
2575 # instance it was reported that on HP-UX the gcc test will end up
2576 # making a dummy file named `D' -- because `-MD' means `put the output
2577 # in D'.
2578 mkdir conftest.dir
2579 # Copy depcomp to subdir because otherwise we won't find it if we're
2580 # using a relative directory.
2581 cp "$am_depcomp" conftest.dir
2582 cd conftest.dir
2583 # We will build objects and dependencies in a subdirectory because
2584 # it helps to detect inapplicable dependency modes. For instance
2585 # both Tru64's cc and ICC support -MD to output dependencies as a
2586 # side effect of compilation, but ICC will put the dependencies in
2587 # the current directory while Tru64 will put them in the object
2588 # directory.
2589 mkdir sub
2591 am_cv_CXX_dependencies_compiler_type=none
2592 if test "$am_compiler_list" = ""; then
2593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2595 for depmode in $am_compiler_list; do
2596 # Setup a source with many dependencies, because some compilers
2597 # like to wrap large dependency lists on column 80 (with \), and
2598 # we should not choose a depcomp mode which is confused by this.
2600 # We need to recreate these files for each test, as the compiler may
2601 # overwrite some of them when testing with obscure command lines.
2602 # This happens at least with the AIX C compiler.
2603 : > sub/conftest.c
2604 for i in 1 2 3 4 5 6; do
2605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2607 # Solaris 8's {/usr,}/bin/sh.
2608 touch sub/conftst$i.h
2609 done
2610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2612 case $depmode in
2613 nosideeffect)
2614 # after this tag, mechanisms are not by side-effect, so they'll
2615 # only be used when explicitly requested
2616 if test "x$enable_dependency_tracking" = xyes; then
2617 continue
2618 else
2619 break
2622 none) break ;;
2623 esac
2624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2625 # mode. It turns out that the SunPro C++ compiler does not properly
2626 # handle `-M -o', and we need to detect this.
2627 if depmode=$depmode \
2628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2631 >/dev/null 2>conftest.err &&
2632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2635 # icc doesn't choke on unknown options, it will just issue warnings
2636 # or remarks (even with -Werror). So we grep stderr for any message
2637 # that says an option was ignored or not supported.
2638 # When given -MP, icc 7.0 and 7.1 complain thusly:
2639 # icc: Command line warning: ignoring option '-M'; no argument required
2640 # The diagnosis changed in icc 8.0:
2641 # icc: Command line remark: option '-MP' not supported
2642 if (grep 'ignoring option' conftest.err ||
2643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2644 am_cv_CXX_dependencies_compiler_type=$depmode
2645 break
2648 done
2650 cd ..
2651 rm -rf conftest.dir
2652 else
2653 am_cv_CXX_dependencies_compiler_type=none
2657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2664 test "x$enable_dependency_tracking" != xno \
2665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2666 am__fastdepCXX_TRUE=
2667 am__fastdepCXX_FALSE='#'
2668 else
2669 am__fastdepCXX_TRUE='#'
2670 am__fastdepCXX_FALSE=
2675 # Check whether --enable-shared or --disable-shared was given.
2676 if test "${enable_shared+set}" = set; then
2677 enableval="$enable_shared"
2678 p=${PACKAGE-default}
2679 case $enableval in
2680 yes) enable_shared=yes ;;
2681 no) enable_shared=no ;;
2683 enable_shared=no
2684 # Look at the argument we got. We use all the common list separators.
2685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2686 for pkg in $enableval; do
2687 IFS="$lt_save_ifs"
2688 if test "X$pkg" = "X$p"; then
2689 enable_shared=yes
2691 done
2692 IFS="$lt_save_ifs"
2694 esac
2695 else
2696 enable_shared=yes
2699 # Check whether --enable-static or --disable-static was given.
2700 if test "${enable_static+set}" = set; then
2701 enableval="$enable_static"
2702 p=${PACKAGE-default}
2703 case $enableval in
2704 yes) enable_static=yes ;;
2705 no) enable_static=no ;;
2707 enable_static=no
2708 # Look at the argument we got. We use all the common list separators.
2709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2710 for pkg in $enableval; do
2711 IFS="$lt_save_ifs"
2712 if test "X$pkg" = "X$p"; then
2713 enable_static=yes
2715 done
2716 IFS="$lt_save_ifs"
2718 esac
2719 else
2720 enable_static=yes
2723 # Check whether --enable-fast-install or --disable-fast-install was given.
2724 if test "${enable_fast_install+set}" = set; then
2725 enableval="$enable_fast_install"
2726 p=${PACKAGE-default}
2727 case $enableval in
2728 yes) enable_fast_install=yes ;;
2729 no) enable_fast_install=no ;;
2731 enable_fast_install=no
2732 # Look at the argument we got. We use all the common list separators.
2733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2734 for pkg in $enableval; do
2735 IFS="$lt_save_ifs"
2736 if test "X$pkg" = "X$p"; then
2737 enable_fast_install=yes
2739 done
2740 IFS="$lt_save_ifs"
2742 esac
2743 else
2744 enable_fast_install=yes
2747 # Make sure we can run config.sub.
2748 $ac_config_sub sun4 >/dev/null 2>&1 ||
2749 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2750 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2751 { (exit 1); exit 1; }; }
2753 echo "$as_me:$LINENO: checking build system type" >&5
2754 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2755 if test "${ac_cv_build+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 ac_cv_build_alias=$build_alias
2759 test -z "$ac_cv_build_alias" &&
2760 ac_cv_build_alias=`$ac_config_guess`
2761 test -z "$ac_cv_build_alias" &&
2762 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2763 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2764 { (exit 1); exit 1; }; }
2765 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2766 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2767 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2768 { (exit 1); exit 1; }; }
2771 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2772 echo "${ECHO_T}$ac_cv_build" >&6
2773 build=$ac_cv_build
2774 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2775 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2776 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2779 echo "$as_me:$LINENO: checking host system type" >&5
2780 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2781 if test "${ac_cv_host+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 ac_cv_host_alias=$host_alias
2785 test -z "$ac_cv_host_alias" &&
2786 ac_cv_host_alias=$ac_cv_build_alias
2787 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2788 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2789 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2790 { (exit 1); exit 1; }; }
2793 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2794 echo "${ECHO_T}$ac_cv_host" >&6
2795 host=$ac_cv_host
2796 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2797 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2798 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2809 echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6
2837 else
2838 echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2843 if test -z "$ac_cv_prog_CC"; then
2844 ac_ct_CC=$CC
2845 # Extract the first word of "gcc", so it can be a program name with args.
2846 set dummy gcc; ac_word=$2
2847 echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_CC="gcc"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874 echo "${ECHO_T}$ac_ct_CC" >&6
2875 else
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2880 CC=$ac_ct_CC
2881 else
2882 CC="$ac_cv_prog_CC"
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}cc; ac_word=$2
2889 echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891 if test "${ac_cv_prog_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}cc"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2913 CC=$ac_cv_prog_CC
2914 if test -n "$CC"; then
2915 echo "$as_me:$LINENO: result: $CC" >&5
2916 echo "${ECHO_T}$CC" >&6
2917 else
2918 echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6
2923 if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "cc", so it can be a program name with args.
2926 set dummy cc; ac_word=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_ac_ct_CC="cc"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2954 echo "${ECHO_T}$ac_ct_CC" >&6
2955 else
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2960 CC=$ac_ct_CC
2961 else
2962 CC="$ac_cv_prog_CC"
2966 if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971 if test "${ac_cv_prog_CC+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 ac_prog_rejected=no
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2987 continue
2989 ac_cv_prog_CC="cc"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2993 done
2994 done
2996 if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
2999 shift
3000 if test $# != 0; then
3001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3004 shift
3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 echo "$as_me:$LINENO: result: $CC" >&5
3013 echo "${ECHO_T}$CC" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3020 if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 for ac_prog in cl
3024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3026 echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 echo "$as_me:$LINENO: result: $CC" >&5
3053 echo "${ECHO_T}$CC" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3059 test -n "$CC" && break
3060 done
3062 if test -z "$CC"; then
3063 ac_ct_CC=$CC
3064 for ac_prog in cl
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="$ac_prog"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 echo "${ECHO_T}$ac_ct_CC" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3101 test -n "$ac_ct_CC" && break
3102 done
3104 CC=$ac_ct_CC
3110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3111 See \`config.log' for more details." >&5
3112 echo "$as_me: error: no acceptable C compiler found in \$PATH
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3116 # Provide some information about the compiler.
3117 echo "$as_me:$LINENO:" \
3118 "checking for C compiler version" >&5
3119 ac_compiler=`set X $ac_compile; echo $2`
3120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3121 (eval $ac_compiler --version </dev/null >&5) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3126 (eval $ac_compiler -v </dev/null >&5) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3131 (eval $ac_compiler -V </dev/null >&5) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
3136 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3137 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3138 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 main ()
3151 #ifndef __GNUC__
3152 choke me
3153 #endif
3156 return 0;
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag"
3169 || test ! -s conftest.err'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_compiler_gnu=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_compiler_gnu=no
3188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3194 GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 CFLAGS="-g"
3198 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3211 main ()
3215 return 0;
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -z "$ac_c_werror_flag"
3228 || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_prog_cc_g=yes
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_cv_prog_cc_g=no
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3255 CFLAGS="-g -O2"
3256 else
3257 CFLAGS="-g"
3259 else
3260 if test "$GCC" = yes; then
3261 CFLAGS="-O2"
3262 else
3263 CFLAGS=
3266 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3267 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3268 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 ac_cv_prog_cc_stdc=no
3272 ac_save_CC=$CC
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <stdarg.h>
3280 #include <stdio.h>
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3287 char **p;
3288 int i;
3290 return p[i];
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3294 char *s;
3295 va_list v;
3296 va_start (v,p);
3297 s = g (p, va_arg (v,int));
3298 va_end (v);
3299 return s;
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
3305 as 'x'. The following induces an error, until -std1 is added to get
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
3308 that's true only with -std1. */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311 int test (int i, double x);
3312 struct s1 {int (*f) (int a);};
3313 struct s2 {int (*f) (double a);};
3314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 int argc;
3316 char **argv;
3318 main ()
3320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 return 0;
3324 _ACEOF
3325 # Don't try gcc -ansi; that turns off useful extensions and
3326 # breaks some systems' header files.
3327 # AIX -qlanglvl=ansi
3328 # Ultrix and OSF/1 -std1
3329 # HP-UX 10.20 and later -Ae
3330 # HP-UX older versions -Aa -D_HPUX_SOURCE
3331 # SVR4 -Xc -D__EXTENSIONS__
3332 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_prog_cc_stdc=$ac_arg
3358 break
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f conftest.err conftest.$ac_objext
3365 done
3366 rm -f conftest.$ac_ext conftest.$ac_objext
3367 CC=$ac_save_CC
3371 case "x$ac_cv_prog_cc_stdc" in
3372 x|xno)
3373 echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6 ;;
3376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3378 CC="$CC $ac_cv_prog_cc_stdc" ;;
3379 esac
3381 # Some people use a C++ compiler to compile C. Since we use `exit',
3382 # in C++ we need to declare it. In case someone uses the same compiler
3383 # for both compiling C and C++ we need to have the C++ compiler decide
3384 # the declaration of exit, since it's the most demanding environment.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #ifndef __cplusplus
3387 choke me
3388 #endif
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 for ac_declaration in \
3413 '' \
3414 'extern "C" void std::exit (int) throw (); using std::exit;' \
3415 'extern "C" void std::exit (int); using std::exit;' \
3416 'extern "C" void exit (int) throw ();' \
3417 'extern "C" void exit (int);' \
3418 'void exit (int);'
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 $ac_declaration
3427 #include <stdlib.h>
3429 main ()
3431 exit (42);
3433 return 0;
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag"
3446 || test ! -s conftest.err'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 continue
3465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 $ac_declaration
3474 main ()
3476 exit (42);
3478 return 0;
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 break
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 done
3511 rm -f conftest*
3512 if test -n "$ac_declaration"; then
3513 echo '#ifdef __cplusplus' >>confdefs.h
3514 echo $ac_declaration >>confdefs.h
3515 echo '#endif' >>confdefs.h
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_ext=cc
3525 ac_cpp='$CXXCPP $CPPFLAGS'
3526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3530 depcc="$CC" am_compiler_list=
3532 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3533 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3534 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3538 # We make a subdir and do the tests there. Otherwise we can end up
3539 # making bogus files that we don't know about and never remove. For
3540 # instance it was reported that on HP-UX the gcc test will end up
3541 # making a dummy file named `D' -- because `-MD' means `put the output
3542 # in D'.
3543 mkdir conftest.dir
3544 # Copy depcomp to subdir because otherwise we won't find it if we're
3545 # using a relative directory.
3546 cp "$am_depcomp" conftest.dir
3547 cd conftest.dir
3548 # We will build objects and dependencies in a subdirectory because
3549 # it helps to detect inapplicable dependency modes. For instance
3550 # both Tru64's cc and ICC support -MD to output dependencies as a
3551 # side effect of compilation, but ICC will put the dependencies in
3552 # the current directory while Tru64 will put them in the object
3553 # directory.
3554 mkdir sub
3556 am_cv_CC_dependencies_compiler_type=none
3557 if test "$am_compiler_list" = ""; then
3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3560 for depmode in $am_compiler_list; do
3561 # Setup a source with many dependencies, because some compilers
3562 # like to wrap large dependency lists on column 80 (with \), and
3563 # we should not choose a depcomp mode which is confused by this.
3565 # We need to recreate these files for each test, as the compiler may
3566 # overwrite some of them when testing with obscure command lines.
3567 # This happens at least with the AIX C compiler.
3568 : > sub/conftest.c
3569 for i in 1 2 3 4 5 6; do
3570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3572 # Solaris 8's {/usr,}/bin/sh.
3573 touch sub/conftst$i.h
3574 done
3575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3577 case $depmode in
3578 nosideeffect)
3579 # after this tag, mechanisms are not by side-effect, so they'll
3580 # only be used when explicitly requested
3581 if test "x$enable_dependency_tracking" = xyes; then
3582 continue
3583 else
3584 break
3587 none) break ;;
3588 esac
3589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3590 # mode. It turns out that the SunPro C++ compiler does not properly
3591 # handle `-M -o', and we need to detect this.
3592 if depmode=$depmode \
3593 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3595 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3596 >/dev/null 2>conftest.err &&
3597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3598 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3600 # icc doesn't choke on unknown options, it will just issue warnings
3601 # or remarks (even with -Werror). So we grep stderr for any message
3602 # that says an option was ignored or not supported.
3603 # When given -MP, icc 7.0 and 7.1 complain thusly:
3604 # icc: Command line warning: ignoring option '-M'; no argument required
3605 # The diagnosis changed in icc 8.0:
3606 # icc: Command line remark: option '-MP' not supported
3607 if (grep 'ignoring option' conftest.err ||
3608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3609 am_cv_CC_dependencies_compiler_type=$depmode
3610 break
3613 done
3615 cd ..
3616 rm -rf conftest.dir
3617 else
3618 am_cv_CC_dependencies_compiler_type=none
3622 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3623 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3624 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3629 test "x$enable_dependency_tracking" != xno \
3630 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3631 am__fastdepCC_TRUE=
3632 am__fastdepCC_FALSE='#'
3633 else
3634 am__fastdepCC_TRUE='#'
3635 am__fastdepCC_FALSE=
3639 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3640 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3641 if test "${lt_cv_path_SED+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 # Loop through the user's path and test for sed and gsed.
3645 # Then use that list of sed's as ones to test for truncation.
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for lt_ac_prog in sed gsed; do
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3654 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3656 done
3657 done
3658 done
3659 lt_ac_max=0
3660 lt_ac_count=0
3661 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3662 # along with /bin/sed that truncates output.
3663 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3664 test ! -f $lt_ac_sed && break
3665 cat /dev/null > conftest.in
3666 lt_ac_count=0
3667 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3668 # Check for GNU sed and select it if it is found.
3669 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3670 lt_cv_path_SED=$lt_ac_sed
3671 break
3673 while true; do
3674 cat conftest.in conftest.in >conftest.tmp
3675 mv conftest.tmp conftest.in
3676 cp conftest.in conftest.nl
3677 echo >>conftest.nl
3678 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3679 cmp -s conftest.out conftest.nl || break
3680 # 10000 chars as input seems more than enough
3681 test $lt_ac_count -gt 10 && break
3682 lt_ac_count=`expr $lt_ac_count + 1`
3683 if test $lt_ac_count -gt $lt_ac_max; then
3684 lt_ac_max=$lt_ac_count
3685 lt_cv_path_SED=$lt_ac_sed
3687 done
3688 done
3689 SED=$lt_cv_path_SED
3693 echo "$as_me:$LINENO: result: $SED" >&5
3694 echo "${ECHO_T}$SED" >&6
3696 echo "$as_me:$LINENO: checking for egrep" >&5
3697 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3698 if test "${ac_cv_prog_egrep+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3702 then ac_cv_prog_egrep='grep -E'
3703 else ac_cv_prog_egrep='egrep'
3706 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3707 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3708 EGREP=$ac_cv_prog_egrep
3712 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3713 if test "${with_gnu_ld+set}" = set; then
3714 withval="$with_gnu_ld"
3715 test "$withval" = no || with_gnu_ld=yes
3716 else
3717 with_gnu_ld=no
3719 ac_prog=ld
3720 if test "$GCC" = yes; then
3721 # Check if gcc -print-prog-name=ld gives a path.
3722 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3723 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3724 case $host in
3725 *-*-mingw*)
3726 # gcc leaves a trailing carriage return which upsets mingw
3727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3730 esac
3731 case $ac_prog in
3732 # Accept absolute paths.
3733 [\\/]* | ?:[\\/]*)
3734 re_direlt='/[^/][^/]*/\.\./'
3735 # Canonicalize the pathname of ld
3736 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3737 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3738 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3739 done
3740 test -z "$LD" && LD="$ac_prog"
3743 # If it fails, then pretend we aren't using GCC.
3744 ac_prog=ld
3747 # If it is relative, then search for the first ld in PATH.
3748 with_gnu_ld=unknown
3750 esac
3751 elif test "$with_gnu_ld" = yes; then
3752 echo "$as_me:$LINENO: checking for GNU ld" >&5
3753 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3754 else
3755 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3756 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_path_LD+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 if test -z "$LD"; then
3762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3763 for ac_dir in $PATH; do
3764 IFS="$lt_save_ifs"
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3767 lt_cv_path_LD="$ac_dir/$ac_prog"
3768 # Check to see if the program is GNU ld. I'd rather use --version,
3769 # but apparently some GNU ld's only accept -v.
3770 # Break only if it was the GNU/non-GNU ld that we prefer.
3771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3772 *GNU* | *'with BFD'*)
3773 test "$with_gnu_ld" != no && break
3776 test "$with_gnu_ld" != yes && break
3778 esac
3780 done
3781 IFS="$lt_save_ifs"
3782 else
3783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3787 LD="$lt_cv_path_LD"
3788 if test -n "$LD"; then
3789 echo "$as_me:$LINENO: result: $LD" >&5
3790 echo "${ECHO_T}$LD" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3795 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3796 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3797 { (exit 1); exit 1; }; }
3798 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3799 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3800 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3804 case `$LD -v 2>&1 </dev/null` in
3805 *GNU* | *'with BFD'*)
3806 lt_cv_prog_gnu_ld=yes
3809 lt_cv_prog_gnu_ld=no
3811 esac
3813 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3814 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3815 with_gnu_ld=$lt_cv_prog_gnu_ld
3818 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3819 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3820 if test "${lt_cv_ld_reload_flag+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 lt_cv_ld_reload_flag='-r'
3825 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3826 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3827 reload_flag=$lt_cv_ld_reload_flag
3828 case $reload_flag in
3829 "" | " "*) ;;
3830 *) reload_flag=" $reload_flag" ;;
3831 esac
3832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3834 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3835 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3836 if test "${lt_cv_path_NM+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 if test -n "$NM"; then
3840 # Let the user override the test.
3841 lt_cv_path_NM="$NM"
3842 else
3843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3844 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3845 IFS="$lt_save_ifs"
3846 test -z "$ac_dir" && ac_dir=.
3847 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3848 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3849 # Check to see if the nm accepts a BSD-compat flag.
3850 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3851 # nm: unknown option "B" ignored
3852 # Tru64's nm complains that /dev/null is an invalid object file
3853 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3854 */dev/null* | *'Invalid file or object type'*)
3855 lt_cv_path_NM="$tmp_nm -B"
3856 break
3859 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3860 */dev/null*)
3861 lt_cv_path_NM="$tmp_nm -p"
3862 break
3865 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3866 continue # so that we can try to find one that supports BSD flags
3868 esac
3869 esac
3871 done
3872 IFS="$lt_save_ifs"
3873 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3876 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3877 echo "${ECHO_T}$lt_cv_path_NM" >&6
3878 NM="$lt_cv_path_NM"
3880 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3881 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3882 LN_S=$as_ln_s
3883 if test "$LN_S" = "ln -s"; then
3884 echo "$as_me:$LINENO: result: yes" >&5
3885 echo "${ECHO_T}yes" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3888 echo "${ECHO_T}no, using $LN_S" >&6
3891 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3892 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3893 if test "${lt_cv_deplibs_check_method+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 lt_cv_file_magic_cmd='$MAGIC_CMD'
3897 lt_cv_file_magic_test_file=
3898 lt_cv_deplibs_check_method='unknown'
3899 # Need to set the preceding variable on all platforms that support
3900 # interlibrary dependencies.
3901 # 'none' -- dependencies not supported.
3902 # `unknown' -- same as none, but documents that we really don't know.
3903 # 'pass_all' -- all dependencies passed with no checks.
3904 # 'test_compile' -- check by making test program.
3905 # 'file_magic [[regex]]' -- check by looking for files in library path
3906 # which responds to the $file_magic_cmd with a given extended regex.
3907 # If you have `file' or equivalent on your system and you're not sure
3908 # whether `pass_all' will *always* work, you probably want this one.
3910 case $host_os in
3911 aix4* | aix5*)
3912 lt_cv_deplibs_check_method=pass_all
3915 beos*)
3916 lt_cv_deplibs_check_method=pass_all
3919 bsdi4*)
3920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3921 lt_cv_file_magic_cmd='/usr/bin/file -L'
3922 lt_cv_file_magic_test_file=/shlib/libc.so
3925 cygwin*)
3926 # func_win32_libid is a shell function defined in ltmain.sh
3927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3928 lt_cv_file_magic_cmd='func_win32_libid'
3931 mingw* | pw32*)
3932 # Base MSYS/MinGW do not provide the 'file' command needed by
3933 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3934 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3935 lt_cv_file_magic_cmd='$OBJDUMP -f'
3938 darwin* | rhapsody*)
3939 lt_cv_deplibs_check_method=pass_all
3942 freebsd* | kfreebsd*-gnu)
3943 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3944 case $host_cpu in
3945 i*86 )
3946 # Not sure whether the presence of OpenBSD here was a mistake.
3947 # Let's accept both of them until this is cleared up.
3948 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3949 lt_cv_file_magic_cmd=/usr/bin/file
3950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3952 esac
3953 else
3954 lt_cv_deplibs_check_method=pass_all
3958 gnu*)
3959 lt_cv_deplibs_check_method=pass_all
3962 hpux10.20* | hpux11*)
3963 lt_cv_file_magic_cmd=/usr/bin/file
3964 case "$host_cpu" in
3965 ia64*)
3966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3967 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3969 hppa*64*)
3970 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]'
3971 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3975 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3977 esac
3980 irix5* | irix6* | nonstopux*)
3981 case $LD in
3982 *-32|*"-32 ") libmagic=32-bit;;
3983 *-n32|*"-n32 ") libmagic=N32;;
3984 *-64|*"-64 ") libmagic=64-bit;;
3985 *) libmagic=never-match;;
3986 esac
3987 lt_cv_deplibs_check_method=pass_all
3990 # This must be Linux ELF.
3991 linux*)
3992 case $host_cpu in
3993 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3994 lt_cv_deplibs_check_method=pass_all ;;
3996 # glibc up to 2.1.1 does not perform some relocations on ARM
3997 # this will be overridden with pass_all, but let us keep it just in case
3998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3999 esac
4000 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4001 lt_cv_deplibs_check_method=pass_all
4004 netbsd*)
4005 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4007 else
4008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4012 newos6*)
4013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4014 lt_cv_file_magic_cmd=/usr/bin/file
4015 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4018 nto-qnx*)
4019 lt_cv_deplibs_check_method=unknown
4022 openbsd*)
4023 lt_cv_file_magic_cmd=/usr/bin/file
4024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4027 else
4028 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4032 osf3* | osf4* | osf5*)
4033 lt_cv_deplibs_check_method=pass_all
4036 sco3.2v5*)
4037 lt_cv_deplibs_check_method=pass_all
4040 solaris*)
4041 lt_cv_deplibs_check_method=pass_all
4044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4045 case $host_vendor in
4046 motorola)
4047 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]'
4048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4050 ncr)
4051 lt_cv_deplibs_check_method=pass_all
4053 sequent)
4054 lt_cv_file_magic_cmd='/bin/file'
4055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4057 sni)
4058 lt_cv_file_magic_cmd='/bin/file'
4059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4060 lt_cv_file_magic_test_file=/lib/libc.so
4062 siemens)
4063 lt_cv_deplibs_check_method=pass_all
4065 esac
4068 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4069 lt_cv_deplibs_check_method=pass_all
4071 esac
4074 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4075 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4076 file_magic_cmd=$lt_cv_file_magic_cmd
4077 deplibs_check_method=$lt_cv_deplibs_check_method
4078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4083 # If no C compiler was specified, use CC.
4084 LTCC=${LTCC-"$CC"}
4086 # Allow CC to be a program name with arguments.
4087 compiler=$CC
4090 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4091 if test "${enable_libtool_lock+set}" = set; then
4092 enableval="$enable_libtool_lock"
4095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4097 # Some flags need to be propagated to the compiler or linker for good
4098 # libtool support.
4099 case $host in
4100 ia64-*-hpux*)
4101 # Find out which ABI we are using.
4102 echo 'int i;' > conftest.$ac_ext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; then
4108 case `/usr/bin/file conftest.$ac_objext` in
4109 *ELF-32*)
4110 HPUX_IA64_MODE="32"
4112 *ELF-64*)
4113 HPUX_IA64_MODE="64"
4115 esac
4117 rm -rf conftest*
4119 *-*-irix6*)
4120 # Find out which ABI we are using.
4121 echo '#line 4121 "configure"' > conftest.$ac_ext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; then
4127 if test "$lt_cv_prog_gnu_ld" = yes; then
4128 case `/usr/bin/file conftest.$ac_objext` in
4129 *32-bit*)
4130 LD="${LD-ld} -melf32bsmip"
4132 *N32*)
4133 LD="${LD-ld} -melf32bmipn32"
4135 *64-bit*)
4136 LD="${LD-ld} -melf64bmip"
4138 esac
4139 else
4140 case `/usr/bin/file conftest.$ac_objext` in
4141 *32-bit*)
4142 LD="${LD-ld} -32"
4144 *N32*)
4145 LD="${LD-ld} -n32"
4147 *64-bit*)
4148 LD="${LD-ld} -64"
4150 esac
4153 rm -rf conftest*
4156 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4157 # Find out which ABI we are using.
4158 echo 'int i;' > conftest.$ac_ext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; then
4164 case "`/usr/bin/file conftest.o`" in
4165 *32-bit*)
4166 case $host in
4167 x86_64-*linux*)
4168 LD="${LD-ld} -m elf_i386"
4170 ppc64-*linux*|powerpc64-*linux*)
4171 LD="${LD-ld} -m elf32ppclinux"
4173 s390x-*linux*)
4174 LD="${LD-ld} -m elf_s390"
4176 sparc64-*linux*)
4177 LD="${LD-ld} -m elf32_sparc"
4179 esac
4181 *64-bit*)
4182 case $host in
4183 x86_64-*linux*)
4184 LD="${LD-ld} -m elf_x86_64"
4186 ppc*-*linux*|powerpc*-*linux*)
4187 LD="${LD-ld} -m elf64ppc"
4189 s390*-*linux*)
4190 LD="${LD-ld} -m elf64_s390"
4192 sparc*-*linux*)
4193 LD="${LD-ld} -m elf64_sparc"
4195 esac
4197 esac
4199 rm -rf conftest*
4202 *-*-sco3.2v5*)
4203 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4204 SAVE_CFLAGS="$CFLAGS"
4205 CFLAGS="$CFLAGS -belf"
4206 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4207 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4208 if test "${lt_cv_cc_needs_belf+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 rm -f conftest.$ac_objext conftest$ac_exeext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234 (eval $ac_link) 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -z "$ac_c_werror_flag"
4242 || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try='test -s conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 lt_cv_cc_needs_belf=yes
4255 else
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 lt_cv_cc_needs_belf=no
4261 rm -f conftest.err conftest.$ac_objext \
4262 conftest$ac_exeext conftest.$ac_ext
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4271 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4272 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4273 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4274 CFLAGS="$SAVE_CFLAGS"
4278 esac
4280 need_locks="$enable_libtool_lock"
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4290 # On Suns, sometimes $CPP names a directory.
4291 if test -n "$CPP" && test -d "$CPP"; then
4292 CPP=
4294 if test -z "$CPP"; then
4295 if test "${ac_cv_prog_CPP+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 # Double quotes because CPP needs to be expanded
4299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4301 ac_preproc_ok=false
4302 for ac_c_preproc_warn_flag in '' yes
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 #ifdef __STDC__
4317 # include <limits.h>
4318 #else
4319 # include <assert.h>
4320 #endif
4321 Syntax error
4322 _ACEOF
4323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null; then
4331 if test -s conftest.err; then
4332 ac_cpp_err=$ac_c_preproc_warn_flag
4333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4334 else
4335 ac_cpp_err=
4337 else
4338 ac_cpp_err=yes
4340 if test -z "$ac_cpp_err"; then
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 # Broken: fails on valid input.
4347 continue
4349 rm -f conftest.err conftest.$ac_ext
4351 # OK, works on sane cases. Now check whether non-existent headers
4352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4360 _ACEOF
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372 else
4373 ac_cpp_err=
4375 else
4376 ac_cpp_err=yes
4378 if test -z "$ac_cpp_err"; then
4379 # Broken: success on invalid input.
4380 continue
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 # Passes both tests.
4386 ac_preproc_ok=:
4387 break
4389 rm -f conftest.err conftest.$ac_ext
4391 done
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4395 break
4398 done
4399 ac_cv_prog_CPP=$CPP
4402 CPP=$ac_cv_prog_CPP
4403 else
4404 ac_cv_prog_CPP=$CPP
4406 echo "$as_me:$LINENO: result: $CPP" >&5
4407 echo "${ECHO_T}$CPP" >&6
4408 ac_preproc_ok=false
4409 for ac_c_preproc_warn_flag in '' yes
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #ifdef __STDC__
4424 # include <limits.h>
4425 #else
4426 # include <assert.h>
4427 #endif
4428 Syntax error
4429 _ACEOF
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } >/dev/null; then
4438 if test -s conftest.err; then
4439 ac_cpp_err=$ac_c_preproc_warn_flag
4440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4441 else
4442 ac_cpp_err=
4444 else
4445 ac_cpp_err=yes
4447 if test -z "$ac_cpp_err"; then
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 # Broken: fails on valid input.
4454 continue
4456 rm -f conftest.err conftest.$ac_ext
4458 # OK, works on sane cases. Now check whether non-existent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } >/dev/null; then
4476 if test -s conftest.err; then
4477 ac_cpp_err=$ac_c_preproc_warn_flag
4478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4479 else
4480 ac_cpp_err=
4482 else
4483 ac_cpp_err=yes
4485 if test -z "$ac_cpp_err"; then
4486 # Broken: success on invalid input.
4487 continue
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4496 rm -f conftest.err conftest.$ac_ext
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4503 else
4504 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4505 See \`config.log' for more details." >&5
4506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4507 See \`config.log' for more details." >&2;}
4508 { (exit 1); exit 1; }; }
4511 ac_ext=c
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4520 if test "${ac_cv_header_stdc+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #include <stdlib.h>
4530 #include <stdarg.h>
4531 #include <string.h>
4532 #include <float.h>
4535 main ()
4539 return 0;
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544 (eval $ac_compile) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_header_stdc=yes
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_cv_header_stdc=no
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 if test $ac_cv_header_stdc = yes; then
4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <string.h>
4583 _ACEOF
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585 $EGREP "memchr" >/dev/null 2>&1; then
4587 else
4588 ac_cv_header_stdc=no
4590 rm -f conftest*
4594 if test $ac_cv_header_stdc = yes; then
4595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #include <stdlib.h>
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "free" >/dev/null 2>&1; then
4608 else
4609 ac_cv_header_stdc=no
4611 rm -f conftest*
4615 if test $ac_cv_header_stdc = yes; then
4616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617 if test "$cross_compiling" = yes; then
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 #include <ctype.h>
4627 #if ((' ' & 0x0FF) == 0x020)
4628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4630 #else
4631 # define ISLOWER(c) \
4632 (('a' <= (c) && (c) <= 'i') \
4633 || ('j' <= (c) && (c) <= 'r') \
4634 || ('s' <= (c) && (c) <= 'z'))
4635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4636 #endif
4638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4640 main ()
4642 int i;
4643 for (i = 0; i < 256; i++)
4644 if (XOR (islower (i), ISLOWER (i))
4645 || toupper (i) != TOUPPER (i))
4646 exit(2);
4647 exit (0);
4649 _ACEOF
4650 rm -f conftest$ac_exeext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4652 (eval $ac_link) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4662 else
4663 echo "$as_me: program exited with status $ac_status" >&5
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ( exit $ac_status )
4668 ac_cv_header_stdc=no
4670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4674 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4675 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4676 if test $ac_cv_header_stdc = yes; then
4678 cat >>confdefs.h <<\_ACEOF
4679 #define STDC_HEADERS 1
4680 _ACEOF
4684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4695 inttypes.h stdint.h unistd.h
4697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 echo "$as_me:$LINENO: checking for $ac_header" >&5
4699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 $ac_includes_default
4711 #include <$ac_header>
4712 _ACEOF
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -z "$ac_c_werror_flag"
4723 || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 eval "$as_ac_Header=yes"
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 eval "$as_ac_Header=no"
4742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 _ACEOF
4753 done
4757 for ac_header in dlfcn.h
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 else
4769 # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 $ac_includes_default
4779 #include <$ac_header>
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_header_compiler=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 ac_header_compiler=no
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4812 echo "${ECHO_T}$ac_header_compiler" >&6
4814 # Is the header present?
4815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <$ac_header>
4824 _ACEOF
4825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } >/dev/null; then
4833 if test -s conftest.err; then
4834 ac_cpp_err=$ac_c_preproc_warn_flag
4835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4836 else
4837 ac_cpp_err=
4839 else
4840 ac_cpp_err=yes
4842 if test -z "$ac_cpp_err"; then
4843 ac_header_preproc=yes
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 ac_header_preproc=no
4850 rm -f conftest.err conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4852 echo "${ECHO_T}$ac_header_preproc" >&6
4854 # So? What about this header?
4855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4856 yes:no: )
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4861 ac_header_preproc=yes
4863 no:yes:* )
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4877 cat <<\_ASBOX
4878 ## ------------------------------------------ ##
4879 ## Report this to the AC_PACKAGE_NAME lists. ##
4880 ## ------------------------------------------ ##
4881 _ASBOX
4883 sed "s/^/$as_me: WARNING: /" >&2
4885 esac
4886 echo "$as_me:$LINENO: checking for $ac_header" >&5
4887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 eval "$as_ac_Header=\$ac_header_preproc"
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4898 cat >>confdefs.h <<_ACEOF
4899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4900 _ACEOF
4904 done
4906 ac_ext=cc
4907 ac_cpp='$CXXCPP $CPPFLAGS'
4908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4911 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4913 if test -z "$CXXCPP"; then
4914 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 # Double quotes because CXXCPP needs to be expanded
4918 for CXXCPP in "$CXX -E" "/lib/cpp"
4920 ac_preproc_ok=false
4921 for ac_cxx_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null; then
4950 if test -s conftest.err; then
4951 ac_cpp_err=$ac_cxx_preproc_warn_flag
4952 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4953 else
4954 ac_cpp_err=
4956 else
4957 ac_cpp_err=yes
4959 if test -z "$ac_cpp_err"; then
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 # Broken: fails on valid input.
4966 continue
4968 rm -f conftest.err conftest.$ac_ext
4970 # OK, works on sane cases. Now check whether non-existent headers
4971 # can be detected and how.
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #include <ac_nonexistent.h>
4979 _ACEOF
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991 else
4992 ac_cpp_err=
4994 else
4995 ac_cpp_err=yes
4997 if test -z "$ac_cpp_err"; then
4998 # Broken: success on invalid input.
4999 continue
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5008 rm -f conftest.err conftest.$ac_ext
5010 done
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then
5014 break
5017 done
5018 ac_cv_prog_CXXCPP=$CXXCPP
5021 CXXCPP=$ac_cv_prog_CXXCPP
5022 else
5023 ac_cv_prog_CXXCPP=$CXXCPP
5025 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5026 echo "${ECHO_T}$CXXCPP" >&6
5027 ac_preproc_ok=false
5028 for ac_cxx_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null; then
5057 if test -s conftest.err; then
5058 ac_cpp_err=$ac_cxx_preproc_warn_flag
5059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060 else
5061 ac_cpp_err=
5063 else
5064 ac_cpp_err=yes
5066 if test -z "$ac_cpp_err"; then
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Broken: fails on valid input.
5073 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether non-existent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 else
5099 ac_cpp_err=
5101 else
5102 ac_cpp_err=yes
5104 if test -z "$ac_cpp_err"; then
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5115 rm -f conftest.err conftest.$ac_ext
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5122 else
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&5
5125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126 See \`config.log' for more details." >&2;}
5127 { (exit 1); exit 1; }; }
5130 ac_ext=cc
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 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=cc
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_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;
5420 # If test is not a shell built-in, we'll probably end up computing a
5421 # maximum length that is only half of the actual maximum length, but
5422 # we can't tell.
5423 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5424 = "XX$teststring") >/dev/null 2>&1 &&
5425 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5426 lt_cv_sys_max_cmd_len=$new_result &&
5427 test $i != 17 # 1/2 MB should be enough
5429 i=`expr $i + 1`
5430 teststring=$teststring$teststring
5431 done
5432 teststring=
5433 # Add a significant safety factor because C++ compilers can tack on massive
5434 # amounts of additional arguments before passing them to the linker.
5435 # It appears as though 1/2 is a usable value.
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5438 esac
5442 if test -n $lt_cv_sys_max_cmd_len ; then
5443 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5444 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5445 else
5446 echo "$as_me:$LINENO: result: none" >&5
5447 echo "${ECHO_T}none" >&6
5453 # Check for command to grab the raw symbol name followed by C symbol from nm.
5454 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5455 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5456 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5460 # These are sane defaults that work on at least a few old systems.
5461 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5463 # Character class describing NM global symbol codes.
5464 symcode='[BCDEGRST]'
5466 # Regexp to match symbols that can be accessed directly from C.
5467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5469 # Transform the above into a raw symbol and a C symbol.
5470 symxfrm='\1 \2\3 \3'
5472 # Transform an extracted symbol line into a proper C declaration
5473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5475 # Transform an extracted symbol line into symbol name and symbol address
5476 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'"
5478 # Define system-specific variables.
5479 case $host_os in
5480 aix*)
5481 symcode='[BCDT]'
5483 cygwin* | mingw* | pw32*)
5484 symcode='[ABCDGISTW]'
5486 hpux*) # Its linker distinguishes data from code symbols
5487 if test "$host_cpu" = ia64; then
5488 symcode='[ABCDEGRST]'
5490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5491 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'"
5493 irix* | nonstopux*)
5494 symcode='[BCDEGRST]'
5496 osf*)
5497 symcode='[BCDEGQRST]'
5499 solaris* | sysv5*)
5500 symcode='[BDRT]'
5502 sysv4)
5503 symcode='[DFNSTU]'
5505 esac
5507 # Handle CRLF in mingw tool chain
5508 opt_cr=
5509 case $build_os in
5510 mingw*)
5511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5513 esac
5515 # If we're using GNU nm, then use its standard symbol codes.
5516 case `$NM -V 2>&1` in
5517 *GNU* | *'with BFD'*)
5518 symcode='[ABCDGIRSTW]' ;;
5519 esac
5521 # Try without a prefix undercore, then with it.
5522 for ac_symprfx in "" "_"; do
5524 # Write the raw and C identifiers.
5525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5527 # Check to see that the pipe works correctly.
5528 pipe_works=no
5530 rm -f conftest*
5531 cat > conftest.$ac_ext <<EOF
5532 #ifdef __cplusplus
5533 extern "C" {
5534 #endif
5535 char nm_test_var;
5536 void nm_test_func(){}
5537 #ifdef __cplusplus
5539 #endif
5540 int main(){nm_test_var='a';nm_test_func();return(0);}
5543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544 (eval $ac_compile) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; then
5548 # Now try to grab the symbols.
5549 nlist=conftest.nm
5550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && test -s "$nlist"; then
5555 # Try sorting and uniquifying the output.
5556 if sort "$nlist" | uniq > "$nlist"T; then
5557 mv -f "$nlist"T "$nlist"
5558 else
5559 rm -f "$nlist"T
5562 # Make sure that we snagged all the symbols we need.
5563 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5564 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5565 cat <<EOF > conftest.$ac_ext
5566 #ifdef __cplusplus
5567 extern "C" {
5568 #endif
5571 # Now generate the symbol file.
5572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5574 cat <<EOF >> conftest.$ac_ext
5575 #if defined (__STDC__) && __STDC__
5576 # define lt_ptr_t void *
5577 #else
5578 # define lt_ptr_t char *
5579 # define const
5580 #endif
5582 /* The mapping between symbol names and symbols. */
5583 const struct {
5584 const char *name;
5585 lt_ptr_t address;
5587 lt_preloaded_symbols[] =
5590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5591 cat <<\EOF >> conftest.$ac_ext
5592 {0, (lt_ptr_t) 0}
5595 #ifdef __cplusplus
5597 #endif
5599 # Now try linking the two files.
5600 mv conftest.$ac_objext conftstm.$ac_objext
5601 lt_save_LIBS="$LIBS"
5602 lt_save_CFLAGS="$CFLAGS"
5603 LIBS="conftstm.$ac_objext"
5604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5610 pipe_works=yes
5612 LIBS="$lt_save_LIBS"
5613 CFLAGS="$lt_save_CFLAGS"
5614 else
5615 echo "cannot find nm_test_func in $nlist" >&5
5617 else
5618 echo "cannot find nm_test_var in $nlist" >&5
5620 else
5621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5623 else
5624 echo "$progname: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 rm -f conftest* conftst*
5629 # Do not use the global_symbol_pipe unless it works.
5630 if test "$pipe_works" = yes; then
5631 break
5632 else
5633 lt_cv_sys_global_symbol_pipe=
5635 done
5639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5640 lt_cv_sys_global_symbol_to_cdecl=
5642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5643 echo "$as_me:$LINENO: result: failed" >&5
5644 echo "${ECHO_T}failed" >&6
5645 else
5646 echo "$as_me:$LINENO: result: ok" >&5
5647 echo "${ECHO_T}ok" >&6
5650 echo "$as_me:$LINENO: checking for objdir" >&5
5651 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5652 if test "${lt_cv_objdir+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 rm -f .libs 2>/dev/null
5656 mkdir .libs 2>/dev/null
5657 if test -d .libs; then
5658 lt_cv_objdir=.libs
5659 else
5660 # MS-DOS does not allow filenames that begin with a dot.
5661 lt_cv_objdir=_libs
5663 rmdir .libs 2>/dev/null
5665 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5666 echo "${ECHO_T}$lt_cv_objdir" >&6
5667 objdir=$lt_cv_objdir
5673 case $host_os in
5674 aix3*)
5675 # AIX sometimes has problems with the GCC collect2 program. For some
5676 # reason, if we set the COLLECT_NAMES environment variable, the problems
5677 # vanish in a puff of smoke.
5678 if test "X${COLLECT_NAMES+set}" != Xset; then
5679 COLLECT_NAMES=
5680 export COLLECT_NAMES
5683 esac
5685 # Sed substitution that helps us do robust quoting. It backslashifies
5686 # metacharacters that are still active within double-quoted strings.
5687 Xsed='sed -e s/^X//'
5688 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5690 # Same as above, but do not quote variable references.
5691 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5693 # Sed substitution to delay expansion of an escaped shell variable in a
5694 # double_quote_subst'ed string.
5695 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5697 # Sed substitution to avoid accidental globbing in evaled expressions
5698 no_glob_subst='s/\*/\\\*/g'
5700 # Constants:
5701 rm="rm -f"
5703 # Global variables:
5704 default_ofile=libtool
5705 can_build_shared=yes
5707 # All known linkers require a `.a' archive for static linking (except M$VC,
5708 # which needs '.lib').
5709 libext=a
5710 ltmain="$ac_aux_dir/ltmain.sh"
5711 ofile="$default_ofile"
5712 with_gnu_ld="$lt_cv_prog_gnu_ld"
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}ar; ac_word=$2
5717 echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719 if test "${ac_cv_prog_AR+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 if test -n "$AR"; then
5723 ac_cv_prog_AR="$AR" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_AR="${ac_tool_prefix}ar"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5741 AR=$ac_cv_prog_AR
5742 if test -n "$AR"; then
5743 echo "$as_me:$LINENO: result: $AR" >&5
5744 echo "${ECHO_T}$AR" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5751 if test -z "$ac_cv_prog_AR"; then
5752 ac_ct_AR=$AR
5753 # Extract the first word of "ar", so it can be a program name with args.
5754 set dummy ar; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5774 done
5775 done
5777 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781 if test -n "$ac_ct_AR"; then
5782 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783 echo "${ECHO_T}$ac_ct_AR" >&6
5784 else
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5789 AR=$ac_ct_AR
5790 else
5791 AR="$ac_cv_prog_AR"
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799 if test "${ac_cv_prog_RANLIB+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 if test -n "$RANLIB"; then
5803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5816 done
5817 done
5821 RANLIB=$ac_cv_prog_RANLIB
5822 if test -n "$RANLIB"; then
5823 echo "$as_me:$LINENO: result: $RANLIB" >&5
5824 echo "${ECHO_T}$RANLIB" >&6
5825 else
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5831 if test -z "$ac_cv_prog_RANLIB"; then
5832 ac_ct_RANLIB=$RANLIB
5833 # Extract the first word of "ranlib", so it can be a program name with args.
5834 set dummy ranlib; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 if test -n "$ac_ct_RANLIB"; then
5841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_RANLIB="ranlib"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5857 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5861 if test -n "$ac_ct_RANLIB"; then
5862 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5863 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5864 else
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5869 RANLIB=$ac_ct_RANLIB
5870 else
5871 RANLIB="$ac_cv_prog_RANLIB"
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}strip; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_STRIP+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 if test -n "$STRIP"; then
5883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5896 done
5897 done
5901 STRIP=$ac_cv_prog_STRIP
5902 if test -n "$STRIP"; then
5903 echo "$as_me:$LINENO: result: $STRIP" >&5
5904 echo "${ECHO_T}$STRIP" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5911 if test -z "$ac_cv_prog_STRIP"; then
5912 ac_ct_STRIP=$STRIP
5913 # Extract the first word of "strip", so it can be a program name with args.
5914 set dummy strip; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 if test -n "$ac_ct_STRIP"; then
5921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_STRIP="strip"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5934 done
5935 done
5937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5941 if test -n "$ac_ct_STRIP"; then
5942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5943 echo "${ECHO_T}$ac_ct_STRIP" >&6
5944 else
5945 echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5949 STRIP=$ac_ct_STRIP
5950 else
5951 STRIP="$ac_cv_prog_STRIP"
5955 old_CC="$CC"
5956 old_CFLAGS="$CFLAGS"
5958 # Set sane defaults for various variables
5959 test -z "$AR" && AR=ar
5960 test -z "$AR_FLAGS" && AR_FLAGS=cru
5961 test -z "$AS" && AS=as
5962 test -z "$CC" && CC=cc
5963 test -z "$LTCC" && LTCC=$CC
5964 test -z "$DLLTOOL" && DLLTOOL=dlltool
5965 test -z "$LD" && LD=ld
5966 test -z "$LN_S" && LN_S="ln -s"
5967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5968 test -z "$NM" && NM=nm
5969 test -z "$SED" && SED=sed
5970 test -z "$OBJDUMP" && OBJDUMP=objdump
5971 test -z "$RANLIB" && RANLIB=:
5972 test -z "$STRIP" && STRIP=:
5973 test -z "$ac_objext" && ac_objext=o
5975 # Determine commands to create old-style static archives.
5976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5977 old_postinstall_cmds='chmod 644 $oldlib'
5978 old_postuninstall_cmds=
5980 if test -n "$RANLIB"; then
5981 case $host_os in
5982 openbsd*)
5983 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5986 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5988 esac
5989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5992 # Only perform the check for file, if the check method requires it
5993 case $deplibs_check_method in
5994 file_magic*)
5995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5996 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5997 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 case $MAGIC_CMD in
6002 [\\/*] | ?:[\\/]*)
6003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6006 lt_save_MAGIC_CMD="$MAGIC_CMD"
6007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6009 for ac_dir in $ac_dummy; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f $ac_dir/${ac_tool_prefix}file; then
6013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6014 if test -n "$file_magic_test_file"; then
6015 case $deplibs_check_method in
6016 "file_magic "*)
6017 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6020 $EGREP "$file_magic_regex" > /dev/null; then
6022 else
6023 cat <<EOF 1>&2
6025 *** Warning: the command libtool uses to detect shared libraries,
6026 *** $file_magic_cmd, produces output that libtool cannot recognize.
6027 *** The result is that libtool may fail to recognize shared libraries
6028 *** as such. This will affect the creation of libtool libraries that
6029 *** depend on shared libraries, but programs linked with such libtool
6030 *** libraries will work regardless of this problem. Nevertheless, you
6031 *** may want to report the problem to your system manager and/or to
6032 *** bug-libtool@gnu.org
6035 fi ;;
6036 esac
6038 break
6040 done
6041 IFS="$lt_save_ifs"
6042 MAGIC_CMD="$lt_save_MAGIC_CMD"
6044 esac
6047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6048 if test -n "$MAGIC_CMD"; then
6049 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6050 echo "${ECHO_T}$MAGIC_CMD" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6056 if test -z "$lt_cv_path_MAGIC_CMD"; then
6057 if test -n "$ac_tool_prefix"; then
6058 echo "$as_me:$LINENO: checking for file" >&5
6059 echo $ECHO_N "checking for file... $ECHO_C" >&6
6060 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 case $MAGIC_CMD in
6064 [\\/*] | ?:[\\/]*)
6065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6068 lt_save_MAGIC_CMD="$MAGIC_CMD"
6069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6070 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6071 for ac_dir in $ac_dummy; do
6072 IFS="$lt_save_ifs"
6073 test -z "$ac_dir" && ac_dir=.
6074 if test -f $ac_dir/file; then
6075 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6076 if test -n "$file_magic_test_file"; then
6077 case $deplibs_check_method in
6078 "file_magic "*)
6079 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6082 $EGREP "$file_magic_regex" > /dev/null; then
6084 else
6085 cat <<EOF 1>&2
6087 *** Warning: the command libtool uses to detect shared libraries,
6088 *** $file_magic_cmd, produces output that libtool cannot recognize.
6089 *** The result is that libtool may fail to recognize shared libraries
6090 *** as such. This will affect the creation of libtool libraries that
6091 *** depend on shared libraries, but programs linked with such libtool
6092 *** libraries will work regardless of this problem. Nevertheless, you
6093 *** may want to report the problem to your system manager and/or to
6094 *** bug-libtool@gnu.org
6097 fi ;;
6098 esac
6100 break
6102 done
6103 IFS="$lt_save_ifs"
6104 MAGIC_CMD="$lt_save_MAGIC_CMD"
6106 esac
6109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6110 if test -n "$MAGIC_CMD"; then
6111 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6112 echo "${ECHO_T}$MAGIC_CMD" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6118 else
6119 MAGIC_CMD=:
6125 esac
6127 enable_dlopen=no
6128 enable_win32_dll=no
6130 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6131 if test "${enable_libtool_lock+set}" = set; then
6132 enableval="$enable_libtool_lock"
6135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6138 # Check whether --with-pic or --without-pic was given.
6139 if test "${with_pic+set}" = set; then
6140 withval="$with_pic"
6141 pic_mode="$withval"
6142 else
6143 pic_mode=default
6145 test -z "$pic_mode" && pic_mode=default
6147 # Use C for the default configuration in the libtool script
6148 tagname=
6149 lt_save_CC="$CC"
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 # Source file extension for C test sources.
6158 ac_ext=c
6160 # Object file extension for compiled C test sources.
6161 objext=o
6162 objext=$objext
6164 # Code to be used in simple compile tests
6165 lt_simple_compile_test_code="int some_variable = 0;\n"
6167 # Code to be used in simple link tests
6168 lt_simple_link_test_code='int main(){return(0);}\n'
6171 # If no C compiler was specified, use CC.
6172 LTCC=${LTCC-"$CC"}
6174 # Allow CC to be a program name with arguments.
6175 compiler=$CC
6179 # Check for any special shared library compilation flags.
6181 lt_prog_cc_shlib=
6182 if test "$GCC" = no; then
6183 case $host_os in
6184 sco3.2v5*)
6185 lt_prog_cc_shlib='-belf'
6187 esac
6189 if test -n "$lt_prog_cc_shlib"; then
6190 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6191 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6192 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6193 else
6194 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6195 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6196 lt_cv_prog_cc_can_build_shared=no
6202 # Check to make sure the static flag actually works.
6204 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6205 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6206 if test "${lt_prog_compiler_static_works+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 lt_prog_compiler_static_works=no
6210 save_LDFLAGS="$LDFLAGS"
6211 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6212 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6214 # The compiler can only warn and ignore the option if not recognized
6215 # So say no if there are warnings
6216 if test -s conftest.err; then
6217 # Append any errors to the config.log.
6218 cat conftest.err 1>&5
6219 else
6220 lt_prog_compiler_static_works=yes
6223 $rm conftest*
6224 LDFLAGS="$save_LDFLAGS"
6227 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6228 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6230 if test x"$lt_prog_compiler_static_works" = xyes; then
6232 else
6233 lt_prog_compiler_static=
6239 lt_prog_compiler_no_builtin_flag=
6241 if test "$GCC" = yes; then
6242 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6245 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6246 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6247 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 lt_cv_prog_compiler_rtti_exceptions=no
6251 ac_outfile=conftest.$ac_objext
6252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6253 lt_compiler_flag="-fno-rtti -fno-exceptions"
6254 # Insert the option either (1) after the last *FLAGS variable, or
6255 # (2) before a word containing "conftest.", or (3) at the end.
6256 # Note that $ac_compile itself does not contain backslashes and begins
6257 # with a dollar sign (not a hyphen), so the echo should work correctly.
6258 # The option is referenced via a variable to avoid confusing sed.
6259 lt_compile=`echo "$ac_compile" | $SED \
6260 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262 -e 's:$: $lt_compiler_flag:'`
6263 (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
6264 (eval "$lt_compile" 2>conftest.err)
6265 ac_status=$?
6266 cat conftest.err >&5
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 if (exit $ac_status) && test -s "$ac_outfile"; then
6269 # The compiler can only warn and ignore the option if not recognized
6270 # So say no if there are warnings
6271 if test ! -s conftest.err; then
6272 lt_cv_prog_compiler_rtti_exceptions=yes
6275 $rm conftest*
6278 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6279 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6283 else
6289 lt_prog_compiler_wl=
6290 lt_prog_compiler_pic=
6291 lt_prog_compiler_static=
6293 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6294 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6296 if test "$GCC" = yes; then
6297 lt_prog_compiler_wl='-Wl,'
6298 lt_prog_compiler_static='-static'
6300 case $host_os in
6301 aix*)
6302 # All AIX code is PIC.
6303 if test "$host_cpu" = ia64; then
6304 # AIX 5 now supports IA64 processor
6305 lt_prog_compiler_static='-Bstatic'
6309 amigaos*)
6310 # FIXME: we need at least 68020 code to build shared libraries, but
6311 # adding the `-m68020' flag to GCC prevents building anything better,
6312 # like `-m68040'.
6313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6317 # PIC is the default for these OSes.
6320 mingw* | pw32* | os2*)
6321 # This hack is so that the source file can tell whether it is being
6322 # built for inclusion in a dll (and should export symbols for example).
6323 lt_prog_compiler_pic='-DDLL_EXPORT'
6326 darwin* | rhapsody*)
6327 # PIC is the default on this platform
6328 # Common symbols not allowed in MH_DYLIB files
6329 lt_prog_compiler_pic='-fno-common'
6332 msdosdjgpp*)
6333 # Just because we use GCC doesn't mean we suddenly get shared libraries
6334 # on systems that don't support them.
6335 lt_prog_compiler_can_build_shared=no
6336 enable_shared=no
6339 sysv4*MP*)
6340 if test -d /usr/nec; then
6341 lt_prog_compiler_pic=-Kconform_pic
6345 hpux*)
6346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6347 # not for PA HP-UX.
6348 case "$host_cpu" in
6349 hppa*64*|ia64*)
6350 # +Z the default
6353 lt_prog_compiler_pic='-fPIC'
6355 esac
6359 lt_prog_compiler_pic='-fPIC'
6361 esac
6362 else
6363 # PORTME Check for flag to pass linker flags through the system compiler.
6364 case $host_os in
6365 aix*)
6366 lt_prog_compiler_wl='-Wl,'
6367 if test "$host_cpu" = ia64; then
6368 # AIX 5 now supports IA64 processor
6369 lt_prog_compiler_static='-Bstatic'
6370 else
6371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6375 mingw* | pw32* | os2*)
6376 # This hack is so that the source file can tell whether it is being
6377 # built for inclusion in a dll (and should export symbols for example).
6378 lt_prog_compiler_pic='-DDLL_EXPORT'
6381 hpux9* | hpux10* | hpux11*)
6382 lt_prog_compiler_wl='-Wl,'
6383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6384 # not for PA HP-UX.
6385 case "$host_cpu" in
6386 hppa*64*|ia64*)
6387 # +Z the default
6390 lt_prog_compiler_pic='+Z'
6392 esac
6393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6394 lt_prog_compiler_static='${wl}-a ${wl}archive'
6397 irix5* | irix6* | nonstopux*)
6398 lt_prog_compiler_wl='-Wl,'
6399 # PIC (with -KPIC) is the default.
6400 lt_prog_compiler_static='-non_shared'
6403 newsos6)
6404 lt_prog_compiler_pic='-KPIC'
6405 lt_prog_compiler_static='-Bstatic'
6408 linux*)
6409 case $CC in
6410 icc* | ecc*)
6411 lt_prog_compiler_wl='-Wl,'
6412 lt_prog_compiler_pic='-KPIC'
6413 lt_prog_compiler_static='-static'
6415 ccc*)
6416 lt_prog_compiler_wl='-Wl,'
6417 # All Alpha code is PIC.
6418 lt_prog_compiler_static='-non_shared'
6420 esac
6423 osf3* | osf4* | osf5*)
6424 lt_prog_compiler_wl='-Wl,'
6425 # All OSF/1 code is PIC.
6426 lt_prog_compiler_static='-non_shared'
6429 sco3.2v5*)
6430 lt_prog_compiler_pic='-Kpic'
6431 lt_prog_compiler_static='-dn'
6434 solaris*)
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-Bstatic'
6440 sunos4*)
6441 lt_prog_compiler_wl='-Qoption ld '
6442 lt_prog_compiler_pic='-PIC'
6443 lt_prog_compiler_static='-Bstatic'
6446 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
6452 sysv4*MP*)
6453 if test -d /usr/nec ;then
6454 lt_prog_compiler_pic='-Kconform_pic'
6455 lt_prog_compiler_static='-Bstatic'
6459 uts4*)
6460 lt_prog_compiler_pic='-pic'
6461 lt_prog_compiler_static='-Bstatic'
6465 lt_prog_compiler_can_build_shared=no
6467 esac
6470 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6471 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6474 # Check to make sure the PIC flag actually works.
6476 if test -n "$lt_prog_compiler_pic"; then
6478 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6479 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6480 if test "${lt_prog_compiler_pic_works+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 lt_prog_compiler_pic_works=no
6484 ac_outfile=conftest.$ac_objext
6485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6487 # Insert the option either (1) after the last *FLAGS variable, or
6488 # (2) before a word containing "conftest.", or (3) at the end.
6489 # Note that $ac_compile itself does not contain backslashes and begins
6490 # with a dollar sign (not a hyphen), so the echo should work correctly.
6491 # The option is referenced via a variable to avoid confusing sed.
6492 lt_compile=`echo "$ac_compile" | $SED \
6493 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495 -e 's:$: $lt_compiler_flag:'`
6496 (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
6497 (eval "$lt_compile" 2>conftest.err)
6498 ac_status=$?
6499 cat conftest.err >&5
6500 echo "$as_me:6500: \$? = $ac_status" >&5
6501 if (exit $ac_status) && test -s "$ac_outfile"; then
6502 # The compiler can only warn and ignore the option if not recognized
6503 # So say no if there are warnings
6504 if test ! -s conftest.err; then
6505 lt_prog_compiler_pic_works=yes
6508 $rm conftest*
6511 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6512 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6514 if test x"$lt_prog_compiler_pic_works" = xyes; then
6515 case $lt_prog_compiler_pic in
6516 "" | " "*) ;;
6517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6518 esac
6519 else
6520 lt_prog_compiler_pic=
6521 lt_prog_compiler_can_build_shared=no
6525 case "$host_os" in
6526 # For platforms which do not support PIC, -DPIC is meaningless:
6527 *djgpp*)
6528 lt_prog_compiler_pic=
6531 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6533 esac
6535 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6536 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6537 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 lt_cv_prog_compiler_c_o=no
6541 $rm -r conftest 2>/dev/null
6542 mkdir conftest
6543 cd conftest
6544 mkdir out
6545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6547 lt_compiler_flag="-o out/conftest2.$ac_objext"
6548 # Insert the option either (1) after the last *FLAGS variable, or
6549 # (2) before a word containing "conftest.", or (3) at the end.
6550 # Note that $ac_compile itself does not contain backslashes and begins
6551 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
6558 ac_status=$?
6559 cat out/conftest.err >&5
6560 echo "$as_me:6560: \$? = $ac_status" >&5
6561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6562 then
6563 # The compiler can only warn and ignore the option if not recognized
6564 # So say no if there are warnings
6565 if test ! -s out/conftest.err; then
6566 lt_cv_prog_compiler_c_o=yes
6569 chmod u+w .
6570 $rm conftest*
6571 # SGI C++ compiler will create directory out/ii_files/ for
6572 # template instantiation
6573 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6574 $rm out/* && rmdir out
6575 cd ..
6576 rmdir conftest
6577 $rm conftest*
6580 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6581 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6584 hard_links="nottested"
6585 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6586 # do not overwrite the value of need_locks provided by the user
6587 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6588 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6589 hard_links=yes
6590 $rm conftest*
6591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592 touch conftest.a
6593 ln conftest.a conftest.b 2>&5 || hard_links=no
6594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595 echo "$as_me:$LINENO: result: $hard_links" >&5
6596 echo "${ECHO_T}$hard_links" >&6
6597 if test "$hard_links" = no; then
6598 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6599 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6600 need_locks=warn
6602 else
6603 need_locks=no
6606 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6607 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6609 runpath_var=
6610 allow_undefined_flag=
6611 enable_shared_with_static_runtimes=no
6612 archive_cmds=
6613 archive_expsym_cmds=
6614 old_archive_From_new_cmds=
6615 old_archive_from_expsyms_cmds=
6616 export_dynamic_flag_spec=
6617 whole_archive_flag_spec=
6618 thread_safe_flag_spec=
6619 hardcode_libdir_flag_spec=
6620 hardcode_libdir_flag_spec_ld=
6621 hardcode_libdir_separator=
6622 hardcode_direct=no
6623 hardcode_minus_L=no
6624 hardcode_shlibpath_var=unsupported
6625 link_all_deplibs=unknown
6626 hardcode_automatic=no
6627 module_cmds=
6628 module_expsym_cmds=
6629 always_export_symbols=no
6630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6631 # include_expsyms should be a list of space-separated symbols to be *always*
6632 # included in the symbol list
6633 include_expsyms=
6634 # exclude_expsyms can be an extended regexp of symbols to exclude
6635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6637 # as well as any symbol that contains `d'.
6638 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6640 # platforms (ab)use it in PIC code, but their linkers get confused if
6641 # the symbol is explicitly referenced. Since portable code cannot
6642 # rely on this symbol name, it's probably fine to never include it in
6643 # preloaded symbol tables.
6644 extract_expsyms_cmds=
6646 case $host_os in
6647 cygwin* | mingw* | pw32*)
6648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6649 # When not using gcc, we currently assume that we are using
6650 # Microsoft Visual C++.
6651 if test "$GCC" != yes; then
6652 with_gnu_ld=no
6655 openbsd*)
6656 with_gnu_ld=no
6658 esac
6660 ld_shlibs=yes
6661 if test "$with_gnu_ld" = yes; then
6662 # If archive_cmds runs LD, not CC, wlarc should be empty
6663 wlarc='${wl}'
6665 # See if GNU ld supports shared libraries.
6666 case $host_os in
6667 aix3* | aix4* | aix5*)
6668 # On AIX/PPC, the GNU linker is very broken
6669 if test "$host_cpu" != ia64; then
6670 ld_shlibs=no
6671 cat <<EOF 1>&2
6673 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6674 *** to be unable to reliably create shared libraries on AIX.
6675 *** Therefore, libtool is disabling shared libraries support. If you
6676 *** really care for shared libraries, you may want to modify your PATH
6677 *** so that a non-GNU linker is found, and then restart.
6683 amigaos*)
6684 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)'
6685 hardcode_libdir_flag_spec='-L$libdir'
6686 hardcode_minus_L=yes
6688 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6689 # that the semantics of dynamic libraries on AmigaOS, at least up
6690 # to version 4, is to share data among multiple programs linked
6691 # with the same dynamic library. Since this doesn't match the
6692 # behavior of shared libraries on other platforms, we can't use
6693 # them.
6694 ld_shlibs=no
6697 beos*)
6698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6699 allow_undefined_flag=unsupported
6700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6701 # support --undefined. This deserves some investigation. FIXME
6702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703 else
6704 ld_shlibs=no
6708 cygwin* | mingw* | pw32*)
6709 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6710 # as there is no search path for DLLs.
6711 hardcode_libdir_flag_spec='-L$libdir'
6712 allow_undefined_flag=unsupported
6713 always_export_symbols=no
6714 enable_shared_with_static_runtimes=yes
6715 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6717 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6719 # If the export-symbols file already is a .def file (1st line
6720 # is EXPORTS), use it as is; otherwise, prepend...
6721 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6722 cp $export_symbols $output_objdir/$soname.def;
6723 else
6724 echo EXPORTS > $output_objdir/$soname.def;
6725 cat $export_symbols >> $output_objdir/$soname.def;
6727 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6728 else
6729 ld_shlibs=no
6733 netbsd*)
6734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6736 wlarc=
6737 else
6738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743 solaris* | sysv5*)
6744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6745 ld_shlibs=no
6746 cat <<EOF 1>&2
6748 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6749 *** create shared libraries on Solaris systems. Therefore, libtool
6750 *** is disabling shared libraries support. We urge you to upgrade GNU
6751 *** binutils to release 2.9.1 or newer. Another option is to modify
6752 *** your PATH or compiler configuration so that the native linker is
6753 *** used, and then restart.
6756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 else
6760 ld_shlibs=no
6764 sunos4*)
6765 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6766 wlarc=
6767 hardcode_direct=yes
6768 hardcode_shlibpath_var=no
6771 linux*)
6772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_cmds="$tmp_archive_cmds"
6775 supports_anon_versioning=no
6776 case `$LD -v 2>/dev/null` in
6777 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6778 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6779 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6780 *\ 2.11.*) ;; # other 2.11 versions
6781 *) supports_anon_versioning=yes ;;
6782 esac
6783 if test $supports_anon_versioning = yes; then
6784 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6786 $echo "local: *; };" >> $output_objdir/$libname.ver~
6787 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6788 else
6789 archive_expsym_cmds="$tmp_archive_cmds"
6791 else
6792 ld_shlibs=no
6797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
6800 else
6801 ld_shlibs=no
6804 esac
6806 if test "$ld_shlibs" = yes; then
6807 runpath_var=LD_RUN_PATH
6808 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6809 export_dynamic_flag_spec='${wl}--export-dynamic'
6810 # ancient GNU ld didn't support --whole-archive et. al.
6811 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6812 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6813 else
6814 whole_archive_flag_spec=
6817 else
6818 # PORTME fill in a description of your system's linker (not GNU ld)
6819 case $host_os in
6820 aix3*)
6821 allow_undefined_flag=unsupported
6822 always_export_symbols=yes
6823 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'
6824 # Note: this linker hardcodes the directories in LIBPATH if there
6825 # are no directories specified by -L.
6826 hardcode_minus_L=yes
6827 if test "$GCC" = yes && test -z "$link_static_flag"; then
6828 # Neither direct hardcoding nor static linking is supported with a
6829 # broken collect2.
6830 hardcode_direct=unsupported
6834 aix4* | aix5*)
6835 if test "$host_cpu" = ia64; then
6836 # On IA64, the linker does run time linking by default, so we don't
6837 # have to do anything special.
6838 aix_use_runtimelinking=no
6839 exp_sym_flag='-Bexport'
6840 no_entry_flag=""
6841 else
6842 # If we're using GNU nm, then we don't want the "-C" option.
6843 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6844 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6845 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'
6846 else
6847 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'
6849 aix_use_runtimelinking=no
6851 # Test if we are trying to use run time linking or normal
6852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6853 # need to do runtime linking.
6854 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6855 for ld_flag in $LDFLAGS; do
6856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6857 aix_use_runtimelinking=yes
6858 break
6860 done
6861 esac
6863 exp_sym_flag='-bexport'
6864 no_entry_flag='-bnoentry'
6867 # When large executables or shared objects are built, AIX ld can
6868 # have problems creating the table of contents. If linking a library
6869 # or program results in "error TOC overflow" add -mminimal-toc to
6870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6873 archive_cmds=''
6874 hardcode_direct=yes
6875 hardcode_libdir_separator=':'
6876 link_all_deplibs=yes
6878 if test "$GCC" = yes; then
6879 case $host_os in aix4.012|aix4.012.*)
6880 # We only want to do this on AIX 4.2 and lower, the check
6881 # below for broken collect2 doesn't work under 4.3+
6882 collect2name=`${CC} -print-prog-name=collect2`
6883 if test -f "$collect2name" && \
6884 strings "$collect2name" | grep resolve_lib_name >/dev/null
6885 then
6886 # We have reworked collect2
6887 hardcode_direct=yes
6888 else
6889 # We have old collect2
6890 hardcode_direct=unsupported
6891 # It fails to find uninstalled libraries when the uninstalled
6892 # path is not listed in the libpath. Setting hardcode_minus_L
6893 # to unsupported forces relinking
6894 hardcode_minus_L=yes
6895 hardcode_libdir_flag_spec='-L$libdir'
6896 hardcode_libdir_separator=
6898 esac
6899 shared_flag='-shared'
6900 else
6901 # not using gcc
6902 if test "$host_cpu" = ia64; then
6903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6904 # chokes on -Wl,-G. The following line is correct:
6905 shared_flag='-G'
6906 else
6907 if test "$aix_use_runtimelinking" = yes; then
6908 shared_flag='${wl}-G'
6909 else
6910 shared_flag='${wl}-bM:SRE'
6915 # It seems that -bexpall does not export symbols beginning with
6916 # underscore (_), so it is better to generate a list of symbols to export.
6917 always_export_symbols=yes
6918 if test "$aix_use_runtimelinking" = yes; then
6919 # Warning - without using the other runtime loading flags (-brtl),
6920 # -berok will link without error, but may produce a broken library.
6921 allow_undefined_flag='-berok'
6922 # Determine the default libpath from the value encoded in an empty executable.
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6931 main ()
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6963 # Check for a 64-bit object if we didn't find anything.
6964 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; }
6965 }'`; fi
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6971 rm -f conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6976 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"
6977 else
6978 if test "$host_cpu" = ia64; then
6979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6980 allow_undefined_flag="-z nodefs"
6981 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"
6982 else
6983 # Determine the default libpath from the value encoded in an empty executable.
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6992 main ()
6996 return 0;
6998 _ACEOF
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest$ac_exeext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7024 # Check for a 64-bit object if we didn't find anything.
7025 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; }
7026 }'`; fi
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7037 # Warning - without using the other run time loading flags,
7038 # -berok will link without error, but may produce a broken library.
7039 no_undefined_flag=' ${wl}-bernotok'
7040 allow_undefined_flag=' ${wl}-berok'
7041 # -bexpall does not export symbols beginning with underscore (_)
7042 always_export_symbols=yes
7043 # Exported symbols can be pulled into shared objects from archives
7044 whole_archive_flag_spec=' '
7045 archive_cmds_need_lc=yes
7046 # This is similar to how AIX traditionally builds it's shared libraries.
7047 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'
7052 amigaos*)
7053 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)'
7054 hardcode_libdir_flag_spec='-L$libdir'
7055 hardcode_minus_L=yes
7056 # see comment about different semantics on the GNU ld section
7057 ld_shlibs=no
7060 bsdi4*)
7061 export_dynamic_flag_spec=-rdynamic
7064 cygwin* | mingw* | pw32*)
7065 # When not using gcc, we currently assume that we are using
7066 # Microsoft Visual C++.
7067 # hardcode_libdir_flag_spec is actually meaningless, as there is
7068 # no search path for DLLs.
7069 hardcode_libdir_flag_spec=' '
7070 allow_undefined_flag=unsupported
7071 # Tell ltmain to make .lib files, not .a files.
7072 libext=lib
7073 # Tell ltmain to make .dll files, not .so files.
7074 shrext_cmds=".dll"
7075 # FIXME: Setting linknames here is a bad hack.
7076 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7077 # The linker will automatically build a .lib file if we build a DLL.
7078 old_archive_From_new_cmds='true'
7079 # FIXME: Should let the user specify the lib program.
7080 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7081 fix_srcfile_path='`cygpath -w "$srcfile"`'
7082 enable_shared_with_static_runtimes=yes
7085 darwin* | rhapsody*)
7086 if test "$GXX" = yes ; then
7087 archive_cmds_need_lc=no
7088 case "$host_os" in
7089 rhapsody* | darwin1.[012])
7090 allow_undefined_flag='-undefined suppress'
7092 *) # Darwin 1.3 on
7093 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7094 allow_undefined_flag='-flat_namespace -undefined suppress'
7095 else
7096 case ${MACOSX_DEPLOYMENT_TARGET} in
7097 10.[012])
7098 allow_undefined_flag='-flat_namespace -undefined suppress'
7100 10.*)
7101 allow_undefined_flag='-undefined dynamic_lookup'
7103 esac
7106 esac
7107 lt_int_apple_cc_single_mod=no
7108 output_verbose_link_cmd='echo'
7109 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7110 lt_int_apple_cc_single_mod=yes
7112 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7113 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7114 else
7115 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7117 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7119 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7120 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7121 else
7122 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7124 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}'
7125 hardcode_direct=no
7126 hardcode_automatic=yes
7127 hardcode_shlibpath_var=unsupported
7128 whole_archive_flag_spec='-all_load $convenience'
7129 link_all_deplibs=yes
7130 else
7131 ld_shlibs=no
7135 dgux*)
7136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7137 hardcode_libdir_flag_spec='-L$libdir'
7138 hardcode_shlibpath_var=no
7141 freebsd1*)
7142 ld_shlibs=no
7145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7146 # support. Future versions do this automatically, but an explicit c++rt0.o
7147 # does not break anything, and helps significantly (at the cost of a little
7148 # extra space).
7149 freebsd2.2*)
7150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7151 hardcode_libdir_flag_spec='-R$libdir'
7152 hardcode_direct=yes
7153 hardcode_shlibpath_var=no
7156 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7157 freebsd2*)
7158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7159 hardcode_direct=yes
7160 hardcode_minus_L=yes
7161 hardcode_shlibpath_var=no
7164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7165 freebsd* | kfreebsd*-gnu)
7166 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7167 hardcode_libdir_flag_spec='-R$libdir'
7168 hardcode_direct=yes
7169 hardcode_shlibpath_var=no
7172 hpux9*)
7173 if test "$GCC" = yes; then
7174 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'
7175 else
7176 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'
7178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7179 hardcode_libdir_separator=:
7180 hardcode_direct=yes
7182 # hardcode_minus_L: Not really in the search PATH,
7183 # but as the default location of the library.
7184 hardcode_minus_L=yes
7185 export_dynamic_flag_spec='${wl}-E'
7188 hpux10* | hpux11*)
7189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7190 case "$host_cpu" in
7191 hppa*64*|ia64*)
7192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7197 esac
7198 else
7199 case "$host_cpu" in
7200 hppa*64*|ia64*)
7201 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7206 esac
7208 if test "$with_gnu_ld" = no; then
7209 case "$host_cpu" in
7210 hppa*64*)
7211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7212 hardcode_libdir_flag_spec_ld='+b $libdir'
7213 hardcode_libdir_separator=:
7214 hardcode_direct=no
7215 hardcode_shlibpath_var=no
7217 ia64*)
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_direct=no
7220 hardcode_shlibpath_var=no
7222 # hardcode_minus_L: Not really in the search PATH,
7223 # but as the default location of the library.
7224 hardcode_minus_L=yes
7227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7228 hardcode_libdir_separator=:
7229 hardcode_direct=yes
7230 export_dynamic_flag_spec='${wl}-E'
7232 # hardcode_minus_L: Not really in the search PATH,
7233 # but as the default location of the library.
7234 hardcode_minus_L=yes
7236 esac
7240 irix5* | irix6* | nonstopux*)
7241 if test "$GCC" = yes; then
7242 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'
7243 else
7244 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'
7245 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7248 hardcode_libdir_separator=:
7249 link_all_deplibs=yes
7252 netbsd*)
7253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7255 else
7256 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7258 hardcode_libdir_flag_spec='-R$libdir'
7259 hardcode_direct=yes
7260 hardcode_shlibpath_var=no
7263 newsos6)
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_direct=yes
7266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7267 hardcode_libdir_separator=:
7268 hardcode_shlibpath_var=no
7271 openbsd*)
7272 hardcode_direct=yes
7273 hardcode_shlibpath_var=no
7274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7277 export_dynamic_flag_spec='${wl}-E'
7278 else
7279 case $host_os in
7280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7282 hardcode_libdir_flag_spec='-R$libdir'
7285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288 esac
7292 os2*)
7293 hardcode_libdir_flag_spec='-L$libdir'
7294 hardcode_minus_L=yes
7295 allow_undefined_flag=unsupported
7296 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'
7297 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7300 osf3*)
7301 if test "$GCC" = yes; then
7302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7303 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'
7304 else
7305 allow_undefined_flag=' -expect_unresolved \*'
7306 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'
7308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7309 hardcode_libdir_separator=:
7312 osf4* | osf5*) # as osf3* with the addition of -msym flag
7313 if test "$GCC" = yes; then
7314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7315 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'
7316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7317 else
7318 allow_undefined_flag=' -expect_unresolved \*'
7319 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'
7320 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7321 $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'
7323 # Both c and cxx compiler support -rpath directly
7324 hardcode_libdir_flag_spec='-rpath $libdir'
7326 hardcode_libdir_separator=:
7329 sco3.2v5*)
7330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_shlibpath_var=no
7332 export_dynamic_flag_spec='${wl}-Bexport'
7333 runpath_var=LD_RUN_PATH
7334 hardcode_runpath_var=yes
7337 solaris*)
7338 no_undefined_flag=' -z text'
7339 if test "$GCC" = yes; then
7340 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7342 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7343 else
7344 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7345 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7348 hardcode_libdir_flag_spec='-R$libdir'
7349 hardcode_shlibpath_var=no
7350 case $host_os in
7351 solaris2.[0-5] | solaris2.[0-5].*) ;;
7352 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7353 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7354 esac
7355 link_all_deplibs=yes
7358 sunos4*)
7359 if test "x$host_vendor" = xsequent; then
7360 # Use $CC to link under sequent, because it throws in some extra .o
7361 # files that make .init and .fini sections work.
7362 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7363 else
7364 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7366 hardcode_libdir_flag_spec='-L$libdir'
7367 hardcode_direct=yes
7368 hardcode_minus_L=yes
7369 hardcode_shlibpath_var=no
7372 sysv4)
7373 case $host_vendor in
7374 sni)
7375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7376 hardcode_direct=yes # is this really true???
7378 siemens)
7379 ## LD is ld it makes a PLAMLIB
7380 ## CC just makes a GrossModule.
7381 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7382 reload_cmds='$CC -r -o $output$reload_objs'
7383 hardcode_direct=no
7385 motorola)
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7389 esac
7390 runpath_var='LD_RUN_PATH'
7391 hardcode_shlibpath_var=no
7394 sysv4.3*)
7395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 hardcode_shlibpath_var=no
7397 export_dynamic_flag_spec='-Bexport'
7400 sysv4*MP*)
7401 if test -d /usr/nec; then
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_shlibpath_var=no
7404 runpath_var=LD_RUN_PATH
7405 hardcode_runpath_var=yes
7406 ld_shlibs=yes
7410 sysv4.2uw2*)
7411 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7412 hardcode_direct=yes
7413 hardcode_minus_L=no
7414 hardcode_shlibpath_var=no
7415 hardcode_runpath_var=yes
7416 runpath_var=LD_RUN_PATH
7419 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7420 no_undefined_flag='${wl}-z ${wl}text'
7421 if test "$GCC" = yes; then
7422 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7423 else
7424 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7426 runpath_var='LD_RUN_PATH'
7427 hardcode_shlibpath_var=no
7430 sysv5*)
7431 no_undefined_flag=' -z text'
7432 # $CC -shared without GNU ld will not create a library from C++
7433 # object files and a static libstdc++, better avoid it by now
7434 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7436 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7437 hardcode_libdir_flag_spec=
7438 hardcode_shlibpath_var=no
7439 runpath_var='LD_RUN_PATH'
7442 uts4*)
7443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444 hardcode_libdir_flag_spec='-L$libdir'
7445 hardcode_shlibpath_var=no
7449 ld_shlibs=no
7451 esac
7454 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7455 echo "${ECHO_T}$ld_shlibs" >&6
7456 test "$ld_shlibs" = no && can_build_shared=no
7458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7459 if test "$GCC" = yes; then
7460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7464 # Do we need to explicitly link libc?
7466 case "x$archive_cmds_need_lc" in
7467 x|xyes)
7468 # Assume -lc should be added
7469 archive_cmds_need_lc=yes
7471 if test "$enable_shared" = yes && test "$GCC" = yes; then
7472 case $archive_cmds in
7473 *'~'*)
7474 # FIXME: we may have to deal with multi-command sequences.
7476 '$CC '*)
7477 # Test whether the compiler implicitly links with -lc since on some
7478 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7479 # to ld, don't add -lc before -lgcc.
7480 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7481 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7482 $rm conftest*
7483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } 2>conftest.err; then
7490 soname=conftest
7491 lib=conftest
7492 libobjs=conftest.$ac_objext
7493 deplibs=
7494 wl=$lt_prog_compiler_wl
7495 compiler_flags=-v
7496 linker_flags=-v
7497 verstring=
7498 output_objdir=.
7499 libname=conftest
7500 lt_save_allow_undefined_flag=$allow_undefined_flag
7501 allow_undefined_flag=
7502 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7503 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }
7507 then
7508 archive_cmds_need_lc=no
7509 else
7510 archive_cmds_need_lc=yes
7512 allow_undefined_flag=$lt_save_allow_undefined_flag
7513 else
7514 cat conftest.err 1>&5
7516 $rm conftest*
7517 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7518 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7520 esac
7523 esac
7525 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7527 library_names_spec=
7528 libname_spec='lib$name'
7529 soname_spec=
7530 shrext_cmds=".so"
7531 postinstall_cmds=
7532 postuninstall_cmds=
7533 finish_cmds=
7534 finish_eval=
7535 shlibpath_var=
7536 shlibpath_overrides_runpath=unknown
7537 version_type=none
7538 dynamic_linker="$host_os ld.so"
7539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7540 if test "$GCC" = yes; then
7541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7543 # if the path contains ";" then we assume it to be the separator
7544 # otherwise default to the standard path separator (i.e. ":") - it is
7545 # assumed that no part of a normal pathname contains ";" but that should
7546 # okay in the real world where ";" in dirpaths is itself problematic.
7547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7548 else
7549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7551 else
7552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7554 need_lib_prefix=unknown
7555 hardcode_into_libs=no
7557 # when you set need_version to no, make sure it does not cause -set_version
7558 # flags to be left without arguments
7559 need_version=unknown
7561 case $host_os in
7562 aix3*)
7563 version_type=linux
7564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7565 shlibpath_var=LIBPATH
7567 # AIX 3 has no versioning support, so we append a major version to the name.
7568 soname_spec='${libname}${release}${shared_ext}$major'
7571 aix4* | aix5*)
7572 version_type=linux
7573 need_lib_prefix=no
7574 need_version=no
7575 hardcode_into_libs=yes
7576 if test "$host_cpu" = ia64; then
7577 # AIX 5 supports IA64
7578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7579 shlibpath_var=LD_LIBRARY_PATH
7580 else
7581 # With GCC up to 2.95.x, collect2 would create an import file
7582 # for dependence libraries. The import file would start with
7583 # the line `#! .'. This would cause the generated library to
7584 # depend on `.', always an invalid library. This was fixed in
7585 # development snapshots of GCC prior to 3.0.
7586 case $host_os in
7587 aix4 | aix4.[01] | aix4.[01].*)
7588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7589 echo ' yes '
7590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7592 else
7593 can_build_shared=no
7596 esac
7597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7598 # soname into executable. Probably we can add versioning support to
7599 # collect2, so additional links can be useful in future.
7600 if test "$aix_use_runtimelinking" = yes; then
7601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7602 # instead of lib<name>.a to let people know that these are not
7603 # typical AIX shared libraries.
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7605 else
7606 # We preserve .a as extension for shared libraries through AIX4.2
7607 # and later when we are not doing run time linking.
7608 library_names_spec='${libname}${release}.a $libname.a'
7609 soname_spec='${libname}${release}${shared_ext}$major'
7611 shlibpath_var=LIBPATH
7615 amigaos*)
7616 library_names_spec='$libname.ixlibrary $libname.a'
7617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7618 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'
7621 beos*)
7622 library_names_spec='${libname}${shared_ext}'
7623 dynamic_linker="$host_os ld.so"
7624 shlibpath_var=LIBRARY_PATH
7627 bsdi4*)
7628 version_type=linux
7629 need_version=no
7630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7631 soname_spec='${libname}${release}${shared_ext}$major'
7632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7636 # the default ld.so.conf also contains /usr/contrib/lib and
7637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7638 # libtool to hard-code these into programs
7641 cygwin* | mingw* | pw32*)
7642 version_type=windows
7643 shrext_cmds=".dll"
7644 need_version=no
7645 need_lib_prefix=no
7647 case $GCC,$host_os in
7648 yes,cygwin* | yes,mingw* | yes,pw32*)
7649 library_names_spec='$libname.dll.a'
7650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7651 postinstall_cmds='base_file=`basename \${file}`~
7652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7653 dldir=$destdir/`dirname \$dlpath`~
7654 test -d \$dldir || mkdir -p \$dldir~
7655 $install_prog $dir/$dlname \$dldir/$dlname'
7656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7657 dlpath=$dir/\$dldll~
7658 $rm \$dlpath'
7659 shlibpath_overrides_runpath=yes
7661 case $host_os in
7662 cygwin*)
7663 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7664 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7665 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7667 mingw*)
7668 # MinGW DLLs use traditional 'lib' prefix
7669 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7671 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7672 # It is most probably a Windows format PATH printed by
7673 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7674 # path with ; separators, and with drive letters. We can handle the
7675 # drive letters (cygwin fileutils understands them), so leave them,
7676 # especially as we might pass files found there to a mingw objdump,
7677 # which wouldn't understand a cygwinified path. Ahh.
7678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7679 else
7680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7683 pw32*)
7684 # pw32 DLLs use 'pw' prefix rather than 'lib'
7685 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7687 esac
7691 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7693 esac
7694 dynamic_linker='Win32 ld.exe'
7695 # FIXME: first we should search . and the directory the executable is in
7696 shlibpath_var=PATH
7699 darwin* | rhapsody*)
7700 dynamic_linker="$host_os dyld"
7701 version_type=darwin
7702 need_lib_prefix=no
7703 need_version=no
7704 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7705 soname_spec='${libname}${release}${major}$shared_ext'
7706 shlibpath_overrides_runpath=yes
7707 shlibpath_var=DYLD_LIBRARY_PATH
7708 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7709 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7710 if test "$GCC" = yes; then
7711 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"`
7712 else
7713 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7718 dgux*)
7719 version_type=linux
7720 need_lib_prefix=no
7721 need_version=no
7722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7723 soname_spec='${libname}${release}${shared_ext}$major'
7724 shlibpath_var=LD_LIBRARY_PATH
7727 freebsd1*)
7728 dynamic_linker=no
7731 kfreebsd*-gnu)
7732 version_type=linux
7733 need_lib_prefix=no
7734 need_version=no
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7736 soname_spec='${libname}${release}${shared_ext}$major'
7737 shlibpath_var=LD_LIBRARY_PATH
7738 shlibpath_overrides_runpath=no
7739 hardcode_into_libs=yes
7740 dynamic_linker='GNU ld.so'
7743 freebsd*)
7744 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7745 version_type=freebsd-$objformat
7746 case $version_type in
7747 freebsd-elf*)
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7749 need_version=no
7750 need_lib_prefix=no
7752 freebsd-*)
7753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7754 need_version=yes
7756 esac
7757 shlibpath_var=LD_LIBRARY_PATH
7758 case $host_os in
7759 freebsd2*)
7760 shlibpath_overrides_runpath=yes
7762 freebsd3.01* | freebsdelf3.01*)
7763 shlibpath_overrides_runpath=yes
7764 hardcode_into_libs=yes
7766 *) # from 3.2 on
7767 shlibpath_overrides_runpath=no
7768 hardcode_into_libs=yes
7770 esac
7773 gnu*)
7774 version_type=linux
7775 need_lib_prefix=no
7776 need_version=no
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7778 soname_spec='${libname}${release}${shared_ext}$major'
7779 shlibpath_var=LD_LIBRARY_PATH
7780 hardcode_into_libs=yes
7783 hpux9* | hpux10* | hpux11*)
7784 # Give a soname corresponding to the major version so that dld.sl refuses to
7785 # link against other versions.
7786 version_type=sunos
7787 need_lib_prefix=no
7788 need_version=no
7789 case "$host_cpu" in
7790 ia64*)
7791 shrext_cmds='.so'
7792 hardcode_into_libs=yes
7793 dynamic_linker="$host_os dld.so"
7794 shlibpath_var=LD_LIBRARY_PATH
7795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
7799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7800 else
7801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7805 hppa*64*)
7806 shrext_cmds='.sl'
7807 hardcode_into_libs=yes
7808 dynamic_linker="$host_os dld.sl"
7809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812 soname_spec='${libname}${release}${shared_ext}$major'
7813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7817 shrext_cmds='.sl'
7818 dynamic_linker="$host_os dld.sl"
7819 shlibpath_var=SHLIB_PATH
7820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822 soname_spec='${libname}${release}${shared_ext}$major'
7824 esac
7825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7826 postinstall_cmds='chmod 555 $lib'
7829 irix5* | irix6* | nonstopux*)
7830 case $host_os in
7831 nonstopux*) version_type=nonstopux ;;
7833 if test "$lt_cv_prog_gnu_ld" = yes; then
7834 version_type=linux
7835 else
7836 version_type=irix
7837 fi ;;
7838 esac
7839 need_lib_prefix=no
7840 need_version=no
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7843 case $host_os in
7844 irix5* | nonstopux*)
7845 libsuff= shlibsuff=
7848 case $LD in # libtool.m4 will add one of these switches to LD
7849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7850 libsuff= shlibsuff= libmagic=32-bit;;
7851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7852 libsuff=32 shlibsuff=N32 libmagic=N32;;
7853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7855 *) libsuff= shlibsuff= libmagic=never-match;;
7856 esac
7858 esac
7859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7860 shlibpath_overrides_runpath=no
7861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7863 hardcode_into_libs=yes
7866 # No shared lib support for Linux oldld, aout, or coff.
7867 linux*oldld* | linux*aout* | linux*coff*)
7868 dynamic_linker=no
7871 # This must be Linux ELF.
7872 linux*)
7873 version_type=linux
7874 need_lib_prefix=no
7875 need_version=no
7876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877 soname_spec='${libname}${release}${shared_ext}$major'
7878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7879 shlibpath_var=LD_LIBRARY_PATH
7880 shlibpath_overrides_runpath=no
7881 # This implies no fast_install, which is unacceptable.
7882 # Some rework will be needed to allow for fast_install
7883 # before this can be enabled.
7884 hardcode_into_libs=yes
7886 # find out which ABI we are using
7887 libsuff=
7888 case "$host_cpu" in
7889 x86_64*|s390x*|powerpc64*)
7890 echo '#line 7890 "configure"' > conftest.$ac_ext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; then
7896 case `/usr/bin/file conftest.$ac_objext` in
7897 *64-bit*)
7898 libsuff=64
7899 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7901 esac
7903 rm -rf conftest*
7905 esac
7907 # Append ld.so.conf contents to the search path
7908 if test -f /etc/ld.so.conf; then
7909 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7910 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7913 # We used to test for /lib/ld.so.1 and disable shared libraries on
7914 # powerpc, because MkLinux only supported shared libraries with the
7915 # GNU dynamic linker. Since this was broken with cross compilers,
7916 # most powerpc-linux boxes support dynamic linking these days and
7917 # people can always --disable-shared, the test was removed, and we
7918 # assume the GNU/Linux dynamic linker is in use.
7919 dynamic_linker='GNU/Linux ld.so'
7922 knetbsd*-gnu)
7923 version_type=linux
7924 need_lib_prefix=no
7925 need_version=no
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=no
7930 hardcode_into_libs=yes
7931 dynamic_linker='GNU ld.so'
7934 netbsd*)
7935 version_type=sunos
7936 need_lib_prefix=no
7937 need_version=no
7938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7941 dynamic_linker='NetBSD (a.out) ld.so'
7942 else
7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7944 soname_spec='${libname}${release}${shared_ext}$major'
7945 dynamic_linker='NetBSD ld.elf_so'
7947 shlibpath_var=LD_LIBRARY_PATH
7948 shlibpath_overrides_runpath=yes
7949 hardcode_into_libs=yes
7952 newsos6)
7953 version_type=linux
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=yes
7959 nto-qnx*)
7960 version_type=linux
7961 need_lib_prefix=no
7962 need_version=no
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7964 soname_spec='${libname}${release}${shared_ext}$major'
7965 shlibpath_var=LD_LIBRARY_PATH
7966 shlibpath_overrides_runpath=yes
7969 openbsd*)
7970 version_type=sunos
7971 need_lib_prefix=no
7972 need_version=yes
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7977 case $host_os in
7978 openbsd2.[89] | openbsd2.[89].*)
7979 shlibpath_overrides_runpath=no
7982 shlibpath_overrides_runpath=yes
7984 esac
7985 else
7986 shlibpath_overrides_runpath=yes
7990 os2*)
7991 libname_spec='$name'
7992 shrext_cmds=".dll"
7993 need_lib_prefix=no
7994 library_names_spec='$libname${shared_ext} $libname.a'
7995 dynamic_linker='OS/2 ld.exe'
7996 shlibpath_var=LIBPATH
7999 osf3* | osf4* | osf5*)
8000 version_type=osf
8001 need_lib_prefix=no
8002 need_version=no
8003 soname_spec='${libname}${release}${shared_ext}$major'
8004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8010 sco3.2v5*)
8011 version_type=osf
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014 shlibpath_var=LD_LIBRARY_PATH
8017 solaris*)
8018 version_type=linux
8019 need_lib_prefix=no
8020 need_version=no
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022 soname_spec='${libname}${release}${shared_ext}$major'
8023 shlibpath_var=LD_LIBRARY_PATH
8024 shlibpath_overrides_runpath=yes
8025 hardcode_into_libs=yes
8026 # ldd complains unless libraries are executable
8027 postinstall_cmds='chmod +x $lib'
8030 sunos4*)
8031 version_type=sunos
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8034 shlibpath_var=LD_LIBRARY_PATH
8035 shlibpath_overrides_runpath=yes
8036 if test "$with_gnu_ld" = yes; then
8037 need_lib_prefix=no
8039 need_version=yes
8042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8043 version_type=linux
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8045 soname_spec='${libname}${release}${shared_ext}$major'
8046 shlibpath_var=LD_LIBRARY_PATH
8047 case $host_vendor in
8048 sni)
8049 shlibpath_overrides_runpath=no
8050 need_lib_prefix=no
8051 export_dynamic_flag_spec='${wl}-Blargedynsym'
8052 runpath_var=LD_RUN_PATH
8054 siemens)
8055 need_lib_prefix=no
8057 motorola)
8058 need_lib_prefix=no
8059 need_version=no
8060 shlibpath_overrides_runpath=no
8061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8063 esac
8066 sysv4*MP*)
8067 if test -d /usr/nec ;then
8068 version_type=linux
8069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8070 soname_spec='$libname${shared_ext}.$major'
8071 shlibpath_var=LD_LIBRARY_PATH
8075 uts4*)
8076 version_type=linux
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 shlibpath_var=LD_LIBRARY_PATH
8083 dynamic_linker=no
8085 esac
8086 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8087 echo "${ECHO_T}$dynamic_linker" >&6
8088 test "$dynamic_linker" = no && can_build_shared=no
8090 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8091 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8092 hardcode_action=
8093 if test -n "$hardcode_libdir_flag_spec" || \
8094 test -n "$runpath_var " || \
8095 test "X$hardcode_automatic"="Xyes" ; then
8097 # We can hardcode non-existant directories.
8098 if test "$hardcode_direct" != no &&
8099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8100 # have to relink, otherwise we might link with an installed library
8101 # when we should be linking with a yet-to-be-installed one
8102 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8103 test "$hardcode_minus_L" != no; then
8104 # Linking always hardcodes the temporary library directory.
8105 hardcode_action=relink
8106 else
8107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8108 hardcode_action=immediate
8110 else
8111 # We cannot hardcode anything, or else we can only hardcode existing
8112 # directories.
8113 hardcode_action=unsupported
8115 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8116 echo "${ECHO_T}$hardcode_action" >&6
8118 if test "$hardcode_action" = relink; then
8119 # Fast installation is not supported
8120 enable_fast_install=no
8121 elif test "$shlibpath_overrides_runpath" = yes ||
8122 test "$enable_shared" = no; then
8123 # Fast installation is not necessary
8124 enable_fast_install=needless
8127 striplib=
8128 old_striplib=
8129 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8130 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8131 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8133 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8134 echo "$as_me:$LINENO: result: yes" >&5
8135 echo "${ECHO_T}yes" >&6
8136 else
8137 # FIXME - insert some real tests, host_os isn't really good enough
8138 case $host_os in
8139 darwin*)
8140 if test -n "$STRIP" ; then
8141 striplib="$STRIP -x"
8142 echo "$as_me:$LINENO: result: yes" >&5
8143 echo "${ECHO_T}yes" >&6
8144 else
8145 echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8153 esac
8156 if test "x$enable_dlopen" != xyes; then
8157 enable_dlopen=unknown
8158 enable_dlopen_self=unknown
8159 enable_dlopen_self_static=unknown
8160 else
8161 lt_cv_dlopen=no
8162 lt_cv_dlopen_libs=
8164 case $host_os in
8165 beos*)
8166 lt_cv_dlopen="load_add_on"
8167 lt_cv_dlopen_libs=
8168 lt_cv_dlopen_self=yes
8171 mingw* | pw32*)
8172 lt_cv_dlopen="LoadLibrary"
8173 lt_cv_dlopen_libs=
8176 cygwin*)
8177 lt_cv_dlopen="dlopen"
8178 lt_cv_dlopen_libs=
8181 darwin*)
8182 # if libdl is installed we need to link against it
8183 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 ac_check_lib_save_LIBS=$LIBS
8189 LIBS="-ldl $LIBS"
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203 char dlopen ();
8205 main ()
8207 dlopen ();
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_dl_dlopen=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_lib_dl_dlopen=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8246 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8247 if test $ac_cv_lib_dl_dlopen = yes; then
8248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8249 else
8251 lt_cv_dlopen="dyld"
8252 lt_cv_dlopen_libs=
8253 lt_cv_dlopen_self=yes
8260 echo "$as_me:$LINENO: checking for shl_load" >&5
8261 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8262 if test "${ac_cv_func_shl_load+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8273 #define shl_load innocuous_shl_load
8275 /* System header to define __stub macros and hopefully few prototypes,
8276 which can conflict with char shl_load (); below.
8277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8278 <limits.h> exists even on freestanding compilers. */
8280 #ifdef __STDC__
8281 # include <limits.h>
8282 #else
8283 # include <assert.h>
8284 #endif
8286 #undef shl_load
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 #ifdef __cplusplus
8290 extern "C"
8292 #endif
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8295 char shl_load ();
8296 /* The GNU C library defines this for functions which it implements
8297 to always fail with ENOSYS. Some functions are actually named
8298 something starting with __ and the normal name is an alias. */
8299 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8300 choke me
8301 #else
8302 char (*f) () = shl_load;
8303 #endif
8304 #ifdef __cplusplus
8306 #endif
8309 main ()
8311 return f != shl_load;
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag"
8326 || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_func_shl_load=yes
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_cv_func_shl_load=no
8345 rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8349 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8350 if test $ac_cv_func_shl_load = yes; then
8351 lt_cv_dlopen="shl_load"
8352 else
8353 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8354 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8355 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-ldld $LIBS"
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char shl_load ();
8375 main ()
8377 shl_load ();
8379 return 0;
8381 _ACEOF
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_dld_shl_load=yes
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_lib_dld_shl_load=no
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8416 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8417 if test $ac_cv_lib_dld_shl_load = yes; then
8418 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8419 else
8420 echo "$as_me:$LINENO: checking for dlopen" >&5
8421 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8422 if test "${ac_cv_func_dlopen+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8433 #define dlopen innocuous_dlopen
8435 /* System header to define __stub macros and hopefully few prototypes,
8436 which can conflict with char dlopen (); below.
8437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438 <limits.h> exists even on freestanding compilers. */
8440 #ifdef __STDC__
8441 # include <limits.h>
8442 #else
8443 # include <assert.h>
8444 #endif
8446 #undef dlopen
8448 /* Override any gcc2 internal prototype to avoid an error. */
8449 #ifdef __cplusplus
8450 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char dlopen ();
8456 /* The GNU C library defines this for functions which it implements
8457 to always fail with ENOSYS. Some functions are actually named
8458 something starting with __ and the normal name is an alias. */
8459 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8460 choke me
8461 #else
8462 char (*f) () = dlopen;
8463 #endif
8464 #ifdef __cplusplus
8466 #endif
8469 main ()
8471 return f != dlopen;
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_func_dlopen=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_func_dlopen=no
8505 rm -f conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8508 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8509 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8510 if test $ac_cv_func_dlopen = yes; then
8511 lt_cv_dlopen="dlopen"
8512 else
8513 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 ac_check_lib_save_LIBS=$LIBS
8519 LIBS="-ldl $LIBS"
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 /* Override any gcc2 internal prototype to avoid an error. */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char dlopen ();
8535 main ()
8537 dlopen ();
8539 return 0;
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_lib_dl_dlopen=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_lib_dl_dlopen=no
8571 rm -f conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8577 if test $ac_cv_lib_dl_dlopen = yes; then
8578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8579 else
8580 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8581 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8582 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 ac_check_lib_save_LIBS=$LIBS
8586 LIBS="-lsvld $LIBS"
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 /* We use char because int might match the return type of a gcc2
8599 builtin and then its argument prototype would still apply. */
8600 char dlopen ();
8602 main ()
8604 dlopen ();
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag"
8619 || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_lib_svld_dlopen=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_cv_lib_svld_dlopen=no
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8642 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8643 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8644 if test $ac_cv_lib_svld_dlopen = yes; then
8645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8646 else
8647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8648 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 ac_check_lib_save_LIBS=$LIBS
8653 LIBS="-ldld $LIBS"
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8667 char dld_link ();
8669 main ()
8671 dld_link ();
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_lib_dld_dld_link=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ac_cv_lib_dld_dld_link=no
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 LIBS=$ac_check_lib_save_LIBS
8709 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8710 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8711 if test $ac_cv_lib_dld_dld_link = yes; then
8712 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8731 esac
8733 if test "x$lt_cv_dlopen" != xno; then
8734 enable_dlopen=yes
8735 else
8736 enable_dlopen=no
8739 case $lt_cv_dlopen in
8740 dlopen)
8741 save_CPPFLAGS="$CPPFLAGS"
8742 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8744 save_LDFLAGS="$LDFLAGS"
8745 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8747 save_LIBS="$LIBS"
8748 LIBS="$lt_cv_dlopen_libs $LIBS"
8750 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8751 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8752 if test "${lt_cv_dlopen_self+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 if test "$cross_compiling" = yes; then :
8756 lt_cv_dlopen_self=cross
8757 else
8758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8759 lt_status=$lt_dlunknown
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8761 "configure"
8762 #include "confdefs.h"
8764 #if HAVE_DLFCN_H
8765 #include <dlfcn.h>
8766 #endif
8768 #include <stdio.h>
8770 #ifdef RTLD_GLOBAL
8771 # define LT_DLGLOBAL RTLD_GLOBAL
8772 #else
8773 # ifdef DL_GLOBAL
8774 # define LT_DLGLOBAL DL_GLOBAL
8775 # else
8776 # define LT_DLGLOBAL 0
8777 # endif
8778 #endif
8780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8781 find out it does not work in some platform. */
8782 #ifndef LT_DLLAZY_OR_NOW
8783 # ifdef RTLD_LAZY
8784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8785 # else
8786 # ifdef DL_LAZY
8787 # define LT_DLLAZY_OR_NOW DL_LAZY
8788 # else
8789 # ifdef RTLD_NOW
8790 # define LT_DLLAZY_OR_NOW RTLD_NOW
8791 # else
8792 # ifdef DL_NOW
8793 # define LT_DLLAZY_OR_NOW DL_NOW
8794 # else
8795 # define LT_DLLAZY_OR_NOW 0
8796 # endif
8797 # endif
8798 # endif
8799 # endif
8800 #endif
8802 #ifdef __cplusplus
8803 extern "C" void exit (int);
8804 #endif
8806 void fnord() { int i=42;}
8807 int main ()
8809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8810 int status = $lt_dlunknown;
8812 if (self)
8814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8816 /* dlclose (self); */
8819 exit (status);
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8827 (./conftest; exit; ) 2>/dev/null
8828 lt_status=$?
8829 case x$lt_status in
8830 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8831 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8832 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8833 esac
8834 else :
8835 # compilation failed
8836 lt_cv_dlopen_self=no
8839 rm -fr conftest*
8843 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8844 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8846 if test "x$lt_cv_dlopen_self" = xyes; then
8847 LDFLAGS="$LDFLAGS $link_static_flag"
8848 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8849 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8850 if test "${lt_cv_dlopen_self_static+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 if test "$cross_compiling" = yes; then :
8854 lt_cv_dlopen_self_static=cross
8855 else
8856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8857 lt_status=$lt_dlunknown
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8859 "configure"
8860 #include "confdefs.h"
8862 #if HAVE_DLFCN_H
8863 #include <dlfcn.h>
8864 #endif
8866 #include <stdio.h>
8868 #ifdef RTLD_GLOBAL
8869 # define LT_DLGLOBAL RTLD_GLOBAL
8870 #else
8871 # ifdef DL_GLOBAL
8872 # define LT_DLGLOBAL DL_GLOBAL
8873 # else
8874 # define LT_DLGLOBAL 0
8875 # endif
8876 #endif
8878 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8879 find out it does not work in some platform. */
8880 #ifndef LT_DLLAZY_OR_NOW
8881 # ifdef RTLD_LAZY
8882 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8883 # else
8884 # ifdef DL_LAZY
8885 # define LT_DLLAZY_OR_NOW DL_LAZY
8886 # else
8887 # ifdef RTLD_NOW
8888 # define LT_DLLAZY_OR_NOW RTLD_NOW
8889 # else
8890 # ifdef DL_NOW
8891 # define LT_DLLAZY_OR_NOW DL_NOW
8892 # else
8893 # define LT_DLLAZY_OR_NOW 0
8894 # endif
8895 # endif
8896 # endif
8897 # endif
8898 #endif
8900 #ifdef __cplusplus
8901 extern "C" void exit (int);
8902 #endif
8904 void fnord() { int i=42;}
8905 int main ()
8907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8908 int status = $lt_dlunknown;
8910 if (self)
8912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8914 /* dlclose (self); */
8917 exit (status);
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8925 (./conftest; exit; ) 2>/dev/null
8926 lt_status=$?
8927 case x$lt_status in
8928 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8929 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8930 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8931 esac
8932 else :
8933 # compilation failed
8934 lt_cv_dlopen_self_static=no
8937 rm -fr conftest*
8941 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8942 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8945 CPPFLAGS="$save_CPPFLAGS"
8946 LDFLAGS="$save_LDFLAGS"
8947 LIBS="$save_LIBS"
8949 esac
8951 case $lt_cv_dlopen_self in
8952 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8953 *) enable_dlopen_self=unknown ;;
8954 esac
8956 case $lt_cv_dlopen_self_static in
8957 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8958 *) enable_dlopen_self_static=unknown ;;
8959 esac
8963 # Report which librarie types wil actually be built
8964 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8965 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8966 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8967 echo "${ECHO_T}$can_build_shared" >&6
8969 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8970 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8971 test "$can_build_shared" = "no" && enable_shared=no
8973 # On AIX, shared libraries and static libraries use the same namespace, and
8974 # are all built from PIC.
8975 case "$host_os" in
8976 aix3*)
8977 test "$enable_shared" = yes && enable_static=no
8978 if test -n "$RANLIB"; then
8979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8980 postinstall_cmds='$RANLIB $lib'
8984 aix4* | aix5*)
8985 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8986 test "$enable_shared" = yes && enable_static=no
8989 darwin* | rhapsody*)
8990 if test "$GCC" = yes; then
8991 archive_cmds_need_lc=no
8992 case "$host_os" in
8993 rhapsody* | darwin1.[012])
8994 allow_undefined_flag='-undefined suppress'
8996 *) # Darwin 1.3 on
8997 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8998 allow_undefined_flag='-flat_namespace -undefined suppress'
8999 else
9000 case ${MACOSX_DEPLOYMENT_TARGET} in
9001 10.[012])
9002 allow_undefined_flag='-flat_namespace -undefined suppress'
9004 10.*)
9005 allow_undefined_flag='-undefined dynamic_lookup'
9007 esac
9010 esac
9011 output_verbose_link_cmd='echo'
9012 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9013 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9014 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9015 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}'
9016 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}'
9017 hardcode_direct=no
9018 hardcode_automatic=yes
9019 hardcode_shlibpath_var=unsupported
9020 whole_archive_flag_spec='-all_load $convenience'
9021 link_all_deplibs=yes
9022 else
9023 ld_shlibs=no
9026 esac
9027 echo "$as_me:$LINENO: result: $enable_shared" >&5
9028 echo "${ECHO_T}$enable_shared" >&6
9030 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9031 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9032 # Make sure either enable_shared or enable_static is yes.
9033 test "$enable_shared" = yes || enable_static=yes
9034 echo "$as_me:$LINENO: result: $enable_static" >&5
9035 echo "${ECHO_T}$enable_static" >&6
9037 # The else clause should only fire when bootstrapping the
9038 # libtool distribution, otherwise you forgot to ship ltmain.sh
9039 # with your package, and you will get complaints that there are
9040 # no rules to generate ltmain.sh.
9041 if test -f "$ltmain"; then
9042 # See if we are running on zsh, and set the options which allow our commands through
9043 # without removal of \ escapes.
9044 if test -n "${ZSH_VERSION+set}" ; then
9045 setopt NO_GLOB_SUBST
9047 # Now quote all the things that may contain metacharacters while being
9048 # careful not to overquote the AC_SUBSTed values. We take copies of the
9049 # variables and quote the copies for generation of the libtool script.
9050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9051 SED SHELL STRIP \
9052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9054 deplibs_check_method reload_flag reload_cmds need_locks \
9055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9056 lt_cv_sys_global_symbol_to_c_name_address \
9057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9058 old_postinstall_cmds old_postuninstall_cmds \
9059 compiler \
9060 CC \
9061 LD \
9062 lt_prog_compiler_wl \
9063 lt_prog_compiler_pic \
9064 lt_prog_compiler_static \
9065 lt_prog_compiler_no_builtin_flag \
9066 export_dynamic_flag_spec \
9067 thread_safe_flag_spec \
9068 whole_archive_flag_spec \
9069 enable_shared_with_static_runtimes \
9070 old_archive_cmds \
9071 old_archive_from_new_cmds \
9072 predep_objects \
9073 postdep_objects \
9074 predeps \
9075 postdeps \
9076 compiler_lib_search_path \
9077 archive_cmds \
9078 archive_expsym_cmds \
9079 postinstall_cmds \
9080 postuninstall_cmds \
9081 old_archive_from_expsyms_cmds \
9082 allow_undefined_flag \
9083 no_undefined_flag \
9084 export_symbols_cmds \
9085 hardcode_libdir_flag_spec \
9086 hardcode_libdir_flag_spec_ld \
9087 hardcode_libdir_separator \
9088 hardcode_automatic \
9089 module_cmds \
9090 module_expsym_cmds \
9091 lt_cv_prog_compiler_c_o \
9092 exclude_expsyms \
9093 include_expsyms; do
9095 case $var in
9096 old_archive_cmds | \
9097 old_archive_from_new_cmds | \
9098 archive_cmds | \
9099 archive_expsym_cmds | \
9100 module_cmds | \
9101 module_expsym_cmds | \
9102 old_archive_from_expsyms_cmds | \
9103 export_symbols_cmds | \
9104 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9105 postinstall_cmds | postuninstall_cmds | \
9106 old_postinstall_cmds | old_postuninstall_cmds | \
9107 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9108 # Double-quote double-evaled strings.
9109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9114 esac
9115 done
9117 case $lt_echo in
9118 *'\$0 --fallback-echo"')
9119 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9121 esac
9123 cfgfile="${ofile}T"
9124 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9125 $rm -f "$cfgfile"
9126 { echo "$as_me:$LINENO: creating $ofile" >&5
9127 echo "$as_me: creating $ofile" >&6;}
9129 cat <<__EOF__ >> "$cfgfile"
9130 #! $SHELL
9132 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9133 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9134 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9136 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9137 # Free Software Foundation, Inc.
9139 # This file is part of GNU Libtool:
9140 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9142 # This program is free software; you can redistribute it and/or modify
9143 # it under the terms of the GNU General Public License as published by
9144 # the Free Software Foundation; either version 2 of the License, or
9145 # (at your option) any later version.
9147 # This program is distributed in the hope that it will be useful, but
9148 # WITHOUT ANY WARRANTY; without even the implied warranty of
9149 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9150 # General Public License for more details.
9152 # You should have received a copy of the GNU General Public License
9153 # along with this program; if not, write to the Free Software
9154 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9156 # As a special exception to the GNU General Public License, if you
9157 # distribute this file as part of a program that contains a
9158 # configuration script generated by Autoconf, you may include it under
9159 # the same distribution terms that you use for the rest of that program.
9161 # A sed program that does not truncate output.
9162 SED=$lt_SED
9164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9165 Xsed="$SED -e s/^X//"
9167 # The HP-UX ksh and POSIX shell print the target directory to stdout
9168 # if CDPATH is set.
9169 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9171 # The names of the tagged configurations supported by this script.
9172 available_tags=
9174 # ### BEGIN LIBTOOL CONFIG
9176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9178 # Shell to use when invoking shell scripts.
9179 SHELL=$lt_SHELL
9181 # Whether or not to build shared libraries.
9182 build_libtool_libs=$enable_shared
9184 # Whether or not to build static libraries.
9185 build_old_libs=$enable_static
9187 # Whether or not to add -lc for building shared libraries.
9188 build_libtool_need_lc=$archive_cmds_need_lc
9190 # Whether or not to disallow shared libs when runtime libs are static
9191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9193 # Whether or not to optimize for fast installation.
9194 fast_install=$enable_fast_install
9196 # The host system.
9197 host_alias=$host_alias
9198 host=$host
9200 # An echo program that does not interpret backslashes.
9201 echo=$lt_echo
9203 # The archiver.
9204 AR=$lt_AR
9205 AR_FLAGS=$lt_AR_FLAGS
9207 # A C compiler.
9208 LTCC=$lt_LTCC
9210 # A language-specific compiler.
9211 CC=$lt_compiler
9213 # Is the compiler the GNU C compiler?
9214 with_gcc=$GCC
9216 # An ERE matcher.
9217 EGREP=$lt_EGREP
9219 # The linker used to build libraries.
9220 LD=$lt_LD
9222 # Whether we need hard or soft links.
9223 LN_S=$lt_LN_S
9225 # A BSD-compatible nm program.
9226 NM=$lt_NM
9228 # A symbol stripping program
9229 STRIP=$lt_STRIP
9231 # Used to examine libraries when file_magic_cmd begins "file"
9232 MAGIC_CMD=$MAGIC_CMD
9234 # Used on cygwin: DLL creation program.
9235 DLLTOOL="$DLLTOOL"
9237 # Used on cygwin: object dumper.
9238 OBJDUMP="$OBJDUMP"
9240 # Used on cygwin: assembler.
9241 AS="$AS"
9243 # The name of the directory that contains temporary libtool files.
9244 objdir=$objdir
9246 # How to create reloadable object files.
9247 reload_flag=$lt_reload_flag
9248 reload_cmds=$lt_reload_cmds
9250 # How to pass a linker flag through the compiler.
9251 wl=$lt_lt_prog_compiler_wl
9253 # Object file suffix (normally "o").
9254 objext="$ac_objext"
9256 # Old archive suffix (normally "a").
9257 libext="$libext"
9259 # Shared library suffix (normally ".so").
9260 shrext_cmds='$shrext_cmds'
9262 # Executable file suffix (normally "").
9263 exeext="$exeext"
9265 # Additional compiler flags for building library objects.
9266 pic_flag=$lt_lt_prog_compiler_pic
9267 pic_mode=$pic_mode
9269 # What is the maximum length of a command?
9270 max_cmd_len=$lt_cv_sys_max_cmd_len
9272 # Does compiler simultaneously support -c and -o options?
9273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9275 # Must we lock files when doing compilation ?
9276 need_locks=$lt_need_locks
9278 # Do we need the lib prefix for modules?
9279 need_lib_prefix=$need_lib_prefix
9281 # Do we need a version for libraries?
9282 need_version=$need_version
9284 # Whether dlopen is supported.
9285 dlopen_support=$enable_dlopen
9287 # Whether dlopen of programs is supported.
9288 dlopen_self=$enable_dlopen_self
9290 # Whether dlopen of statically linked programs is supported.
9291 dlopen_self_static=$enable_dlopen_self_static
9293 # Compiler flag to prevent dynamic linking.
9294 link_static_flag=$lt_lt_prog_compiler_static
9296 # Compiler flag to turn off builtin functions.
9297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9299 # Compiler flag to allow reflexive dlopens.
9300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9302 # Compiler flag to generate shared objects directly from archives.
9303 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9305 # Compiler flag to generate thread-safe objects.
9306 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9308 # Library versioning type.
9309 version_type=$version_type
9311 # Format of library name prefix.
9312 libname_spec=$lt_libname_spec
9314 # List of archive names. First name is the real one, the rest are links.
9315 # The last name is the one that the linker finds with -lNAME.
9316 library_names_spec=$lt_library_names_spec
9318 # The coded name of the library, if different from the real name.
9319 soname_spec=$lt_soname_spec
9321 # Commands used to build and install an old-style archive.
9322 RANLIB=$lt_RANLIB
9323 old_archive_cmds=$lt_old_archive_cmds
9324 old_postinstall_cmds=$lt_old_postinstall_cmds
9325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9327 # Create an old-style archive from a shared archive.
9328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9330 # Create a temporary old-style archive to link instead of a shared archive.
9331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9333 # Commands used to build and install a shared archive.
9334 archive_cmds=$lt_archive_cmds
9335 archive_expsym_cmds=$lt_archive_expsym_cmds
9336 postinstall_cmds=$lt_postinstall_cmds
9337 postuninstall_cmds=$lt_postuninstall_cmds
9339 # Commands used to build a loadable module (assumed same as above if empty)
9340 module_cmds=$lt_module_cmds
9341 module_expsym_cmds=$lt_module_expsym_cmds
9343 # Commands to strip libraries.
9344 old_striplib=$lt_old_striplib
9345 striplib=$lt_striplib
9347 # Dependencies to place before the objects being linked to create a
9348 # shared library.
9349 predep_objects=$lt_predep_objects
9351 # Dependencies to place after the objects being linked to create a
9352 # shared library.
9353 postdep_objects=$lt_postdep_objects
9355 # Dependencies to place before the objects being linked to create a
9356 # shared library.
9357 predeps=$lt_predeps
9359 # Dependencies to place after the objects being linked to create a
9360 # shared library.
9361 postdeps=$lt_postdeps
9363 # The library search path used internally by the compiler when linking
9364 # a shared library.
9365 compiler_lib_search_path=$lt_compiler_lib_search_path
9367 # Method to check whether dependent libraries are shared objects.
9368 deplibs_check_method=$lt_deplibs_check_method
9370 # Command to use when deplibs_check_method == file_magic.
9371 file_magic_cmd=$lt_file_magic_cmd
9373 # Flag that allows shared libraries with undefined symbols to be built.
9374 allow_undefined_flag=$lt_allow_undefined_flag
9376 # Flag that forces no undefined symbols.
9377 no_undefined_flag=$lt_no_undefined_flag
9379 # Commands used to finish a libtool library installation in a directory.
9380 finish_cmds=$lt_finish_cmds
9382 # Same as above, but a single script fragment to be evaled but not shown.
9383 finish_eval=$lt_finish_eval
9385 # Take the output of nm and produce a listing of raw symbols and C names.
9386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9388 # Transform the output of nm in a proper C declaration
9389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9391 # Transform the output of nm in a C name address pair
9392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9394 # This is the shared library runtime path variable.
9395 runpath_var=$runpath_var
9397 # This is the shared library path variable.
9398 shlibpath_var=$shlibpath_var
9400 # Is shlibpath searched before the hard-coded library search path?
9401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9403 # How to hardcode a shared library path into an executable.
9404 hardcode_action=$hardcode_action
9406 # Whether we should hardcode library paths into libraries.
9407 hardcode_into_libs=$hardcode_into_libs
9409 # Flag to hardcode \$libdir into a binary during linking.
9410 # This must work even if \$libdir does not exist.
9411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9413 # If ld is used when linking, flag to hardcode \$libdir into
9414 # a binary during linking. This must work even if \$libdir does
9415 # not exist.
9416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9418 # Whether we need a single -rpath flag with a separated argument.
9419 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9421 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9422 # resulting binary.
9423 hardcode_direct=$hardcode_direct
9425 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9426 # resulting binary.
9427 hardcode_minus_L=$hardcode_minus_L
9429 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9430 # the resulting binary.
9431 hardcode_shlibpath_var=$hardcode_shlibpath_var
9433 # Set to yes if building a shared library automatically hardcodes DIR into the library
9434 # and all subsequent libraries and executables linked against it.
9435 hardcode_automatic=$hardcode_automatic
9437 # Variables whose values should be saved in libtool wrapper scripts and
9438 # restored at relink time.
9439 variables_saved_for_relink="$variables_saved_for_relink"
9441 # Whether libtool must link a program against all its dependency libraries.
9442 link_all_deplibs=$link_all_deplibs
9444 # Compile-time system search path for libraries
9445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9447 # Run-time system search path for libraries
9448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9450 # Fix the shell variable \$srcfile for the compiler.
9451 fix_srcfile_path="$fix_srcfile_path"
9453 # Set to yes if exported symbols are required.
9454 always_export_symbols=$always_export_symbols
9456 # The commands to list exported symbols.
9457 export_symbols_cmds=$lt_export_symbols_cmds
9459 # The commands to extract the exported symbol list from a shared archive.
9460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9462 # Symbols that should not be listed in the preloaded symbols.
9463 exclude_expsyms=$lt_exclude_expsyms
9465 # Symbols that must always be exported.
9466 include_expsyms=$lt_include_expsyms
9468 # ### END LIBTOOL CONFIG
9470 __EOF__
9473 case $host_os in
9474 aix3*)
9475 cat <<\EOF >> "$cfgfile"
9477 # AIX sometimes has problems with the GCC collect2 program. For some
9478 # reason, if we set the COLLECT_NAMES environment variable, the problems
9479 # vanish in a puff of smoke.
9480 if test "X${COLLECT_NAMES+set}" != Xset; then
9481 COLLECT_NAMES=
9482 export COLLECT_NAMES
9486 esac
9488 # We use sed instead of cat because bash on DJGPP gets confused if
9489 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9490 # text mode, it properly converts lines to CR/LF. This bash problem
9491 # is reportedly fixed, but why not run on old versions too?
9492 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9494 mv -f "$cfgfile" "$ofile" || \
9495 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9496 chmod +x "$ofile"
9498 else
9499 # If there is no Makefile yet, we rely on a make rule to execute
9500 # `config.status --recheck' to rerun these tests and create the
9501 # libtool script then.
9502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9503 if test -f "$ltmain_in"; then
9504 test -f Makefile && make "$ltmain"
9509 ac_ext=cc
9510 ac_cpp='$CXXCPP $CPPFLAGS'
9511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9515 CC="$lt_save_CC"
9518 # Check whether --with-tags or --without-tags was given.
9519 if test "${with_tags+set}" = set; then
9520 withval="$with_tags"
9521 tagnames="$withval"
9524 if test -f "$ltmain" && test -n "$tagnames"; then
9525 if test ! -f "${ofile}"; then
9526 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9527 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9530 if test -z "$LTCC"; then
9531 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9532 if test -z "$LTCC"; then
9533 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9534 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9535 else
9536 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9537 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9541 # Extract list of available tagged configurations in $ofile.
9542 # Note that this assumes the entire list is on one line.
9543 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9546 for tagname in $tagnames; do
9547 IFS="$lt_save_ifs"
9548 # Check whether tagname contains only valid characters
9549 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9550 "") ;;
9551 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9552 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9553 { (exit 1); exit 1; }; }
9555 esac
9557 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9558 then
9559 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9560 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9561 { (exit 1); exit 1; }; }
9564 # Update the list of available tags.
9565 if test -n "$tagname"; then
9566 echo appending configuration tag \"$tagname\" to $ofile
9568 case $tagname in
9569 CXX)
9570 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9571 ac_ext=cc
9572 ac_cpp='$CXXCPP $CPPFLAGS'
9573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9580 archive_cmds_need_lc_CXX=no
9581 allow_undefined_flag_CXX=
9582 always_export_symbols_CXX=no
9583 archive_expsym_cmds_CXX=
9584 export_dynamic_flag_spec_CXX=
9585 hardcode_direct_CXX=no
9586 hardcode_libdir_flag_spec_CXX=
9587 hardcode_libdir_flag_spec_ld_CXX=
9588 hardcode_libdir_separator_CXX=
9589 hardcode_minus_L_CXX=no
9590 hardcode_automatic_CXX=no
9591 module_cmds_CXX=
9592 module_expsym_cmds_CXX=
9593 link_all_deplibs_CXX=unknown
9594 old_archive_cmds_CXX=$old_archive_cmds
9595 no_undefined_flag_CXX=
9596 whole_archive_flag_spec_CXX=
9597 enable_shared_with_static_runtimes_CXX=no
9599 # Dependencies to place before and after the object being linked:
9600 predep_objects_CXX=
9601 postdep_objects_CXX=
9602 predeps_CXX=
9603 postdeps_CXX=
9604 compiler_lib_search_path_CXX=
9606 # Source file extension for C++ test sources.
9607 ac_ext=cc
9609 # Object file extension for compiled C++ test sources.
9610 objext=o
9611 objext_CXX=$objext
9613 # Code to be used in simple compile tests
9614 lt_simple_compile_test_code="int some_variable = 0;\n"
9616 # Code to be used in simple link tests
9617 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9621 # If no C compiler was specified, use CC.
9622 LTCC=${LTCC-"$CC"}
9624 # Allow CC to be a program name with arguments.
9625 compiler=$CC
9628 # Allow CC to be a program name with arguments.
9629 lt_save_CC=$CC
9630 lt_save_LD=$LD
9631 lt_save_GCC=$GCC
9632 GCC=$GXX
9633 lt_save_with_gnu_ld=$with_gnu_ld
9634 lt_save_path_LD=$lt_cv_path_LD
9635 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9636 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9637 else
9638 unset lt_cv_prog_gnu_ld
9640 if test -n "${lt_cv_path_LDCXX+set}"; then
9641 lt_cv_path_LD=$lt_cv_path_LDCXX
9642 else
9643 unset lt_cv_path_LD
9645 test -z "${LDCXX+set}" || LD=$LDCXX
9646 CC=${CXX-"c++"}
9647 compiler=$CC
9648 compiler_CXX=$CC
9649 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9651 # We don't want -fno-exception wen compiling C++ code, so set the
9652 # no_builtin_flag separately
9653 if test "$GXX" = yes; then
9654 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9655 else
9656 lt_prog_compiler_no_builtin_flag_CXX=
9659 if test "$GXX" = yes; then
9660 # Set up default GNU C++ configuration
9663 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9664 if test "${with_gnu_ld+set}" = set; then
9665 withval="$with_gnu_ld"
9666 test "$withval" = no || with_gnu_ld=yes
9667 else
9668 with_gnu_ld=no
9670 ac_prog=ld
9671 if test "$GCC" = yes; then
9672 # Check if gcc -print-prog-name=ld gives a path.
9673 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9674 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9675 case $host in
9676 *-*-mingw*)
9677 # gcc leaves a trailing carriage return which upsets mingw
9678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9681 esac
9682 case $ac_prog in
9683 # Accept absolute paths.
9684 [\\/]* | ?:[\\/]*)
9685 re_direlt='/[^/][^/]*/\.\./'
9686 # Canonicalize the pathname of ld
9687 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9688 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9689 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9690 done
9691 test -z "$LD" && LD="$ac_prog"
9694 # If it fails, then pretend we aren't using GCC.
9695 ac_prog=ld
9698 # If it is relative, then search for the first ld in PATH.
9699 with_gnu_ld=unknown
9701 esac
9702 elif test "$with_gnu_ld" = yes; then
9703 echo "$as_me:$LINENO: checking for GNU ld" >&5
9704 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9705 else
9706 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9707 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9709 if test "${lt_cv_path_LD+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712 if test -z "$LD"; then
9713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9714 for ac_dir in $PATH; do
9715 IFS="$lt_save_ifs"
9716 test -z "$ac_dir" && ac_dir=.
9717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9718 lt_cv_path_LD="$ac_dir/$ac_prog"
9719 # Check to see if the program is GNU ld. I'd rather use --version,
9720 # but apparently some GNU ld's only accept -v.
9721 # Break only if it was the GNU/non-GNU ld that we prefer.
9722 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9723 *GNU* | *'with BFD'*)
9724 test "$with_gnu_ld" != no && break
9727 test "$with_gnu_ld" != yes && break
9729 esac
9731 done
9732 IFS="$lt_save_ifs"
9733 else
9734 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9738 LD="$lt_cv_path_LD"
9739 if test -n "$LD"; then
9740 echo "$as_me:$LINENO: result: $LD" >&5
9741 echo "${ECHO_T}$LD" >&6
9742 else
9743 echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6
9746 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9747 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9748 { (exit 1); exit 1; }; }
9749 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9750 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9751 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9755 case `$LD -v 2>&1 </dev/null` in
9756 *GNU* | *'with BFD'*)
9757 lt_cv_prog_gnu_ld=yes
9760 lt_cv_prog_gnu_ld=no
9762 esac
9764 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9765 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9766 with_gnu_ld=$lt_cv_prog_gnu_ld
9770 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9771 # archiving commands below assume that GNU ld is being used.
9772 if test "$with_gnu_ld" = yes; then
9773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 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'
9776 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9779 # If archive_cmds runs LD, not CC, wlarc should be empty
9780 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9781 # investigate it a little bit more. (MM)
9782 wlarc='${wl}'
9784 # ancient GNU ld didn't support --whole-archive et. al.
9785 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9786 grep 'no-whole-archive' > /dev/null; then
9787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9788 else
9789 whole_archive_flag_spec_CXX=
9791 else
9792 with_gnu_ld=no
9793 wlarc=
9795 # A generic and very simple default shared library creation
9796 # command for GNU C++ for the case where it uses the native
9797 # linker, instead of GNU ld. If possible, this setting should
9798 # overridden to take advantage of the native linker features on
9799 # the platform it is being used on.
9800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9803 # Commands to make compiler produce verbose output that lists
9804 # what "hidden" libraries, object files and flags are used when
9805 # linking a shared library.
9806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9808 else
9809 GXX=no
9810 with_gnu_ld=no
9811 wlarc=
9814 # PORTME: fill in a description of your system's C++ link characteristics
9815 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9816 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9817 ld_shlibs_CXX=yes
9818 case $host_os in
9819 aix3*)
9820 # FIXME: insert proper C++ library support
9821 ld_shlibs_CXX=no
9823 aix4* | aix5*)
9824 if test "$host_cpu" = ia64; then
9825 # On IA64, the linker does run time linking by default, so we don't
9826 # have to do anything special.
9827 aix_use_runtimelinking=no
9828 exp_sym_flag='-Bexport'
9829 no_entry_flag=""
9830 else
9831 aix_use_runtimelinking=no
9833 # Test if we are trying to use run time linking or normal
9834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9835 # need to do runtime linking.
9836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9837 for ld_flag in $LDFLAGS; do
9838 case $ld_flag in
9839 *-brtl*)
9840 aix_use_runtimelinking=yes
9841 break
9843 esac
9844 done
9845 esac
9847 exp_sym_flag='-bexport'
9848 no_entry_flag='-bnoentry'
9851 # When large executables or shared objects are built, AIX ld can
9852 # have problems creating the table of contents. If linking a library
9853 # or program results in "error TOC overflow" add -mminimal-toc to
9854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9857 archive_cmds_CXX=''
9858 hardcode_direct_CXX=yes
9859 hardcode_libdir_separator_CXX=':'
9860 link_all_deplibs_CXX=yes
9862 if test "$GXX" = yes; then
9863 case $host_os in aix4.012|aix4.012.*)
9864 # We only want to do this on AIX 4.2 and lower, the check
9865 # below for broken collect2 doesn't work under 4.3+
9866 collect2name=`${CC} -print-prog-name=collect2`
9867 if test -f "$collect2name" && \
9868 strings "$collect2name" | grep resolve_lib_name >/dev/null
9869 then
9870 # We have reworked collect2
9871 hardcode_direct_CXX=yes
9872 else
9873 # We have old collect2
9874 hardcode_direct_CXX=unsupported
9875 # It fails to find uninstalled libraries when the uninstalled
9876 # path is not listed in the libpath. Setting hardcode_minus_L
9877 # to unsupported forces relinking
9878 hardcode_minus_L_CXX=yes
9879 hardcode_libdir_flag_spec_CXX='-L$libdir'
9880 hardcode_libdir_separator_CXX=
9882 esac
9883 shared_flag='-shared'
9884 else
9885 # not using gcc
9886 if test "$host_cpu" = ia64; then
9887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9888 # chokes on -Wl,-G. The following line is correct:
9889 shared_flag='-G'
9890 else
9891 if test "$aix_use_runtimelinking" = yes; then
9892 shared_flag='${wl}-G'
9893 else
9894 shared_flag='${wl}-bM:SRE'
9899 # It seems that -bexpall does not export symbols beginning with
9900 # underscore (_), so it is better to generate a list of symbols to export.
9901 always_export_symbols_CXX=yes
9902 if test "$aix_use_runtimelinking" = yes; then
9903 # Warning - without using the other runtime loading flags (-brtl),
9904 # -berok will link without error, but may produce a broken library.
9905 allow_undefined_flag_CXX='-berok'
9906 # Determine the default libpath from the value encoded in an empty executable.
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9915 main ()
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_cxx_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9947 # Check for a 64-bit object if we didn't find anything.
9948 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; }
9949 }'`; fi
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9955 rm -f conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9961 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"
9962 else
9963 if test "$host_cpu" = ia64; then
9964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9965 allow_undefined_flag_CXX="-z nodefs"
9966 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"
9967 else
9968 # Determine the default libpath from the value encoded in an empty executable.
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9977 main ()
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_cxx_werror_flag"
9994 || test ! -s conftest.err'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10009 # Check for a 64-bit object if we didn't find anything.
10010 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; }
10011 }'`; fi
10012 else
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10017 rm -f conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10021 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10022 # Warning - without using the other run time loading flags,
10023 # -berok will link without error, but may produce a broken library.
10024 no_undefined_flag_CXX=' ${wl}-bernotok'
10025 allow_undefined_flag_CXX=' ${wl}-berok'
10026 # -bexpall does not export symbols beginning with underscore (_)
10027 always_export_symbols_CXX=yes
10028 # Exported symbols can be pulled into shared objects from archives
10029 whole_archive_flag_spec_CXX=' '
10030 archive_cmds_need_lc_CXX=yes
10031 # This is similar to how AIX traditionally builds it's shared libraries.
10032 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'
10036 chorus*)
10037 case $cc_basename in
10039 # FIXME: insert proper C++ library support
10040 ld_shlibs_CXX=no
10042 esac
10045 cygwin* | mingw* | pw32*)
10046 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10047 # as there is no search path for DLLs.
10048 hardcode_libdir_flag_spec_CXX='-L$libdir'
10049 allow_undefined_flag_CXX=unsupported
10050 always_export_symbols_CXX=no
10051 enable_shared_with_static_runtimes_CXX=yes
10053 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10054 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'
10055 # If the export-symbols file already is a .def file (1st line
10056 # is EXPORTS), use it as is; otherwise, prepend...
10057 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10058 cp $export_symbols $output_objdir/$soname.def;
10059 else
10060 echo EXPORTS > $output_objdir/$soname.def;
10061 cat $export_symbols >> $output_objdir/$soname.def;
10063 $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'
10064 else
10065 ld_shlibs_CXX=no
10069 darwin* | rhapsody*)
10070 if test "$GXX" = yes; then
10071 archive_cmds_need_lc_CXX=no
10072 case "$host_os" in
10073 rhapsody* | darwin1.[012])
10074 allow_undefined_flag_CXX='-undefined suppress'
10076 *) # Darwin 1.3 on
10077 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10078 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10079 else
10080 case ${MACOSX_DEPLOYMENT_TARGET} in
10081 10.[012])
10082 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10084 10.*)
10085 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10087 esac
10090 esac
10091 lt_int_apple_cc_single_mod=no
10092 output_verbose_link_cmd='echo'
10093 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10094 lt_int_apple_cc_single_mod=yes
10096 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10097 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10098 else
10099 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10101 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10103 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10104 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10105 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}'
10106 else
10107 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10109 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}'
10110 hardcode_direct_CXX=no
10111 hardcode_automatic_CXX=yes
10112 hardcode_shlibpath_var_CXX=unsupported
10113 whole_archive_flag_spec_CXX='-all_load $convenience'
10114 link_all_deplibs_CXX=yes
10115 else
10116 ld_shlibs_CXX=no
10120 dgux*)
10121 case $cc_basename in
10122 ec++)
10123 # FIXME: insert proper C++ library support
10124 ld_shlibs_CXX=no
10126 ghcx)
10127 # Green Hills C++ Compiler
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10132 # FIXME: insert proper C++ library support
10133 ld_shlibs_CXX=no
10135 esac
10137 freebsd12*)
10138 # C++ shared libraries reported to be fairly broken before switch to ELF
10139 ld_shlibs_CXX=no
10141 freebsd-elf*)
10142 archive_cmds_need_lc_CXX=no
10144 freebsd* | kfreebsd*-gnu)
10145 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10146 # conventions
10147 ld_shlibs_CXX=yes
10149 gnu*)
10151 hpux9*)
10152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10153 hardcode_libdir_separator_CXX=:
10154 export_dynamic_flag_spec_CXX='${wl}-E'
10155 hardcode_direct_CXX=yes
10156 hardcode_minus_L_CXX=yes # Not in the search PATH,
10157 # but as the default
10158 # location of the library.
10160 case $cc_basename in
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10165 aCC)
10166 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'
10167 # Commands to make compiler produce verbose output that lists
10168 # what "hidden" libraries, object files and flags are used when
10169 # linking a shared library.
10171 # There doesn't appear to be a way to prevent this compiler from
10172 # explicitly linking system object files so we need to strip them
10173 # from the output so that they don't get included in the library
10174 # dependencies.
10175 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'
10178 if test "$GXX" = yes; then
10179 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'
10180 else
10181 # FIXME: insert proper C++ library support
10182 ld_shlibs_CXX=no
10185 esac
10187 hpux10*|hpux11*)
10188 if test $with_gnu_ld = no; then
10189 case "$host_cpu" in
10190 hppa*64*)
10191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10192 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10193 hardcode_libdir_separator_CXX=:
10195 ia64*)
10196 hardcode_libdir_flag_spec_CXX='-L$libdir'
10199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10200 hardcode_libdir_separator_CXX=:
10201 export_dynamic_flag_spec_CXX='${wl}-E'
10203 esac
10205 case "$host_cpu" in
10206 hppa*64*)
10207 hardcode_direct_CXX=no
10208 hardcode_shlibpath_var_CXX=no
10210 ia64*)
10211 hardcode_direct_CXX=no
10212 hardcode_shlibpath_var_CXX=no
10213 hardcode_minus_L_CXX=yes # Not in the search PATH,
10214 # but as the default
10215 # location of the library.
10218 hardcode_direct_CXX=yes
10219 hardcode_minus_L_CXX=yes # Not in the search PATH,
10220 # but as the default
10221 # location of the library.
10223 esac
10225 case $cc_basename in
10227 # FIXME: insert proper C++ library support
10228 ld_shlibs_CXX=no
10230 aCC)
10231 case "$host_cpu" in
10232 hppa*64*|ia64*)
10233 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10236 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10238 esac
10239 # Commands to make compiler produce verbose output that lists
10240 # what "hidden" libraries, object files and flags are used when
10241 # linking a shared library.
10243 # There doesn't appear to be a way to prevent this compiler from
10244 # explicitly linking system object files so we need to strip them
10245 # from the output so that they don't get included in the library
10246 # dependencies.
10247 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'
10250 if test "$GXX" = yes; then
10251 if test $with_gnu_ld = no; then
10252 case "$host_cpu" in
10253 ia64*|hppa*64*)
10254 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10257 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'
10259 esac
10261 else
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10266 esac
10268 irix5* | irix6*)
10269 case $cc_basename in
10271 # SGI C++
10272 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'
10274 # Archives containing C++ object files must be created using
10275 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10276 # necessary to make sure instantiated templates are included
10277 # in the archive.
10278 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10281 if test "$GXX" = yes; then
10282 if test "$with_gnu_ld" = no; then
10283 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'
10284 else
10285 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'
10288 link_all_deplibs_CXX=yes
10290 esac
10291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10292 hardcode_libdir_separator_CXX=:
10294 linux*)
10295 case $cc_basename in
10296 KCC)
10297 # Kuck and Associates, Inc. (KAI) C++ Compiler
10299 # KCC will only create a shared library if the output file
10300 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10301 # to its proper name (with version) after linking.
10302 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'
10303 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'
10304 # Commands to make compiler produce verbose output that lists
10305 # what "hidden" libraries, object files and flags are used when
10306 # linking a shared library.
10308 # There doesn't appear to be a way to prevent this compiler from
10309 # explicitly linking system object files so we need to strip them
10310 # from the output so that they don't get included in the library
10311 # dependencies.
10312 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'
10314 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10317 # Archives containing C++ object files must be created using
10318 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10319 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10321 icpc)
10322 # Intel C++
10323 with_gnu_ld=yes
10324 archive_cmds_need_lc_CXX=no
10325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326 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'
10327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10331 cxx)
10332 # Compaq C++
10333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10334 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'
10336 runpath_var=LD_RUN_PATH
10337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10338 hardcode_libdir_separator_CXX=:
10340 # Commands to make compiler produce verbose output that lists
10341 # what "hidden" libraries, object files and flags are used when
10342 # linking a shared library.
10344 # There doesn't appear to be a way to prevent this compiler from
10345 # explicitly linking system object files so we need to strip them
10346 # from the output so that they don't get included in the library
10347 # dependencies.
10348 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'
10350 esac
10352 lynxos*)
10353 # FIXME: insert proper C++ library support
10354 ld_shlibs_CXX=no
10356 m88k*)
10357 # FIXME: insert proper C++ library support
10358 ld_shlibs_CXX=no
10360 mvs*)
10361 case $cc_basename in
10362 cxx)
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10367 # FIXME: insert proper C++ library support
10368 ld_shlibs_CXX=no
10370 esac
10372 netbsd*)
10373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10374 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10375 wlarc=
10376 hardcode_libdir_flag_spec_CXX='-R$libdir'
10377 hardcode_direct_CXX=yes
10378 hardcode_shlibpath_var_CXX=no
10380 # Workaround some broken pre-1.5 toolchains
10381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10383 osf3*)
10384 case $cc_basename in
10385 KCC)
10386 # Kuck and Associates, Inc. (KAI) C++ Compiler
10388 # KCC will only create a shared library if the output file
10389 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10390 # to its proper name (with version) after linking.
10391 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'
10393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10394 hardcode_libdir_separator_CXX=:
10396 # Archives containing C++ object files must be created using
10397 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10398 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401 RCC)
10402 # Rational C++ 2.4.1
10403 # FIXME: insert proper C++ library support
10404 ld_shlibs_CXX=no
10406 cxx)
10407 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10408 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'
10410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10411 hardcode_libdir_separator_CXX=:
10413 # Commands to make compiler produce verbose output that lists
10414 # what "hidden" libraries, object files and flags are used when
10415 # linking a shared library.
10417 # There doesn't appear to be a way to prevent this compiler from
10418 # explicitly linking system object files so we need to strip them
10419 # from the output so that they don't get included in the library
10420 # dependencies.
10421 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'
10424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10426 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'
10428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10429 hardcode_libdir_separator_CXX=:
10431 # Commands to make compiler produce verbose output that lists
10432 # what "hidden" libraries, object files and flags are used when
10433 # linking a shared library.
10434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10436 else
10437 # FIXME: insert proper C++ library support
10438 ld_shlibs_CXX=no
10441 esac
10443 osf4* | osf5*)
10444 case $cc_basename in
10445 KCC)
10446 # Kuck and Associates, Inc. (KAI) C++ Compiler
10448 # KCC will only create a shared library if the output file
10449 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10450 # to its proper name (with version) after linking.
10451 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'
10453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10454 hardcode_libdir_separator_CXX=:
10456 # Archives containing C++ object files must be created using
10457 # the KAI C++ compiler.
10458 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10460 RCC)
10461 # Rational C++ 2.4.1
10462 # FIXME: insert proper C++ library support
10463 ld_shlibs_CXX=no
10465 cxx)
10466 allow_undefined_flag_CXX=' -expect_unresolved \*'
10467 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'
10468 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10469 echo "-hidden">> $lib.exp~
10470 $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~
10471 $rm $lib.exp'
10473 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10474 hardcode_libdir_separator_CXX=:
10476 # Commands to make compiler produce verbose output that lists
10477 # what "hidden" libraries, object files and flags are used when
10478 # linking a shared library.
10480 # There doesn't appear to be a way to prevent this compiler from
10481 # explicitly linking system object files so we need to strip them
10482 # from the output so that they don't get included in the library
10483 # dependencies.
10484 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'
10487 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10488 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10489 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'
10491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10492 hardcode_libdir_separator_CXX=:
10494 # Commands to make compiler produce verbose output that lists
10495 # what "hidden" libraries, object files and flags are used when
10496 # linking a shared library.
10497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10499 else
10500 # FIXME: insert proper C++ library support
10501 ld_shlibs_CXX=no
10504 esac
10506 psos*)
10507 # FIXME: insert proper C++ library support
10508 ld_shlibs_CXX=no
10510 sco*)
10511 archive_cmds_need_lc_CXX=no
10512 case $cc_basename in
10514 # FIXME: insert proper C++ library support
10515 ld_shlibs_CXX=no
10518 # FIXME: insert proper C++ library support
10519 ld_shlibs_CXX=no
10521 esac
10523 sunos4*)
10524 case $cc_basename in
10526 # Sun C++ 4.x
10527 # FIXME: insert proper C++ library support
10528 ld_shlibs_CXX=no
10530 lcc)
10531 # Lucid
10532 # FIXME: insert proper C++ library support
10533 ld_shlibs_CXX=no
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10539 esac
10541 solaris*)
10542 case $cc_basename in
10544 # Sun C++ 4.2, 5.x and Centerline C++
10545 no_undefined_flag_CXX=' -zdefs'
10546 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10547 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10548 $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'
10550 hardcode_libdir_flag_spec_CXX='-R$libdir'
10551 hardcode_shlibpath_var_CXX=no
10552 case $host_os in
10553 solaris2.0-5 | solaris2.0-5.*) ;;
10555 # The C++ compiler is used as linker so we must use $wl
10556 # flag to pass the commands to the underlying system
10557 # linker.
10558 # Supported since Solaris 2.6 (maybe 2.5.1?)
10559 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10561 esac
10562 link_all_deplibs_CXX=yes
10564 # Commands to make compiler produce verbose output that lists
10565 # what "hidden" libraries, object files and flags are used when
10566 # linking a shared library.
10568 # There doesn't appear to be a way to prevent this compiler from
10569 # explicitly linking system object files so we need to strip them
10570 # from the output so that they don't get included in the library
10571 # dependencies.
10572 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'
10574 # Archives containing C++ object files must be created using
10575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10576 # necessary to make sure instantiated templates are included
10577 # in the archive.
10578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10580 gcx)
10581 # Green Hills C++ Compiler
10582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10584 # The C++ compiler must be used to create the archive.
10585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10588 # GNU C++ compiler with Solaris linker
10589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10591 if $CC --version | grep -v '^2\.7' > /dev/null; then
10592 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10593 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10594 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10596 # Commands to make compiler produce verbose output that lists
10597 # what "hidden" libraries, object files and flags are used when
10598 # linking a shared library.
10599 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10600 else
10601 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10602 # platform.
10603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10607 # Commands to make compiler produce verbose output that lists
10608 # what "hidden" libraries, object files and flags are used when
10609 # linking a shared library.
10610 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10616 esac
10618 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10619 archive_cmds_need_lc_CXX=no
10621 tandem*)
10622 case $cc_basename in
10623 NCC)
10624 # NonStop-UX NCC 3.20
10625 # FIXME: insert proper C++ library support
10626 ld_shlibs_CXX=no
10629 # FIXME: insert proper C++ library support
10630 ld_shlibs_CXX=no
10632 esac
10634 vxworks*)
10635 # FIXME: insert proper C++ library support
10636 ld_shlibs_CXX=no
10639 # FIXME: insert proper C++ library support
10640 ld_shlibs_CXX=no
10642 esac
10643 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10644 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10645 test "$ld_shlibs_CXX" = no && can_build_shared=no
10647 GCC_CXX="$GXX"
10648 LD_CXX="$LD"
10651 cat > conftest.$ac_ext <<EOF
10652 class Foo
10654 public:
10655 Foo (void) { a = 0; }
10656 private:
10657 int a;
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; then
10666 # Parse the compiler output and extract the necessary
10667 # objects, libraries and library flags.
10669 # Sentinel used to keep track of whether or not we are before
10670 # the conftest object file.
10671 pre_test_object_deps_done=no
10673 # The `*' in the case matches for architectures that use `case' in
10674 # $output_verbose_cmd can trigger glob expansion during the loop
10675 # eval without this substitution.
10676 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10678 for p in `eval $output_verbose_link_cmd`; do
10679 case $p in
10681 -L* | -R* | -l*)
10682 # Some compilers place space between "-{L,R}" and the path.
10683 # Remove the space.
10684 if test $p = "-L" \
10685 || test $p = "-R"; then
10686 prev=$p
10687 continue
10688 else
10689 prev=
10692 if test "$pre_test_object_deps_done" = no; then
10693 case $p in
10694 -L* | -R*)
10695 # Internal compiler library paths should come after those
10696 # provided the user. The postdeps already come after the
10697 # user supplied libs so there is no need to process them.
10698 if test -z "$compiler_lib_search_path_CXX"; then
10699 compiler_lib_search_path_CXX="${prev}${p}"
10700 else
10701 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10704 # The "-l" case would never come before the object being
10705 # linked, so don't bother handling this case.
10706 esac
10707 else
10708 if test -z "$postdeps_CXX"; then
10709 postdeps_CXX="${prev}${p}"
10710 else
10711 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10716 *.$objext)
10717 # This assumes that the test object file only shows up
10718 # once in the compiler output.
10719 if test "$p" = "conftest.$objext"; then
10720 pre_test_object_deps_done=yes
10721 continue
10724 if test "$pre_test_object_deps_done" = no; then
10725 if test -z "$predep_objects_CXX"; then
10726 predep_objects_CXX="$p"
10727 else
10728 predep_objects_CXX="$predep_objects_CXX $p"
10730 else
10731 if test -z "$postdep_objects_CXX"; then
10732 postdep_objects_CXX="$p"
10733 else
10734 postdep_objects_CXX="$postdep_objects_CXX $p"
10739 *) ;; # Ignore the rest.
10741 esac
10742 done
10744 # Clean up.
10745 rm -f a.out a.exe
10746 else
10747 echo "libtool.m4: error: problem compiling CXX test program"
10750 $rm -f confest.$objext
10752 case " $postdeps_CXX " in
10753 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10754 esac
10756 lt_prog_compiler_wl_CXX=
10757 lt_prog_compiler_pic_CXX=
10758 lt_prog_compiler_static_CXX=
10760 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10763 # C++ specific cases for pic, static, wl, etc.
10764 if test "$GXX" = yes; then
10765 lt_prog_compiler_wl_CXX='-Wl,'
10766 lt_prog_compiler_static_CXX='-static'
10768 case $host_os in
10769 aix*)
10770 # All AIX code is PIC.
10771 if test "$host_cpu" = ia64; then
10772 # AIX 5 now supports IA64 processor
10773 lt_prog_compiler_static_CXX='-Bstatic'
10776 amigaos*)
10777 # FIXME: we need at least 68020 code to build shared libraries, but
10778 # adding the `-m68020' flag to GCC prevents building anything better,
10779 # like `-m68040'.
10780 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10783 # PIC is the default for these OSes.
10785 mingw* | os2* | pw32*)
10786 # This hack is so that the source file can tell whether it is being
10787 # built for inclusion in a dll (and should export symbols for example).
10788 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10790 darwin* | rhapsody*)
10791 # PIC is the default on this platform
10792 # Common symbols not allowed in MH_DYLIB files
10793 lt_prog_compiler_pic_CXX='-fno-common'
10795 *djgpp*)
10796 # DJGPP does not support shared libraries at all
10797 lt_prog_compiler_pic_CXX=
10799 sysv4*MP*)
10800 if test -d /usr/nec; then
10801 lt_prog_compiler_pic_CXX=-Kconform_pic
10804 hpux*)
10805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10806 # not for PA HP-UX.
10807 case "$host_cpu" in
10808 hppa*64*|ia64*)
10811 lt_prog_compiler_pic_CXX='-fPIC'
10813 esac
10816 lt_prog_compiler_pic_CXX='-fPIC'
10818 esac
10819 else
10820 case $host_os in
10821 aix4* | aix5*)
10822 # All AIX code is PIC.
10823 if test "$host_cpu" = ia64; then
10824 # AIX 5 now supports IA64 processor
10825 lt_prog_compiler_static_CXX='-Bstatic'
10826 else
10827 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10830 chorus*)
10831 case $cc_basename in
10832 cxch68)
10833 # Green Hills C++ Compiler
10834 # _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"
10836 esac
10838 dgux*)
10839 case $cc_basename in
10840 ec++)
10841 lt_prog_compiler_pic_CXX='-KPIC'
10843 ghcx)
10844 # Green Hills C++ Compiler
10845 lt_prog_compiler_pic_CXX='-pic'
10849 esac
10851 freebsd* | kfreebsd*-gnu)
10852 # FreeBSD uses GNU C++
10854 hpux9* | hpux10* | hpux11*)
10855 case $cc_basename in
10857 lt_prog_compiler_wl_CXX='-Wl,'
10858 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10859 if test "$host_cpu" != ia64; then
10860 lt_prog_compiler_pic_CXX='+Z'
10863 aCC)
10864 lt_prog_compiler_wl_CXX='-Wl,'
10865 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10866 case "$host_cpu" in
10867 hppa*64*|ia64*)
10868 # +Z the default
10871 lt_prog_compiler_pic_CXX='+Z'
10873 esac
10877 esac
10879 irix5* | irix6* | nonstopux*)
10880 case $cc_basename in
10882 lt_prog_compiler_wl_CXX='-Wl,'
10883 lt_prog_compiler_static_CXX='-non_shared'
10884 # CC pic flag -KPIC is the default.
10888 esac
10890 linux*)
10891 case $cc_basename in
10892 KCC)
10893 # KAI C++ Compiler
10894 lt_prog_compiler_wl_CXX='--backend -Wl,'
10895 lt_prog_compiler_pic_CXX='-fPIC'
10897 icpc)
10898 # Intel C++
10899 lt_prog_compiler_wl_CXX='-Wl,'
10900 lt_prog_compiler_pic_CXX='-KPIC'
10901 lt_prog_compiler_static_CXX='-static'
10903 cxx)
10904 # Compaq C++
10905 # Make sure the PIC flag is empty. It appears that all Alpha
10906 # Linux and Compaq Tru64 Unix objects are PIC.
10907 lt_prog_compiler_pic_CXX=
10908 lt_prog_compiler_static_CXX='-non_shared'
10912 esac
10914 lynxos*)
10916 m88k*)
10918 mvs*)
10919 case $cc_basename in
10920 cxx)
10921 lt_prog_compiler_pic_CXX='-W c,exportall'
10925 esac
10927 netbsd*)
10929 osf3* | osf4* | osf5*)
10930 case $cc_basename in
10931 KCC)
10932 lt_prog_compiler_wl_CXX='--backend -Wl,'
10934 RCC)
10935 # Rational C++ 2.4.1
10936 lt_prog_compiler_pic_CXX='-pic'
10938 cxx)
10939 # Digital/Compaq C++
10940 lt_prog_compiler_wl_CXX='-Wl,'
10941 # Make sure the PIC flag is empty. It appears that all Alpha
10942 # Linux and Compaq Tru64 Unix objects are PIC.
10943 lt_prog_compiler_pic_CXX=
10944 lt_prog_compiler_static_CXX='-non_shared'
10948 esac
10950 psos*)
10952 sco*)
10953 case $cc_basename in
10955 lt_prog_compiler_pic_CXX='-fPIC'
10959 esac
10961 solaris*)
10962 case $cc_basename in
10964 # Sun C++ 4.2, 5.x and Centerline C++
10965 lt_prog_compiler_pic_CXX='-KPIC'
10966 lt_prog_compiler_static_CXX='-Bstatic'
10967 lt_prog_compiler_wl_CXX='-Qoption ld '
10969 gcx)
10970 # Green Hills C++ Compiler
10971 lt_prog_compiler_pic_CXX='-PIC'
10975 esac
10977 sunos4*)
10978 case $cc_basename in
10980 # Sun C++ 4.x
10981 lt_prog_compiler_pic_CXX='-pic'
10982 lt_prog_compiler_static_CXX='-Bstatic'
10984 lcc)
10985 # Lucid
10986 lt_prog_compiler_pic_CXX='-pic'
10990 esac
10992 tandem*)
10993 case $cc_basename in
10994 NCC)
10995 # NonStop-UX NCC 3.20
10996 lt_prog_compiler_pic_CXX='-KPIC'
11000 esac
11002 unixware*)
11004 vxworks*)
11007 lt_prog_compiler_can_build_shared_CXX=no
11009 esac
11012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11013 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11016 # Check to make sure the PIC flag actually works.
11018 if test -n "$lt_prog_compiler_pic_CXX"; then
11020 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11021 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11022 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025 lt_prog_compiler_pic_works_CXX=no
11026 ac_outfile=conftest.$ac_objext
11027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11028 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11029 # Insert the option either (1) after the last *FLAGS variable, or
11030 # (2) before a word containing "conftest.", or (3) at the end.
11031 # Note that $ac_compile itself does not contain backslashes and begins
11032 # with a dollar sign (not a hyphen), so the echo should work correctly.
11033 # The option is referenced via a variable to avoid confusing sed.
11034 lt_compile=`echo "$ac_compile" | $SED \
11035 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11037 -e 's:$: $lt_compiler_flag:'`
11038 (eval echo "\"\$as_me:11038: $lt_compile\"" >&5)
11039 (eval "$lt_compile" 2>conftest.err)
11040 ac_status=$?
11041 cat conftest.err >&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 if (exit $ac_status) && test -s "$ac_outfile"; then
11044 # The compiler can only warn and ignore the option if not recognized
11045 # So say no if there are warnings
11046 if test ! -s conftest.err; then
11047 lt_prog_compiler_pic_works_CXX=yes
11050 $rm conftest*
11053 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11054 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11056 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11057 case $lt_prog_compiler_pic_CXX in
11058 "" | " "*) ;;
11059 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11060 esac
11061 else
11062 lt_prog_compiler_pic_CXX=
11063 lt_prog_compiler_can_build_shared_CXX=no
11067 case "$host_os" in
11068 # For platforms which do not support PIC, -DPIC is meaningless:
11069 *djgpp*)
11070 lt_prog_compiler_pic_CXX=
11073 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11075 esac
11077 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11079 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082 lt_cv_prog_compiler_c_o_CXX=no
11083 $rm -r conftest 2>/dev/null
11084 mkdir conftest
11085 cd conftest
11086 mkdir out
11087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11089 lt_compiler_flag="-o out/conftest2.$ac_objext"
11090 # Insert the option either (1) after the last *FLAGS variable, or
11091 # (2) before a word containing "conftest.", or (3) at the end.
11092 # Note that $ac_compile itself does not contain backslashes and begins
11093 # with a dollar sign (not a hyphen), so the echo should work correctly.
11094 lt_compile=`echo "$ac_compile" | $SED \
11095 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11097 -e 's:$: $lt_compiler_flag:'`
11098 (eval echo "\"\$as_me:11098: $lt_compile\"" >&5)
11099 (eval "$lt_compile" 2>out/conftest.err)
11100 ac_status=$?
11101 cat out/conftest.err >&5
11102 echo "$as_me:11102: \$? = $ac_status" >&5
11103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11104 then
11105 # The compiler can only warn and ignore the option if not recognized
11106 # So say no if there are warnings
11107 if test ! -s out/conftest.err; then
11108 lt_cv_prog_compiler_c_o_CXX=yes
11111 chmod u+w .
11112 $rm conftest*
11113 # SGI C++ compiler will create directory out/ii_files/ for
11114 # template instantiation
11115 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11116 $rm out/* && rmdir out
11117 cd ..
11118 rmdir conftest
11119 $rm conftest*
11122 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11123 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11126 hard_links="nottested"
11127 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11128 # do not overwrite the value of need_locks provided by the user
11129 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11130 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11131 hard_links=yes
11132 $rm conftest*
11133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11134 touch conftest.a
11135 ln conftest.a conftest.b 2>&5 || hard_links=no
11136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11137 echo "$as_me:$LINENO: result: $hard_links" >&5
11138 echo "${ECHO_T}$hard_links" >&6
11139 if test "$hard_links" = no; then
11140 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11141 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11142 need_locks=warn
11144 else
11145 need_locks=no
11148 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11151 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11152 case $host_os in
11153 aix4* | aix5*)
11154 # If we're using GNU nm, then we don't want the "-C" option.
11155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11156 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11157 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'
11158 else
11159 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'
11162 pw32*)
11163 export_symbols_cmds_CXX="$ltdll_cmds"
11165 cygwin* | mingw*)
11166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11169 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11171 esac
11173 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11174 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11175 test "$ld_shlibs_CXX" = no && can_build_shared=no
11177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11178 if test "$GCC" = yes; then
11179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11183 # Do we need to explicitly link libc?
11185 case "x$archive_cmds_need_lc_CXX" in
11186 x|xyes)
11187 # Assume -lc should be added
11188 archive_cmds_need_lc_CXX=yes
11190 if test "$enable_shared" = yes && test "$GCC" = yes; then
11191 case $archive_cmds_CXX in
11192 *'~'*)
11193 # FIXME: we may have to deal with multi-command sequences.
11195 '$CC '*)
11196 # Test whether the compiler implicitly links with -lc since on some
11197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11198 # to ld, don't add -lc before -lgcc.
11199 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11201 $rm conftest*
11202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } 2>conftest.err; then
11209 soname=conftest
11210 lib=conftest
11211 libobjs=conftest.$ac_objext
11212 deplibs=
11213 wl=$lt_prog_compiler_wl_CXX
11214 compiler_flags=-v
11215 linker_flags=-v
11216 verstring=
11217 output_objdir=.
11218 libname=conftest
11219 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11220 allow_undefined_flag_CXX=
11221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11222 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }
11226 then
11227 archive_cmds_need_lc_CXX=no
11228 else
11229 archive_cmds_need_lc_CXX=yes
11231 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11232 else
11233 cat conftest.err 1>&5
11235 $rm conftest*
11236 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11237 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11239 esac
11242 esac
11244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11246 library_names_spec=
11247 libname_spec='lib$name'
11248 soname_spec=
11249 shrext_cmds=".so"
11250 postinstall_cmds=
11251 postuninstall_cmds=
11252 finish_cmds=
11253 finish_eval=
11254 shlibpath_var=
11255 shlibpath_overrides_runpath=unknown
11256 version_type=none
11257 dynamic_linker="$host_os ld.so"
11258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11259 if test "$GCC" = yes; then
11260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11262 # if the path contains ";" then we assume it to be the separator
11263 # otherwise default to the standard path separator (i.e. ":") - it is
11264 # assumed that no part of a normal pathname contains ";" but that should
11265 # okay in the real world where ";" in dirpaths is itself problematic.
11266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11267 else
11268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11270 else
11271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11273 need_lib_prefix=unknown
11274 hardcode_into_libs=no
11276 # when you set need_version to no, make sure it does not cause -set_version
11277 # flags to be left without arguments
11278 need_version=unknown
11280 case $host_os in
11281 aix3*)
11282 version_type=linux
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11284 shlibpath_var=LIBPATH
11286 # AIX 3 has no versioning support, so we append a major version to the name.
11287 soname_spec='${libname}${release}${shared_ext}$major'
11290 aix4* | aix5*)
11291 version_type=linux
11292 need_lib_prefix=no
11293 need_version=no
11294 hardcode_into_libs=yes
11295 if test "$host_cpu" = ia64; then
11296 # AIX 5 supports IA64
11297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 else
11300 # With GCC up to 2.95.x, collect2 would create an import file
11301 # for dependence libraries. The import file would start with
11302 # the line `#! .'. This would cause the generated library to
11303 # depend on `.', always an invalid library. This was fixed in
11304 # development snapshots of GCC prior to 3.0.
11305 case $host_os in
11306 aix4 | aix4.[01] | aix4.[01].*)
11307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11308 echo ' yes '
11309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11311 else
11312 can_build_shared=no
11315 esac
11316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 if test "$aix_use_runtimelinking" = yes; then
11320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321 # instead of lib<name>.a to let people know that these are not
11322 # typical AIX shared libraries.
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324 else
11325 # We preserve .a as extension for shared libraries through AIX4.2
11326 # and later when we are not doing run time linking.
11327 library_names_spec='${libname}${release}.a $libname.a'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LIBPATH
11334 amigaos*)
11335 library_names_spec='$libname.ixlibrary $libname.a'
11336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11337 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'
11340 beos*)
11341 library_names_spec='${libname}${shared_ext}'
11342 dynamic_linker="$host_os ld.so"
11343 shlibpath_var=LIBRARY_PATH
11346 bsdi4*)
11347 version_type=linux
11348 need_version=no
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11355 # the default ld.so.conf also contains /usr/contrib/lib and
11356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11357 # libtool to hard-code these into programs
11360 cygwin* | mingw* | pw32*)
11361 version_type=windows
11362 shrext_cmds=".dll"
11363 need_version=no
11364 need_lib_prefix=no
11366 case $GCC,$host_os in
11367 yes,cygwin* | yes,mingw* | yes,pw32*)
11368 library_names_spec='$libname.dll.a'
11369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11370 postinstall_cmds='base_file=`basename \${file}`~
11371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11372 dldir=$destdir/`dirname \$dlpath`~
11373 test -d \$dldir || mkdir -p \$dldir~
11374 $install_prog $dir/$dlname \$dldir/$dlname'
11375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11376 dlpath=$dir/\$dldll~
11377 $rm \$dlpath'
11378 shlibpath_overrides_runpath=yes
11380 case $host_os in
11381 cygwin*)
11382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11384 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11386 mingw*)
11387 # MinGW DLLs use traditional 'lib' prefix
11388 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11389 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11390 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11391 # It is most probably a Windows format PATH printed by
11392 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11393 # path with ; separators, and with drive letters. We can handle the
11394 # drive letters (cygwin fileutils understands them), so leave them,
11395 # especially as we might pass files found there to a mingw objdump,
11396 # which wouldn't understand a cygwinified path. Ahh.
11397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11398 else
11399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11402 pw32*)
11403 # pw32 DLLs use 'pw' prefix rather than 'lib'
11404 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11406 esac
11410 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11412 esac
11413 dynamic_linker='Win32 ld.exe'
11414 # FIXME: first we should search . and the directory the executable is in
11415 shlibpath_var=PATH
11418 darwin* | rhapsody*)
11419 dynamic_linker="$host_os dyld"
11420 version_type=darwin
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11424 soname_spec='${libname}${release}${major}$shared_ext'
11425 shlibpath_overrides_runpath=yes
11426 shlibpath_var=DYLD_LIBRARY_PATH
11427 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11428 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11429 if test "$GCC" = yes; then
11430 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"`
11431 else
11432 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11434 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11437 dgux*)
11438 version_type=linux
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11446 freebsd1*)
11447 dynamic_linker=no
11450 kfreebsd*-gnu)
11451 version_type=linux
11452 need_lib_prefix=no
11453 need_version=no
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 hardcode_into_libs=yes
11459 dynamic_linker='GNU ld.so'
11462 freebsd*)
11463 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11464 version_type=freebsd-$objformat
11465 case $version_type in
11466 freebsd-elf*)
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 need_version=no
11469 need_lib_prefix=no
11471 freebsd-*)
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11473 need_version=yes
11475 esac
11476 shlibpath_var=LD_LIBRARY_PATH
11477 case $host_os in
11478 freebsd2*)
11479 shlibpath_overrides_runpath=yes
11481 freebsd3.01* | freebsdelf3.01*)
11482 shlibpath_overrides_runpath=yes
11483 hardcode_into_libs=yes
11485 *) # from 3.2 on
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11489 esac
11492 gnu*)
11493 version_type=linux
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 hardcode_into_libs=yes
11502 hpux9* | hpux10* | hpux11*)
11503 # Give a soname corresponding to the major version so that dld.sl refuses to
11504 # link against other versions.
11505 version_type=sunos
11506 need_lib_prefix=no
11507 need_version=no
11508 case "$host_cpu" in
11509 ia64*)
11510 shrext_cmds='.so'
11511 hardcode_into_libs=yes
11512 dynamic_linker="$host_os dld.so"
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 if test "X$HPUX_IA64_MODE" = X32; then
11518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11519 else
11520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11524 hppa*64*)
11525 shrext_cmds='.sl'
11526 hardcode_into_libs=yes
11527 dynamic_linker="$host_os dld.sl"
11528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11536 shrext_cmds='.sl'
11537 dynamic_linker="$host_os dld.sl"
11538 shlibpath_var=SHLIB_PATH
11539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11543 esac
11544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11545 postinstall_cmds='chmod 555 $lib'
11548 irix5* | irix6* | nonstopux*)
11549 case $host_os in
11550 nonstopux*) version_type=nonstopux ;;
11552 if test "$lt_cv_prog_gnu_ld" = yes; then
11553 version_type=linux
11554 else
11555 version_type=irix
11556 fi ;;
11557 esac
11558 need_lib_prefix=no
11559 need_version=no
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 case $host_os in
11563 irix5* | nonstopux*)
11564 libsuff= shlibsuff=
11567 case $LD in # libtool.m4 will add one of these switches to LD
11568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11569 libsuff= shlibsuff= libmagic=32-bit;;
11570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11571 libsuff=32 shlibsuff=N32 libmagic=N32;;
11572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11574 *) libsuff= shlibsuff= libmagic=never-match;;
11575 esac
11577 esac
11578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11579 shlibpath_overrides_runpath=no
11580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11582 hardcode_into_libs=yes
11585 # No shared lib support for Linux oldld, aout, or coff.
11586 linux*oldld* | linux*aout* | linux*coff*)
11587 dynamic_linker=no
11590 # This must be Linux ELF.
11591 linux*)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs=yes
11605 # find out which ABI we are using
11606 libsuff=
11607 case "$host_cpu" in
11608 x86_64*|s390x*|powerpc64*)
11609 echo '#line 11609 "configure"' > conftest.$ac_ext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611 (eval $ac_compile) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; then
11615 case `/usr/bin/file conftest.$ac_objext` in
11616 *64-bit*)
11617 libsuff=64
11618 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11620 esac
11622 rm -rf conftest*
11624 esac
11626 # Append ld.so.conf contents to the search path
11627 if test -f /etc/ld.so.conf; then
11628 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11629 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11632 # We used to test for /lib/ld.so.1 and disable shared libraries on
11633 # powerpc, because MkLinux only supported shared libraries with the
11634 # GNU dynamic linker. Since this was broken with cross compilers,
11635 # most powerpc-linux boxes support dynamic linking these days and
11636 # people can always --disable-shared, the test was removed, and we
11637 # assume the GNU/Linux dynamic linker is in use.
11638 dynamic_linker='GNU/Linux ld.so'
11641 knetbsd*-gnu)
11642 version_type=linux
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 dynamic_linker='GNU ld.so'
11653 netbsd*)
11654 version_type=sunos
11655 need_lib_prefix=no
11656 need_version=no
11657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11660 dynamic_linker='NetBSD (a.out) ld.so'
11661 else
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 dynamic_linker='NetBSD ld.elf_so'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=yes
11668 hardcode_into_libs=yes
11671 newsos6)
11672 version_type=linux
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11678 nto-qnx*)
11679 version_type=linux
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=yes
11688 openbsd*)
11689 version_type=sunos
11690 need_lib_prefix=no
11691 need_version=yes
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11696 case $host_os in
11697 openbsd2.[89] | openbsd2.[89].*)
11698 shlibpath_overrides_runpath=no
11701 shlibpath_overrides_runpath=yes
11703 esac
11704 else
11705 shlibpath_overrides_runpath=yes
11709 os2*)
11710 libname_spec='$name'
11711 shrext_cmds=".dll"
11712 need_lib_prefix=no
11713 library_names_spec='$libname${shared_ext} $libname.a'
11714 dynamic_linker='OS/2 ld.exe'
11715 shlibpath_var=LIBPATH
11718 osf3* | osf4* | osf5*)
11719 version_type=osf
11720 need_lib_prefix=no
11721 need_version=no
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11729 sco3.2v5*)
11730 version_type=osf
11731 soname_spec='${libname}${release}${shared_ext}$major'
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 shlibpath_var=LD_LIBRARY_PATH
11736 solaris*)
11737 version_type=linux
11738 need_lib_prefix=no
11739 need_version=no
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 shlibpath_overrides_runpath=yes
11744 hardcode_into_libs=yes
11745 # ldd complains unless libraries are executable
11746 postinstall_cmds='chmod +x $lib'
11749 sunos4*)
11750 version_type=sunos
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11755 if test "$with_gnu_ld" = yes; then
11756 need_lib_prefix=no
11758 need_version=yes
11761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11762 version_type=linux
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 case $host_vendor in
11767 sni)
11768 shlibpath_overrides_runpath=no
11769 need_lib_prefix=no
11770 export_dynamic_flag_spec='${wl}-Blargedynsym'
11771 runpath_var=LD_RUN_PATH
11773 siemens)
11774 need_lib_prefix=no
11776 motorola)
11777 need_lib_prefix=no
11778 need_version=no
11779 shlibpath_overrides_runpath=no
11780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11782 esac
11785 sysv4*MP*)
11786 if test -d /usr/nec ;then
11787 version_type=linux
11788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11789 soname_spec='$libname${shared_ext}.$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11794 uts4*)
11795 version_type=linux
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11802 dynamic_linker=no
11804 esac
11805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11806 echo "${ECHO_T}$dynamic_linker" >&6
11807 test "$dynamic_linker" = no && can_build_shared=no
11809 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11811 hardcode_action_CXX=
11812 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11813 test -n "$runpath_var CXX" || \
11814 test "X$hardcode_automatic_CXX"="Xyes" ; then
11816 # We can hardcode non-existant directories.
11817 if test "$hardcode_direct_CXX" != no &&
11818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819 # have to relink, otherwise we might link with an installed library
11820 # when we should be linking with a yet-to-be-installed one
11821 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11822 test "$hardcode_minus_L_CXX" != no; then
11823 # Linking always hardcodes the temporary library directory.
11824 hardcode_action_CXX=relink
11825 else
11826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827 hardcode_action_CXX=immediate
11829 else
11830 # We cannot hardcode anything, or else we can only hardcode existing
11831 # directories.
11832 hardcode_action_CXX=unsupported
11834 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11835 echo "${ECHO_T}$hardcode_action_CXX" >&6
11837 if test "$hardcode_action_CXX" = relink; then
11838 # Fast installation is not supported
11839 enable_fast_install=no
11840 elif test "$shlibpath_overrides_runpath" = yes ||
11841 test "$enable_shared" = no; then
11842 # Fast installation is not necessary
11843 enable_fast_install=needless
11846 striplib=
11847 old_striplib=
11848 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11850 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11851 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11852 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11853 echo "$as_me:$LINENO: result: yes" >&5
11854 echo "${ECHO_T}yes" >&6
11855 else
11856 # FIXME - insert some real tests, host_os isn't really good enough
11857 case $host_os in
11858 darwin*)
11859 if test -n "$STRIP" ; then
11860 striplib="$STRIP -x"
11861 echo "$as_me:$LINENO: result: yes" >&5
11862 echo "${ECHO_T}yes" >&6
11863 else
11864 echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11869 echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6
11872 esac
11875 if test "x$enable_dlopen" != xyes; then
11876 enable_dlopen=unknown
11877 enable_dlopen_self=unknown
11878 enable_dlopen_self_static=unknown
11879 else
11880 lt_cv_dlopen=no
11881 lt_cv_dlopen_libs=
11883 case $host_os in
11884 beos*)
11885 lt_cv_dlopen="load_add_on"
11886 lt_cv_dlopen_libs=
11887 lt_cv_dlopen_self=yes
11890 mingw* | pw32*)
11891 lt_cv_dlopen="LoadLibrary"
11892 lt_cv_dlopen_libs=
11895 cygwin*)
11896 lt_cv_dlopen="dlopen"
11897 lt_cv_dlopen_libs=
11900 darwin*)
11901 # if libdl is installed we need to link against it
11902 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-ldl $LIBS"
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 /* Override any gcc2 internal prototype to avoid an error. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11922 char dlopen ();
11924 main ()
11926 dlopen ();
11928 return 0;
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_cxx_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_lib_dl_dlopen=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_cv_lib_dl_dlopen=no
11960 rm -f conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11964 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11965 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11966 if test $ac_cv_lib_dl_dlopen = yes; then
11967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968 else
11970 lt_cv_dlopen="dyld"
11971 lt_cv_dlopen_libs=
11972 lt_cv_dlopen_self=yes
11979 echo "$as_me:$LINENO: checking for shl_load" >&5
11980 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11981 if test "${ac_cv_func_shl_load+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992 #define shl_load innocuous_shl_load
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char shl_load (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11999 #ifdef __STDC__
12000 # include <limits.h>
12001 #else
12002 # include <assert.h>
12003 #endif
12005 #undef shl_load
12007 /* Override any gcc2 internal prototype to avoid an error. */
12008 #ifdef __cplusplus
12009 extern "C"
12011 #endif
12012 /* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12014 char shl_load ();
12015 /* The GNU C library defines this for functions which it implements
12016 to always fail with ENOSYS. Some functions are actually named
12017 something starting with __ and the normal name is an alias. */
12018 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12019 choke me
12020 #else
12021 char (*f) () = shl_load;
12022 #endif
12023 #ifdef __cplusplus
12025 #endif
12028 main ()
12030 return f != shl_load;
12032 return 0;
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_cxx_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_func_shl_load=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_cv_func_shl_load=no
12064 rm -f conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12067 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12068 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12069 if test $ac_cv_func_shl_load = yes; then
12070 lt_cv_dlopen="shl_load"
12071 else
12072 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12073 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-ldld $LIBS"
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12086 /* Override any gcc2 internal prototype to avoid an error. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char shl_load ();
12094 main ()
12096 shl_load ();
12098 return 0;
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_cxx_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_lib_dld_shl_load=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_cv_lib_dld_shl_load=no
12130 rm -f conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12134 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12135 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12136 if test $ac_cv_lib_dld_shl_load = yes; then
12137 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12138 else
12139 echo "$as_me:$LINENO: checking for dlopen" >&5
12140 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12141 if test "${ac_cv_func_dlopen+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12152 #define dlopen innocuous_dlopen
12154 /* System header to define __stub macros and hopefully few prototypes,
12155 which can conflict with char dlopen (); below.
12156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157 <limits.h> exists even on freestanding compilers. */
12159 #ifdef __STDC__
12160 # include <limits.h>
12161 #else
12162 # include <assert.h>
12163 #endif
12165 #undef dlopen
12167 /* Override any gcc2 internal prototype to avoid an error. */
12168 #ifdef __cplusplus
12169 extern "C"
12171 #endif
12172 /* We use char because int might match the return type of a gcc2
12173 builtin and then its argument prototype would still apply. */
12174 char dlopen ();
12175 /* The GNU C library defines this for functions which it implements
12176 to always fail with ENOSYS. Some functions are actually named
12177 something starting with __ and the normal name is an alias. */
12178 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12179 choke me
12180 #else
12181 char (*f) () = dlopen;
12182 #endif
12183 #ifdef __cplusplus
12185 #endif
12188 main ()
12190 return f != dlopen;
12192 return 0;
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_cxx_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_func_dlopen=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_func_dlopen=no
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12227 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12228 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12229 if test $ac_cv_func_dlopen = yes; then
12230 lt_cv_dlopen="dlopen"
12231 else
12232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char dlopen ();
12254 main ()
12256 dlopen ();
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_cxx_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_lib_dl_dlopen=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_dl_dlopen=no
12290 rm -f conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12296 if test $ac_cv_lib_dl_dlopen = yes; then
12297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12298 else
12299 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12300 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12301 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lsvld $LIBS"
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char dlopen ();
12321 main ()
12323 dlopen ();
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_cxx_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_lib_svld_dlopen=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_svld_dlopen=no
12357 rm -f conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12362 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12363 if test $ac_cv_lib_svld_dlopen = yes; then
12364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12365 else
12366 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12367 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12368 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371 ac_check_lib_save_LIBS=$LIBS
12372 LIBS="-ldld $LIBS"
12373 cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h. */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char dld_link ();
12388 main ()
12390 dld_link ();
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397 (eval $ac_link) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_cxx_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_lib_dld_dld_link=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_lib_dld_dld_link=no
12424 rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12429 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12430 if test $ac_cv_lib_dld_dld_link = yes; then
12431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12450 esac
12452 if test "x$lt_cv_dlopen" != xno; then
12453 enable_dlopen=yes
12454 else
12455 enable_dlopen=no
12458 case $lt_cv_dlopen in
12459 dlopen)
12460 save_CPPFLAGS="$CPPFLAGS"
12461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12463 save_LDFLAGS="$LDFLAGS"
12464 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12466 save_LIBS="$LIBS"
12467 LIBS="$lt_cv_dlopen_libs $LIBS"
12469 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12470 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12471 if test "${lt_cv_dlopen_self+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474 if test "$cross_compiling" = yes; then :
12475 lt_cv_dlopen_self=cross
12476 else
12477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478 lt_status=$lt_dlunknown
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12480 "configure"
12481 #include "confdefs.h"
12483 #if HAVE_DLFCN_H
12484 #include <dlfcn.h>
12485 #endif
12487 #include <stdio.h>
12489 #ifdef RTLD_GLOBAL
12490 # define LT_DLGLOBAL RTLD_GLOBAL
12491 #else
12492 # ifdef DL_GLOBAL
12493 # define LT_DLGLOBAL DL_GLOBAL
12494 # else
12495 # define LT_DLGLOBAL 0
12496 # endif
12497 #endif
12499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500 find out it does not work in some platform. */
12501 #ifndef LT_DLLAZY_OR_NOW
12502 # ifdef RTLD_LAZY
12503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12504 # else
12505 # ifdef DL_LAZY
12506 # define LT_DLLAZY_OR_NOW DL_LAZY
12507 # else
12508 # ifdef RTLD_NOW
12509 # define LT_DLLAZY_OR_NOW RTLD_NOW
12510 # else
12511 # ifdef DL_NOW
12512 # define LT_DLLAZY_OR_NOW DL_NOW
12513 # else
12514 # define LT_DLLAZY_OR_NOW 0
12515 # endif
12516 # endif
12517 # endif
12518 # endif
12519 #endif
12521 #ifdef __cplusplus
12522 extern "C" void exit (int);
12523 #endif
12525 void fnord() { int i=42;}
12526 int main ()
12528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12529 int status = $lt_dlunknown;
12531 if (self)
12533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12534 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12535 /* dlclose (self); */
12538 exit (status);
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12546 (./conftest; exit; ) 2>/dev/null
12547 lt_status=$?
12548 case x$lt_status in
12549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12551 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12552 esac
12553 else :
12554 # compilation failed
12555 lt_cv_dlopen_self=no
12558 rm -fr conftest*
12562 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12563 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12565 if test "x$lt_cv_dlopen_self" = xyes; then
12566 LDFLAGS="$LDFLAGS $link_static_flag"
12567 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12568 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12569 if test "${lt_cv_dlopen_self_static+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 if test "$cross_compiling" = yes; then :
12573 lt_cv_dlopen_self_static=cross
12574 else
12575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12576 lt_status=$lt_dlunknown
12577 cat > conftest.$ac_ext <<EOF
12578 #line 12578 "configure"
12579 #include "confdefs.h"
12581 #if HAVE_DLFCN_H
12582 #include <dlfcn.h>
12583 #endif
12585 #include <stdio.h>
12587 #ifdef RTLD_GLOBAL
12588 # define LT_DLGLOBAL RTLD_GLOBAL
12589 #else
12590 # ifdef DL_GLOBAL
12591 # define LT_DLGLOBAL DL_GLOBAL
12592 # else
12593 # define LT_DLGLOBAL 0
12594 # endif
12595 #endif
12597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12598 find out it does not work in some platform. */
12599 #ifndef LT_DLLAZY_OR_NOW
12600 # ifdef RTLD_LAZY
12601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12602 # else
12603 # ifdef DL_LAZY
12604 # define LT_DLLAZY_OR_NOW DL_LAZY
12605 # else
12606 # ifdef RTLD_NOW
12607 # define LT_DLLAZY_OR_NOW RTLD_NOW
12608 # else
12609 # ifdef DL_NOW
12610 # define LT_DLLAZY_OR_NOW DL_NOW
12611 # else
12612 # define LT_DLLAZY_OR_NOW 0
12613 # endif
12614 # endif
12615 # endif
12616 # endif
12617 #endif
12619 #ifdef __cplusplus
12620 extern "C" void exit (int);
12621 #endif
12623 void fnord() { int i=42;}
12624 int main ()
12626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12627 int status = $lt_dlunknown;
12629 if (self)
12631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12632 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12633 /* dlclose (self); */
12636 exit (status);
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12644 (./conftest; exit; ) 2>/dev/null
12645 lt_status=$?
12646 case x$lt_status in
12647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12649 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12650 esac
12651 else :
12652 # compilation failed
12653 lt_cv_dlopen_self_static=no
12656 rm -fr conftest*
12660 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12661 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12664 CPPFLAGS="$save_CPPFLAGS"
12665 LDFLAGS="$save_LDFLAGS"
12666 LIBS="$save_LIBS"
12668 esac
12670 case $lt_cv_dlopen_self in
12671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12672 *) enable_dlopen_self=unknown ;;
12673 esac
12675 case $lt_cv_dlopen_self_static in
12676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12677 *) enable_dlopen_self_static=unknown ;;
12678 esac
12682 # The else clause should only fire when bootstrapping the
12683 # libtool distribution, otherwise you forgot to ship ltmain.sh
12684 # with your package, and you will get complaints that there are
12685 # no rules to generate ltmain.sh.
12686 if test -f "$ltmain"; then
12687 # See if we are running on zsh, and set the options which allow our commands through
12688 # without removal of \ escapes.
12689 if test -n "${ZSH_VERSION+set}" ; then
12690 setopt NO_GLOB_SUBST
12692 # Now quote all the things that may contain metacharacters while being
12693 # careful not to overquote the AC_SUBSTed values. We take copies of the
12694 # variables and quote the copies for generation of the libtool script.
12695 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12696 SED SHELL STRIP \
12697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12699 deplibs_check_method reload_flag reload_cmds need_locks \
12700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12701 lt_cv_sys_global_symbol_to_c_name_address \
12702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12703 old_postinstall_cmds old_postuninstall_cmds \
12704 compiler_CXX \
12705 CC_CXX \
12706 LD_CXX \
12707 lt_prog_compiler_wl_CXX \
12708 lt_prog_compiler_pic_CXX \
12709 lt_prog_compiler_static_CXX \
12710 lt_prog_compiler_no_builtin_flag_CXX \
12711 export_dynamic_flag_spec_CXX \
12712 thread_safe_flag_spec_CXX \
12713 whole_archive_flag_spec_CXX \
12714 enable_shared_with_static_runtimes_CXX \
12715 old_archive_cmds_CXX \
12716 old_archive_from_new_cmds_CXX \
12717 predep_objects_CXX \
12718 postdep_objects_CXX \
12719 predeps_CXX \
12720 postdeps_CXX \
12721 compiler_lib_search_path_CXX \
12722 archive_cmds_CXX \
12723 archive_expsym_cmds_CXX \
12724 postinstall_cmds_CXX \
12725 postuninstall_cmds_CXX \
12726 old_archive_from_expsyms_cmds_CXX \
12727 allow_undefined_flag_CXX \
12728 no_undefined_flag_CXX \
12729 export_symbols_cmds_CXX \
12730 hardcode_libdir_flag_spec_CXX \
12731 hardcode_libdir_flag_spec_ld_CXX \
12732 hardcode_libdir_separator_CXX \
12733 hardcode_automatic_CXX \
12734 module_cmds_CXX \
12735 module_expsym_cmds_CXX \
12736 lt_cv_prog_compiler_c_o_CXX \
12737 exclude_expsyms_CXX \
12738 include_expsyms_CXX; do
12740 case $var in
12741 old_archive_cmds_CXX | \
12742 old_archive_from_new_cmds_CXX | \
12743 archive_cmds_CXX | \
12744 archive_expsym_cmds_CXX | \
12745 module_cmds_CXX | \
12746 module_expsym_cmds_CXX | \
12747 old_archive_from_expsyms_cmds_CXX | \
12748 export_symbols_cmds_CXX | \
12749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12750 postinstall_cmds | postuninstall_cmds | \
12751 old_postinstall_cmds | old_postuninstall_cmds | \
12752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12753 # Double-quote double-evaled strings.
12754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12759 esac
12760 done
12762 case $lt_echo in
12763 *'\$0 --fallback-echo"')
12764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12766 esac
12768 cfgfile="$ofile"
12770 cat <<__EOF__ >> "$cfgfile"
12771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12775 # Shell to use when invoking shell scripts.
12776 SHELL=$lt_SHELL
12778 # Whether or not to build shared libraries.
12779 build_libtool_libs=$enable_shared
12781 # Whether or not to build static libraries.
12782 build_old_libs=$enable_static
12784 # Whether or not to add -lc for building shared libraries.
12785 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12787 # Whether or not to disallow shared libs when runtime libs are static
12788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12790 # Whether or not to optimize for fast installation.
12791 fast_install=$enable_fast_install
12793 # The host system.
12794 host_alias=$host_alias
12795 host=$host
12797 # An echo program that does not interpret backslashes.
12798 echo=$lt_echo
12800 # The archiver.
12801 AR=$lt_AR
12802 AR_FLAGS=$lt_AR_FLAGS
12804 # A C compiler.
12805 LTCC=$lt_LTCC
12807 # A language-specific compiler.
12808 CC=$lt_compiler_CXX
12810 # Is the compiler the GNU C compiler?
12811 with_gcc=$GCC_CXX
12813 # An ERE matcher.
12814 EGREP=$lt_EGREP
12816 # The linker used to build libraries.
12817 LD=$lt_LD_CXX
12819 # Whether we need hard or soft links.
12820 LN_S=$lt_LN_S
12822 # A BSD-compatible nm program.
12823 NM=$lt_NM
12825 # A symbol stripping program
12826 STRIP=$lt_STRIP
12828 # Used to examine libraries when file_magic_cmd begins "file"
12829 MAGIC_CMD=$MAGIC_CMD
12831 # Used on cygwin: DLL creation program.
12832 DLLTOOL="$DLLTOOL"
12834 # Used on cygwin: object dumper.
12835 OBJDUMP="$OBJDUMP"
12837 # Used on cygwin: assembler.
12838 AS="$AS"
12840 # The name of the directory that contains temporary libtool files.
12841 objdir=$objdir
12843 # How to create reloadable object files.
12844 reload_flag=$lt_reload_flag
12845 reload_cmds=$lt_reload_cmds
12847 # How to pass a linker flag through the compiler.
12848 wl=$lt_lt_prog_compiler_wl_CXX
12850 # Object file suffix (normally "o").
12851 objext="$ac_objext"
12853 # Old archive suffix (normally "a").
12854 libext="$libext"
12856 # Shared library suffix (normally ".so").
12857 shrext_cmds='$shrext_cmds'
12859 # Executable file suffix (normally "").
12860 exeext="$exeext"
12862 # Additional compiler flags for building library objects.
12863 pic_flag=$lt_lt_prog_compiler_pic_CXX
12864 pic_mode=$pic_mode
12866 # What is the maximum length of a command?
12867 max_cmd_len=$lt_cv_sys_max_cmd_len
12869 # Does compiler simultaneously support -c and -o options?
12870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12872 # Must we lock files when doing compilation ?
12873 need_locks=$lt_need_locks
12875 # Do we need the lib prefix for modules?
12876 need_lib_prefix=$need_lib_prefix
12878 # Do we need a version for libraries?
12879 need_version=$need_version
12881 # Whether dlopen is supported.
12882 dlopen_support=$enable_dlopen
12884 # Whether dlopen of programs is supported.
12885 dlopen_self=$enable_dlopen_self
12887 # Whether dlopen of statically linked programs is supported.
12888 dlopen_self_static=$enable_dlopen_self_static
12890 # Compiler flag to prevent dynamic linking.
12891 link_static_flag=$lt_lt_prog_compiler_static_CXX
12893 # Compiler flag to turn off builtin functions.
12894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12896 # Compiler flag to allow reflexive dlopens.
12897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12899 # Compiler flag to generate shared objects directly from archives.
12900 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12902 # Compiler flag to generate thread-safe objects.
12903 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12905 # Library versioning type.
12906 version_type=$version_type
12908 # Format of library name prefix.
12909 libname_spec=$lt_libname_spec
12911 # List of archive names. First name is the real one, the rest are links.
12912 # The last name is the one that the linker finds with -lNAME.
12913 library_names_spec=$lt_library_names_spec
12915 # The coded name of the library, if different from the real name.
12916 soname_spec=$lt_soname_spec
12918 # Commands used to build and install an old-style archive.
12919 RANLIB=$lt_RANLIB
12920 old_archive_cmds=$lt_old_archive_cmds_CXX
12921 old_postinstall_cmds=$lt_old_postinstall_cmds
12922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12924 # Create an old-style archive from a shared archive.
12925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12927 # Create a temporary old-style archive to link instead of a shared archive.
12928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12930 # Commands used to build and install a shared archive.
12931 archive_cmds=$lt_archive_cmds_CXX
12932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12933 postinstall_cmds=$lt_postinstall_cmds
12934 postuninstall_cmds=$lt_postuninstall_cmds
12936 # Commands used to build a loadable module (assumed same as above if empty)
12937 module_cmds=$lt_module_cmds_CXX
12938 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12940 # Commands to strip libraries.
12941 old_striplib=$lt_old_striplib
12942 striplib=$lt_striplib
12944 # Dependencies to place before the objects being linked to create a
12945 # shared library.
12946 predep_objects=$lt_predep_objects_CXX
12948 # Dependencies to place after the objects being linked to create a
12949 # shared library.
12950 postdep_objects=$lt_postdep_objects_CXX
12952 # Dependencies to place before the objects being linked to create a
12953 # shared library.
12954 predeps=$lt_predeps_CXX
12956 # Dependencies to place after the objects being linked to create a
12957 # shared library.
12958 postdeps=$lt_postdeps_CXX
12960 # The library search path used internally by the compiler when linking
12961 # a shared library.
12962 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12964 # Method to check whether dependent libraries are shared objects.
12965 deplibs_check_method=$lt_deplibs_check_method
12967 # Command to use when deplibs_check_method == file_magic.
12968 file_magic_cmd=$lt_file_magic_cmd
12970 # Flag that allows shared libraries with undefined symbols to be built.
12971 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12973 # Flag that forces no undefined symbols.
12974 no_undefined_flag=$lt_no_undefined_flag_CXX
12976 # Commands used to finish a libtool library installation in a directory.
12977 finish_cmds=$lt_finish_cmds
12979 # Same as above, but a single script fragment to be evaled but not shown.
12980 finish_eval=$lt_finish_eval
12982 # Take the output of nm and produce a listing of raw symbols and C names.
12983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12985 # Transform the output of nm in a proper C declaration
12986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12988 # Transform the output of nm in a C name address pair
12989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12991 # This is the shared library runtime path variable.
12992 runpath_var=$runpath_var
12994 # This is the shared library path variable.
12995 shlibpath_var=$shlibpath_var
12997 # Is shlibpath searched before the hard-coded library search path?
12998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13000 # How to hardcode a shared library path into an executable.
13001 hardcode_action=$hardcode_action_CXX
13003 # Whether we should hardcode library paths into libraries.
13004 hardcode_into_libs=$hardcode_into_libs
13006 # Flag to hardcode \$libdir into a binary during linking.
13007 # This must work even if \$libdir does not exist.
13008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13010 # If ld is used when linking, flag to hardcode \$libdir into
13011 # a binary during linking. This must work even if \$libdir does
13012 # not exist.
13013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13015 # Whether we need a single -rpath flag with a separated argument.
13016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13019 # resulting binary.
13020 hardcode_direct=$hardcode_direct_CXX
13022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13023 # resulting binary.
13024 hardcode_minus_L=$hardcode_minus_L_CXX
13026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13027 # the resulting binary.
13028 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13030 # Set to yes if building a shared library automatically hardcodes DIR into the library
13031 # and all subsequent libraries and executables linked against it.
13032 hardcode_automatic=$hardcode_automatic_CXX
13034 # Variables whose values should be saved in libtool wrapper scripts and
13035 # restored at relink time.
13036 variables_saved_for_relink="$variables_saved_for_relink"
13038 # Whether libtool must link a program against all its dependency libraries.
13039 link_all_deplibs=$link_all_deplibs_CXX
13041 # Compile-time system search path for libraries
13042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13044 # Run-time system search path for libraries
13045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13047 # Fix the shell variable \$srcfile for the compiler.
13048 fix_srcfile_path="$fix_srcfile_path_CXX"
13050 # Set to yes if exported symbols are required.
13051 always_export_symbols=$always_export_symbols_CXX
13053 # The commands to list exported symbols.
13054 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13056 # The commands to extract the exported symbol list from a shared archive.
13057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13059 # Symbols that should not be listed in the preloaded symbols.
13060 exclude_expsyms=$lt_exclude_expsyms_CXX
13062 # Symbols that must always be exported.
13063 include_expsyms=$lt_include_expsyms_CXX
13065 # ### END LIBTOOL TAG CONFIG: $tagname
13067 __EOF__
13070 else
13071 # If there is no Makefile yet, we rely on a make rule to execute
13072 # `config.status --recheck' to rerun these tests and create the
13073 # libtool script then.
13074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13075 if test -f "$ltmain_in"; then
13076 test -f Makefile && make "$ltmain"
13081 ac_ext=cc
13082 ac_cpp='$CXXCPP $CPPFLAGS'
13083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13087 CC=$lt_save_CC
13088 LDCXX=$LD
13089 LD=$lt_save_LD
13090 GCC=$lt_save_GCC
13091 with_gnu_ldcxx=$with_gnu_ld
13092 with_gnu_ld=$lt_save_with_gnu_ld
13093 lt_cv_path_LDCXX=$lt_cv_path_LD
13094 lt_cv_path_LD=$lt_save_path_LD
13095 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13096 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13098 else
13099 tagname=""
13103 F77)
13104 if test -n "$F77" && test "X$F77" != "Xno"; then
13106 ac_ext=f
13107 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13108 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13112 archive_cmds_need_lc_F77=no
13113 allow_undefined_flag_F77=
13114 always_export_symbols_F77=no
13115 archive_expsym_cmds_F77=
13116 export_dynamic_flag_spec_F77=
13117 hardcode_direct_F77=no
13118 hardcode_libdir_flag_spec_F77=
13119 hardcode_libdir_flag_spec_ld_F77=
13120 hardcode_libdir_separator_F77=
13121 hardcode_minus_L_F77=no
13122 hardcode_automatic_F77=no
13123 module_cmds_F77=
13124 module_expsym_cmds_F77=
13125 link_all_deplibs_F77=unknown
13126 old_archive_cmds_F77=$old_archive_cmds
13127 no_undefined_flag_F77=
13128 whole_archive_flag_spec_F77=
13129 enable_shared_with_static_runtimes_F77=no
13131 # Source file extension for f77 test sources.
13132 ac_ext=f
13134 # Object file extension for compiled f77 test sources.
13135 objext=o
13136 objext_F77=$objext
13138 # Code to be used in simple compile tests
13139 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13141 # Code to be used in simple link tests
13142 lt_simple_link_test_code=" program t\n end\n"
13144 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13146 # If no C compiler was specified, use CC.
13147 LTCC=${LTCC-"$CC"}
13149 # Allow CC to be a program name with arguments.
13150 compiler=$CC
13153 # Allow CC to be a program name with arguments.
13154 lt_save_CC="$CC"
13155 CC=${F77-"f77"}
13156 compiler=$CC
13157 compiler_F77=$CC
13158 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13160 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13161 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13162 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13163 echo "${ECHO_T}$can_build_shared" >&6
13165 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13166 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13167 test "$can_build_shared" = "no" && enable_shared=no
13169 # On AIX, shared libraries and static libraries use the same namespace, and
13170 # are all built from PIC.
13171 case "$host_os" in
13172 aix3*)
13173 test "$enable_shared" = yes && enable_static=no
13174 if test -n "$RANLIB"; then
13175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13176 postinstall_cmds='$RANLIB $lib'
13179 aix4* | aix5*)
13180 test "$enable_shared" = yes && enable_static=no
13182 esac
13183 echo "$as_me:$LINENO: result: $enable_shared" >&5
13184 echo "${ECHO_T}$enable_shared" >&6
13186 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13187 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13188 # Make sure either enable_shared or enable_static is yes.
13189 test "$enable_shared" = yes || enable_static=yes
13190 echo "$as_me:$LINENO: result: $enable_static" >&5
13191 echo "${ECHO_T}$enable_static" >&6
13193 test "$ld_shlibs_F77" = no && can_build_shared=no
13195 GCC_F77="$G77"
13196 LD_F77="$LD"
13198 lt_prog_compiler_wl_F77=
13199 lt_prog_compiler_pic_F77=
13200 lt_prog_compiler_static_F77=
13202 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13203 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13205 if test "$GCC" = yes; then
13206 lt_prog_compiler_wl_F77='-Wl,'
13207 lt_prog_compiler_static_F77='-static'
13209 case $host_os in
13210 aix*)
13211 # All AIX code is PIC.
13212 if test "$host_cpu" = ia64; then
13213 # AIX 5 now supports IA64 processor
13214 lt_prog_compiler_static_F77='-Bstatic'
13218 amigaos*)
13219 # FIXME: we need at least 68020 code to build shared libraries, but
13220 # adding the `-m68020' flag to GCC prevents building anything better,
13221 # like `-m68040'.
13222 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13225 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13226 # PIC is the default for these OSes.
13229 mingw* | pw32* | os2*)
13230 # This hack is so that the source file can tell whether it is being
13231 # built for inclusion in a dll (and should export symbols for example).
13232 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13235 darwin* | rhapsody*)
13236 # PIC is the default on this platform
13237 # Common symbols not allowed in MH_DYLIB files
13238 lt_prog_compiler_pic_F77='-fno-common'
13241 msdosdjgpp*)
13242 # Just because we use GCC doesn't mean we suddenly get shared libraries
13243 # on systems that don't support them.
13244 lt_prog_compiler_can_build_shared_F77=no
13245 enable_shared=no
13248 sysv4*MP*)
13249 if test -d /usr/nec; then
13250 lt_prog_compiler_pic_F77=-Kconform_pic
13254 hpux*)
13255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256 # not for PA HP-UX.
13257 case "$host_cpu" in
13258 hppa*64*|ia64*)
13259 # +Z the default
13262 lt_prog_compiler_pic_F77='-fPIC'
13264 esac
13268 lt_prog_compiler_pic_F77='-fPIC'
13270 esac
13271 else
13272 # PORTME Check for flag to pass linker flags through the system compiler.
13273 case $host_os in
13274 aix*)
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 if test "$host_cpu" = ia64; then
13277 # AIX 5 now supports IA64 processor
13278 lt_prog_compiler_static_F77='-Bstatic'
13279 else
13280 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13284 mingw* | pw32* | os2*)
13285 # This hack is so that the source file can tell whether it is being
13286 # built for inclusion in a dll (and should export symbols for example).
13287 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13290 hpux9* | hpux10* | hpux11*)
13291 lt_prog_compiler_wl_F77='-Wl,'
13292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13293 # not for PA HP-UX.
13294 case "$host_cpu" in
13295 hppa*64*|ia64*)
13296 # +Z the default
13299 lt_prog_compiler_pic_F77='+Z'
13301 esac
13302 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13303 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13306 irix5* | irix6* | nonstopux*)
13307 lt_prog_compiler_wl_F77='-Wl,'
13308 # PIC (with -KPIC) is the default.
13309 lt_prog_compiler_static_F77='-non_shared'
13312 newsos6)
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-Bstatic'
13317 linux*)
13318 case $CC in
13319 icc* | ecc*)
13320 lt_prog_compiler_wl_F77='-Wl,'
13321 lt_prog_compiler_pic_F77='-KPIC'
13322 lt_prog_compiler_static_F77='-static'
13324 ccc*)
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 # All Alpha code is PIC.
13327 lt_prog_compiler_static_F77='-non_shared'
13329 esac
13332 osf3* | osf4* | osf5*)
13333 lt_prog_compiler_wl_F77='-Wl,'
13334 # All OSF/1 code is PIC.
13335 lt_prog_compiler_static_F77='-non_shared'
13338 sco3.2v5*)
13339 lt_prog_compiler_pic_F77='-Kpic'
13340 lt_prog_compiler_static_F77='-dn'
13343 solaris*)
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 lt_prog_compiler_pic_F77='-KPIC'
13346 lt_prog_compiler_static_F77='-Bstatic'
13349 sunos4*)
13350 lt_prog_compiler_wl_F77='-Qoption ld '
13351 lt_prog_compiler_pic_F77='-PIC'
13352 lt_prog_compiler_static_F77='-Bstatic'
13355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13356 lt_prog_compiler_wl_F77='-Wl,'
13357 lt_prog_compiler_pic_F77='-KPIC'
13358 lt_prog_compiler_static_F77='-Bstatic'
13361 sysv4*MP*)
13362 if test -d /usr/nec ;then
13363 lt_prog_compiler_pic_F77='-Kconform_pic'
13364 lt_prog_compiler_static_F77='-Bstatic'
13368 uts4*)
13369 lt_prog_compiler_pic_F77='-pic'
13370 lt_prog_compiler_static_F77='-Bstatic'
13374 lt_prog_compiler_can_build_shared_F77=no
13376 esac
13379 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13380 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13383 # Check to make sure the PIC flag actually works.
13385 if test -n "$lt_prog_compiler_pic_F77"; then
13387 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13389 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 lt_prog_compiler_pic_works_F77=no
13393 ac_outfile=conftest.$ac_objext
13394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13396 # Insert the option either (1) after the last *FLAGS variable, or
13397 # (2) before a word containing "conftest.", or (3) at the end.
13398 # Note that $ac_compile itself does not contain backslashes and begins
13399 # with a dollar sign (not a hyphen), so the echo should work correctly.
13400 # The option is referenced via a variable to avoid confusing sed.
13401 lt_compile=`echo "$ac_compile" | $SED \
13402 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13404 -e 's:$: $lt_compiler_flag:'`
13405 (eval echo "\"\$as_me:13405: $lt_compile\"" >&5)
13406 (eval "$lt_compile" 2>conftest.err)
13407 ac_status=$?
13408 cat conftest.err >&5
13409 echo "$as_me:13409: \$? = $ac_status" >&5
13410 if (exit $ac_status) && test -s "$ac_outfile"; then
13411 # The compiler can only warn and ignore the option if not recognized
13412 # So say no if there are warnings
13413 if test ! -s conftest.err; then
13414 lt_prog_compiler_pic_works_F77=yes
13417 $rm conftest*
13420 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13421 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13423 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13424 case $lt_prog_compiler_pic_F77 in
13425 "" | " "*) ;;
13426 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13427 esac
13428 else
13429 lt_prog_compiler_pic_F77=
13430 lt_prog_compiler_can_build_shared_F77=no
13434 case "$host_os" in
13435 # For platforms which do not support PIC, -DPIC is meaningless:
13436 *djgpp*)
13437 lt_prog_compiler_pic_F77=
13440 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13442 esac
13444 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13446 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 else
13449 lt_cv_prog_compiler_c_o_F77=no
13450 $rm -r conftest 2>/dev/null
13451 mkdir conftest
13452 cd conftest
13453 mkdir out
13454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13456 lt_compiler_flag="-o out/conftest2.$ac_objext"
13457 # Insert the option either (1) after the last *FLAGS variable, or
13458 # (2) before a word containing "conftest.", or (3) at the end.
13459 # Note that $ac_compile itself does not contain backslashes and begins
13460 # with a dollar sign (not a hyphen), so the echo should work correctly.
13461 lt_compile=`echo "$ac_compile" | $SED \
13462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13464 -e 's:$: $lt_compiler_flag:'`
13465 (eval echo "\"\$as_me:13465: $lt_compile\"" >&5)
13466 (eval "$lt_compile" 2>out/conftest.err)
13467 ac_status=$?
13468 cat out/conftest.err >&5
13469 echo "$as_me:13469: \$? = $ac_status" >&5
13470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13471 then
13472 # The compiler can only warn and ignore the option if not recognized
13473 # So say no if there are warnings
13474 if test ! -s out/conftest.err; then
13475 lt_cv_prog_compiler_c_o_F77=yes
13478 chmod u+w .
13479 $rm conftest*
13480 # SGI C++ compiler will create directory out/ii_files/ for
13481 # template instantiation
13482 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13483 $rm out/* && rmdir out
13484 cd ..
13485 rmdir conftest
13486 $rm conftest*
13489 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13493 hard_links="nottested"
13494 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13495 # do not overwrite the value of need_locks provided by the user
13496 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13498 hard_links=yes
13499 $rm conftest*
13500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13501 touch conftest.a
13502 ln conftest.a conftest.b 2>&5 || hard_links=no
13503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13504 echo "$as_me:$LINENO: result: $hard_links" >&5
13505 echo "${ECHO_T}$hard_links" >&6
13506 if test "$hard_links" = no; then
13507 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13509 need_locks=warn
13511 else
13512 need_locks=no
13515 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13516 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13518 runpath_var=
13519 allow_undefined_flag_F77=
13520 enable_shared_with_static_runtimes_F77=no
13521 archive_cmds_F77=
13522 archive_expsym_cmds_F77=
13523 old_archive_From_new_cmds_F77=
13524 old_archive_from_expsyms_cmds_F77=
13525 export_dynamic_flag_spec_F77=
13526 whole_archive_flag_spec_F77=
13527 thread_safe_flag_spec_F77=
13528 hardcode_libdir_flag_spec_F77=
13529 hardcode_libdir_flag_spec_ld_F77=
13530 hardcode_libdir_separator_F77=
13531 hardcode_direct_F77=no
13532 hardcode_minus_L_F77=no
13533 hardcode_shlibpath_var_F77=unsupported
13534 link_all_deplibs_F77=unknown
13535 hardcode_automatic_F77=no
13536 module_cmds_F77=
13537 module_expsym_cmds_F77=
13538 always_export_symbols_F77=no
13539 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13540 # include_expsyms should be a list of space-separated symbols to be *always*
13541 # included in the symbol list
13542 include_expsyms_F77=
13543 # exclude_expsyms can be an extended regexp of symbols to exclude
13544 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13545 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13546 # as well as any symbol that contains `d'.
13547 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13549 # platforms (ab)use it in PIC code, but their linkers get confused if
13550 # the symbol is explicitly referenced. Since portable code cannot
13551 # rely on this symbol name, it's probably fine to never include it in
13552 # preloaded symbol tables.
13553 extract_expsyms_cmds=
13555 case $host_os in
13556 cygwin* | mingw* | pw32*)
13557 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13558 # When not using gcc, we currently assume that we are using
13559 # Microsoft Visual C++.
13560 if test "$GCC" != yes; then
13561 with_gnu_ld=no
13564 openbsd*)
13565 with_gnu_ld=no
13567 esac
13569 ld_shlibs_F77=yes
13570 if test "$with_gnu_ld" = yes; then
13571 # If archive_cmds runs LD, not CC, wlarc should be empty
13572 wlarc='${wl}'
13574 # See if GNU ld supports shared libraries.
13575 case $host_os in
13576 aix3* | aix4* | aix5*)
13577 # On AIX/PPC, the GNU linker is very broken
13578 if test "$host_cpu" != ia64; then
13579 ld_shlibs_F77=no
13580 cat <<EOF 1>&2
13582 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13583 *** to be unable to reliably create shared libraries on AIX.
13584 *** Therefore, libtool is disabling shared libraries support. If you
13585 *** really care for shared libraries, you may want to modify your PATH
13586 *** so that a non-GNU linker is found, and then restart.
13592 amigaos*)
13593 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)'
13594 hardcode_libdir_flag_spec_F77='-L$libdir'
13595 hardcode_minus_L_F77=yes
13597 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13598 # that the semantics of dynamic libraries on AmigaOS, at least up
13599 # to version 4, is to share data among multiple programs linked
13600 # with the same dynamic library. Since this doesn't match the
13601 # behavior of shared libraries on other platforms, we can't use
13602 # them.
13603 ld_shlibs_F77=no
13606 beos*)
13607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13608 allow_undefined_flag_F77=unsupported
13609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13610 # support --undefined. This deserves some investigation. FIXME
13611 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 else
13613 ld_shlibs_F77=no
13617 cygwin* | mingw* | pw32*)
13618 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13619 # as there is no search path for DLLs.
13620 hardcode_libdir_flag_spec_F77='-L$libdir'
13621 allow_undefined_flag_F77=unsupported
13622 always_export_symbols_F77=no
13623 enable_shared_with_static_runtimes_F77=yes
13624 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13626 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13628 # If the export-symbols file already is a .def file (1st line
13629 # is EXPORTS), use it as is; otherwise, prepend...
13630 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13631 cp $export_symbols $output_objdir/$soname.def;
13632 else
13633 echo EXPORTS > $output_objdir/$soname.def;
13634 cat $export_symbols >> $output_objdir/$soname.def;
13636 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13637 else
13638 ld_shlibs=no
13642 netbsd*)
13643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13644 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13645 wlarc=
13646 else
13647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13648 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13652 solaris* | sysv5*)
13653 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13654 ld_shlibs_F77=no
13655 cat <<EOF 1>&2
13657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13658 *** create shared libraries on Solaris systems. Therefore, libtool
13659 *** is disabling shared libraries support. We urge you to upgrade GNU
13660 *** binutils to release 2.9.1 or newer. Another option is to modify
13661 *** your PATH or compiler configuration so that the native linker is
13662 *** used, and then restart.
13665 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13668 else
13669 ld_shlibs_F77=no
13673 sunos4*)
13674 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13675 wlarc=
13676 hardcode_direct_F77=yes
13677 hardcode_shlibpath_var_F77=no
13680 linux*)
13681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13682 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 archive_cmds_F77="$tmp_archive_cmds"
13684 supports_anon_versioning=no
13685 case `$LD -v 2>/dev/null` in
13686 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13687 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13688 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13689 *\ 2.11.*) ;; # other 2.11 versions
13690 *) supports_anon_versioning=yes ;;
13691 esac
13692 if test $supports_anon_versioning = yes; then
13693 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13695 $echo "local: *; };" >> $output_objdir/$libname.ver~
13696 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13697 else
13698 archive_expsym_cmds_F77="$tmp_archive_cmds"
13700 else
13701 ld_shlibs_F77=no
13706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13707 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13709 else
13710 ld_shlibs_F77=no
13713 esac
13715 if test "$ld_shlibs_F77" = yes; then
13716 runpath_var=LD_RUN_PATH
13717 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13718 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13719 # ancient GNU ld didn't support --whole-archive et. al.
13720 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13721 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13722 else
13723 whole_archive_flag_spec_F77=
13726 else
13727 # PORTME fill in a description of your system's linker (not GNU ld)
13728 case $host_os in
13729 aix3*)
13730 allow_undefined_flag_F77=unsupported
13731 always_export_symbols_F77=yes
13732 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'
13733 # Note: this linker hardcodes the directories in LIBPATH if there
13734 # are no directories specified by -L.
13735 hardcode_minus_L_F77=yes
13736 if test "$GCC" = yes && test -z "$link_static_flag"; then
13737 # Neither direct hardcoding nor static linking is supported with a
13738 # broken collect2.
13739 hardcode_direct_F77=unsupported
13743 aix4* | aix5*)
13744 if test "$host_cpu" = ia64; then
13745 # On IA64, the linker does run time linking by default, so we don't
13746 # have to do anything special.
13747 aix_use_runtimelinking=no
13748 exp_sym_flag='-Bexport'
13749 no_entry_flag=""
13750 else
13751 # If we're using GNU nm, then we don't want the "-C" option.
13752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13754 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'
13755 else
13756 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'
13758 aix_use_runtimelinking=no
13760 # Test if we are trying to use run time linking or normal
13761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13762 # need to do runtime linking.
13763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13764 for ld_flag in $LDFLAGS; do
13765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13766 aix_use_runtimelinking=yes
13767 break
13769 done
13770 esac
13772 exp_sym_flag='-bexport'
13773 no_entry_flag='-bnoentry'
13776 # When large executables or shared objects are built, AIX ld can
13777 # have problems creating the table of contents. If linking a library
13778 # or program results in "error TOC overflow" add -mminimal-toc to
13779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13782 archive_cmds_F77=''
13783 hardcode_direct_F77=yes
13784 hardcode_libdir_separator_F77=':'
13785 link_all_deplibs_F77=yes
13787 if test "$GCC" = yes; then
13788 case $host_os in aix4.012|aix4.012.*)
13789 # We only want to do this on AIX 4.2 and lower, the check
13790 # below for broken collect2 doesn't work under 4.3+
13791 collect2name=`${CC} -print-prog-name=collect2`
13792 if test -f "$collect2name" && \
13793 strings "$collect2name" | grep resolve_lib_name >/dev/null
13794 then
13795 # We have reworked collect2
13796 hardcode_direct_F77=yes
13797 else
13798 # We have old collect2
13799 hardcode_direct_F77=unsupported
13800 # It fails to find uninstalled libraries when the uninstalled
13801 # path is not listed in the libpath. Setting hardcode_minus_L
13802 # to unsupported forces relinking
13803 hardcode_minus_L_F77=yes
13804 hardcode_libdir_flag_spec_F77='-L$libdir'
13805 hardcode_libdir_separator_F77=
13807 esac
13808 shared_flag='-shared'
13809 else
13810 # not using gcc
13811 if test "$host_cpu" = ia64; then
13812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13813 # chokes on -Wl,-G. The following line is correct:
13814 shared_flag='-G'
13815 else
13816 if test "$aix_use_runtimelinking" = yes; then
13817 shared_flag='${wl}-G'
13818 else
13819 shared_flag='${wl}-bM:SRE'
13824 # It seems that -bexpall does not export symbols beginning with
13825 # underscore (_), so it is better to generate a list of symbols to export.
13826 always_export_symbols_F77=yes
13827 if test "$aix_use_runtimelinking" = yes; then
13828 # Warning - without using the other runtime loading flags (-brtl),
13829 # -berok will link without error, but may produce a broken library.
13830 allow_undefined_flag_F77='-berok'
13831 # Determine the default libpath from the value encoded in an empty executable.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 program main
13836 _ACEOF
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839 (eval $ac_link) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_f77_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest$ac_exeext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13862 # Check for a 64-bit object if we didn't find anything.
13863 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; }
13864 }'`; fi
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13870 rm -f conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13874 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13875 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"
13876 else
13877 if test "$host_cpu" = ia64; then
13878 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13879 allow_undefined_flag_F77="-z nodefs"
13880 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"
13881 else
13882 # Determine the default libpath from the value encoded in an empty executable.
13883 cat >conftest.$ac_ext <<_ACEOF
13884 program main
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_f77_werror_flag"
13898 || test ! -s conftest.err'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13913 # Check for a 64-bit object if we didn't find anything.
13914 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; }
13915 }'`; fi
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13921 rm -f conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13925 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13926 # Warning - without using the other run time loading flags,
13927 # -berok will link without error, but may produce a broken library.
13928 no_undefined_flag_F77=' ${wl}-bernotok'
13929 allow_undefined_flag_F77=' ${wl}-berok'
13930 # -bexpall does not export symbols beginning with underscore (_)
13931 always_export_symbols_F77=yes
13932 # Exported symbols can be pulled into shared objects from archives
13933 whole_archive_flag_spec_F77=' '
13934 archive_cmds_need_lc_F77=yes
13935 # This is similar to how AIX traditionally builds it's shared libraries.
13936 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'
13941 amigaos*)
13942 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)'
13943 hardcode_libdir_flag_spec_F77='-L$libdir'
13944 hardcode_minus_L_F77=yes
13945 # see comment about different semantics on the GNU ld section
13946 ld_shlibs_F77=no
13949 bsdi4*)
13950 export_dynamic_flag_spec_F77=-rdynamic
13953 cygwin* | mingw* | pw32*)
13954 # When not using gcc, we currently assume that we are using
13955 # Microsoft Visual C++.
13956 # hardcode_libdir_flag_spec is actually meaningless, as there is
13957 # no search path for DLLs.
13958 hardcode_libdir_flag_spec_F77=' '
13959 allow_undefined_flag_F77=unsupported
13960 # Tell ltmain to make .lib files, not .a files.
13961 libext=lib
13962 # Tell ltmain to make .dll files, not .so files.
13963 shrext_cmds=".dll"
13964 # FIXME: Setting linknames here is a bad hack.
13965 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13966 # The linker will automatically build a .lib file if we build a DLL.
13967 old_archive_From_new_cmds_F77='true'
13968 # FIXME: Should let the user specify the lib program.
13969 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13970 fix_srcfile_path='`cygpath -w "$srcfile"`'
13971 enable_shared_with_static_runtimes_F77=yes
13974 darwin* | rhapsody*)
13975 if test "$GXX" = yes ; then
13976 archive_cmds_need_lc_F77=no
13977 case "$host_os" in
13978 rhapsody* | darwin1.[012])
13979 allow_undefined_flag_F77='-undefined suppress'
13981 *) # Darwin 1.3 on
13982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13983 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13984 else
13985 case ${MACOSX_DEPLOYMENT_TARGET} in
13986 10.[012])
13987 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13989 10.*)
13990 allow_undefined_flag_F77='-undefined dynamic_lookup'
13992 esac
13995 esac
13996 lt_int_apple_cc_single_mod=no
13997 output_verbose_link_cmd='echo'
13998 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13999 lt_int_apple_cc_single_mod=yes
14001 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14002 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14003 else
14004 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14006 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14008 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14009 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14010 else
14011 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14013 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}'
14014 hardcode_direct_F77=no
14015 hardcode_automatic_F77=yes
14016 hardcode_shlibpath_var_F77=unsupported
14017 whole_archive_flag_spec_F77='-all_load $convenience'
14018 link_all_deplibs_F77=yes
14019 else
14020 ld_shlibs_F77=no
14024 dgux*)
14025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_libdir_flag_spec_F77='-L$libdir'
14027 hardcode_shlibpath_var_F77=no
14030 freebsd1*)
14031 ld_shlibs_F77=no
14034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14035 # support. Future versions do this automatically, but an explicit c++rt0.o
14036 # does not break anything, and helps significantly (at the cost of a little
14037 # extra space).
14038 freebsd2.2*)
14039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14040 hardcode_libdir_flag_spec_F77='-R$libdir'
14041 hardcode_direct_F77=yes
14042 hardcode_shlibpath_var_F77=no
14045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14046 freebsd2*)
14047 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_direct_F77=yes
14049 hardcode_minus_L_F77=yes
14050 hardcode_shlibpath_var_F77=no
14053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14054 freebsd* | kfreebsd*-gnu)
14055 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14056 hardcode_libdir_flag_spec_F77='-R$libdir'
14057 hardcode_direct_F77=yes
14058 hardcode_shlibpath_var_F77=no
14061 hpux9*)
14062 if test "$GCC" = yes; then
14063 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'
14064 else
14065 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'
14067 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068 hardcode_libdir_separator_F77=:
14069 hardcode_direct_F77=yes
14071 # hardcode_minus_L: Not really in the search PATH,
14072 # but as the default location of the library.
14073 hardcode_minus_L_F77=yes
14074 export_dynamic_flag_spec_F77='${wl}-E'
14077 hpux10* | hpux11*)
14078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14079 case "$host_cpu" in
14080 hppa*64*|ia64*)
14081 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14084 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14086 esac
14087 else
14088 case "$host_cpu" in
14089 hppa*64*|ia64*)
14090 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14093 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14095 esac
14097 if test "$with_gnu_ld" = no; then
14098 case "$host_cpu" in
14099 hppa*64*)
14100 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14101 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14102 hardcode_libdir_separator_F77=:
14103 hardcode_direct_F77=no
14104 hardcode_shlibpath_var_F77=no
14106 ia64*)
14107 hardcode_libdir_flag_spec_F77='-L$libdir'
14108 hardcode_direct_F77=no
14109 hardcode_shlibpath_var_F77=no
14111 # hardcode_minus_L: Not really in the search PATH,
14112 # but as the default location of the library.
14113 hardcode_minus_L_F77=yes
14116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14117 hardcode_libdir_separator_F77=:
14118 hardcode_direct_F77=yes
14119 export_dynamic_flag_spec_F77='${wl}-E'
14121 # hardcode_minus_L: Not really in the search PATH,
14122 # but as the default location of the library.
14123 hardcode_minus_L_F77=yes
14125 esac
14129 irix5* | irix6* | nonstopux*)
14130 if test "$GCC" = yes; then
14131 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'
14132 else
14133 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'
14134 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137 hardcode_libdir_separator_F77=:
14138 link_all_deplibs_F77=yes
14141 netbsd*)
14142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14144 else
14145 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14147 hardcode_libdir_flag_spec_F77='-R$libdir'
14148 hardcode_direct_F77=yes
14149 hardcode_shlibpath_var_F77=no
14152 newsos6)
14153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_direct_F77=yes
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156 hardcode_libdir_separator_F77=:
14157 hardcode_shlibpath_var_F77=no
14160 openbsd*)
14161 hardcode_direct_F77=yes
14162 hardcode_shlibpath_var_F77=no
14163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14165 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14166 export_dynamic_flag_spec_F77='${wl}-E'
14167 else
14168 case $host_os in
14169 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14170 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14171 hardcode_libdir_flag_spec_F77='-R$libdir'
14174 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14175 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14177 esac
14181 os2*)
14182 hardcode_libdir_flag_spec_F77='-L$libdir'
14183 hardcode_minus_L_F77=yes
14184 allow_undefined_flag_F77=unsupported
14185 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'
14186 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14189 osf3*)
14190 if test "$GCC" = yes; then
14191 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14192 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'
14193 else
14194 allow_undefined_flag_F77=' -expect_unresolved \*'
14195 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'
14197 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14198 hardcode_libdir_separator_F77=:
14201 osf4* | osf5*) # as osf3* with the addition of -msym flag
14202 if test "$GCC" = yes; then
14203 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14204 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'
14205 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14206 else
14207 allow_undefined_flag_F77=' -expect_unresolved \*'
14208 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'
14209 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~
14210 $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'
14212 # Both c and cxx compiler support -rpath directly
14213 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14215 hardcode_libdir_separator_F77=:
14218 sco3.2v5*)
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_shlibpath_var_F77=no
14221 export_dynamic_flag_spec_F77='${wl}-Bexport'
14222 runpath_var=LD_RUN_PATH
14223 hardcode_runpath_var=yes
14226 solaris*)
14227 no_undefined_flag_F77=' -z text'
14228 if test "$GCC" = yes; then
14229 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14230 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14232 else
14233 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14234 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14237 hardcode_libdir_flag_spec_F77='-R$libdir'
14238 hardcode_shlibpath_var_F77=no
14239 case $host_os in
14240 solaris2.[0-5] | solaris2.[0-5].*) ;;
14241 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14242 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14243 esac
14244 link_all_deplibs_F77=yes
14247 sunos4*)
14248 if test "x$host_vendor" = xsequent; then
14249 # Use $CC to link under sequent, because it throws in some extra .o
14250 # files that make .init and .fini sections work.
14251 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14252 else
14253 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_libdir_flag_spec_F77='-L$libdir'
14256 hardcode_direct_F77=yes
14257 hardcode_minus_L_F77=yes
14258 hardcode_shlibpath_var_F77=no
14261 sysv4)
14262 case $host_vendor in
14263 sni)
14264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14265 hardcode_direct_F77=yes # is this really true???
14267 siemens)
14268 ## LD is ld it makes a PLAMLIB
14269 ## CC just makes a GrossModule.
14270 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14271 reload_cmds_F77='$CC -r -o $output$reload_objs'
14272 hardcode_direct_F77=no
14274 motorola)
14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14278 esac
14279 runpath_var='LD_RUN_PATH'
14280 hardcode_shlibpath_var_F77=no
14283 sysv4.3*)
14284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 hardcode_shlibpath_var_F77=no
14286 export_dynamic_flag_spec_F77='-Bexport'
14289 sysv4*MP*)
14290 if test -d /usr/nec; then
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_shlibpath_var_F77=no
14293 runpath_var=LD_RUN_PATH
14294 hardcode_runpath_var=yes
14295 ld_shlibs_F77=yes
14299 sysv4.2uw2*)
14300 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_direct_F77=yes
14302 hardcode_minus_L_F77=no
14303 hardcode_shlibpath_var_F77=no
14304 hardcode_runpath_var=yes
14305 runpath_var=LD_RUN_PATH
14308 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14309 no_undefined_flag_F77='${wl}-z ${wl}text'
14310 if test "$GCC" = yes; then
14311 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 else
14313 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 runpath_var='LD_RUN_PATH'
14316 hardcode_shlibpath_var_F77=no
14319 sysv5*)
14320 no_undefined_flag_F77=' -z text'
14321 # $CC -shared without GNU ld will not create a library from C++
14322 # object files and a static libstdc++, better avoid it by now
14323 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14326 hardcode_libdir_flag_spec_F77=
14327 hardcode_shlibpath_var_F77=no
14328 runpath_var='LD_RUN_PATH'
14331 uts4*)
14332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_libdir_flag_spec_F77='-L$libdir'
14334 hardcode_shlibpath_var_F77=no
14338 ld_shlibs_F77=no
14340 esac
14343 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14344 echo "${ECHO_T}$ld_shlibs_F77" >&6
14345 test "$ld_shlibs_F77" = no && can_build_shared=no
14347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14348 if test "$GCC" = yes; then
14349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14353 # Do we need to explicitly link libc?
14355 case "x$archive_cmds_need_lc_F77" in
14356 x|xyes)
14357 # Assume -lc should be added
14358 archive_cmds_need_lc_F77=yes
14360 if test "$enable_shared" = yes && test "$GCC" = yes; then
14361 case $archive_cmds_F77 in
14362 *'~'*)
14363 # FIXME: we may have to deal with multi-command sequences.
14365 '$CC '*)
14366 # Test whether the compiler implicitly links with -lc since on some
14367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14368 # to ld, don't add -lc before -lgcc.
14369 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14370 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14371 $rm conftest*
14372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } 2>conftest.err; then
14379 soname=conftest
14380 lib=conftest
14381 libobjs=conftest.$ac_objext
14382 deplibs=
14383 wl=$lt_prog_compiler_wl_F77
14384 compiler_flags=-v
14385 linker_flags=-v
14386 verstring=
14387 output_objdir=.
14388 libname=conftest
14389 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14390 allow_undefined_flag_F77=
14391 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14392 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }
14396 then
14397 archive_cmds_need_lc_F77=no
14398 else
14399 archive_cmds_need_lc_F77=yes
14401 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14402 else
14403 cat conftest.err 1>&5
14405 $rm conftest*
14406 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14407 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14409 esac
14412 esac
14414 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14415 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14416 library_names_spec=
14417 libname_spec='lib$name'
14418 soname_spec=
14419 shrext_cmds=".so"
14420 postinstall_cmds=
14421 postuninstall_cmds=
14422 finish_cmds=
14423 finish_eval=
14424 shlibpath_var=
14425 shlibpath_overrides_runpath=unknown
14426 version_type=none
14427 dynamic_linker="$host_os ld.so"
14428 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14429 if test "$GCC" = yes; then
14430 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14431 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14432 # if the path contains ";" then we assume it to be the separator
14433 # otherwise default to the standard path separator (i.e. ":") - it is
14434 # assumed that no part of a normal pathname contains ";" but that should
14435 # okay in the real world where ";" in dirpaths is itself problematic.
14436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14437 else
14438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14440 else
14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14443 need_lib_prefix=unknown
14444 hardcode_into_libs=no
14446 # when you set need_version to no, make sure it does not cause -set_version
14447 # flags to be left without arguments
14448 need_version=unknown
14450 case $host_os in
14451 aix3*)
14452 version_type=linux
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14454 shlibpath_var=LIBPATH
14456 # AIX 3 has no versioning support, so we append a major version to the name.
14457 soname_spec='${libname}${release}${shared_ext}$major'
14460 aix4* | aix5*)
14461 version_type=linux
14462 need_lib_prefix=no
14463 need_version=no
14464 hardcode_into_libs=yes
14465 if test "$host_cpu" = ia64; then
14466 # AIX 5 supports IA64
14467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14468 shlibpath_var=LD_LIBRARY_PATH
14469 else
14470 # With GCC up to 2.95.x, collect2 would create an import file
14471 # for dependence libraries. The import file would start with
14472 # the line `#! .'. This would cause the generated library to
14473 # depend on `.', always an invalid library. This was fixed in
14474 # development snapshots of GCC prior to 3.0.
14475 case $host_os in
14476 aix4 | aix4.[01] | aix4.[01].*)
14477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14478 echo ' yes '
14479 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14481 else
14482 can_build_shared=no
14485 esac
14486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14487 # soname into executable. Probably we can add versioning support to
14488 # collect2, so additional links can be useful in future.
14489 if test "$aix_use_runtimelinking" = yes; then
14490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14491 # instead of lib<name>.a to let people know that these are not
14492 # typical AIX shared libraries.
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 else
14495 # We preserve .a as extension for shared libraries through AIX4.2
14496 # and later when we are not doing run time linking.
14497 library_names_spec='${libname}${release}.a $libname.a'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LIBPATH
14504 amigaos*)
14505 library_names_spec='$libname.ixlibrary $libname.a'
14506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14507 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'
14510 beos*)
14511 library_names_spec='${libname}${shared_ext}'
14512 dynamic_linker="$host_os ld.so"
14513 shlibpath_var=LIBRARY_PATH
14516 bsdi4*)
14517 version_type=linux
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14525 # the default ld.so.conf also contains /usr/contrib/lib and
14526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14527 # libtool to hard-code these into programs
14530 cygwin* | mingw* | pw32*)
14531 version_type=windows
14532 shrext_cmds=".dll"
14533 need_version=no
14534 need_lib_prefix=no
14536 case $GCC,$host_os in
14537 yes,cygwin* | yes,mingw* | yes,pw32*)
14538 library_names_spec='$libname.dll.a'
14539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14540 postinstall_cmds='base_file=`basename \${file}`~
14541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14542 dldir=$destdir/`dirname \$dlpath`~
14543 test -d \$dldir || mkdir -p \$dldir~
14544 $install_prog $dir/$dlname \$dldir/$dlname'
14545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546 dlpath=$dir/\$dldll~
14547 $rm \$dlpath'
14548 shlibpath_overrides_runpath=yes
14550 case $host_os in
14551 cygwin*)
14552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14556 mingw*)
14557 # MinGW DLLs use traditional 'lib' prefix
14558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14561 # It is most probably a Windows format PATH printed by
14562 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14563 # path with ; separators, and with drive letters. We can handle the
14564 # drive letters (cygwin fileutils understands them), so leave them,
14565 # especially as we might pass files found there to a mingw objdump,
14566 # which wouldn't understand a cygwinified path. Ahh.
14567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14568 else
14569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14572 pw32*)
14573 # pw32 DLLs use 'pw' prefix rather than 'lib'
14574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14576 esac
14580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14582 esac
14583 dynamic_linker='Win32 ld.exe'
14584 # FIXME: first we should search . and the directory the executable is in
14585 shlibpath_var=PATH
14588 darwin* | rhapsody*)
14589 dynamic_linker="$host_os dyld"
14590 version_type=darwin
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14594 soname_spec='${libname}${release}${major}$shared_ext'
14595 shlibpath_overrides_runpath=yes
14596 shlibpath_var=DYLD_LIBRARY_PATH
14597 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14599 if test "$GCC" = yes; then
14600 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"`
14601 else
14602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14607 dgux*)
14608 version_type=linux
14609 need_lib_prefix=no
14610 need_version=no
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14616 freebsd1*)
14617 dynamic_linker=no
14620 kfreebsd*-gnu)
14621 version_type=linux
14622 need_lib_prefix=no
14623 need_version=no
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 dynamic_linker='GNU ld.so'
14632 freebsd*)
14633 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14634 version_type=freebsd-$objformat
14635 case $version_type in
14636 freebsd-elf*)
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14638 need_version=no
14639 need_lib_prefix=no
14641 freebsd-*)
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14643 need_version=yes
14645 esac
14646 shlibpath_var=LD_LIBRARY_PATH
14647 case $host_os in
14648 freebsd2*)
14649 shlibpath_overrides_runpath=yes
14651 freebsd3.01* | freebsdelf3.01*)
14652 shlibpath_overrides_runpath=yes
14653 hardcode_into_libs=yes
14655 *) # from 3.2 on
14656 shlibpath_overrides_runpath=no
14657 hardcode_into_libs=yes
14659 esac
14662 gnu*)
14663 version_type=linux
14664 need_lib_prefix=no
14665 need_version=no
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 hardcode_into_libs=yes
14672 hpux9* | hpux10* | hpux11*)
14673 # Give a soname corresponding to the major version so that dld.sl refuses to
14674 # link against other versions.
14675 version_type=sunos
14676 need_lib_prefix=no
14677 need_version=no
14678 case "$host_cpu" in
14679 ia64*)
14680 shrext_cmds='.so'
14681 hardcode_into_libs=yes
14682 dynamic_linker="$host_os dld.so"
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 if test "X$HPUX_IA64_MODE" = X32; then
14688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14689 else
14690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694 hppa*64*)
14695 shrext_cmds='.sl'
14696 hardcode_into_libs=yes
14697 dynamic_linker="$host_os dld.sl"
14698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14706 shrext_cmds='.sl'
14707 dynamic_linker="$host_os dld.sl"
14708 shlibpath_var=SHLIB_PATH
14709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14713 esac
14714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14715 postinstall_cmds='chmod 555 $lib'
14718 irix5* | irix6* | nonstopux*)
14719 case $host_os in
14720 nonstopux*) version_type=nonstopux ;;
14722 if test "$lt_cv_prog_gnu_ld" = yes; then
14723 version_type=linux
14724 else
14725 version_type=irix
14726 fi ;;
14727 esac
14728 need_lib_prefix=no
14729 need_version=no
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14732 case $host_os in
14733 irix5* | nonstopux*)
14734 libsuff= shlibsuff=
14737 case $LD in # libtool.m4 will add one of these switches to LD
14738 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14739 libsuff= shlibsuff= libmagic=32-bit;;
14740 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14741 libsuff=32 shlibsuff=N32 libmagic=N32;;
14742 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14743 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14744 *) libsuff= shlibsuff= libmagic=never-match;;
14745 esac
14747 esac
14748 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14749 shlibpath_overrides_runpath=no
14750 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14751 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14752 hardcode_into_libs=yes
14755 # No shared lib support for Linux oldld, aout, or coff.
14756 linux*oldld* | linux*aout* | linux*coff*)
14757 dynamic_linker=no
14760 # This must be Linux ELF.
14761 linux*)
14762 version_type=linux
14763 need_lib_prefix=no
14764 need_version=no
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=no
14770 # This implies no fast_install, which is unacceptable.
14771 # Some rework will be needed to allow for fast_install
14772 # before this can be enabled.
14773 hardcode_into_libs=yes
14775 # find out which ABI we are using
14776 libsuff=
14777 case "$host_cpu" in
14778 x86_64*|s390x*|powerpc64*)
14779 echo '#line 14779 "configure"' > conftest.$ac_ext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781 (eval $ac_compile) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; then
14785 case `/usr/bin/file conftest.$ac_objext` in
14786 *64-bit*)
14787 libsuff=64
14788 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14790 esac
14792 rm -rf conftest*
14794 esac
14796 # Append ld.so.conf contents to the search path
14797 if test -f /etc/ld.so.conf; then
14798 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14799 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14802 # We used to test for /lib/ld.so.1 and disable shared libraries on
14803 # powerpc, because MkLinux only supported shared libraries with the
14804 # GNU dynamic linker. Since this was broken with cross compilers,
14805 # most powerpc-linux boxes support dynamic linking these days and
14806 # people can always --disable-shared, the test was removed, and we
14807 # assume the GNU/Linux dynamic linker is in use.
14808 dynamic_linker='GNU/Linux ld.so'
14811 knetbsd*-gnu)
14812 version_type=linux
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 shlibpath_overrides_runpath=no
14819 hardcode_into_libs=yes
14820 dynamic_linker='GNU ld.so'
14823 netbsd*)
14824 version_type=sunos
14825 need_lib_prefix=no
14826 need_version=no
14827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14830 dynamic_linker='NetBSD (a.out) ld.so'
14831 else
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 dynamic_linker='NetBSD ld.elf_so'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes
14838 hardcode_into_libs=yes
14841 newsos6)
14842 version_type=linux
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14848 nto-qnx*)
14849 version_type=linux
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14858 openbsd*)
14859 version_type=sunos
14860 need_lib_prefix=no
14861 need_version=yes
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866 case $host_os in
14867 openbsd2.[89] | openbsd2.[89].*)
14868 shlibpath_overrides_runpath=no
14871 shlibpath_overrides_runpath=yes
14873 esac
14874 else
14875 shlibpath_overrides_runpath=yes
14879 os2*)
14880 libname_spec='$name'
14881 shrext_cmds=".dll"
14882 need_lib_prefix=no
14883 library_names_spec='$libname${shared_ext} $libname.a'
14884 dynamic_linker='OS/2 ld.exe'
14885 shlibpath_var=LIBPATH
14888 osf3* | osf4* | osf5*)
14889 version_type=osf
14890 need_lib_prefix=no
14891 need_version=no
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14899 sco3.2v5*)
14900 version_type=osf
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14906 solaris*)
14907 version_type=linux
14908 need_lib_prefix=no
14909 need_version=no
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath=yes
14914 hardcode_into_libs=yes
14915 # ldd complains unless libraries are executable
14916 postinstall_cmds='chmod +x $lib'
14919 sunos4*)
14920 version_type=sunos
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 if test "$with_gnu_ld" = yes; then
14926 need_lib_prefix=no
14928 need_version=yes
14931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14932 version_type=linux
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 case $host_vendor in
14937 sni)
14938 shlibpath_overrides_runpath=no
14939 need_lib_prefix=no
14940 export_dynamic_flag_spec='${wl}-Blargedynsym'
14941 runpath_var=LD_RUN_PATH
14943 siemens)
14944 need_lib_prefix=no
14946 motorola)
14947 need_lib_prefix=no
14948 need_version=no
14949 shlibpath_overrides_runpath=no
14950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14952 esac
14955 sysv4*MP*)
14956 if test -d /usr/nec ;then
14957 version_type=linux
14958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14959 soname_spec='$libname${shared_ext}.$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14964 uts4*)
14965 version_type=linux
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14972 dynamic_linker=no
14974 esac
14975 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14976 echo "${ECHO_T}$dynamic_linker" >&6
14977 test "$dynamic_linker" = no && can_build_shared=no
14979 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14980 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14981 hardcode_action_F77=
14982 if test -n "$hardcode_libdir_flag_spec_F77" || \
14983 test -n "$runpath_var F77" || \
14984 test "X$hardcode_automatic_F77"="Xyes" ; then
14986 # We can hardcode non-existant directories.
14987 if test "$hardcode_direct_F77" != no &&
14988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14989 # have to relink, otherwise we might link with an installed library
14990 # when we should be linking with a yet-to-be-installed one
14991 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14992 test "$hardcode_minus_L_F77" != no; then
14993 # Linking always hardcodes the temporary library directory.
14994 hardcode_action_F77=relink
14995 else
14996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14997 hardcode_action_F77=immediate
14999 else
15000 # We cannot hardcode anything, or else we can only hardcode existing
15001 # directories.
15002 hardcode_action_F77=unsupported
15004 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15005 echo "${ECHO_T}$hardcode_action_F77" >&6
15007 if test "$hardcode_action_F77" = relink; then
15008 # Fast installation is not supported
15009 enable_fast_install=no
15010 elif test "$shlibpath_overrides_runpath" = yes ||
15011 test "$enable_shared" = no; then
15012 # Fast installation is not necessary
15013 enable_fast_install=needless
15016 striplib=
15017 old_striplib=
15018 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15019 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15020 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15021 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15022 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15023 echo "$as_me:$LINENO: result: yes" >&5
15024 echo "${ECHO_T}yes" >&6
15025 else
15026 # FIXME - insert some real tests, host_os isn't really good enough
15027 case $host_os in
15028 darwin*)
15029 if test -n "$STRIP" ; then
15030 striplib="$STRIP -x"
15031 echo "$as_me:$LINENO: result: yes" >&5
15032 echo "${ECHO_T}yes" >&6
15033 else
15034 echo "$as_me:$LINENO: result: no" >&5
15035 echo "${ECHO_T}no" >&6
15039 echo "$as_me:$LINENO: result: no" >&5
15040 echo "${ECHO_T}no" >&6
15042 esac
15047 # The else clause should only fire when bootstrapping the
15048 # libtool distribution, otherwise you forgot to ship ltmain.sh
15049 # with your package, and you will get complaints that there are
15050 # no rules to generate ltmain.sh.
15051 if test -f "$ltmain"; then
15052 # See if we are running on zsh, and set the options which allow our commands through
15053 # without removal of \ escapes.
15054 if test -n "${ZSH_VERSION+set}" ; then
15055 setopt NO_GLOB_SUBST
15057 # Now quote all the things that may contain metacharacters while being
15058 # careful not to overquote the AC_SUBSTed values. We take copies of the
15059 # variables and quote the copies for generation of the libtool script.
15060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15061 SED SHELL STRIP \
15062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15064 deplibs_check_method reload_flag reload_cmds need_locks \
15065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15066 lt_cv_sys_global_symbol_to_c_name_address \
15067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15068 old_postinstall_cmds old_postuninstall_cmds \
15069 compiler_F77 \
15070 CC_F77 \
15071 LD_F77 \
15072 lt_prog_compiler_wl_F77 \
15073 lt_prog_compiler_pic_F77 \
15074 lt_prog_compiler_static_F77 \
15075 lt_prog_compiler_no_builtin_flag_F77 \
15076 export_dynamic_flag_spec_F77 \
15077 thread_safe_flag_spec_F77 \
15078 whole_archive_flag_spec_F77 \
15079 enable_shared_with_static_runtimes_F77 \
15080 old_archive_cmds_F77 \
15081 old_archive_from_new_cmds_F77 \
15082 predep_objects_F77 \
15083 postdep_objects_F77 \
15084 predeps_F77 \
15085 postdeps_F77 \
15086 compiler_lib_search_path_F77 \
15087 archive_cmds_F77 \
15088 archive_expsym_cmds_F77 \
15089 postinstall_cmds_F77 \
15090 postuninstall_cmds_F77 \
15091 old_archive_from_expsyms_cmds_F77 \
15092 allow_undefined_flag_F77 \
15093 no_undefined_flag_F77 \
15094 export_symbols_cmds_F77 \
15095 hardcode_libdir_flag_spec_F77 \
15096 hardcode_libdir_flag_spec_ld_F77 \
15097 hardcode_libdir_separator_F77 \
15098 hardcode_automatic_F77 \
15099 module_cmds_F77 \
15100 module_expsym_cmds_F77 \
15101 lt_cv_prog_compiler_c_o_F77 \
15102 exclude_expsyms_F77 \
15103 include_expsyms_F77; do
15105 case $var in
15106 old_archive_cmds_F77 | \
15107 old_archive_from_new_cmds_F77 | \
15108 archive_cmds_F77 | \
15109 archive_expsym_cmds_F77 | \
15110 module_cmds_F77 | \
15111 module_expsym_cmds_F77 | \
15112 old_archive_from_expsyms_cmds_F77 | \
15113 export_symbols_cmds_F77 | \
15114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15115 postinstall_cmds | postuninstall_cmds | \
15116 old_postinstall_cmds | old_postuninstall_cmds | \
15117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15118 # Double-quote double-evaled strings.
15119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15124 esac
15125 done
15127 case $lt_echo in
15128 *'\$0 --fallback-echo"')
15129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15131 esac
15133 cfgfile="$ofile"
15135 cat <<__EOF__ >> "$cfgfile"
15136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15140 # Shell to use when invoking shell scripts.
15141 SHELL=$lt_SHELL
15143 # Whether or not to build shared libraries.
15144 build_libtool_libs=$enable_shared
15146 # Whether or not to build static libraries.
15147 build_old_libs=$enable_static
15149 # Whether or not to add -lc for building shared libraries.
15150 build_libtool_need_lc=$archive_cmds_need_lc_F77
15152 # Whether or not to disallow shared libs when runtime libs are static
15153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15155 # Whether or not to optimize for fast installation.
15156 fast_install=$enable_fast_install
15158 # The host system.
15159 host_alias=$host_alias
15160 host=$host
15162 # An echo program that does not interpret backslashes.
15163 echo=$lt_echo
15165 # The archiver.
15166 AR=$lt_AR
15167 AR_FLAGS=$lt_AR_FLAGS
15169 # A C compiler.
15170 LTCC=$lt_LTCC
15172 # A language-specific compiler.
15173 CC=$lt_compiler_F77
15175 # Is the compiler the GNU C compiler?
15176 with_gcc=$GCC_F77
15178 # An ERE matcher.
15179 EGREP=$lt_EGREP
15181 # The linker used to build libraries.
15182 LD=$lt_LD_F77
15184 # Whether we need hard or soft links.
15185 LN_S=$lt_LN_S
15187 # A BSD-compatible nm program.
15188 NM=$lt_NM
15190 # A symbol stripping program
15191 STRIP=$lt_STRIP
15193 # Used to examine libraries when file_magic_cmd begins "file"
15194 MAGIC_CMD=$MAGIC_CMD
15196 # Used on cygwin: DLL creation program.
15197 DLLTOOL="$DLLTOOL"
15199 # Used on cygwin: object dumper.
15200 OBJDUMP="$OBJDUMP"
15202 # Used on cygwin: assembler.
15203 AS="$AS"
15205 # The name of the directory that contains temporary libtool files.
15206 objdir=$objdir
15208 # How to create reloadable object files.
15209 reload_flag=$lt_reload_flag
15210 reload_cmds=$lt_reload_cmds
15212 # How to pass a linker flag through the compiler.
15213 wl=$lt_lt_prog_compiler_wl_F77
15215 # Object file suffix (normally "o").
15216 objext="$ac_objext"
15218 # Old archive suffix (normally "a").
15219 libext="$libext"
15221 # Shared library suffix (normally ".so").
15222 shrext_cmds='$shrext_cmds'
15224 # Executable file suffix (normally "").
15225 exeext="$exeext"
15227 # Additional compiler flags for building library objects.
15228 pic_flag=$lt_lt_prog_compiler_pic_F77
15229 pic_mode=$pic_mode
15231 # What is the maximum length of a command?
15232 max_cmd_len=$lt_cv_sys_max_cmd_len
15234 # Does compiler simultaneously support -c and -o options?
15235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15237 # Must we lock files when doing compilation ?
15238 need_locks=$lt_need_locks
15240 # Do we need the lib prefix for modules?
15241 need_lib_prefix=$need_lib_prefix
15243 # Do we need a version for libraries?
15244 need_version=$need_version
15246 # Whether dlopen is supported.
15247 dlopen_support=$enable_dlopen
15249 # Whether dlopen of programs is supported.
15250 dlopen_self=$enable_dlopen_self
15252 # Whether dlopen of statically linked programs is supported.
15253 dlopen_self_static=$enable_dlopen_self_static
15255 # Compiler flag to prevent dynamic linking.
15256 link_static_flag=$lt_lt_prog_compiler_static_F77
15258 # Compiler flag to turn off builtin functions.
15259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15261 # Compiler flag to allow reflexive dlopens.
15262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15264 # Compiler flag to generate shared objects directly from archives.
15265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15267 # Compiler flag to generate thread-safe objects.
15268 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15270 # Library versioning type.
15271 version_type=$version_type
15273 # Format of library name prefix.
15274 libname_spec=$lt_libname_spec
15276 # List of archive names. First name is the real one, the rest are links.
15277 # The last name is the one that the linker finds with -lNAME.
15278 library_names_spec=$lt_library_names_spec
15280 # The coded name of the library, if different from the real name.
15281 soname_spec=$lt_soname_spec
15283 # Commands used to build and install an old-style archive.
15284 RANLIB=$lt_RANLIB
15285 old_archive_cmds=$lt_old_archive_cmds_F77
15286 old_postinstall_cmds=$lt_old_postinstall_cmds
15287 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15289 # Create an old-style archive from a shared archive.
15290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15292 # Create a temporary old-style archive to link instead of a shared archive.
15293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15295 # Commands used to build and install a shared archive.
15296 archive_cmds=$lt_archive_cmds_F77
15297 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15298 postinstall_cmds=$lt_postinstall_cmds
15299 postuninstall_cmds=$lt_postuninstall_cmds
15301 # Commands used to build a loadable module (assumed same as above if empty)
15302 module_cmds=$lt_module_cmds_F77
15303 module_expsym_cmds=$lt_module_expsym_cmds_F77
15305 # Commands to strip libraries.
15306 old_striplib=$lt_old_striplib
15307 striplib=$lt_striplib
15309 # Dependencies to place before the objects being linked to create a
15310 # shared library.
15311 predep_objects=$lt_predep_objects_F77
15313 # Dependencies to place after the objects being linked to create a
15314 # shared library.
15315 postdep_objects=$lt_postdep_objects_F77
15317 # Dependencies to place before the objects being linked to create a
15318 # shared library.
15319 predeps=$lt_predeps_F77
15321 # Dependencies to place after the objects being linked to create a
15322 # shared library.
15323 postdeps=$lt_postdeps_F77
15325 # The library search path used internally by the compiler when linking
15326 # a shared library.
15327 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15329 # Method to check whether dependent libraries are shared objects.
15330 deplibs_check_method=$lt_deplibs_check_method
15332 # Command to use when deplibs_check_method == file_magic.
15333 file_magic_cmd=$lt_file_magic_cmd
15335 # Flag that allows shared libraries with undefined symbols to be built.
15336 allow_undefined_flag=$lt_allow_undefined_flag_F77
15338 # Flag that forces no undefined symbols.
15339 no_undefined_flag=$lt_no_undefined_flag_F77
15341 # Commands used to finish a libtool library installation in a directory.
15342 finish_cmds=$lt_finish_cmds
15344 # Same as above, but a single script fragment to be evaled but not shown.
15345 finish_eval=$lt_finish_eval
15347 # Take the output of nm and produce a listing of raw symbols and C names.
15348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15350 # Transform the output of nm in a proper C declaration
15351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15353 # Transform the output of nm in a C name address pair
15354 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15356 # This is the shared library runtime path variable.
15357 runpath_var=$runpath_var
15359 # This is the shared library path variable.
15360 shlibpath_var=$shlibpath_var
15362 # Is shlibpath searched before the hard-coded library search path?
15363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15365 # How to hardcode a shared library path into an executable.
15366 hardcode_action=$hardcode_action_F77
15368 # Whether we should hardcode library paths into libraries.
15369 hardcode_into_libs=$hardcode_into_libs
15371 # Flag to hardcode \$libdir into a binary during linking.
15372 # This must work even if \$libdir does not exist.
15373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15375 # If ld is used when linking, flag to hardcode \$libdir into
15376 # a binary during linking. This must work even if \$libdir does
15377 # not exist.
15378 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15380 # Whether we need a single -rpath flag with a separated argument.
15381 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15383 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15384 # resulting binary.
15385 hardcode_direct=$hardcode_direct_F77
15387 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15388 # resulting binary.
15389 hardcode_minus_L=$hardcode_minus_L_F77
15391 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15392 # the resulting binary.
15393 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15395 # Set to yes if building a shared library automatically hardcodes DIR into the library
15396 # and all subsequent libraries and executables linked against it.
15397 hardcode_automatic=$hardcode_automatic_F77
15399 # Variables whose values should be saved in libtool wrapper scripts and
15400 # restored at relink time.
15401 variables_saved_for_relink="$variables_saved_for_relink"
15403 # Whether libtool must link a program against all its dependency libraries.
15404 link_all_deplibs=$link_all_deplibs_F77
15406 # Compile-time system search path for libraries
15407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15409 # Run-time system search path for libraries
15410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15412 # Fix the shell variable \$srcfile for the compiler.
15413 fix_srcfile_path="$fix_srcfile_path_F77"
15415 # Set to yes if exported symbols are required.
15416 always_export_symbols=$always_export_symbols_F77
15418 # The commands to list exported symbols.
15419 export_symbols_cmds=$lt_export_symbols_cmds_F77
15421 # The commands to extract the exported symbol list from a shared archive.
15422 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15424 # Symbols that should not be listed in the preloaded symbols.
15425 exclude_expsyms=$lt_exclude_expsyms_F77
15427 # Symbols that must always be exported.
15428 include_expsyms=$lt_include_expsyms_F77
15430 # ### END LIBTOOL TAG CONFIG: $tagname
15432 __EOF__
15435 else
15436 # If there is no Makefile yet, we rely on a make rule to execute
15437 # `config.status --recheck' to rerun these tests and create the
15438 # libtool script then.
15439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15440 if test -f "$ltmain_in"; then
15441 test -f Makefile && make "$ltmain"
15446 ac_ext=cc
15447 ac_cpp='$CXXCPP $CPPFLAGS'
15448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15452 CC="$lt_save_CC"
15454 else
15455 tagname=""
15459 GCJ)
15460 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15464 # Source file extension for Java test sources.
15465 ac_ext=java
15467 # Object file extension for compiled Java test sources.
15468 objext=o
15469 objext_GCJ=$objext
15471 # Code to be used in simple compile tests
15472 lt_simple_compile_test_code="class foo {}\n"
15474 # Code to be used in simple link tests
15475 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15477 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15479 # If no C compiler was specified, use CC.
15480 LTCC=${LTCC-"$CC"}
15482 # Allow CC to be a program name with arguments.
15483 compiler=$CC
15486 # Allow CC to be a program name with arguments.
15487 lt_save_CC="$CC"
15488 CC=${GCJ-"gcj"}
15489 compiler=$CC
15490 compiler_GCJ=$CC
15492 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15493 archive_cmds_need_lc_GCJ=no
15496 lt_prog_compiler_no_builtin_flag_GCJ=
15498 if test "$GCC" = yes; then
15499 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15502 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15503 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 lt_cv_prog_compiler_rtti_exceptions=no
15508 ac_outfile=conftest.$ac_objext
15509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 lt_compiler_flag="-fno-rtti -fno-exceptions"
15511 # Insert the option either (1) after the last *FLAGS variable, or
15512 # (2) before a word containing "conftest.", or (3) at the end.
15513 # Note that $ac_compile itself does not contain backslashes and begins
15514 # with a dollar sign (not a hyphen), so the echo should work correctly.
15515 # The option is referenced via a variable to avoid confusing sed.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:15520: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>conftest.err)
15522 ac_status=$?
15523 cat conftest.err >&5
15524 echo "$as_me:15524: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s "$ac_outfile"; then
15526 # The compiler can only warn and ignore the option if not recognized
15527 # So say no if there are warnings
15528 if test ! -s conftest.err; then
15529 lt_cv_prog_compiler_rtti_exceptions=yes
15532 $rm conftest*
15535 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15536 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15538 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15539 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15540 else
15546 lt_prog_compiler_wl_GCJ=
15547 lt_prog_compiler_pic_GCJ=
15548 lt_prog_compiler_static_GCJ=
15550 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15553 if test "$GCC" = yes; then
15554 lt_prog_compiler_wl_GCJ='-Wl,'
15555 lt_prog_compiler_static_GCJ='-static'
15557 case $host_os in
15558 aix*)
15559 # All AIX code is PIC.
15560 if test "$host_cpu" = ia64; then
15561 # AIX 5 now supports IA64 processor
15562 lt_prog_compiler_static_GCJ='-Bstatic'
15566 amigaos*)
15567 # FIXME: we need at least 68020 code to build shared libraries, but
15568 # adding the `-m68020' flag to GCC prevents building anything better,
15569 # like `-m68040'.
15570 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15573 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15574 # PIC is the default for these OSes.
15577 mingw* | pw32* | os2*)
15578 # This hack is so that the source file can tell whether it is being
15579 # built for inclusion in a dll (and should export symbols for example).
15580 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15583 darwin* | rhapsody*)
15584 # PIC is the default on this platform
15585 # Common symbols not allowed in MH_DYLIB files
15586 lt_prog_compiler_pic_GCJ='-fno-common'
15589 msdosdjgpp*)
15590 # Just because we use GCC doesn't mean we suddenly get shared libraries
15591 # on systems that don't support them.
15592 lt_prog_compiler_can_build_shared_GCJ=no
15593 enable_shared=no
15596 sysv4*MP*)
15597 if test -d /usr/nec; then
15598 lt_prog_compiler_pic_GCJ=-Kconform_pic
15602 hpux*)
15603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15604 # not for PA HP-UX.
15605 case "$host_cpu" in
15606 hppa*64*|ia64*)
15607 # +Z the default
15610 lt_prog_compiler_pic_GCJ='-fPIC'
15612 esac
15616 lt_prog_compiler_pic_GCJ='-fPIC'
15618 esac
15619 else
15620 # PORTME Check for flag to pass linker flags through the system compiler.
15621 case $host_os in
15622 aix*)
15623 lt_prog_compiler_wl_GCJ='-Wl,'
15624 if test "$host_cpu" = ia64; then
15625 # AIX 5 now supports IA64 processor
15626 lt_prog_compiler_static_GCJ='-Bstatic'
15627 else
15628 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15632 mingw* | pw32* | os2*)
15633 # This hack is so that the source file can tell whether it is being
15634 # built for inclusion in a dll (and should export symbols for example).
15635 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15638 hpux9* | hpux10* | hpux11*)
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15641 # not for PA HP-UX.
15642 case "$host_cpu" in
15643 hppa*64*|ia64*)
15644 # +Z the default
15647 lt_prog_compiler_pic_GCJ='+Z'
15649 esac
15650 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15651 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15654 irix5* | irix6* | nonstopux*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # PIC (with -KPIC) is the default.
15657 lt_prog_compiler_static_GCJ='-non_shared'
15660 newsos6)
15661 lt_prog_compiler_pic_GCJ='-KPIC'
15662 lt_prog_compiler_static_GCJ='-Bstatic'
15665 linux*)
15666 case $CC in
15667 icc* | ecc*)
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15669 lt_prog_compiler_pic_GCJ='-KPIC'
15670 lt_prog_compiler_static_GCJ='-static'
15672 ccc*)
15673 lt_prog_compiler_wl_GCJ='-Wl,'
15674 # All Alpha code is PIC.
15675 lt_prog_compiler_static_GCJ='-non_shared'
15677 esac
15680 osf3* | osf4* | osf5*)
15681 lt_prog_compiler_wl_GCJ='-Wl,'
15682 # All OSF/1 code is PIC.
15683 lt_prog_compiler_static_GCJ='-non_shared'
15686 sco3.2v5*)
15687 lt_prog_compiler_pic_GCJ='-Kpic'
15688 lt_prog_compiler_static_GCJ='-dn'
15691 solaris*)
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 lt_prog_compiler_pic_GCJ='-KPIC'
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15697 sunos4*)
15698 lt_prog_compiler_wl_GCJ='-Qoption ld '
15699 lt_prog_compiler_pic_GCJ='-PIC'
15700 lt_prog_compiler_static_GCJ='-Bstatic'
15703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15704 lt_prog_compiler_wl_GCJ='-Wl,'
15705 lt_prog_compiler_pic_GCJ='-KPIC'
15706 lt_prog_compiler_static_GCJ='-Bstatic'
15709 sysv4*MP*)
15710 if test -d /usr/nec ;then
15711 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15712 lt_prog_compiler_static_GCJ='-Bstatic'
15716 uts4*)
15717 lt_prog_compiler_pic_GCJ='-pic'
15718 lt_prog_compiler_static_GCJ='-Bstatic'
15722 lt_prog_compiler_can_build_shared_GCJ=no
15724 esac
15727 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15728 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15731 # Check to make sure the PIC flag actually works.
15733 if test -n "$lt_prog_compiler_pic_GCJ"; then
15735 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15736 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15737 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 lt_prog_compiler_pic_works_GCJ=no
15741 ac_outfile=conftest.$ac_objext
15742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15743 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15744 # Insert the option either (1) after the last *FLAGS variable, or
15745 # (2) before a word containing "conftest.", or (3) at the end.
15746 # Note that $ac_compile itself does not contain backslashes and begins
15747 # with a dollar sign (not a hyphen), so the echo should work correctly.
15748 # The option is referenced via a variable to avoid confusing sed.
15749 lt_compile=`echo "$ac_compile" | $SED \
15750 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15752 -e 's:$: $lt_compiler_flag:'`
15753 (eval echo "\"\$as_me:15753: $lt_compile\"" >&5)
15754 (eval "$lt_compile" 2>conftest.err)
15755 ac_status=$?
15756 cat conftest.err >&5
15757 echo "$as_me:15757: \$? = $ac_status" >&5
15758 if (exit $ac_status) && test -s "$ac_outfile"; then
15759 # The compiler can only warn and ignore the option if not recognized
15760 # So say no if there are warnings
15761 if test ! -s conftest.err; then
15762 lt_prog_compiler_pic_works_GCJ=yes
15765 $rm conftest*
15768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15769 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15771 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15772 case $lt_prog_compiler_pic_GCJ in
15773 "" | " "*) ;;
15774 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15775 esac
15776 else
15777 lt_prog_compiler_pic_GCJ=
15778 lt_prog_compiler_can_build_shared_GCJ=no
15782 case "$host_os" in
15783 # For platforms which do not support PIC, -DPIC is meaningless:
15784 *djgpp*)
15785 lt_prog_compiler_pic_GCJ=
15788 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15790 esac
15792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15794 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 else
15797 lt_cv_prog_compiler_c_o_GCJ=no
15798 $rm -r conftest 2>/dev/null
15799 mkdir conftest
15800 cd conftest
15801 mkdir out
15802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15804 lt_compiler_flag="-o out/conftest2.$ac_objext"
15805 # Insert the option either (1) after the last *FLAGS variable, or
15806 # (2) before a word containing "conftest.", or (3) at the end.
15807 # Note that $ac_compile itself does not contain backslashes and begins
15808 # with a dollar sign (not a hyphen), so the echo should work correctly.
15809 lt_compile=`echo "$ac_compile" | $SED \
15810 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15812 -e 's:$: $lt_compiler_flag:'`
15813 (eval echo "\"\$as_me:15813: $lt_compile\"" >&5)
15814 (eval "$lt_compile" 2>out/conftest.err)
15815 ac_status=$?
15816 cat out/conftest.err >&5
15817 echo "$as_me:15817: \$? = $ac_status" >&5
15818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15819 then
15820 # The compiler can only warn and ignore the option if not recognized
15821 # So say no if there are warnings
15822 if test ! -s out/conftest.err; then
15823 lt_cv_prog_compiler_c_o_GCJ=yes
15826 chmod u+w .
15827 $rm conftest*
15828 # SGI C++ compiler will create directory out/ii_files/ for
15829 # template instantiation
15830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15831 $rm out/* && rmdir out
15832 cd ..
15833 rmdir conftest
15834 $rm conftest*
15837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15841 hard_links="nottested"
15842 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15843 # do not overwrite the value of need_locks provided by the user
15844 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15846 hard_links=yes
15847 $rm conftest*
15848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15849 touch conftest.a
15850 ln conftest.a conftest.b 2>&5 || hard_links=no
15851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852 echo "$as_me:$LINENO: result: $hard_links" >&5
15853 echo "${ECHO_T}$hard_links" >&6
15854 if test "$hard_links" = no; then
15855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15857 need_locks=warn
15859 else
15860 need_locks=no
15863 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15866 runpath_var=
15867 allow_undefined_flag_GCJ=
15868 enable_shared_with_static_runtimes_GCJ=no
15869 archive_cmds_GCJ=
15870 archive_expsym_cmds_GCJ=
15871 old_archive_From_new_cmds_GCJ=
15872 old_archive_from_expsyms_cmds_GCJ=
15873 export_dynamic_flag_spec_GCJ=
15874 whole_archive_flag_spec_GCJ=
15875 thread_safe_flag_spec_GCJ=
15876 hardcode_libdir_flag_spec_GCJ=
15877 hardcode_libdir_flag_spec_ld_GCJ=
15878 hardcode_libdir_separator_GCJ=
15879 hardcode_direct_GCJ=no
15880 hardcode_minus_L_GCJ=no
15881 hardcode_shlibpath_var_GCJ=unsupported
15882 link_all_deplibs_GCJ=unknown
15883 hardcode_automatic_GCJ=no
15884 module_cmds_GCJ=
15885 module_expsym_cmds_GCJ=
15886 always_export_symbols_GCJ=no
15887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15888 # include_expsyms should be a list of space-separated symbols to be *always*
15889 # included in the symbol list
15890 include_expsyms_GCJ=
15891 # exclude_expsyms can be an extended regexp of symbols to exclude
15892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15894 # as well as any symbol that contains `d'.
15895 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15897 # platforms (ab)use it in PIC code, but their linkers get confused if
15898 # the symbol is explicitly referenced. Since portable code cannot
15899 # rely on this symbol name, it's probably fine to never include it in
15900 # preloaded symbol tables.
15901 extract_expsyms_cmds=
15903 case $host_os in
15904 cygwin* | mingw* | pw32*)
15905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15906 # When not using gcc, we currently assume that we are using
15907 # Microsoft Visual C++.
15908 if test "$GCC" != yes; then
15909 with_gnu_ld=no
15912 openbsd*)
15913 with_gnu_ld=no
15915 esac
15917 ld_shlibs_GCJ=yes
15918 if test "$with_gnu_ld" = yes; then
15919 # If archive_cmds runs LD, not CC, wlarc should be empty
15920 wlarc='${wl}'
15922 # See if GNU ld supports shared libraries.
15923 case $host_os in
15924 aix3* | aix4* | aix5*)
15925 # On AIX/PPC, the GNU linker is very broken
15926 if test "$host_cpu" != ia64; then
15927 ld_shlibs_GCJ=no
15928 cat <<EOF 1>&2
15930 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15931 *** to be unable to reliably create shared libraries on AIX.
15932 *** Therefore, libtool is disabling shared libraries support. If you
15933 *** really care for shared libraries, you may want to modify your PATH
15934 *** so that a non-GNU linker is found, and then restart.
15940 amigaos*)
15941 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)'
15942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943 hardcode_minus_L_GCJ=yes
15945 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15946 # that the semantics of dynamic libraries on AmigaOS, at least up
15947 # to version 4, is to share data among multiple programs linked
15948 # with the same dynamic library. Since this doesn't match the
15949 # behavior of shared libraries on other platforms, we can't use
15950 # them.
15951 ld_shlibs_GCJ=no
15954 beos*)
15955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15956 allow_undefined_flag_GCJ=unsupported
15957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15958 # support --undefined. This deserves some investigation. FIXME
15959 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960 else
15961 ld_shlibs_GCJ=no
15965 cygwin* | mingw* | pw32*)
15966 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15967 # as there is no search path for DLLs.
15968 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15969 allow_undefined_flag_GCJ=unsupported
15970 always_export_symbols_GCJ=no
15971 enable_shared_with_static_runtimes_GCJ=yes
15972 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15974 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15975 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15976 # If the export-symbols file already is a .def file (1st line
15977 # is EXPORTS), use it as is; otherwise, prepend...
15978 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15979 cp $export_symbols $output_objdir/$soname.def;
15980 else
15981 echo EXPORTS > $output_objdir/$soname.def;
15982 cat $export_symbols >> $output_objdir/$soname.def;
15984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15985 else
15986 ld_shlibs=no
15990 netbsd*)
15991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15992 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15993 wlarc=
15994 else
15995 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15996 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16000 solaris* | sysv5*)
16001 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16002 ld_shlibs_GCJ=no
16003 cat <<EOF 1>&2
16005 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16006 *** create shared libraries on Solaris systems. Therefore, libtool
16007 *** is disabling shared libraries support. We urge you to upgrade GNU
16008 *** binutils to release 2.9.1 or newer. Another option is to modify
16009 *** your PATH or compiler configuration so that the native linker is
16010 *** used, and then restart.
16013 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16014 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16015 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 else
16017 ld_shlibs_GCJ=no
16021 sunos4*)
16022 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16023 wlarc=
16024 hardcode_direct_GCJ=yes
16025 hardcode_shlibpath_var_GCJ=no
16028 linux*)
16029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_cmds_GCJ="$tmp_archive_cmds"
16032 supports_anon_versioning=no
16033 case `$LD -v 2>/dev/null` in
16034 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16037 *\ 2.11.*) ;; # other 2.11 versions
16038 *) supports_anon_versioning=yes ;;
16039 esac
16040 if test $supports_anon_versioning = yes; then
16041 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16043 $echo "local: *; };" >> $output_objdir/$libname.ver~
16044 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16045 else
16046 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16048 else
16049 ld_shlibs_GCJ=no
16054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16057 else
16058 ld_shlibs_GCJ=no
16061 esac
16063 if test "$ld_shlibs_GCJ" = yes; then
16064 runpath_var=LD_RUN_PATH
16065 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16066 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16067 # ancient GNU ld didn't support --whole-archive et. al.
16068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16069 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16070 else
16071 whole_archive_flag_spec_GCJ=
16074 else
16075 # PORTME fill in a description of your system's linker (not GNU ld)
16076 case $host_os in
16077 aix3*)
16078 allow_undefined_flag_GCJ=unsupported
16079 always_export_symbols_GCJ=yes
16080 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'
16081 # Note: this linker hardcodes the directories in LIBPATH if there
16082 # are no directories specified by -L.
16083 hardcode_minus_L_GCJ=yes
16084 if test "$GCC" = yes && test -z "$link_static_flag"; then
16085 # Neither direct hardcoding nor static linking is supported with a
16086 # broken collect2.
16087 hardcode_direct_GCJ=unsupported
16091 aix4* | aix5*)
16092 if test "$host_cpu" = ia64; then
16093 # On IA64, the linker does run time linking by default, so we don't
16094 # have to do anything special.
16095 aix_use_runtimelinking=no
16096 exp_sym_flag='-Bexport'
16097 no_entry_flag=""
16098 else
16099 # If we're using GNU nm, then we don't want the "-C" option.
16100 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16101 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16102 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'
16103 else
16104 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'
16106 aix_use_runtimelinking=no
16108 # Test if we are trying to use run time linking or normal
16109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16110 # need to do runtime linking.
16111 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16112 for ld_flag in $LDFLAGS; do
16113 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16114 aix_use_runtimelinking=yes
16115 break
16117 done
16118 esac
16120 exp_sym_flag='-bexport'
16121 no_entry_flag='-bnoentry'
16124 # When large executables or shared objects are built, AIX ld can
16125 # have problems creating the table of contents. If linking a library
16126 # or program results in "error TOC overflow" add -mminimal-toc to
16127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16130 archive_cmds_GCJ=''
16131 hardcode_direct_GCJ=yes
16132 hardcode_libdir_separator_GCJ=':'
16133 link_all_deplibs_GCJ=yes
16135 if test "$GCC" = yes; then
16136 case $host_os in aix4.012|aix4.012.*)
16137 # We only want to do this on AIX 4.2 and lower, the check
16138 # below for broken collect2 doesn't work under 4.3+
16139 collect2name=`${CC} -print-prog-name=collect2`
16140 if test -f "$collect2name" && \
16141 strings "$collect2name" | grep resolve_lib_name >/dev/null
16142 then
16143 # We have reworked collect2
16144 hardcode_direct_GCJ=yes
16145 else
16146 # We have old collect2
16147 hardcode_direct_GCJ=unsupported
16148 # It fails to find uninstalled libraries when the uninstalled
16149 # path is not listed in the libpath. Setting hardcode_minus_L
16150 # to unsupported forces relinking
16151 hardcode_minus_L_GCJ=yes
16152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153 hardcode_libdir_separator_GCJ=
16155 esac
16156 shared_flag='-shared'
16157 else
16158 # not using gcc
16159 if test "$host_cpu" = ia64; then
16160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16161 # chokes on -Wl,-G. The following line is correct:
16162 shared_flag='-G'
16163 else
16164 if test "$aix_use_runtimelinking" = yes; then
16165 shared_flag='${wl}-G'
16166 else
16167 shared_flag='${wl}-bM:SRE'
16172 # It seems that -bexpall does not export symbols beginning with
16173 # underscore (_), so it is better to generate a list of symbols to export.
16174 always_export_symbols_GCJ=yes
16175 if test "$aix_use_runtimelinking" = yes; then
16176 # Warning - without using the other runtime loading flags (-brtl),
16177 # -berok will link without error, but may produce a broken library.
16178 allow_undefined_flag_GCJ='-berok'
16179 # Determine the default libpath from the value encoded in an empty executable.
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16188 main ()
16192 return 0;
16194 _ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16197 (eval $ac_link) 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_cxx_werror_flag"
16205 || test ! -s conftest.err'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; } &&
16211 { ac_try='test -s conftest$ac_exeext'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16220 # Check for a 64-bit object if we didn't find anything.
16221 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; }
16222 }'`; fi
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16228 rm -f conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16232 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16233 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"
16234 else
16235 if test "$host_cpu" = ia64; then
16236 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16237 allow_undefined_flag_GCJ="-z nodefs"
16238 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"
16239 else
16240 # Determine the default libpath from the value encoded in an empty executable.
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16249 main ()
16253 return 0;
16255 _ACEOF
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258 (eval $ac_link) 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_cxx_werror_flag"
16266 || test ! -s conftest.err'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; } &&
16272 { ac_try='test -s conftest$ac_exeext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16281 # Check for a 64-bit object if we didn't find anything.
16282 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; }
16283 }'`; fi
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16289 rm -f conftest.err conftest.$ac_objext \
16290 conftest$ac_exeext conftest.$ac_ext
16291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16293 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16294 # Warning - without using the other run time loading flags,
16295 # -berok will link without error, but may produce a broken library.
16296 no_undefined_flag_GCJ=' ${wl}-bernotok'
16297 allow_undefined_flag_GCJ=' ${wl}-berok'
16298 # -bexpall does not export symbols beginning with underscore (_)
16299 always_export_symbols_GCJ=yes
16300 # Exported symbols can be pulled into shared objects from archives
16301 whole_archive_flag_spec_GCJ=' '
16302 archive_cmds_need_lc_GCJ=yes
16303 # This is similar to how AIX traditionally builds it's shared libraries.
16304 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'
16309 amigaos*)
16310 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)'
16311 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16312 hardcode_minus_L_GCJ=yes
16313 # see comment about different semantics on the GNU ld section
16314 ld_shlibs_GCJ=no
16317 bsdi4*)
16318 export_dynamic_flag_spec_GCJ=-rdynamic
16321 cygwin* | mingw* | pw32*)
16322 # When not using gcc, we currently assume that we are using
16323 # Microsoft Visual C++.
16324 # hardcode_libdir_flag_spec is actually meaningless, as there is
16325 # no search path for DLLs.
16326 hardcode_libdir_flag_spec_GCJ=' '
16327 allow_undefined_flag_GCJ=unsupported
16328 # Tell ltmain to make .lib files, not .a files.
16329 libext=lib
16330 # Tell ltmain to make .dll files, not .so files.
16331 shrext_cmds=".dll"
16332 # FIXME: Setting linknames here is a bad hack.
16333 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16334 # The linker will automatically build a .lib file if we build a DLL.
16335 old_archive_From_new_cmds_GCJ='true'
16336 # FIXME: Should let the user specify the lib program.
16337 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16338 fix_srcfile_path='`cygpath -w "$srcfile"`'
16339 enable_shared_with_static_runtimes_GCJ=yes
16342 darwin* | rhapsody*)
16343 if test "$GXX" = yes ; then
16344 archive_cmds_need_lc_GCJ=no
16345 case "$host_os" in
16346 rhapsody* | darwin1.[012])
16347 allow_undefined_flag_GCJ='-undefined suppress'
16349 *) # Darwin 1.3 on
16350 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16351 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16352 else
16353 case ${MACOSX_DEPLOYMENT_TARGET} in
16354 10.[012])
16355 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16357 10.*)
16358 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16360 esac
16363 esac
16364 lt_int_apple_cc_single_mod=no
16365 output_verbose_link_cmd='echo'
16366 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16367 lt_int_apple_cc_single_mod=yes
16369 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16370 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16371 else
16372 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16374 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16376 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16377 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16378 else
16379 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16381 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}'
16382 hardcode_direct_GCJ=no
16383 hardcode_automatic_GCJ=yes
16384 hardcode_shlibpath_var_GCJ=unsupported
16385 whole_archive_flag_spec_GCJ='-all_load $convenience'
16386 link_all_deplibs_GCJ=yes
16387 else
16388 ld_shlibs_GCJ=no
16392 dgux*)
16393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 hardcode_shlibpath_var_GCJ=no
16398 freebsd1*)
16399 ld_shlibs_GCJ=no
16402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16403 # support. Future versions do this automatically, but an explicit c++rt0.o
16404 # does not break anything, and helps significantly (at the cost of a little
16405 # extra space).
16406 freebsd2.2*)
16407 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16409 hardcode_direct_GCJ=yes
16410 hardcode_shlibpath_var_GCJ=no
16413 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16414 freebsd2*)
16415 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16416 hardcode_direct_GCJ=yes
16417 hardcode_minus_L_GCJ=yes
16418 hardcode_shlibpath_var_GCJ=no
16421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16422 freebsd* | kfreebsd*-gnu)
16423 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16424 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16425 hardcode_direct_GCJ=yes
16426 hardcode_shlibpath_var_GCJ=no
16429 hpux9*)
16430 if test "$GCC" = yes; then
16431 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'
16432 else
16433 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'
16435 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16436 hardcode_libdir_separator_GCJ=:
16437 hardcode_direct_GCJ=yes
16439 # hardcode_minus_L: Not really in the search PATH,
16440 # but as the default location of the library.
16441 hardcode_minus_L_GCJ=yes
16442 export_dynamic_flag_spec_GCJ='${wl}-E'
16445 hpux10* | hpux11*)
16446 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16447 case "$host_cpu" in
16448 hppa*64*|ia64*)
16449 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16454 esac
16455 else
16456 case "$host_cpu" in
16457 hppa*64*|ia64*)
16458 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16463 esac
16465 if test "$with_gnu_ld" = no; then
16466 case "$host_cpu" in
16467 hppa*64*)
16468 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16469 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16470 hardcode_libdir_separator_GCJ=:
16471 hardcode_direct_GCJ=no
16472 hardcode_shlibpath_var_GCJ=no
16474 ia64*)
16475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16476 hardcode_direct_GCJ=no
16477 hardcode_shlibpath_var_GCJ=no
16479 # hardcode_minus_L: Not really in the search PATH,
16480 # but as the default location of the library.
16481 hardcode_minus_L_GCJ=yes
16484 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16485 hardcode_libdir_separator_GCJ=:
16486 hardcode_direct_GCJ=yes
16487 export_dynamic_flag_spec_GCJ='${wl}-E'
16489 # hardcode_minus_L: Not really in the search PATH,
16490 # but as the default location of the library.
16491 hardcode_minus_L_GCJ=yes
16493 esac
16497 irix5* | irix6* | nonstopux*)
16498 if test "$GCC" = yes; then
16499 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'
16500 else
16501 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'
16502 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16505 hardcode_libdir_separator_GCJ=:
16506 link_all_deplibs_GCJ=yes
16509 netbsd*)
16510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16512 else
16513 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16516 hardcode_direct_GCJ=yes
16517 hardcode_shlibpath_var_GCJ=no
16520 newsos6)
16521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_direct_GCJ=yes
16523 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16524 hardcode_libdir_separator_GCJ=:
16525 hardcode_shlibpath_var_GCJ=no
16528 openbsd*)
16529 hardcode_direct_GCJ=yes
16530 hardcode_shlibpath_var_GCJ=no
16531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16532 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16534 export_dynamic_flag_spec_GCJ='${wl}-E'
16535 else
16536 case $host_os in
16537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16542 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16545 esac
16549 os2*)
16550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551 hardcode_minus_L_GCJ=yes
16552 allow_undefined_flag_GCJ=unsupported
16553 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'
16554 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16557 osf3*)
16558 if test "$GCC" = yes; then
16559 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16560 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'
16561 else
16562 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16563 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'
16565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16566 hardcode_libdir_separator_GCJ=:
16569 osf4* | osf5*) # as osf3* with the addition of -msym flag
16570 if test "$GCC" = yes; then
16571 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16572 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'
16573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16574 else
16575 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16576 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'
16577 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~
16578 $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'
16580 # Both c and cxx compiler support -rpath directly
16581 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16583 hardcode_libdir_separator_GCJ=:
16586 sco3.2v5*)
16587 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_shlibpath_var_GCJ=no
16589 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16590 runpath_var=LD_RUN_PATH
16591 hardcode_runpath_var=yes
16594 solaris*)
16595 no_undefined_flag_GCJ=' -z text'
16596 if test "$GCC" = yes; then
16597 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16599 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16600 else
16601 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16605 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16606 hardcode_shlibpath_var_GCJ=no
16607 case $host_os in
16608 solaris2.[0-5] | solaris2.[0-5].*) ;;
16609 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16610 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16611 esac
16612 link_all_deplibs_GCJ=yes
16615 sunos4*)
16616 if test "x$host_vendor" = xsequent; then
16617 # Use $CC to link under sequent, because it throws in some extra .o
16618 # files that make .init and .fini sections work.
16619 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16620 else
16621 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16624 hardcode_direct_GCJ=yes
16625 hardcode_minus_L_GCJ=yes
16626 hardcode_shlibpath_var_GCJ=no
16629 sysv4)
16630 case $host_vendor in
16631 sni)
16632 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_direct_GCJ=yes # is this really true???
16635 siemens)
16636 ## LD is ld it makes a PLAMLIB
16637 ## CC just makes a GrossModule.
16638 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16639 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16640 hardcode_direct_GCJ=no
16642 motorola)
16643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16646 esac
16647 runpath_var='LD_RUN_PATH'
16648 hardcode_shlibpath_var_GCJ=no
16651 sysv4.3*)
16652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 hardcode_shlibpath_var_GCJ=no
16654 export_dynamic_flag_spec_GCJ='-Bexport'
16657 sysv4*MP*)
16658 if test -d /usr/nec; then
16659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16660 hardcode_shlibpath_var_GCJ=no
16661 runpath_var=LD_RUN_PATH
16662 hardcode_runpath_var=yes
16663 ld_shlibs_GCJ=yes
16667 sysv4.2uw2*)
16668 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16669 hardcode_direct_GCJ=yes
16670 hardcode_minus_L_GCJ=no
16671 hardcode_shlibpath_var_GCJ=no
16672 hardcode_runpath_var=yes
16673 runpath_var=LD_RUN_PATH
16676 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16677 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16678 if test "$GCC" = yes; then
16679 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 else
16681 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 runpath_var='LD_RUN_PATH'
16684 hardcode_shlibpath_var_GCJ=no
16687 sysv5*)
16688 no_undefined_flag_GCJ=' -z text'
16689 # $CC -shared without GNU ld will not create a library from C++
16690 # object files and a static libstdc++, better avoid it by now
16691 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16692 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16694 hardcode_libdir_flag_spec_GCJ=
16695 hardcode_shlibpath_var_GCJ=no
16696 runpath_var='LD_RUN_PATH'
16699 uts4*)
16700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16702 hardcode_shlibpath_var_GCJ=no
16706 ld_shlibs_GCJ=no
16708 esac
16711 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16712 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16713 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16716 if test "$GCC" = yes; then
16717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16721 # Do we need to explicitly link libc?
16723 case "x$archive_cmds_need_lc_GCJ" in
16724 x|xyes)
16725 # Assume -lc should be added
16726 archive_cmds_need_lc_GCJ=yes
16728 if test "$enable_shared" = yes && test "$GCC" = yes; then
16729 case $archive_cmds_GCJ in
16730 *'~'*)
16731 # FIXME: we may have to deal with multi-command sequences.
16733 '$CC '*)
16734 # Test whether the compiler implicitly links with -lc since on some
16735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16736 # to ld, don't add -lc before -lgcc.
16737 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16739 $rm conftest*
16740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16743 (eval $ac_compile) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } 2>conftest.err; then
16747 soname=conftest
16748 lib=conftest
16749 libobjs=conftest.$ac_objext
16750 deplibs=
16751 wl=$lt_prog_compiler_wl_GCJ
16752 compiler_flags=-v
16753 linker_flags=-v
16754 verstring=
16755 output_objdir=.
16756 libname=conftest
16757 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16758 allow_undefined_flag_GCJ=
16759 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16760 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }
16764 then
16765 archive_cmds_need_lc_GCJ=no
16766 else
16767 archive_cmds_need_lc_GCJ=yes
16769 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16770 else
16771 cat conftest.err 1>&5
16773 $rm conftest*
16774 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16775 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16777 esac
16780 esac
16782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16784 library_names_spec=
16785 libname_spec='lib$name'
16786 soname_spec=
16787 shrext_cmds=".so"
16788 postinstall_cmds=
16789 postuninstall_cmds=
16790 finish_cmds=
16791 finish_eval=
16792 shlibpath_var=
16793 shlibpath_overrides_runpath=unknown
16794 version_type=none
16795 dynamic_linker="$host_os ld.so"
16796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16797 if test "$GCC" = yes; then
16798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16799 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16800 # if the path contains ";" then we assume it to be the separator
16801 # otherwise default to the standard path separator (i.e. ":") - it is
16802 # assumed that no part of a normal pathname contains ";" but that should
16803 # okay in the real world where ";" in dirpaths is itself problematic.
16804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16805 else
16806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16808 else
16809 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16811 need_lib_prefix=unknown
16812 hardcode_into_libs=no
16814 # when you set need_version to no, make sure it does not cause -set_version
16815 # flags to be left without arguments
16816 need_version=unknown
16818 case $host_os in
16819 aix3*)
16820 version_type=linux
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16822 shlibpath_var=LIBPATH
16824 # AIX 3 has no versioning support, so we append a major version to the name.
16825 soname_spec='${libname}${release}${shared_ext}$major'
16828 aix4* | aix5*)
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 hardcode_into_libs=yes
16833 if test "$host_cpu" = ia64; then
16834 # AIX 5 supports IA64
16835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 else
16838 # With GCC up to 2.95.x, collect2 would create an import file
16839 # for dependence libraries. The import file would start with
16840 # the line `#! .'. This would cause the generated library to
16841 # depend on `.', always an invalid library. This was fixed in
16842 # development snapshots of GCC prior to 3.0.
16843 case $host_os in
16844 aix4 | aix4.[01] | aix4.[01].*)
16845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16846 echo ' yes '
16847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16849 else
16850 can_build_shared=no
16853 esac
16854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16855 # soname into executable. Probably we can add versioning support to
16856 # collect2, so additional links can be useful in future.
16857 if test "$aix_use_runtimelinking" = yes; then
16858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16859 # instead of lib<name>.a to let people know that these are not
16860 # typical AIX shared libraries.
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862 else
16863 # We preserve .a as extension for shared libraries through AIX4.2
16864 # and later when we are not doing run time linking.
16865 library_names_spec='${libname}${release}.a $libname.a'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16868 shlibpath_var=LIBPATH
16872 amigaos*)
16873 library_names_spec='$libname.ixlibrary $libname.a'
16874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16875 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'
16878 beos*)
16879 library_names_spec='${libname}${shared_ext}'
16880 dynamic_linker="$host_os ld.so"
16881 shlibpath_var=LIBRARY_PATH
16884 bsdi4*)
16885 version_type=linux
16886 need_version=no
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16893 # the default ld.so.conf also contains /usr/contrib/lib and
16894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16895 # libtool to hard-code these into programs
16898 cygwin* | mingw* | pw32*)
16899 version_type=windows
16900 shrext_cmds=".dll"
16901 need_version=no
16902 need_lib_prefix=no
16904 case $GCC,$host_os in
16905 yes,cygwin* | yes,mingw* | yes,pw32*)
16906 library_names_spec='$libname.dll.a'
16907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16908 postinstall_cmds='base_file=`basename \${file}`~
16909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16910 dldir=$destdir/`dirname \$dlpath`~
16911 test -d \$dldir || mkdir -p \$dldir~
16912 $install_prog $dir/$dlname \$dldir/$dlname'
16913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16914 dlpath=$dir/\$dldll~
16915 $rm \$dlpath'
16916 shlibpath_overrides_runpath=yes
16918 case $host_os in
16919 cygwin*)
16920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16924 mingw*)
16925 # MinGW DLLs use traditional 'lib' prefix
16926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16929 # It is most probably a Windows format PATH printed by
16930 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16931 # path with ; separators, and with drive letters. We can handle the
16932 # drive letters (cygwin fileutils understands them), so leave them,
16933 # especially as we might pass files found there to a mingw objdump,
16934 # which wouldn't understand a cygwinified path. Ahh.
16935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16936 else
16937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16940 pw32*)
16941 # pw32 DLLs use 'pw' prefix rather than 'lib'
16942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16944 esac
16948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16950 esac
16951 dynamic_linker='Win32 ld.exe'
16952 # FIXME: first we should search . and the directory the executable is in
16953 shlibpath_var=PATH
16956 darwin* | rhapsody*)
16957 dynamic_linker="$host_os dyld"
16958 version_type=darwin
16959 need_lib_prefix=no
16960 need_version=no
16961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16962 soname_spec='${libname}${release}${major}$shared_ext'
16963 shlibpath_overrides_runpath=yes
16964 shlibpath_var=DYLD_LIBRARY_PATH
16965 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16967 if test "$GCC" = yes; then
16968 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"`
16969 else
16970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16975 dgux*)
16976 version_type=linux
16977 need_lib_prefix=no
16978 need_version=no
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 shlibpath_var=LD_LIBRARY_PATH
16984 freebsd1*)
16985 dynamic_linker=no
16988 kfreebsd*-gnu)
16989 version_type=linux
16990 need_lib_prefix=no
16991 need_version=no
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16993 soname_spec='${libname}${release}${shared_ext}$major'
16994 shlibpath_var=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath=no
16996 hardcode_into_libs=yes
16997 dynamic_linker='GNU ld.so'
17000 freebsd*)
17001 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17002 version_type=freebsd-$objformat
17003 case $version_type in
17004 freebsd-elf*)
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006 need_version=no
17007 need_lib_prefix=no
17009 freebsd-*)
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17011 need_version=yes
17013 esac
17014 shlibpath_var=LD_LIBRARY_PATH
17015 case $host_os in
17016 freebsd2*)
17017 shlibpath_overrides_runpath=yes
17019 freebsd3.01* | freebsdelf3.01*)
17020 shlibpath_overrides_runpath=yes
17021 hardcode_into_libs=yes
17023 *) # from 3.2 on
17024 shlibpath_overrides_runpath=no
17025 hardcode_into_libs=yes
17027 esac
17030 gnu*)
17031 version_type=linux
17032 need_lib_prefix=no
17033 need_version=no
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 hardcode_into_libs=yes
17040 hpux9* | hpux10* | hpux11*)
17041 # Give a soname corresponding to the major version so that dld.sl refuses to
17042 # link against other versions.
17043 version_type=sunos
17044 need_lib_prefix=no
17045 need_version=no
17046 case "$host_cpu" in
17047 ia64*)
17048 shrext_cmds='.so'
17049 hardcode_into_libs=yes
17050 dynamic_linker="$host_os dld.so"
17051 shlibpath_var=LD_LIBRARY_PATH
17052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054 soname_spec='${libname}${release}${shared_ext}$major'
17055 if test "X$HPUX_IA64_MODE" = X32; then
17056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17057 else
17058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17062 hppa*64*)
17063 shrext_cmds='.sl'
17064 hardcode_into_libs=yes
17065 dynamic_linker="$host_os dld.sl"
17066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17074 shrext_cmds='.sl'
17075 dynamic_linker="$host_os dld.sl"
17076 shlibpath_var=SHLIB_PATH
17077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079 soname_spec='${libname}${release}${shared_ext}$major'
17081 esac
17082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17083 postinstall_cmds='chmod 555 $lib'
17086 irix5* | irix6* | nonstopux*)
17087 case $host_os in
17088 nonstopux*) version_type=nonstopux ;;
17090 if test "$lt_cv_prog_gnu_ld" = yes; then
17091 version_type=linux
17092 else
17093 version_type=irix
17094 fi ;;
17095 esac
17096 need_lib_prefix=no
17097 need_version=no
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17100 case $host_os in
17101 irix5* | nonstopux*)
17102 libsuff= shlibsuff=
17105 case $LD in # libtool.m4 will add one of these switches to LD
17106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17107 libsuff= shlibsuff= libmagic=32-bit;;
17108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17109 libsuff=32 shlibsuff=N32 libmagic=N32;;
17110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17112 *) libsuff= shlibsuff= libmagic=never-match;;
17113 esac
17115 esac
17116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17117 shlibpath_overrides_runpath=no
17118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17120 hardcode_into_libs=yes
17123 # No shared lib support for Linux oldld, aout, or coff.
17124 linux*oldld* | linux*aout* | linux*coff*)
17125 dynamic_linker=no
17128 # This must be Linux ELF.
17129 linux*)
17130 version_type=linux
17131 need_lib_prefix=no
17132 need_version=no
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=no
17138 # This implies no fast_install, which is unacceptable.
17139 # Some rework will be needed to allow for fast_install
17140 # before this can be enabled.
17141 hardcode_into_libs=yes
17143 # find out which ABI we are using
17144 libsuff=
17145 case "$host_cpu" in
17146 x86_64*|s390x*|powerpc64*)
17147 echo '#line 17147 "configure"' > conftest.$ac_ext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; then
17153 case `/usr/bin/file conftest.$ac_objext` in
17154 *64-bit*)
17155 libsuff=64
17156 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17158 esac
17160 rm -rf conftest*
17162 esac
17164 # Append ld.so.conf contents to the search path
17165 if test -f /etc/ld.so.conf; then
17166 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17167 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17170 # We used to test for /lib/ld.so.1 and disable shared libraries on
17171 # powerpc, because MkLinux only supported shared libraries with the
17172 # GNU dynamic linker. Since this was broken with cross compilers,
17173 # most powerpc-linux boxes support dynamic linking these days and
17174 # people can always --disable-shared, the test was removed, and we
17175 # assume the GNU/Linux dynamic linker is in use.
17176 dynamic_linker='GNU/Linux ld.so'
17179 knetbsd*-gnu)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=no
17187 hardcode_into_libs=yes
17188 dynamic_linker='GNU ld.so'
17191 netbsd*)
17192 version_type=sunos
17193 need_lib_prefix=no
17194 need_version=no
17195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17198 dynamic_linker='NetBSD (a.out) ld.so'
17199 else
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 dynamic_linker='NetBSD ld.elf_so'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 hardcode_into_libs=yes
17209 newsos6)
17210 version_type=linux
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17216 nto-qnx*)
17217 version_type=linux
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17226 openbsd*)
17227 version_type=sunos
17228 need_lib_prefix=no
17229 need_version=yes
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234 case $host_os in
17235 openbsd2.[89] | openbsd2.[89].*)
17236 shlibpath_overrides_runpath=no
17239 shlibpath_overrides_runpath=yes
17241 esac
17242 else
17243 shlibpath_overrides_runpath=yes
17247 os2*)
17248 libname_spec='$name'
17249 shrext_cmds=".dll"
17250 need_lib_prefix=no
17251 library_names_spec='$libname${shared_ext} $libname.a'
17252 dynamic_linker='OS/2 ld.exe'
17253 shlibpath_var=LIBPATH
17256 osf3* | osf4* | osf5*)
17257 version_type=osf
17258 need_lib_prefix=no
17259 need_version=no
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17267 sco3.2v5*)
17268 version_type=osf
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17274 solaris*)
17275 version_type=linux
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes
17282 hardcode_into_libs=yes
17283 # ldd complains unless libraries are executable
17284 postinstall_cmds='chmod +x $lib'
17287 sunos4*)
17288 version_type=sunos
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 if test "$with_gnu_ld" = yes; then
17294 need_lib_prefix=no
17296 need_version=yes
17299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17300 version_type=linux
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_vendor in
17305 sni)
17306 shlibpath_overrides_runpath=no
17307 need_lib_prefix=no
17308 export_dynamic_flag_spec='${wl}-Blargedynsym'
17309 runpath_var=LD_RUN_PATH
17311 siemens)
17312 need_lib_prefix=no
17314 motorola)
17315 need_lib_prefix=no
17316 need_version=no
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17320 esac
17323 sysv4*MP*)
17324 if test -d /usr/nec ;then
17325 version_type=linux
17326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17327 soname_spec='$libname${shared_ext}.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17332 uts4*)
17333 version_type=linux
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17340 dynamic_linker=no
17342 esac
17343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344 echo "${ECHO_T}$dynamic_linker" >&6
17345 test "$dynamic_linker" = no && can_build_shared=no
17347 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17348 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17349 hardcode_action_GCJ=
17350 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17351 test -n "$runpath_var GCJ" || \
17352 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17354 # We can hardcode non-existant directories.
17355 if test "$hardcode_direct_GCJ" != no &&
17356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17357 # have to relink, otherwise we might link with an installed library
17358 # when we should be linking with a yet-to-be-installed one
17359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17360 test "$hardcode_minus_L_GCJ" != no; then
17361 # Linking always hardcodes the temporary library directory.
17362 hardcode_action_GCJ=relink
17363 else
17364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17365 hardcode_action_GCJ=immediate
17367 else
17368 # We cannot hardcode anything, or else we can only hardcode existing
17369 # directories.
17370 hardcode_action_GCJ=unsupported
17372 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17373 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17375 if test "$hardcode_action_GCJ" = relink; then
17376 # Fast installation is not supported
17377 enable_fast_install=no
17378 elif test "$shlibpath_overrides_runpath" = yes ||
17379 test "$enable_shared" = no; then
17380 # Fast installation is not necessary
17381 enable_fast_install=needless
17384 striplib=
17385 old_striplib=
17386 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17387 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17388 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17391 echo "$as_me:$LINENO: result: yes" >&5
17392 echo "${ECHO_T}yes" >&6
17393 else
17394 # FIXME - insert some real tests, host_os isn't really good enough
17395 case $host_os in
17396 darwin*)
17397 if test -n "$STRIP" ; then
17398 striplib="$STRIP -x"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17401 else
17402 echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17407 echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6
17410 esac
17413 if test "x$enable_dlopen" != xyes; then
17414 enable_dlopen=unknown
17415 enable_dlopen_self=unknown
17416 enable_dlopen_self_static=unknown
17417 else
17418 lt_cv_dlopen=no
17419 lt_cv_dlopen_libs=
17421 case $host_os in
17422 beos*)
17423 lt_cv_dlopen="load_add_on"
17424 lt_cv_dlopen_libs=
17425 lt_cv_dlopen_self=yes
17428 mingw* | pw32*)
17429 lt_cv_dlopen="LoadLibrary"
17430 lt_cv_dlopen_libs=
17433 cygwin*)
17434 lt_cv_dlopen="dlopen"
17435 lt_cv_dlopen_libs=
17438 darwin*)
17439 # if libdl is installed we need to link against it
17440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17441 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445 ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-ldl $LIBS"
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any gcc2 internal prototype to avoid an error. */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17460 char dlopen ();
17462 main ()
17464 dlopen ();
17466 return 0;
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_cxx_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_dl_dlopen=yes
17492 else
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_lib_dl_dlopen=no
17498 rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_lib_save_LIBS
17502 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17503 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17504 if test $ac_cv_lib_dl_dlopen = yes; then
17505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17506 else
17508 lt_cv_dlopen="dyld"
17509 lt_cv_dlopen_libs=
17510 lt_cv_dlopen_self=yes
17517 echo "$as_me:$LINENO: checking for shl_load" >&5
17518 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17519 if test "${ac_cv_func_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17530 #define shl_load innocuous_shl_load
17532 /* System header to define __stub macros and hopefully few prototypes,
17533 which can conflict with char shl_load (); below.
17534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17535 <limits.h> exists even on freestanding compilers. */
17537 #ifdef __STDC__
17538 # include <limits.h>
17539 #else
17540 # include <assert.h>
17541 #endif
17543 #undef shl_load
17545 /* Override any gcc2 internal prototype to avoid an error. */
17546 #ifdef __cplusplus
17547 extern "C"
17549 #endif
17550 /* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17552 char shl_load ();
17553 /* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17557 choke me
17558 #else
17559 char (*f) () = shl_load;
17560 #endif
17561 #ifdef __cplusplus
17563 #endif
17566 main ()
17568 return f != shl_load;
17570 return 0;
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575 (eval $ac_link) 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_cxx_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest$ac_exeext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_func_shl_load=yes
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_func_shl_load=no
17602 rm -f conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17605 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17606 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17607 if test $ac_cv_func_shl_load = yes; then
17608 lt_cv_dlopen="shl_load"
17609 else
17610 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17611 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17612 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615 ac_check_lib_save_LIBS=$LIBS
17616 LIBS="-ldld $LIBS"
17617 cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h. */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17624 /* Override any gcc2 internal prototype to avoid an error. */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 /* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630 char shl_load ();
17632 main ()
17634 shl_load ();
17636 return 0;
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_cxx_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_lib_dld_shl_load=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_lib_dld_shl_load=no
17668 rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17670 LIBS=$ac_check_lib_save_LIBS
17672 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17674 if test $ac_cv_lib_dld_shl_load = yes; then
17675 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17676 else
17677 echo "$as_me:$LINENO: checking for dlopen" >&5
17678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17679 if test "${ac_cv_func_dlopen+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690 #define dlopen innocuous_dlopen
17692 /* System header to define __stub macros and hopefully few prototypes,
17693 which can conflict with char dlopen (); below.
17694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695 <limits.h> exists even on freestanding compilers. */
17697 #ifdef __STDC__
17698 # include <limits.h>
17699 #else
17700 # include <assert.h>
17701 #endif
17703 #undef dlopen
17705 /* Override any gcc2 internal prototype to avoid an error. */
17706 #ifdef __cplusplus
17707 extern "C"
17709 #endif
17710 /* We use char because int might match the return type of a gcc2
17711 builtin and then its argument prototype would still apply. */
17712 char dlopen ();
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17717 choke me
17718 #else
17719 char (*f) () = dlopen;
17720 #endif
17721 #ifdef __cplusplus
17723 #endif
17726 main ()
17728 return f != dlopen;
17730 return 0;
17732 _ACEOF
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_cxx_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_func_dlopen=yes
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_func_dlopen=no
17762 rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17765 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17766 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17767 if test $ac_cv_func_dlopen = yes; then
17768 lt_cv_dlopen="dlopen"
17769 else
17770 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17771 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17772 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775 ac_check_lib_save_LIBS=$LIBS
17776 LIBS="-ldl $LIBS"
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any gcc2 internal prototype to avoid an error. */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 /* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17790 char dlopen ();
17792 main ()
17794 dlopen ();
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_cxx_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_lib_dl_dlopen=yes
17822 else
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_cv_lib_dl_dlopen=no
17828 rm -f conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17830 LIBS=$ac_check_lib_save_LIBS
17832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17834 if test $ac_cv_lib_dl_dlopen = yes; then
17835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17836 else
17837 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17838 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17839 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-lsvld $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any gcc2 internal prototype to avoid an error. */
17852 #ifdef __cplusplus
17853 extern "C"
17854 #endif
17855 /* We use char because int might match the return type of a gcc2
17856 builtin and then its argument prototype would still apply. */
17857 char dlopen ();
17859 main ()
17861 dlopen ();
17863 return 0;
17865 _ACEOF
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_cxx_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_lib_svld_dlopen=yes
17889 else
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_cv_lib_svld_dlopen=no
17895 rm -f conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 LIBS=$ac_check_lib_save_LIBS
17899 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17900 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17901 if test $ac_cv_lib_svld_dlopen = yes; then
17902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17903 else
17904 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17905 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17906 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-ldld $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any gcc2 internal prototype to avoid an error. */
17919 #ifdef __cplusplus
17920 extern "C"
17921 #endif
17922 /* We use char because int might match the return type of a gcc2
17923 builtin and then its argument prototype would still apply. */
17924 char dld_link ();
17926 main ()
17928 dld_link ();
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_cxx_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_dld_dld_link=yes
17956 else
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_lib_dld_dld_link=no
17962 rm -f conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17966 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17967 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17968 if test $ac_cv_lib_dld_dld_link = yes; then
17969 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17988 esac
17990 if test "x$lt_cv_dlopen" != xno; then
17991 enable_dlopen=yes
17992 else
17993 enable_dlopen=no
17996 case $lt_cv_dlopen in
17997 dlopen)
17998 save_CPPFLAGS="$CPPFLAGS"
17999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18001 save_LDFLAGS="$LDFLAGS"
18002 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18004 save_LIBS="$LIBS"
18005 LIBS="$lt_cv_dlopen_libs $LIBS"
18007 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18008 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18009 if test "${lt_cv_dlopen_self+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012 if test "$cross_compiling" = yes; then :
18013 lt_cv_dlopen_self=cross
18014 else
18015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18016 lt_status=$lt_dlunknown
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18018 "configure"
18019 #include "confdefs.h"
18021 #if HAVE_DLFCN_H
18022 #include <dlfcn.h>
18023 #endif
18025 #include <stdio.h>
18027 #ifdef RTLD_GLOBAL
18028 # define LT_DLGLOBAL RTLD_GLOBAL
18029 #else
18030 # ifdef DL_GLOBAL
18031 # define LT_DLGLOBAL DL_GLOBAL
18032 # else
18033 # define LT_DLGLOBAL 0
18034 # endif
18035 #endif
18037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18038 find out it does not work in some platform. */
18039 #ifndef LT_DLLAZY_OR_NOW
18040 # ifdef RTLD_LAZY
18041 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18042 # else
18043 # ifdef DL_LAZY
18044 # define LT_DLLAZY_OR_NOW DL_LAZY
18045 # else
18046 # ifdef RTLD_NOW
18047 # define LT_DLLAZY_OR_NOW RTLD_NOW
18048 # else
18049 # ifdef DL_NOW
18050 # define LT_DLLAZY_OR_NOW DL_NOW
18051 # else
18052 # define LT_DLLAZY_OR_NOW 0
18053 # endif
18054 # endif
18055 # endif
18056 # endif
18057 #endif
18059 #ifdef __cplusplus
18060 extern "C" void exit (int);
18061 #endif
18063 void fnord() { int i=42;}
18064 int main ()
18066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067 int status = $lt_dlunknown;
18069 if (self)
18071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18073 /* dlclose (self); */
18076 exit (status);
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18084 (./conftest; exit; ) 2>/dev/null
18085 lt_status=$?
18086 case x$lt_status in
18087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18089 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18090 esac
18091 else :
18092 # compilation failed
18093 lt_cv_dlopen_self=no
18096 rm -fr conftest*
18100 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18101 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18103 if test "x$lt_cv_dlopen_self" = xyes; then
18104 LDFLAGS="$LDFLAGS $link_static_flag"
18105 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18106 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18107 if test "${lt_cv_dlopen_self_static+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110 if test "$cross_compiling" = yes; then :
18111 lt_cv_dlopen_self_static=cross
18112 else
18113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18114 lt_status=$lt_dlunknown
18115 cat > conftest.$ac_ext <<EOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18119 #if HAVE_DLFCN_H
18120 #include <dlfcn.h>
18121 #endif
18123 #include <stdio.h>
18125 #ifdef RTLD_GLOBAL
18126 # define LT_DLGLOBAL RTLD_GLOBAL
18127 #else
18128 # ifdef DL_GLOBAL
18129 # define LT_DLGLOBAL DL_GLOBAL
18130 # else
18131 # define LT_DLGLOBAL 0
18132 # endif
18133 #endif
18135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18136 find out it does not work in some platform. */
18137 #ifndef LT_DLLAZY_OR_NOW
18138 # ifdef RTLD_LAZY
18139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18140 # else
18141 # ifdef DL_LAZY
18142 # define LT_DLLAZY_OR_NOW DL_LAZY
18143 # else
18144 # ifdef RTLD_NOW
18145 # define LT_DLLAZY_OR_NOW RTLD_NOW
18146 # else
18147 # ifdef DL_NOW
18148 # define LT_DLLAZY_OR_NOW DL_NOW
18149 # else
18150 # define LT_DLLAZY_OR_NOW 0
18151 # endif
18152 # endif
18153 # endif
18154 # endif
18155 #endif
18157 #ifdef __cplusplus
18158 extern "C" void exit (int);
18159 #endif
18161 void fnord() { int i=42;}
18162 int main ()
18164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18165 int status = $lt_dlunknown;
18167 if (self)
18169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18171 /* dlclose (self); */
18174 exit (status);
18177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18178 (eval $ac_link) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18182 (./conftest; exit; ) 2>/dev/null
18183 lt_status=$?
18184 case x$lt_status in
18185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18188 esac
18189 else :
18190 # compilation failed
18191 lt_cv_dlopen_self_static=no
18194 rm -fr conftest*
18198 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18199 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18202 CPPFLAGS="$save_CPPFLAGS"
18203 LDFLAGS="$save_LDFLAGS"
18204 LIBS="$save_LIBS"
18206 esac
18208 case $lt_cv_dlopen_self in
18209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18210 *) enable_dlopen_self=unknown ;;
18211 esac
18213 case $lt_cv_dlopen_self_static in
18214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18215 *) enable_dlopen_self_static=unknown ;;
18216 esac
18220 # The else clause should only fire when bootstrapping the
18221 # libtool distribution, otherwise you forgot to ship ltmain.sh
18222 # with your package, and you will get complaints that there are
18223 # no rules to generate ltmain.sh.
18224 if test -f "$ltmain"; then
18225 # See if we are running on zsh, and set the options which allow our commands through
18226 # without removal of \ escapes.
18227 if test -n "${ZSH_VERSION+set}" ; then
18228 setopt NO_GLOB_SUBST
18230 # Now quote all the things that may contain metacharacters while being
18231 # careful not to overquote the AC_SUBSTed values. We take copies of the
18232 # variables and quote the copies for generation of the libtool script.
18233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18234 SED SHELL STRIP \
18235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18237 deplibs_check_method reload_flag reload_cmds need_locks \
18238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18239 lt_cv_sys_global_symbol_to_c_name_address \
18240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18241 old_postinstall_cmds old_postuninstall_cmds \
18242 compiler_GCJ \
18243 CC_GCJ \
18244 LD_GCJ \
18245 lt_prog_compiler_wl_GCJ \
18246 lt_prog_compiler_pic_GCJ \
18247 lt_prog_compiler_static_GCJ \
18248 lt_prog_compiler_no_builtin_flag_GCJ \
18249 export_dynamic_flag_spec_GCJ \
18250 thread_safe_flag_spec_GCJ \
18251 whole_archive_flag_spec_GCJ \
18252 enable_shared_with_static_runtimes_GCJ \
18253 old_archive_cmds_GCJ \
18254 old_archive_from_new_cmds_GCJ \
18255 predep_objects_GCJ \
18256 postdep_objects_GCJ \
18257 predeps_GCJ \
18258 postdeps_GCJ \
18259 compiler_lib_search_path_GCJ \
18260 archive_cmds_GCJ \
18261 archive_expsym_cmds_GCJ \
18262 postinstall_cmds_GCJ \
18263 postuninstall_cmds_GCJ \
18264 old_archive_from_expsyms_cmds_GCJ \
18265 allow_undefined_flag_GCJ \
18266 no_undefined_flag_GCJ \
18267 export_symbols_cmds_GCJ \
18268 hardcode_libdir_flag_spec_GCJ \
18269 hardcode_libdir_flag_spec_ld_GCJ \
18270 hardcode_libdir_separator_GCJ \
18271 hardcode_automatic_GCJ \
18272 module_cmds_GCJ \
18273 module_expsym_cmds_GCJ \
18274 lt_cv_prog_compiler_c_o_GCJ \
18275 exclude_expsyms_GCJ \
18276 include_expsyms_GCJ; do
18278 case $var in
18279 old_archive_cmds_GCJ | \
18280 old_archive_from_new_cmds_GCJ | \
18281 archive_cmds_GCJ | \
18282 archive_expsym_cmds_GCJ | \
18283 module_cmds_GCJ | \
18284 module_expsym_cmds_GCJ | \
18285 old_archive_from_expsyms_cmds_GCJ | \
18286 export_symbols_cmds_GCJ | \
18287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18288 postinstall_cmds | postuninstall_cmds | \
18289 old_postinstall_cmds | old_postuninstall_cmds | \
18290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18291 # Double-quote double-evaled strings.
18292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18297 esac
18298 done
18300 case $lt_echo in
18301 *'\$0 --fallback-echo"')
18302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18304 esac
18306 cfgfile="$ofile"
18308 cat <<__EOF__ >> "$cfgfile"
18309 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18313 # Shell to use when invoking shell scripts.
18314 SHELL=$lt_SHELL
18316 # Whether or not to build shared libraries.
18317 build_libtool_libs=$enable_shared
18319 # Whether or not to build static libraries.
18320 build_old_libs=$enable_static
18322 # Whether or not to add -lc for building shared libraries.
18323 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18325 # Whether or not to disallow shared libs when runtime libs are static
18326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18328 # Whether or not to optimize for fast installation.
18329 fast_install=$enable_fast_install
18331 # The host system.
18332 host_alias=$host_alias
18333 host=$host
18335 # An echo program that does not interpret backslashes.
18336 echo=$lt_echo
18338 # The archiver.
18339 AR=$lt_AR
18340 AR_FLAGS=$lt_AR_FLAGS
18342 # A C compiler.
18343 LTCC=$lt_LTCC
18345 # A language-specific compiler.
18346 CC=$lt_compiler_GCJ
18348 # Is the compiler the GNU C compiler?
18349 with_gcc=$GCC_GCJ
18351 # An ERE matcher.
18352 EGREP=$lt_EGREP
18354 # The linker used to build libraries.
18355 LD=$lt_LD_GCJ
18357 # Whether we need hard or soft links.
18358 LN_S=$lt_LN_S
18360 # A BSD-compatible nm program.
18361 NM=$lt_NM
18363 # A symbol stripping program
18364 STRIP=$lt_STRIP
18366 # Used to examine libraries when file_magic_cmd begins "file"
18367 MAGIC_CMD=$MAGIC_CMD
18369 # Used on cygwin: DLL creation program.
18370 DLLTOOL="$DLLTOOL"
18372 # Used on cygwin: object dumper.
18373 OBJDUMP="$OBJDUMP"
18375 # Used on cygwin: assembler.
18376 AS="$AS"
18378 # The name of the directory that contains temporary libtool files.
18379 objdir=$objdir
18381 # How to create reloadable object files.
18382 reload_flag=$lt_reload_flag
18383 reload_cmds=$lt_reload_cmds
18385 # How to pass a linker flag through the compiler.
18386 wl=$lt_lt_prog_compiler_wl_GCJ
18388 # Object file suffix (normally "o").
18389 objext="$ac_objext"
18391 # Old archive suffix (normally "a").
18392 libext="$libext"
18394 # Shared library suffix (normally ".so").
18395 shrext_cmds='$shrext_cmds'
18397 # Executable file suffix (normally "").
18398 exeext="$exeext"
18400 # Additional compiler flags for building library objects.
18401 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18402 pic_mode=$pic_mode
18404 # What is the maximum length of a command?
18405 max_cmd_len=$lt_cv_sys_max_cmd_len
18407 # Does compiler simultaneously support -c and -o options?
18408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18410 # Must we lock files when doing compilation ?
18411 need_locks=$lt_need_locks
18413 # Do we need the lib prefix for modules?
18414 need_lib_prefix=$need_lib_prefix
18416 # Do we need a version for libraries?
18417 need_version=$need_version
18419 # Whether dlopen is supported.
18420 dlopen_support=$enable_dlopen
18422 # Whether dlopen of programs is supported.
18423 dlopen_self=$enable_dlopen_self
18425 # Whether dlopen of statically linked programs is supported.
18426 dlopen_self_static=$enable_dlopen_self_static
18428 # Compiler flag to prevent dynamic linking.
18429 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18431 # Compiler flag to turn off builtin functions.
18432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18434 # Compiler flag to allow reflexive dlopens.
18435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18437 # Compiler flag to generate shared objects directly from archives.
18438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18440 # Compiler flag to generate thread-safe objects.
18441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18443 # Library versioning type.
18444 version_type=$version_type
18446 # Format of library name prefix.
18447 libname_spec=$lt_libname_spec
18449 # List of archive names. First name is the real one, the rest are links.
18450 # The last name is the one that the linker finds with -lNAME.
18451 library_names_spec=$lt_library_names_spec
18453 # The coded name of the library, if different from the real name.
18454 soname_spec=$lt_soname_spec
18456 # Commands used to build and install an old-style archive.
18457 RANLIB=$lt_RANLIB
18458 old_archive_cmds=$lt_old_archive_cmds_GCJ
18459 old_postinstall_cmds=$lt_old_postinstall_cmds
18460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18462 # Create an old-style archive from a shared archive.
18463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18465 # Create a temporary old-style archive to link instead of a shared archive.
18466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18468 # Commands used to build and install a shared archive.
18469 archive_cmds=$lt_archive_cmds_GCJ
18470 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18471 postinstall_cmds=$lt_postinstall_cmds
18472 postuninstall_cmds=$lt_postuninstall_cmds
18474 # Commands used to build a loadable module (assumed same as above if empty)
18475 module_cmds=$lt_module_cmds_GCJ
18476 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18478 # Commands to strip libraries.
18479 old_striplib=$lt_old_striplib
18480 striplib=$lt_striplib
18482 # Dependencies to place before the objects being linked to create a
18483 # shared library.
18484 predep_objects=$lt_predep_objects_GCJ
18486 # Dependencies to place after the objects being linked to create a
18487 # shared library.
18488 postdep_objects=$lt_postdep_objects_GCJ
18490 # Dependencies to place before the objects being linked to create a
18491 # shared library.
18492 predeps=$lt_predeps_GCJ
18494 # Dependencies to place after the objects being linked to create a
18495 # shared library.
18496 postdeps=$lt_postdeps_GCJ
18498 # The library search path used internally by the compiler when linking
18499 # a shared library.
18500 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18502 # Method to check whether dependent libraries are shared objects.
18503 deplibs_check_method=$lt_deplibs_check_method
18505 # Command to use when deplibs_check_method == file_magic.
18506 file_magic_cmd=$lt_file_magic_cmd
18508 # Flag that allows shared libraries with undefined symbols to be built.
18509 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18511 # Flag that forces no undefined symbols.
18512 no_undefined_flag=$lt_no_undefined_flag_GCJ
18514 # Commands used to finish a libtool library installation in a directory.
18515 finish_cmds=$lt_finish_cmds
18517 # Same as above, but a single script fragment to be evaled but not shown.
18518 finish_eval=$lt_finish_eval
18520 # Take the output of nm and produce a listing of raw symbols and C names.
18521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18523 # Transform the output of nm in a proper C declaration
18524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18526 # Transform the output of nm in a C name address pair
18527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18529 # This is the shared library runtime path variable.
18530 runpath_var=$runpath_var
18532 # This is the shared library path variable.
18533 shlibpath_var=$shlibpath_var
18535 # Is shlibpath searched before the hard-coded library search path?
18536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18538 # How to hardcode a shared library path into an executable.
18539 hardcode_action=$hardcode_action_GCJ
18541 # Whether we should hardcode library paths into libraries.
18542 hardcode_into_libs=$hardcode_into_libs
18544 # Flag to hardcode \$libdir into a binary during linking.
18545 # This must work even if \$libdir does not exist.
18546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18548 # If ld is used when linking, flag to hardcode \$libdir into
18549 # a binary during linking. This must work even if \$libdir does
18550 # not exist.
18551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18553 # Whether we need a single -rpath flag with a separated argument.
18554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18557 # resulting binary.
18558 hardcode_direct=$hardcode_direct_GCJ
18560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18561 # resulting binary.
18562 hardcode_minus_L=$hardcode_minus_L_GCJ
18564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18565 # the resulting binary.
18566 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18568 # Set to yes if building a shared library automatically hardcodes DIR into the library
18569 # and all subsequent libraries and executables linked against it.
18570 hardcode_automatic=$hardcode_automatic_GCJ
18572 # Variables whose values should be saved in libtool wrapper scripts and
18573 # restored at relink time.
18574 variables_saved_for_relink="$variables_saved_for_relink"
18576 # Whether libtool must link a program against all its dependency libraries.
18577 link_all_deplibs=$link_all_deplibs_GCJ
18579 # Compile-time system search path for libraries
18580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18582 # Run-time system search path for libraries
18583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18585 # Fix the shell variable \$srcfile for the compiler.
18586 fix_srcfile_path="$fix_srcfile_path_GCJ"
18588 # Set to yes if exported symbols are required.
18589 always_export_symbols=$always_export_symbols_GCJ
18591 # The commands to list exported symbols.
18592 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18594 # The commands to extract the exported symbol list from a shared archive.
18595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18597 # Symbols that should not be listed in the preloaded symbols.
18598 exclude_expsyms=$lt_exclude_expsyms_GCJ
18600 # Symbols that must always be exported.
18601 include_expsyms=$lt_include_expsyms_GCJ
18603 # ### END LIBTOOL TAG CONFIG: $tagname
18605 __EOF__
18608 else
18609 # If there is no Makefile yet, we rely on a make rule to execute
18610 # `config.status --recheck' to rerun these tests and create the
18611 # libtool script then.
18612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18613 if test -f "$ltmain_in"; then
18614 test -f Makefile && make "$ltmain"
18619 ac_ext=cc
18620 ac_cpp='$CXXCPP $CPPFLAGS'
18621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18625 CC="$lt_save_CC"
18627 else
18628 tagname=""
18636 # Source file extension for RC test sources.
18637 ac_ext=rc
18639 # Object file extension for compiled RC test sources.
18640 objext=o
18641 objext_RC=$objext
18643 # Code to be used in simple compile tests
18644 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18646 # Code to be used in simple link tests
18647 lt_simple_link_test_code="$lt_simple_compile_test_code"
18649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18651 # If no C compiler was specified, use CC.
18652 LTCC=${LTCC-"$CC"}
18654 # Allow CC to be a program name with arguments.
18655 compiler=$CC
18658 # Allow CC to be a program name with arguments.
18659 lt_save_CC="$CC"
18660 CC=${RC-"windres"}
18661 compiler=$CC
18662 compiler_RC=$CC
18663 lt_cv_prog_compiler_c_o_RC=yes
18665 # The else clause should only fire when bootstrapping the
18666 # libtool distribution, otherwise you forgot to ship ltmain.sh
18667 # with your package, and you will get complaints that there are
18668 # no rules to generate ltmain.sh.
18669 if test -f "$ltmain"; then
18670 # See if we are running on zsh, and set the options which allow our commands through
18671 # without removal of \ escapes.
18672 if test -n "${ZSH_VERSION+set}" ; then
18673 setopt NO_GLOB_SUBST
18675 # Now quote all the things that may contain metacharacters while being
18676 # careful not to overquote the AC_SUBSTed values. We take copies of the
18677 # variables and quote the copies for generation of the libtool script.
18678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18679 SED SHELL STRIP \
18680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18682 deplibs_check_method reload_flag reload_cmds need_locks \
18683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18684 lt_cv_sys_global_symbol_to_c_name_address \
18685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18686 old_postinstall_cmds old_postuninstall_cmds \
18687 compiler_RC \
18688 CC_RC \
18689 LD_RC \
18690 lt_prog_compiler_wl_RC \
18691 lt_prog_compiler_pic_RC \
18692 lt_prog_compiler_static_RC \
18693 lt_prog_compiler_no_builtin_flag_RC \
18694 export_dynamic_flag_spec_RC \
18695 thread_safe_flag_spec_RC \
18696 whole_archive_flag_spec_RC \
18697 enable_shared_with_static_runtimes_RC \
18698 old_archive_cmds_RC \
18699 old_archive_from_new_cmds_RC \
18700 predep_objects_RC \
18701 postdep_objects_RC \
18702 predeps_RC \
18703 postdeps_RC \
18704 compiler_lib_search_path_RC \
18705 archive_cmds_RC \
18706 archive_expsym_cmds_RC \
18707 postinstall_cmds_RC \
18708 postuninstall_cmds_RC \
18709 old_archive_from_expsyms_cmds_RC \
18710 allow_undefined_flag_RC \
18711 no_undefined_flag_RC \
18712 export_symbols_cmds_RC \
18713 hardcode_libdir_flag_spec_RC \
18714 hardcode_libdir_flag_spec_ld_RC \
18715 hardcode_libdir_separator_RC \
18716 hardcode_automatic_RC \
18717 module_cmds_RC \
18718 module_expsym_cmds_RC \
18719 lt_cv_prog_compiler_c_o_RC \
18720 exclude_expsyms_RC \
18721 include_expsyms_RC; do
18723 case $var in
18724 old_archive_cmds_RC | \
18725 old_archive_from_new_cmds_RC | \
18726 archive_cmds_RC | \
18727 archive_expsym_cmds_RC | \
18728 module_cmds_RC | \
18729 module_expsym_cmds_RC | \
18730 old_archive_from_expsyms_cmds_RC | \
18731 export_symbols_cmds_RC | \
18732 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18733 postinstall_cmds | postuninstall_cmds | \
18734 old_postinstall_cmds | old_postuninstall_cmds | \
18735 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18736 # Double-quote double-evaled strings.
18737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18742 esac
18743 done
18745 case $lt_echo in
18746 *'\$0 --fallback-echo"')
18747 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18749 esac
18751 cfgfile="$ofile"
18753 cat <<__EOF__ >> "$cfgfile"
18754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18758 # Shell to use when invoking shell scripts.
18759 SHELL=$lt_SHELL
18761 # Whether or not to build shared libraries.
18762 build_libtool_libs=$enable_shared
18764 # Whether or not to build static libraries.
18765 build_old_libs=$enable_static
18767 # Whether or not to add -lc for building shared libraries.
18768 build_libtool_need_lc=$archive_cmds_need_lc_RC
18770 # Whether or not to disallow shared libs when runtime libs are static
18771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18773 # Whether or not to optimize for fast installation.
18774 fast_install=$enable_fast_install
18776 # The host system.
18777 host_alias=$host_alias
18778 host=$host
18780 # An echo program that does not interpret backslashes.
18781 echo=$lt_echo
18783 # The archiver.
18784 AR=$lt_AR
18785 AR_FLAGS=$lt_AR_FLAGS
18787 # A C compiler.
18788 LTCC=$lt_LTCC
18790 # A language-specific compiler.
18791 CC=$lt_compiler_RC
18793 # Is the compiler the GNU C compiler?
18794 with_gcc=$GCC_RC
18796 # An ERE matcher.
18797 EGREP=$lt_EGREP
18799 # The linker used to build libraries.
18800 LD=$lt_LD_RC
18802 # Whether we need hard or soft links.
18803 LN_S=$lt_LN_S
18805 # A BSD-compatible nm program.
18806 NM=$lt_NM
18808 # A symbol stripping program
18809 STRIP=$lt_STRIP
18811 # Used to examine libraries when file_magic_cmd begins "file"
18812 MAGIC_CMD=$MAGIC_CMD
18814 # Used on cygwin: DLL creation program.
18815 DLLTOOL="$DLLTOOL"
18817 # Used on cygwin: object dumper.
18818 OBJDUMP="$OBJDUMP"
18820 # Used on cygwin: assembler.
18821 AS="$AS"
18823 # The name of the directory that contains temporary libtool files.
18824 objdir=$objdir
18826 # How to create reloadable object files.
18827 reload_flag=$lt_reload_flag
18828 reload_cmds=$lt_reload_cmds
18830 # How to pass a linker flag through the compiler.
18831 wl=$lt_lt_prog_compiler_wl_RC
18833 # Object file suffix (normally "o").
18834 objext="$ac_objext"
18836 # Old archive suffix (normally "a").
18837 libext="$libext"
18839 # Shared library suffix (normally ".so").
18840 shrext_cmds='$shrext_cmds'
18842 # Executable file suffix (normally "").
18843 exeext="$exeext"
18845 # Additional compiler flags for building library objects.
18846 pic_flag=$lt_lt_prog_compiler_pic_RC
18847 pic_mode=$pic_mode
18849 # What is the maximum length of a command?
18850 max_cmd_len=$lt_cv_sys_max_cmd_len
18852 # Does compiler simultaneously support -c and -o options?
18853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18855 # Must we lock files when doing compilation ?
18856 need_locks=$lt_need_locks
18858 # Do we need the lib prefix for modules?
18859 need_lib_prefix=$need_lib_prefix
18861 # Do we need a version for libraries?
18862 need_version=$need_version
18864 # Whether dlopen is supported.
18865 dlopen_support=$enable_dlopen
18867 # Whether dlopen of programs is supported.
18868 dlopen_self=$enable_dlopen_self
18870 # Whether dlopen of statically linked programs is supported.
18871 dlopen_self_static=$enable_dlopen_self_static
18873 # Compiler flag to prevent dynamic linking.
18874 link_static_flag=$lt_lt_prog_compiler_static_RC
18876 # Compiler flag to turn off builtin functions.
18877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18879 # Compiler flag to allow reflexive dlopens.
18880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18882 # Compiler flag to generate shared objects directly from archives.
18883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18885 # Compiler flag to generate thread-safe objects.
18886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18888 # Library versioning type.
18889 version_type=$version_type
18891 # Format of library name prefix.
18892 libname_spec=$lt_libname_spec
18894 # List of archive names. First name is the real one, the rest are links.
18895 # The last name is the one that the linker finds with -lNAME.
18896 library_names_spec=$lt_library_names_spec
18898 # The coded name of the library, if different from the real name.
18899 soname_spec=$lt_soname_spec
18901 # Commands used to build and install an old-style archive.
18902 RANLIB=$lt_RANLIB
18903 old_archive_cmds=$lt_old_archive_cmds_RC
18904 old_postinstall_cmds=$lt_old_postinstall_cmds
18905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18907 # Create an old-style archive from a shared archive.
18908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18910 # Create a temporary old-style archive to link instead of a shared archive.
18911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18913 # Commands used to build and install a shared archive.
18914 archive_cmds=$lt_archive_cmds_RC
18915 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18916 postinstall_cmds=$lt_postinstall_cmds
18917 postuninstall_cmds=$lt_postuninstall_cmds
18919 # Commands used to build a loadable module (assumed same as above if empty)
18920 module_cmds=$lt_module_cmds_RC
18921 module_expsym_cmds=$lt_module_expsym_cmds_RC
18923 # Commands to strip libraries.
18924 old_striplib=$lt_old_striplib
18925 striplib=$lt_striplib
18927 # Dependencies to place before the objects being linked to create a
18928 # shared library.
18929 predep_objects=$lt_predep_objects_RC
18931 # Dependencies to place after the objects being linked to create a
18932 # shared library.
18933 postdep_objects=$lt_postdep_objects_RC
18935 # Dependencies to place before the objects being linked to create a
18936 # shared library.
18937 predeps=$lt_predeps_RC
18939 # Dependencies to place after the objects being linked to create a
18940 # shared library.
18941 postdeps=$lt_postdeps_RC
18943 # The library search path used internally by the compiler when linking
18944 # a shared library.
18945 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18947 # Method to check whether dependent libraries are shared objects.
18948 deplibs_check_method=$lt_deplibs_check_method
18950 # Command to use when deplibs_check_method == file_magic.
18951 file_magic_cmd=$lt_file_magic_cmd
18953 # Flag that allows shared libraries with undefined symbols to be built.
18954 allow_undefined_flag=$lt_allow_undefined_flag_RC
18956 # Flag that forces no undefined symbols.
18957 no_undefined_flag=$lt_no_undefined_flag_RC
18959 # Commands used to finish a libtool library installation in a directory.
18960 finish_cmds=$lt_finish_cmds
18962 # Same as above, but a single script fragment to be evaled but not shown.
18963 finish_eval=$lt_finish_eval
18965 # Take the output of nm and produce a listing of raw symbols and C names.
18966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18968 # Transform the output of nm in a proper C declaration
18969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18971 # Transform the output of nm in a C name address pair
18972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18974 # This is the shared library runtime path variable.
18975 runpath_var=$runpath_var
18977 # This is the shared library path variable.
18978 shlibpath_var=$shlibpath_var
18980 # Is shlibpath searched before the hard-coded library search path?
18981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18983 # How to hardcode a shared library path into an executable.
18984 hardcode_action=$hardcode_action_RC
18986 # Whether we should hardcode library paths into libraries.
18987 hardcode_into_libs=$hardcode_into_libs
18989 # Flag to hardcode \$libdir into a binary during linking.
18990 # This must work even if \$libdir does not exist.
18991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18993 # If ld is used when linking, flag to hardcode \$libdir into
18994 # a binary during linking. This must work even if \$libdir does
18995 # not exist.
18996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18998 # Whether we need a single -rpath flag with a separated argument.
18999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19002 # resulting binary.
19003 hardcode_direct=$hardcode_direct_RC
19005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19006 # resulting binary.
19007 hardcode_minus_L=$hardcode_minus_L_RC
19009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19010 # the resulting binary.
19011 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19013 # Set to yes if building a shared library automatically hardcodes DIR into the library
19014 # and all subsequent libraries and executables linked against it.
19015 hardcode_automatic=$hardcode_automatic_RC
19017 # Variables whose values should be saved in libtool wrapper scripts and
19018 # restored at relink time.
19019 variables_saved_for_relink="$variables_saved_for_relink"
19021 # Whether libtool must link a program against all its dependency libraries.
19022 link_all_deplibs=$link_all_deplibs_RC
19024 # Compile-time system search path for libraries
19025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19027 # Run-time system search path for libraries
19028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19030 # Fix the shell variable \$srcfile for the compiler.
19031 fix_srcfile_path="$fix_srcfile_path_RC"
19033 # Set to yes if exported symbols are required.
19034 always_export_symbols=$always_export_symbols_RC
19036 # The commands to list exported symbols.
19037 export_symbols_cmds=$lt_export_symbols_cmds_RC
19039 # The commands to extract the exported symbol list from a shared archive.
19040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19042 # Symbols that should not be listed in the preloaded symbols.
19043 exclude_expsyms=$lt_exclude_expsyms_RC
19045 # Symbols that must always be exported.
19046 include_expsyms=$lt_include_expsyms_RC
19048 # ### END LIBTOOL TAG CONFIG: $tagname
19050 __EOF__
19053 else
19054 # If there is no Makefile yet, we rely on a make rule to execute
19055 # `config.status --recheck' to rerun these tests and create the
19056 # libtool script then.
19057 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19058 if test -f "$ltmain_in"; then
19059 test -f Makefile && make "$ltmain"
19064 ac_ext=cc
19065 ac_cpp='$CXXCPP $CPPFLAGS'
19066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19070 CC="$lt_save_CC"
19075 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19076 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19077 { (exit 1); exit 1; }; }
19079 esac
19081 # Append the new tag name to the list of available tags.
19082 if test -n "$tagname" ; then
19083 available_tags="$available_tags $tagname"
19086 done
19087 IFS="$lt_save_ifs"
19089 # Now substitute the updated list of available tags.
19090 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19091 mv "${ofile}T" "$ofile"
19092 chmod +x "$ofile"
19093 else
19094 rm -f "${ofile}T"
19095 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19096 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19097 { (exit 1); exit 1; }; }
19103 # This can be used to rebuild libtool when needed
19104 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19106 # Always use our own libtool.
19107 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19109 # Prevent multiple expansion
19130 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19131 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19132 if test "${ac_cv_c_bigendian+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 # See if sys/param.h defines the BYTE_ORDER macro.
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 #include <sys/types.h>
19143 #include <sys/param.h>
19146 main ()
19148 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19149 bogus endian macros
19150 #endif
19153 return 0;
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158 (eval $ac_compile) 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_cxx_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 # It does; now see whether it defined to BIG_ENDIAN or not.
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <sys/types.h>
19186 #include <sys/param.h>
19189 main ()
19191 #if BYTE_ORDER != BIG_ENDIAN
19192 not big endian
19193 #endif
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_cxx_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_c_bigendian=yes
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_cv_c_bigendian=no
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 else
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 # It does not; compile a test program.
19234 if test "$cross_compiling" = yes; then
19235 # try to guess the endianness by grepping values into an object file
19236 ac_cv_c_bigendian=unknown
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19244 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19245 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19246 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19247 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19248 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19250 main ()
19252 _ascii (); _ebcdic ();
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_cxx_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19280 ac_cv_c_bigendian=yes
19282 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19283 if test "$ac_cv_c_bigendian" = unknown; then
19284 ac_cv_c_bigendian=no
19285 else
19286 # finding both strings is unlikely to happen, but who knows?
19287 ac_cv_c_bigendian=unknown
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 else
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19304 main ()
19306 /* Are we little or big endian? From Harbison&Steele. */
19307 union
19309 long l;
19310 char c[sizeof (long)];
19311 } u;
19312 u.l = 1;
19313 exit (u.c[sizeof (long) - 1] == 1);
19315 _ACEOF
19316 rm -f conftest$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318 (eval $ac_link) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_c_bigendian=no
19328 else
19329 echo "$as_me: program exited with status $ac_status" >&5
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ( exit $ac_status )
19334 ac_cv_c_bigendian=yes
19336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19341 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19342 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19343 case $ac_cv_c_bigendian in
19344 yes)
19346 cat >>confdefs.h <<\_ACEOF
19347 #define WORDS_BIGENDIAN 1
19348 _ACEOF
19353 { { echo "$as_me:$LINENO: error: unknown endianness
19354 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19355 echo "$as_me: error: unknown endianness
19356 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19357 { (exit 1); exit 1; }; } ;;
19358 esac
19361 for ac_prog in 'bison -y' byacc
19363 # Extract the first word of "$ac_prog", so it can be a program name with args.
19364 set dummy $ac_prog; ac_word=$2
19365 echo "$as_me:$LINENO: checking for $ac_word" >&5
19366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19367 if test "${ac_cv_prog_YACC+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370 if test -n "$YACC"; then
19371 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19372 else
19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 for as_dir in $PATH
19376 IFS=$as_save_IFS
19377 test -z "$as_dir" && as_dir=.
19378 for ac_exec_ext in '' $ac_executable_extensions; do
19379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19380 ac_cv_prog_YACC="$ac_prog"
19381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19382 break 2
19384 done
19385 done
19389 YACC=$ac_cv_prog_YACC
19390 if test -n "$YACC"; then
19391 echo "$as_me:$LINENO: result: $YACC" >&5
19392 echo "${ECHO_T}$YACC" >&6
19393 else
19394 echo "$as_me:$LINENO: result: no" >&5
19395 echo "${ECHO_T}no" >&6
19398 test -n "$YACC" && break
19399 done
19400 test -n "$YACC" || YACC="yacc"
19402 for ac_prog in flex lex
19404 # Extract the first word of "$ac_prog", so it can be a program name with args.
19405 set dummy $ac_prog; ac_word=$2
19406 echo "$as_me:$LINENO: checking for $ac_word" >&5
19407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19408 if test "${ac_cv_prog_LEX+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411 if test -n "$LEX"; then
19412 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19413 else
19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 for as_dir in $PATH
19417 IFS=$as_save_IFS
19418 test -z "$as_dir" && as_dir=.
19419 for ac_exec_ext in '' $ac_executable_extensions; do
19420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19421 ac_cv_prog_LEX="$ac_prog"
19422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19423 break 2
19425 done
19426 done
19430 LEX=$ac_cv_prog_LEX
19431 if test -n "$LEX"; then
19432 echo "$as_me:$LINENO: result: $LEX" >&5
19433 echo "${ECHO_T}$LEX" >&6
19434 else
19435 echo "$as_me:$LINENO: result: no" >&5
19436 echo "${ECHO_T}no" >&6
19439 test -n "$LEX" && break
19440 done
19441 test -n "$LEX" || LEX=":"
19443 if test -z "$LEXLIB"
19444 then
19445 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
19446 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
19447 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450 ac_check_lib_save_LIBS=$LIBS
19451 LIBS="-lfl $LIBS"
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19459 /* Override any gcc2 internal prototype to avoid an error. */
19460 #ifdef __cplusplus
19461 extern "C"
19462 #endif
19463 /* We use char because int might match the return type of a gcc2
19464 builtin and then its argument prototype would still apply. */
19465 char yywrap ();
19467 main ()
19469 yywrap ();
19471 return 0;
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_cxx_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_lib_fl_yywrap=yes
19497 else
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_lib_fl_yywrap=no
19503 rm -f conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19505 LIBS=$ac_check_lib_save_LIBS
19507 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
19508 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
19509 if test $ac_cv_lib_fl_yywrap = yes; then
19510 LEXLIB="-lfl"
19511 else
19512 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
19513 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
19514 if test "${ac_cv_lib_l_yywrap+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517 ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-ll $LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h. */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any gcc2 internal prototype to avoid an error. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19532 char yywrap ();
19534 main ()
19536 yywrap ();
19538 return 0;
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_cxx_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_l_yywrap=yes
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_lib_l_yywrap=no
19570 rm -f conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19574 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
19575 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
19576 if test $ac_cv_lib_l_yywrap = yes; then
19577 LEXLIB="-ll"
19584 if test "x$LEX" != "x:"; then
19585 echo "$as_me:$LINENO: checking lex output file root" >&5
19586 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
19587 if test "${ac_cv_prog_lex_root+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590 # The minimal lex program is just a single line: %%. But some broken lexes
19591 # (Solaris, I think it was) want two %% lines, so accommodate them.
19592 cat >conftest.l <<_ACEOF
19595 _ACEOF
19596 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
19597 (eval $LEX conftest.l) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }
19601 if test -f lex.yy.c; then
19602 ac_cv_prog_lex_root=lex.yy
19603 elif test -f lexyy.c; then
19604 ac_cv_prog_lex_root=lexyy
19605 else
19606 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19607 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19608 { (exit 1); exit 1; }; }
19611 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19612 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
19613 rm -f conftest.l
19614 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19616 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19617 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
19618 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 # POSIX says lex can declare yytext either as a pointer or an array; the
19622 # default is implementation-dependent. Figure out which it is, since
19623 # not all implementations provide the %pointer and %array declarations.
19624 ac_cv_prog_lex_yytext_pointer=no
19625 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
19626 ac_save_LIBS=$LIBS
19627 LIBS="$LIBS $LEXLIB"
19628 cat >conftest.$ac_ext <<_ACEOF
19629 `cat $LEX_OUTPUT_ROOT.c`
19630 _ACEOF
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19633 (eval $ac_link) 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_cxx_werror_flag"
19641 || test ! -s conftest.err'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; } &&
19647 { ac_try='test -s conftest$ac_exeext'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_prog_lex_yytext_pointer=yes
19654 else
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19659 rm -f conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_save_LIBS
19662 rm -f "${LEX_OUTPUT_ROOT}.c"
19665 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19666 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
19667 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define YYTEXT_POINTER 1
19671 _ACEOF
19676 if test "$LEX" = :; then
19677 LEX=${am_missing_run}flex
19680 case "${host_os}" in
19681 *linux* )
19682 OSTYPE=LINUX
19684 esac
19685 case "${host_cpu}" in
19686 i686 | i386 )
19687 CPUTYPE=i686
19689 esac
19690 echo "#ifndef BUILD_H" >build.h
19691 echo "#define BUILD_H" >>build.h
19692 echo "#define CSQL" >>build.h
19693 echo "#define ${OSTYPE}" >>build.h
19694 echo "#define ${CPUTYPE}" >>build.h
19695 echo "#endif " >>build.h
19696 cp build.h include
19712 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
19713 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
19714 signal.h
19716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718 echo "$as_me:$LINENO: checking for $ac_header" >&5
19719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19725 else
19726 # Is the header compilable?
19727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 $ac_includes_default
19736 #include <$ac_header>
19737 _ACEOF
19738 rm -f conftest.$ac_objext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19740 (eval $ac_compile) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_cxx_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try='test -s conftest.$ac_objext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_header_compiler=yes
19761 else
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_header_compiler=no
19767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 echo "${ECHO_T}$ac_header_compiler" >&6
19771 # Is the header present?
19772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19781 _ACEOF
19782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } >/dev/null; then
19790 if test -s conftest.err; then
19791 ac_cpp_err=$ac_cxx_preproc_warn_flag
19792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19793 else
19794 ac_cpp_err=
19796 else
19797 ac_cpp_err=yes
19799 if test -z "$ac_cpp_err"; then
19800 ac_header_preproc=yes
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 ac_header_preproc=no
19807 rm -f conftest.err conftest.$ac_ext
19808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19809 echo "${ECHO_T}$ac_header_preproc" >&6
19811 # So? What about this header?
19812 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19813 yes:no: )
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19818 ac_header_preproc=yes
19820 no:yes:* )
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19834 cat <<\_ASBOX
19835 ## ------------------------------------------ ##
19836 ## Report this to the AC_PACKAGE_NAME lists. ##
19837 ## ------------------------------------------ ##
19838 _ASBOX
19840 sed "s/^/$as_me: WARNING: /" >&2
19842 esac
19843 echo "$as_me:$LINENO: checking for $ac_header" >&5
19844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 eval "$as_ac_Header=\$ac_header_preproc"
19850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19857 _ACEOF
19861 done
19866 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/jdbc/Makefile src/odbc/Makefile"
19867 cat >confcache <<\_ACEOF
19868 # This file is a shell script that caches the results of configure
19869 # tests run on this system so they can be shared between configure
19870 # scripts and configure runs, see configure's option --config-cache.
19871 # It is not useful on other systems. If it contains results you don't
19872 # want to keep, you may remove or edit it.
19874 # config.status only pays attention to the cache file if you give it
19875 # the --recheck option to rerun configure.
19877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19879 # following values.
19881 _ACEOF
19883 # The following way of writing the cache mishandles newlines in values,
19884 # but we know of no workaround that is simple, portable, and efficient.
19885 # So, don't put newlines in cache variables' values.
19886 # Ultrix sh set writes to stderr and can't be redirected directly,
19887 # and sets the high bit in the cache file unless we assign to the vars.
19889 (set) 2>&1 |
19890 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19891 *ac_space=\ *)
19892 # `set' does not quote correctly, so add quotes (double-quote
19893 # substitution turns \\\\ into \\, and sed turns \\ into \).
19894 sed -n \
19895 "s/'/'\\\\''/g;
19896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19899 # `set' quotes correctly as required by POSIX, so do not add quotes.
19900 sed -n \
19901 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19903 esac;
19905 sed '
19906 t clear
19907 : clear
19908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19909 t end
19910 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19911 : end' >>confcache
19912 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19913 if test -w $cache_file; then
19914 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19915 cat confcache >$cache_file
19916 else
19917 echo "not updating unwritable cache $cache_file"
19920 rm -f confcache
19922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19923 # Let make expand exec_prefix.
19924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19928 # trailing colons and then remove the whole line if VPATH becomes empty
19929 # (actually we leave an empty line to preserve line numbers).
19930 if test "x$srcdir" = x.; then
19931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19932 s/:*\$(srcdir):*/:/;
19933 s/:*\${srcdir}:*/:/;
19934 s/:*@srcdir@:*/:/;
19935 s/^\([^=]*=[ ]*\):*/\1/;
19936 s/:*$//;
19937 s/^[^=]*=[ ]*$//;
19941 DEFS=-DHAVE_CONFIG_H
19943 ac_libobjs=
19944 ac_ltlibobjs=
19945 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19946 # 1. Remove the extension, and $U if already installed.
19947 ac_i=`echo "$ac_i" |
19948 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19949 # 2. Add them.
19950 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19951 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19952 done
19953 LIBOBJS=$ac_libobjs
19955 LTLIBOBJS=$ac_ltlibobjs
19958 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19959 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19960 Usually this means the macro was only invoked conditionally." >&5
19961 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19962 Usually this means the macro was only invoked conditionally." >&2;}
19963 { (exit 1); exit 1; }; }
19965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19966 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19967 Usually this means the macro was only invoked conditionally." >&5
19968 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19969 Usually this means the macro was only invoked conditionally." >&2;}
19970 { (exit 1); exit 1; }; }
19972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19973 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19974 Usually this means the macro was only invoked conditionally." >&5
19975 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19976 Usually this means the macro was only invoked conditionally." >&2;}
19977 { (exit 1); exit 1; }; }
19980 : ${CONFIG_STATUS=./config.status}
19981 ac_clean_files_save=$ac_clean_files
19982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19985 cat >$CONFIG_STATUS <<_ACEOF
19986 #! $SHELL
19987 # Generated by $as_me.
19988 # Run this file to recreate the current configuration.
19989 # Compiler output produced by configure, useful for debugging
19990 # configure, is in config.log if it exists.
19992 debug=false
19993 ac_cs_recheck=false
19994 ac_cs_silent=false
19995 SHELL=\${CONFIG_SHELL-$SHELL}
19996 _ACEOF
19998 cat >>$CONFIG_STATUS <<\_ACEOF
19999 ## --------------------- ##
20000 ## M4sh Initialization. ##
20001 ## --------------------- ##
20003 # Be Bourne compatible
20004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20005 emulate sh
20006 NULLCMD=:
20007 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20008 # is contrary to our usage. Disable this feature.
20009 alias -g '${1+"$@"}'='"$@"'
20010 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20011 set -o posix
20013 DUALCASE=1; export DUALCASE # for MKS sh
20015 # Support unset when possible.
20016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20017 as_unset=unset
20018 else
20019 as_unset=false
20023 # Work around bugs in pre-3.0 UWIN ksh.
20024 $as_unset ENV MAIL MAILPATH
20025 PS1='$ '
20026 PS2='> '
20027 PS4='+ '
20029 # NLS nuisances.
20030 for as_var in \
20031 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20032 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20033 LC_TELEPHONE LC_TIME
20035 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20036 eval $as_var=C; export $as_var
20037 else
20038 $as_unset $as_var
20040 done
20042 # Required to use basename.
20043 if expr a : '\(a\)' >/dev/null 2>&1; then
20044 as_expr=expr
20045 else
20046 as_expr=false
20049 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20050 as_basename=basename
20051 else
20052 as_basename=false
20056 # Name of the executable.
20057 as_me=`$as_basename "$0" ||
20058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20059 X"$0" : 'X\(//\)$' \| \
20060 X"$0" : 'X\(/\)$' \| \
20061 . : '\(.\)' 2>/dev/null ||
20062 echo X/"$0" |
20063 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20064 /^X\/\(\/\/\)$/{ s//\1/; q; }
20065 /^X\/\(\/\).*/{ s//\1/; q; }
20066 s/.*/./; q'`
20069 # PATH needs CR, and LINENO needs CR and PATH.
20070 # Avoid depending upon Character Ranges.
20071 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20072 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20073 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20074 as_cr_digits='0123456789'
20075 as_cr_alnum=$as_cr_Letters$as_cr_digits
20077 # The user is always right.
20078 if test "${PATH_SEPARATOR+set}" != set; then
20079 echo "#! /bin/sh" >conf$$.sh
20080 echo "exit 0" >>conf$$.sh
20081 chmod +x conf$$.sh
20082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20083 PATH_SEPARATOR=';'
20084 else
20085 PATH_SEPARATOR=:
20087 rm -f conf$$.sh
20091 as_lineno_1=$LINENO
20092 as_lineno_2=$LINENO
20093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20094 test "x$as_lineno_1" != "x$as_lineno_2" &&
20095 test "x$as_lineno_3" = "x$as_lineno_2" || {
20096 # Find who we are. Look in the path if we contain no path at all
20097 # relative or not.
20098 case $0 in
20099 *[\\/]* ) as_myself=$0 ;;
20100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101 for as_dir in $PATH
20103 IFS=$as_save_IFS
20104 test -z "$as_dir" && as_dir=.
20105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20106 done
20109 esac
20110 # We did not find ourselves, most probably we were run as `sh COMMAND'
20111 # in which case we are not to be found in the path.
20112 if test "x$as_myself" = x; then
20113 as_myself=$0
20115 if test ! -f "$as_myself"; then
20116 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20117 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20118 { (exit 1); exit 1; }; }
20120 case $CONFIG_SHELL in
20122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20123 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20125 IFS=$as_save_IFS
20126 test -z "$as_dir" && as_dir=.
20127 for as_base in sh bash ksh sh5; do
20128 case $as_dir in
20130 if ("$as_dir/$as_base" -c '
20131 as_lineno_1=$LINENO
20132 as_lineno_2=$LINENO
20133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20134 test "x$as_lineno_1" != "x$as_lineno_2" &&
20135 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20136 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20137 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20138 CONFIG_SHELL=$as_dir/$as_base
20139 export CONFIG_SHELL
20140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20141 fi;;
20142 esac
20143 done
20144 done
20146 esac
20148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20149 # uniformly replaced by the line number. The first 'sed' inserts a
20150 # line-number line before each line; the second 'sed' does the real
20151 # work. The second script uses 'N' to pair each line-number line
20152 # with the numbered line, and appends trailing '-' during
20153 # substitution so that $LINENO is not a special case at line end.
20154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20156 sed '=' <$as_myself |
20157 sed '
20159 s,$,-,
20160 : loop
20161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20162 t loop
20163 s,-$,,
20164 s,^['$as_cr_digits']*\n,,
20165 ' >$as_me.lineno &&
20166 chmod +x $as_me.lineno ||
20167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20168 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20169 { (exit 1); exit 1; }; }
20171 # Don't try to exec as it changes $[0], causing all sort of problems
20172 # (the dirname of $[0] is not the place where we might find the
20173 # original and so on. Autoconf is especially sensible to this).
20174 . ./$as_me.lineno
20175 # Exit status is that of the last command.
20176 exit
20180 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20181 *c*,-n*) ECHO_N= ECHO_C='
20182 ' ECHO_T=' ' ;;
20183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20185 esac
20187 if expr a : '\(a\)' >/dev/null 2>&1; then
20188 as_expr=expr
20189 else
20190 as_expr=false
20193 rm -f conf$$ conf$$.exe conf$$.file
20194 echo >conf$$.file
20195 if ln -s conf$$.file conf$$ 2>/dev/null; then
20196 # We could just check for DJGPP; but this test a) works b) is more generic
20197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20198 if test -f conf$$.exe; then
20199 # Don't use ln at all; we don't have any links
20200 as_ln_s='cp -p'
20201 else
20202 as_ln_s='ln -s'
20204 elif ln conf$$.file conf$$ 2>/dev/null; then
20205 as_ln_s=ln
20206 else
20207 as_ln_s='cp -p'
20209 rm -f conf$$ conf$$.exe conf$$.file
20211 if mkdir -p . 2>/dev/null; then
20212 as_mkdir_p=:
20213 else
20214 test -d ./-p && rmdir ./-p
20215 as_mkdir_p=false
20218 as_executable_p="test -f"
20220 # Sed expression to map a string onto a valid CPP name.
20221 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20223 # Sed expression to map a string onto a valid variable name.
20224 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20227 # IFS
20228 # We need space, tab and new line, in precisely that order.
20229 as_nl='
20231 IFS=" $as_nl"
20233 # CDPATH.
20234 $as_unset CDPATH
20236 exec 6>&1
20238 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20239 # report actual input values of CONFIG_FILES etc. instead of their
20240 # values after options handling. Logging --version etc. is OK.
20241 exec 5>>config.log
20243 echo
20244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20245 ## Running $as_me. ##
20246 _ASBOX
20247 } >&5
20248 cat >&5 <<_CSEOF
20250 This file was extended by $as_me, which was
20251 generated by GNU Autoconf 2.59. Invocation command line was
20253 CONFIG_FILES = $CONFIG_FILES
20254 CONFIG_HEADERS = $CONFIG_HEADERS
20255 CONFIG_LINKS = $CONFIG_LINKS
20256 CONFIG_COMMANDS = $CONFIG_COMMANDS
20257 $ $0 $@
20259 _CSEOF
20260 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20261 echo >&5
20262 _ACEOF
20264 # Files that config.status was made for.
20265 if test -n "$ac_config_files"; then
20266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20269 if test -n "$ac_config_headers"; then
20270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20273 if test -n "$ac_config_links"; then
20274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20277 if test -n "$ac_config_commands"; then
20278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20281 cat >>$CONFIG_STATUS <<\_ACEOF
20283 ac_cs_usage="\
20284 \`$as_me' instantiates files from templates according to the
20285 current configuration.
20287 Usage: $0 [OPTIONS] [FILE]...
20289 -h, --help print this help, then exit
20290 -V, --version print version number, then exit
20291 -q, --quiet do not print progress messages
20292 -d, --debug don't remove temporary files
20293 --recheck update $as_me by reconfiguring in the same conditions
20294 --file=FILE[:TEMPLATE]
20295 instantiate the configuration file FILE
20296 --header=FILE[:TEMPLATE]
20297 instantiate the configuration header FILE
20299 Configuration files:
20300 $config_files
20302 Configuration headers:
20303 $config_headers
20305 Configuration commands:
20306 $config_commands
20308 Report bugs to <bug-autoconf@gnu.org>."
20309 _ACEOF
20311 cat >>$CONFIG_STATUS <<_ACEOF
20312 ac_cs_version="\\
20313 config.status
20314 configured by $0, generated by GNU Autoconf 2.59,
20315 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20317 Copyright (C) 2003 Free Software Foundation, Inc.
20318 This config.status script is free software; the Free Software Foundation
20319 gives unlimited permission to copy, distribute and modify it."
20320 srcdir=$srcdir
20321 INSTALL="$INSTALL"
20322 _ACEOF
20324 cat >>$CONFIG_STATUS <<\_ACEOF
20325 # If no file are specified by the user, then we need to provide default
20326 # value. By we need to know if files were specified by the user.
20327 ac_need_defaults=:
20328 while test $# != 0
20330 case $1 in
20331 --*=*)
20332 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20333 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20334 ac_shift=:
20337 ac_option=$1
20338 ac_optarg=$2
20339 ac_shift=shift
20341 *) # This is not an option, so the user has probably given explicit
20342 # arguments.
20343 ac_option=$1
20344 ac_need_defaults=false;;
20345 esac
20347 case $ac_option in
20348 # Handling of the options.
20349 _ACEOF
20350 cat >>$CONFIG_STATUS <<\_ACEOF
20351 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20352 ac_cs_recheck=: ;;
20353 --version | --vers* | -V )
20354 echo "$ac_cs_version"; exit 0 ;;
20355 --he | --h)
20356 # Conflict between --help and --header
20357 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20358 Try \`$0 --help' for more information." >&5
20359 echo "$as_me: error: ambiguous option: $1
20360 Try \`$0 --help' for more information." >&2;}
20361 { (exit 1); exit 1; }; };;
20362 --help | --hel | -h )
20363 echo "$ac_cs_usage"; exit 0 ;;
20364 --debug | --d* | -d )
20365 debug=: ;;
20366 --file | --fil | --fi | --f )
20367 $ac_shift
20368 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20369 ac_need_defaults=false;;
20370 --header | --heade | --head | --hea )
20371 $ac_shift
20372 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20373 ac_need_defaults=false;;
20374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20376 ac_cs_silent=: ;;
20378 # This is an error.
20379 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20380 Try \`$0 --help' for more information." >&5
20381 echo "$as_me: error: unrecognized option: $1
20382 Try \`$0 --help' for more information." >&2;}
20383 { (exit 1); exit 1; }; } ;;
20385 *) ac_config_targets="$ac_config_targets $1" ;;
20387 esac
20388 shift
20389 done
20391 ac_configure_extra_args=
20393 if $ac_cs_silent; then
20394 exec 6>/dev/null
20395 ac_configure_extra_args="$ac_configure_extra_args --silent"
20398 _ACEOF
20399 cat >>$CONFIG_STATUS <<_ACEOF
20400 if \$ac_cs_recheck; then
20401 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20402 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20405 _ACEOF
20407 cat >>$CONFIG_STATUS <<_ACEOF
20409 # INIT-COMMANDS section.
20412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20414 _ACEOF
20418 cat >>$CONFIG_STATUS <<\_ACEOF
20419 for ac_config_target in $ac_config_targets
20421 case "$ac_config_target" in
20422 # Handling of arguments.
20423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20424 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20425 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20426 "src/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
20427 "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20428 "src/adapter/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/adapter/Makefile" ;;
20429 "src/gateway/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
20430 "src/cache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
20431 "src/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;;
20432 "src/sqllog/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sqllog/Makefile" ;;
20433 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20434 "src/jdbc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
20435 "src/odbc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/odbc/Makefile" ;;
20436 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20437 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20438 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20440 { (exit 1); exit 1; }; };;
20441 esac
20442 done
20444 # If the user did not use the arguments to specify the items to instantiate,
20445 # then the envvar interface is used. Set only those that are not.
20446 # We use the long form for the default assignment because of an extremely
20447 # bizarre bug on SunOS 4.1.3.
20448 if $ac_need_defaults; then
20449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20454 # Have a temporary directory for convenience. Make it in the build tree
20455 # simply because there is no reason to put it here, and in addition,
20456 # creating and moving files from /tmp can sometimes cause problems.
20457 # Create a temporary directory, and hook for its removal unless debugging.
20458 $debug ||
20460 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20461 trap '{ (exit 1); exit 1; }' 1 2 13 15
20464 # Create a (secure) tmp directory for tmp files.
20467 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20468 test -n "$tmp" && test -d "$tmp"
20469 } ||
20471 tmp=./confstat$$-$RANDOM
20472 (umask 077 && mkdir $tmp)
20473 } ||
20475 echo "$me: cannot create a temporary directory in ." >&2
20476 { (exit 1); exit 1; }
20479 _ACEOF
20481 cat >>$CONFIG_STATUS <<_ACEOF
20484 # CONFIG_FILES section.
20487 # No need to generate the scripts if there are no CONFIG_FILES.
20488 # This happens for instance when ./config.status config.h
20489 if test -n "\$CONFIG_FILES"; then
20490 # Protect against being on the right side of a sed subst in config.status.
20491 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20492 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20493 s,@SHELL@,$SHELL,;t t
20494 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20495 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20496 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20497 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20498 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20499 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20500 s,@exec_prefix@,$exec_prefix,;t t
20501 s,@prefix@,$prefix,;t t
20502 s,@program_transform_name@,$program_transform_name,;t t
20503 s,@bindir@,$bindir,;t t
20504 s,@sbindir@,$sbindir,;t t
20505 s,@libexecdir@,$libexecdir,;t t
20506 s,@datadir@,$datadir,;t t
20507 s,@sysconfdir@,$sysconfdir,;t t
20508 s,@sharedstatedir@,$sharedstatedir,;t t
20509 s,@localstatedir@,$localstatedir,;t t
20510 s,@libdir@,$libdir,;t t
20511 s,@includedir@,$includedir,;t t
20512 s,@oldincludedir@,$oldincludedir,;t t
20513 s,@infodir@,$infodir,;t t
20514 s,@mandir@,$mandir,;t t
20515 s,@build_alias@,$build_alias,;t t
20516 s,@host_alias@,$host_alias,;t t
20517 s,@target_alias@,$target_alias,;t t
20518 s,@DEFS@,$DEFS,;t t
20519 s,@ECHO_C@,$ECHO_C,;t t
20520 s,@ECHO_N@,$ECHO_N,;t t
20521 s,@ECHO_T@,$ECHO_T,;t t
20522 s,@LIBS@,$LIBS,;t t
20523 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20524 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20525 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20526 s,@CYGPATH_W@,$CYGPATH_W,;t t
20527 s,@PACKAGE@,$PACKAGE,;t t
20528 s,@VERSION@,$VERSION,;t t
20529 s,@ACLOCAL@,$ACLOCAL,;t t
20530 s,@AUTOCONF@,$AUTOCONF,;t t
20531 s,@AUTOMAKE@,$AUTOMAKE,;t t
20532 s,@AUTOHEADER@,$AUTOHEADER,;t t
20533 s,@MAKEINFO@,$MAKEINFO,;t t
20534 s,@install_sh@,$install_sh,;t t
20535 s,@STRIP@,$STRIP,;t t
20536 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20537 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20538 s,@mkdir_p@,$mkdir_p,;t t
20539 s,@AWK@,$AWK,;t t
20540 s,@SET_MAKE@,$SET_MAKE,;t t
20541 s,@am__leading_dot@,$am__leading_dot,;t t
20542 s,@AMTAR@,$AMTAR,;t t
20543 s,@am__tar@,$am__tar,;t t
20544 s,@am__untar@,$am__untar,;t t
20545 s,@CXX@,$CXX,;t t
20546 s,@CXXFLAGS@,$CXXFLAGS,;t t
20547 s,@LDFLAGS@,$LDFLAGS,;t t
20548 s,@CPPFLAGS@,$CPPFLAGS,;t t
20549 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20550 s,@EXEEXT@,$EXEEXT,;t t
20551 s,@OBJEXT@,$OBJEXT,;t t
20552 s,@DEPDIR@,$DEPDIR,;t t
20553 s,@am__include@,$am__include,;t t
20554 s,@am__quote@,$am__quote,;t t
20555 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20556 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20557 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20558 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20559 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20560 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20561 s,@build@,$build,;t t
20562 s,@build_cpu@,$build_cpu,;t t
20563 s,@build_vendor@,$build_vendor,;t t
20564 s,@build_os@,$build_os,;t t
20565 s,@host@,$host,;t t
20566 s,@host_cpu@,$host_cpu,;t t
20567 s,@host_vendor@,$host_vendor,;t t
20568 s,@host_os@,$host_os,;t t
20569 s,@CC@,$CC,;t t
20570 s,@CFLAGS@,$CFLAGS,;t t
20571 s,@ac_ct_CC@,$ac_ct_CC,;t t
20572 s,@CCDEPMODE@,$CCDEPMODE,;t t
20573 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20574 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20575 s,@EGREP@,$EGREP,;t t
20576 s,@LN_S@,$LN_S,;t t
20577 s,@ECHO@,$ECHO,;t t
20578 s,@AR@,$AR,;t t
20579 s,@ac_ct_AR@,$ac_ct_AR,;t t
20580 s,@RANLIB@,$RANLIB,;t t
20581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20582 s,@CPP@,$CPP,;t t
20583 s,@CXXCPP@,$CXXCPP,;t t
20584 s,@F77@,$F77,;t t
20585 s,@FFLAGS@,$FFLAGS,;t t
20586 s,@ac_ct_F77@,$ac_ct_F77,;t t
20587 s,@LIBTOOL@,$LIBTOOL,;t t
20588 s,@YACC@,$YACC,;t t
20589 s,@LEX@,$LEX,;t t
20590 s,@LEXLIB@,$LEXLIB,;t t
20591 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20592 s,@LIBOBJS@,$LIBOBJS,;t t
20593 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20594 CEOF
20596 _ACEOF
20598 cat >>$CONFIG_STATUS <<\_ACEOF
20599 # Split the substitutions into bite-sized pieces for seds with
20600 # small command number limits, like on Digital OSF/1 and HP-UX.
20601 ac_max_sed_lines=48
20602 ac_sed_frag=1 # Number of current file.
20603 ac_beg=1 # First line for current file.
20604 ac_end=$ac_max_sed_lines # Line after last line for current file.
20605 ac_more_lines=:
20606 ac_sed_cmds=
20607 while $ac_more_lines; do
20608 if test $ac_beg -gt 1; then
20609 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20610 else
20611 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20613 if test ! -s $tmp/subs.frag; then
20614 ac_more_lines=false
20615 else
20616 # The purpose of the label and of the branching condition is to
20617 # speed up the sed processing (if there are no `@' at all, there
20618 # is no need to browse any of the substitutions).
20619 # These are the two extra sed commands mentioned above.
20620 (echo ':t
20621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20622 if test -z "$ac_sed_cmds"; then
20623 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20624 else
20625 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20627 ac_sed_frag=`expr $ac_sed_frag + 1`
20628 ac_beg=$ac_end
20629 ac_end=`expr $ac_end + $ac_max_sed_lines`
20631 done
20632 if test -z "$ac_sed_cmds"; then
20633 ac_sed_cmds=cat
20635 fi # test -n "$CONFIG_FILES"
20637 _ACEOF
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20639 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20641 case $ac_file in
20642 - | *:- | *:-:* ) # input from stdin
20643 cat >$tmp/stdin
20644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20648 * ) ac_file_in=$ac_file.in ;;
20649 esac
20651 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20652 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20654 X"$ac_file" : 'X\(//\)[^/]' \| \
20655 X"$ac_file" : 'X\(//\)$' \| \
20656 X"$ac_file" : 'X\(/\)' \| \
20657 . : '\(.\)' 2>/dev/null ||
20658 echo X"$ac_file" |
20659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20661 /^X\(\/\/\)$/{ s//\1/; q; }
20662 /^X\(\/\).*/{ s//\1/; q; }
20663 s/.*/./; q'`
20664 { if $as_mkdir_p; then
20665 mkdir -p "$ac_dir"
20666 else
20667 as_dir="$ac_dir"
20668 as_dirs=
20669 while test ! -d "$as_dir"; do
20670 as_dirs="$as_dir $as_dirs"
20671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X"$as_dir" : 'X\(//\)[^/]' \| \
20674 X"$as_dir" : 'X\(//\)$' \| \
20675 X"$as_dir" : 'X\(/\)' \| \
20676 . : '\(.\)' 2>/dev/null ||
20677 echo X"$as_dir" |
20678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20680 /^X\(\/\/\)$/{ s//\1/; q; }
20681 /^X\(\/\).*/{ s//\1/; q; }
20682 s/.*/./; q'`
20683 done
20684 test ! -n "$as_dirs" || mkdir $as_dirs
20685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20687 { (exit 1); exit 1; }; }; }
20689 ac_builddir=.
20691 if test "$ac_dir" != .; then
20692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20693 # A "../" for each directory in $ac_dir_suffix.
20694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20695 else
20696 ac_dir_suffix= ac_top_builddir=
20699 case $srcdir in
20700 .) # No --srcdir option. We are building in place.
20701 ac_srcdir=.
20702 if test -z "$ac_top_builddir"; then
20703 ac_top_srcdir=.
20704 else
20705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20706 fi ;;
20707 [\\/]* | ?:[\\/]* ) # Absolute path.
20708 ac_srcdir=$srcdir$ac_dir_suffix;
20709 ac_top_srcdir=$srcdir ;;
20710 *) # Relative path.
20711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20713 esac
20715 # Do not use `cd foo && pwd` to compute absolute paths, because
20716 # the directories may not exist.
20717 case `pwd` in
20718 .) ac_abs_builddir="$ac_dir";;
20720 case "$ac_dir" in
20721 .) ac_abs_builddir=`pwd`;;
20722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20724 esac;;
20725 esac
20726 case $ac_abs_builddir in
20727 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20729 case ${ac_top_builddir}. in
20730 .) ac_abs_top_builddir=$ac_abs_builddir;;
20731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20733 esac;;
20734 esac
20735 case $ac_abs_builddir in
20736 .) ac_abs_srcdir=$ac_srcdir;;
20738 case $ac_srcdir in
20739 .) ac_abs_srcdir=$ac_abs_builddir;;
20740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20742 esac;;
20743 esac
20744 case $ac_abs_builddir in
20745 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20747 case $ac_top_srcdir in
20748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20751 esac;;
20752 esac
20755 case $INSTALL in
20756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20757 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20758 esac
20760 if test x"$ac_file" != x-; then
20761 { echo "$as_me:$LINENO: creating $ac_file" >&5
20762 echo "$as_me: creating $ac_file" >&6;}
20763 rm -f "$ac_file"
20765 # Let's still pretend it is `configure' which instantiates (i.e., don't
20766 # use $as_me), people would be surprised to read:
20767 # /* config.h. Generated by config.status. */
20768 if test x"$ac_file" = x-; then
20769 configure_input=
20770 else
20771 configure_input="$ac_file. "
20773 configure_input=$configure_input"Generated from `echo $ac_file_in |
20774 sed 's,.*/,,'` by configure."
20776 # First look for the input files in the build tree, otherwise in the
20777 # src tree.
20778 ac_file_inputs=`IFS=:
20779 for f in $ac_file_in; do
20780 case $f in
20781 -) echo $tmp/stdin ;;
20782 [\\/$]*)
20783 # Absolute (can't be DOS-style, as IFS=:)
20784 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20785 echo "$as_me: error: cannot find input file: $f" >&2;}
20786 { (exit 1); exit 1; }; }
20787 echo "$f";;
20788 *) # Relative
20789 if test -f "$f"; then
20790 # Build tree
20791 echo "$f"
20792 elif test -f "$srcdir/$f"; then
20793 # Source tree
20794 echo "$srcdir/$f"
20795 else
20796 # /dev/null tree
20797 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20798 echo "$as_me: error: cannot find input file: $f" >&2;}
20799 { (exit 1); exit 1; }; }
20800 fi;;
20801 esac
20802 done` || { (exit 1); exit 1; }
20803 _ACEOF
20804 cat >>$CONFIG_STATUS <<_ACEOF
20805 sed "$ac_vpsub
20806 $extrasub
20807 _ACEOF
20808 cat >>$CONFIG_STATUS <<\_ACEOF
20810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20811 s,@configure_input@,$configure_input,;t t
20812 s,@srcdir@,$ac_srcdir,;t t
20813 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20814 s,@top_srcdir@,$ac_top_srcdir,;t t
20815 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20816 s,@builddir@,$ac_builddir,;t t
20817 s,@abs_builddir@,$ac_abs_builddir,;t t
20818 s,@top_builddir@,$ac_top_builddir,;t t
20819 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20820 s,@INSTALL@,$ac_INSTALL,;t t
20821 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20822 rm -f $tmp/stdin
20823 if test x"$ac_file" != x-; then
20824 mv $tmp/out $ac_file
20825 else
20826 cat $tmp/out
20827 rm -f $tmp/out
20830 done
20831 _ACEOF
20832 cat >>$CONFIG_STATUS <<\_ACEOF
20835 # CONFIG_HEADER section.
20838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20841 # ac_d sets the value in "#define NAME VALUE" lines.
20842 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20843 ac_dB='[ ].*$,\1#\2'
20844 ac_dC=' '
20845 ac_dD=',;t'
20846 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20847 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20848 ac_uB='$,\1#\2define\3'
20849 ac_uC=' '
20850 ac_uD=',;t'
20852 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20854 case $ac_file in
20855 - | *:- | *:-:* ) # input from stdin
20856 cat >$tmp/stdin
20857 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20859 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20861 * ) ac_file_in=$ac_file.in ;;
20862 esac
20864 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20865 echo "$as_me: creating $ac_file" >&6;}
20867 # First look for the input files in the build tree, otherwise in the
20868 # src tree.
20869 ac_file_inputs=`IFS=:
20870 for f in $ac_file_in; do
20871 case $f in
20872 -) echo $tmp/stdin ;;
20873 [\\/$]*)
20874 # Absolute (can't be DOS-style, as IFS=:)
20875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20876 echo "$as_me: error: cannot find input file: $f" >&2;}
20877 { (exit 1); exit 1; }; }
20878 # Do quote $f, to prevent DOS paths from being IFS'd.
20879 echo "$f";;
20880 *) # Relative
20881 if test -f "$f"; then
20882 # Build tree
20883 echo "$f"
20884 elif test -f "$srcdir/$f"; then
20885 # Source tree
20886 echo "$srcdir/$f"
20887 else
20888 # /dev/null tree
20889 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20890 echo "$as_me: error: cannot find input file: $f" >&2;}
20891 { (exit 1); exit 1; }; }
20892 fi;;
20893 esac
20894 done` || { (exit 1); exit 1; }
20895 # Remove the trailing spaces.
20896 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20898 _ACEOF
20900 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20901 # `conftest.undefs', that substitutes the proper values into
20902 # config.h.in to produce config.h. The first handles `#define'
20903 # templates, and the second `#undef' templates.
20904 # And first: Protect against being on the right side of a sed subst in
20905 # config.status. Protect against being in an unquoted here document
20906 # in config.status.
20907 rm -f conftest.defines conftest.undefs
20908 # Using a here document instead of a string reduces the quoting nightmare.
20909 # Putting comments in sed scripts is not portable.
20911 # `end' is used to avoid that the second main sed command (meant for
20912 # 0-ary CPP macros) applies to n-ary macro definitions.
20913 # See the Autoconf documentation for `clear'.
20914 cat >confdef2sed.sed <<\_ACEOF
20915 s/[\\&,]/\\&/g
20916 s,[\\$`],\\&,g
20917 t clear
20918 : clear
20919 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20920 t end
20921 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20922 : end
20923 _ACEOF
20924 # If some macros were called several times there might be several times
20925 # the same #defines, which is useless. Nevertheless, we may not want to
20926 # sort them, since we want the *last* AC-DEFINE to be honored.
20927 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20928 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20929 rm -f confdef2sed.sed
20931 # This sed command replaces #undef with comments. This is necessary, for
20932 # example, in the case of _POSIX_SOURCE, which is predefined and required
20933 # on some systems where configure will not decide to define it.
20934 cat >>conftest.undefs <<\_ACEOF
20935 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20936 _ACEOF
20938 # Break up conftest.defines because some shells have a limit on the size
20939 # of here documents, and old seds have small limits too (100 cmds).
20940 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20941 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20942 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20943 echo ' :' >>$CONFIG_STATUS
20944 rm -f conftest.tail
20945 while grep . conftest.defines >/dev/null
20947 # Write a limited-size here document to $tmp/defines.sed.
20948 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20949 # Speed up: don't consider the non `#define' lines.
20950 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20951 # Work around the forget-to-reset-the-flag bug.
20952 echo 't clr' >>$CONFIG_STATUS
20953 echo ': clr' >>$CONFIG_STATUS
20954 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20955 echo 'CEOF
20956 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20957 rm -f $tmp/in
20958 mv $tmp/out $tmp/in
20959 ' >>$CONFIG_STATUS
20960 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20961 rm -f conftest.defines
20962 mv conftest.tail conftest.defines
20963 done
20964 rm -f conftest.defines
20965 echo ' fi # grep' >>$CONFIG_STATUS
20966 echo >>$CONFIG_STATUS
20968 # Break up conftest.undefs because some shells have a limit on the size
20969 # of here documents, and old seds have small limits too (100 cmds).
20970 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20971 rm -f conftest.tail
20972 while grep . conftest.undefs >/dev/null
20974 # Write a limited-size here document to $tmp/undefs.sed.
20975 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20976 # Speed up: don't consider the non `#undef'
20977 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20978 # Work around the forget-to-reset-the-flag bug.
20979 echo 't clr' >>$CONFIG_STATUS
20980 echo ': clr' >>$CONFIG_STATUS
20981 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20982 echo 'CEOF
20983 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20984 rm -f $tmp/in
20985 mv $tmp/out $tmp/in
20986 ' >>$CONFIG_STATUS
20987 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20988 rm -f conftest.undefs
20989 mv conftest.tail conftest.undefs
20990 done
20991 rm -f conftest.undefs
20993 cat >>$CONFIG_STATUS <<\_ACEOF
20994 # Let's still pretend it is `configure' which instantiates (i.e., don't
20995 # use $as_me), people would be surprised to read:
20996 # /* config.h. Generated by config.status. */
20997 if test x"$ac_file" = x-; then
20998 echo "/* Generated by configure. */" >$tmp/config.h
20999 else
21000 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21002 cat $tmp/in >>$tmp/config.h
21003 rm -f $tmp/in
21004 if test x"$ac_file" != x-; then
21005 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21006 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21007 echo "$as_me: $ac_file is unchanged" >&6;}
21008 else
21009 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X"$ac_file" : 'X\(//\)[^/]' \| \
21012 X"$ac_file" : 'X\(//\)$' \| \
21013 X"$ac_file" : 'X\(/\)' \| \
21014 . : '\(.\)' 2>/dev/null ||
21015 echo X"$ac_file" |
21016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21018 /^X\(\/\/\)$/{ s//\1/; q; }
21019 /^X\(\/\).*/{ s//\1/; q; }
21020 s/.*/./; q'`
21021 { if $as_mkdir_p; then
21022 mkdir -p "$ac_dir"
21023 else
21024 as_dir="$ac_dir"
21025 as_dirs=
21026 while test ! -d "$as_dir"; do
21027 as_dirs="$as_dir $as_dirs"
21028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21030 X"$as_dir" : 'X\(//\)[^/]' \| \
21031 X"$as_dir" : 'X\(//\)$' \| \
21032 X"$as_dir" : 'X\(/\)' \| \
21033 . : '\(.\)' 2>/dev/null ||
21034 echo X"$as_dir" |
21035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21037 /^X\(\/\/\)$/{ s//\1/; q; }
21038 /^X\(\/\).*/{ s//\1/; q; }
21039 s/.*/./; q'`
21040 done
21041 test ! -n "$as_dirs" || mkdir $as_dirs
21042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21044 { (exit 1); exit 1; }; }; }
21046 rm -f $ac_file
21047 mv $tmp/config.h $ac_file
21049 else
21050 cat $tmp/config.h
21051 rm -f $tmp/config.h
21053 # Compute $ac_file's index in $config_headers.
21054 _am_stamp_count=1
21055 for _am_header in $config_headers :; do
21056 case $_am_header in
21057 $ac_file | $ac_file:* )
21058 break ;;
21060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21061 esac
21062 done
21063 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21064 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21065 X$ac_file : 'X\(//\)[^/]' \| \
21066 X$ac_file : 'X\(//\)$' \| \
21067 X$ac_file : 'X\(/\)' \| \
21068 . : '\(.\)' 2>/dev/null ||
21069 echo X$ac_file |
21070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21072 /^X\(\/\/\)$/{ s//\1/; q; }
21073 /^X\(\/\).*/{ s//\1/; q; }
21074 s/.*/./; q'`/stamp-h$_am_stamp_count
21075 done
21076 _ACEOF
21077 cat >>$CONFIG_STATUS <<\_ACEOF
21080 # CONFIG_COMMANDS section.
21082 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21083 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21084 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21085 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21086 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21087 X"$ac_dest" : 'X\(//\)[^/]' \| \
21088 X"$ac_dest" : 'X\(//\)$' \| \
21089 X"$ac_dest" : 'X\(/\)' \| \
21090 . : '\(.\)' 2>/dev/null ||
21091 echo X"$ac_dest" |
21092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21094 /^X\(\/\/\)$/{ s//\1/; q; }
21095 /^X\(\/\).*/{ s//\1/; q; }
21096 s/.*/./; q'`
21097 { if $as_mkdir_p; then
21098 mkdir -p "$ac_dir"
21099 else
21100 as_dir="$ac_dir"
21101 as_dirs=
21102 while test ! -d "$as_dir"; do
21103 as_dirs="$as_dir $as_dirs"
21104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21106 X"$as_dir" : 'X\(//\)[^/]' \| \
21107 X"$as_dir" : 'X\(//\)$' \| \
21108 X"$as_dir" : 'X\(/\)' \| \
21109 . : '\(.\)' 2>/dev/null ||
21110 echo X"$as_dir" |
21111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21113 /^X\(\/\/\)$/{ s//\1/; q; }
21114 /^X\(\/\).*/{ s//\1/; q; }
21115 s/.*/./; q'`
21116 done
21117 test ! -n "$as_dirs" || mkdir $as_dirs
21118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21120 { (exit 1); exit 1; }; }; }
21122 ac_builddir=.
21124 if test "$ac_dir" != .; then
21125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21126 # A "../" for each directory in $ac_dir_suffix.
21127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21128 else
21129 ac_dir_suffix= ac_top_builddir=
21132 case $srcdir in
21133 .) # No --srcdir option. We are building in place.
21134 ac_srcdir=.
21135 if test -z "$ac_top_builddir"; then
21136 ac_top_srcdir=.
21137 else
21138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21139 fi ;;
21140 [\\/]* | ?:[\\/]* ) # Absolute path.
21141 ac_srcdir=$srcdir$ac_dir_suffix;
21142 ac_top_srcdir=$srcdir ;;
21143 *) # Relative path.
21144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21146 esac
21148 # Do not use `cd foo && pwd` to compute absolute paths, because
21149 # the directories may not exist.
21150 case `pwd` in
21151 .) ac_abs_builddir="$ac_dir";;
21153 case "$ac_dir" in
21154 .) ac_abs_builddir=`pwd`;;
21155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21157 esac;;
21158 esac
21159 case $ac_abs_builddir in
21160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21162 case ${ac_top_builddir}. in
21163 .) ac_abs_top_builddir=$ac_abs_builddir;;
21164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21166 esac;;
21167 esac
21168 case $ac_abs_builddir in
21169 .) ac_abs_srcdir=$ac_srcdir;;
21171 case $ac_srcdir in
21172 .) ac_abs_srcdir=$ac_abs_builddir;;
21173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21175 esac;;
21176 esac
21177 case $ac_abs_builddir in
21178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21180 case $ac_top_srcdir in
21181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21184 esac;;
21185 esac
21188 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21189 echo "$as_me: executing $ac_dest commands" >&6;}
21190 case $ac_dest in
21191 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21192 # Strip MF so we end up with the name of the file.
21193 mf=`echo "$mf" | sed -e 's/:.*$//'`
21194 # Check whether this is an Automake generated Makefile or not.
21195 # We used to match only the files named `Makefile.in', but
21196 # some people rename them; so instead we look at the file content.
21197 # Grep'ing the first line is not enough: some people post-process
21198 # each Makefile.in and add a new line on top of each file to say so.
21199 # So let's grep whole file.
21200 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21201 dirpart=`(dirname "$mf") 2>/dev/null ||
21202 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21203 X"$mf" : 'X\(//\)[^/]' \| \
21204 X"$mf" : 'X\(//\)$' \| \
21205 X"$mf" : 'X\(/\)' \| \
21206 . : '\(.\)' 2>/dev/null ||
21207 echo X"$mf" |
21208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21210 /^X\(\/\/\)$/{ s//\1/; q; }
21211 /^X\(\/\).*/{ s//\1/; q; }
21212 s/.*/./; q'`
21213 else
21214 continue
21216 # Extract the definition of DEPDIR, am__include, and am__quote
21217 # from the Makefile without running `make'.
21218 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21219 test -z "$DEPDIR" && continue
21220 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21221 test -z "am__include" && continue
21222 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21223 # When using ansi2knr, U may be empty or an underscore; expand it
21224 U=`sed -n 's/^U = //p' < "$mf"`
21225 # Find all dependency output files, they are included files with
21226 # $(DEPDIR) in their names. We invoke sed twice because it is the
21227 # simplest approach to changing $(DEPDIR) to its actual value in the
21228 # expansion.
21229 for file in `sed -n "
21230 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21232 # Make sure the directory exists.
21233 test -f "$dirpart/$file" && continue
21234 fdir=`(dirname "$file") 2>/dev/null ||
21235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21236 X"$file" : 'X\(//\)[^/]' \| \
21237 X"$file" : 'X\(//\)$' \| \
21238 X"$file" : 'X\(/\)' \| \
21239 . : '\(.\)' 2>/dev/null ||
21240 echo X"$file" |
21241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21243 /^X\(\/\/\)$/{ s//\1/; q; }
21244 /^X\(\/\).*/{ s//\1/; q; }
21245 s/.*/./; q'`
21246 { if $as_mkdir_p; then
21247 mkdir -p $dirpart/$fdir
21248 else
21249 as_dir=$dirpart/$fdir
21250 as_dirs=
21251 while test ! -d "$as_dir"; do
21252 as_dirs="$as_dir $as_dirs"
21253 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21255 X"$as_dir" : 'X\(//\)[^/]' \| \
21256 X"$as_dir" : 'X\(//\)$' \| \
21257 X"$as_dir" : 'X\(/\)' \| \
21258 . : '\(.\)' 2>/dev/null ||
21259 echo X"$as_dir" |
21260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21262 /^X\(\/\/\)$/{ s//\1/; q; }
21263 /^X\(\/\).*/{ s//\1/; q; }
21264 s/.*/./; q'`
21265 done
21266 test ! -n "$as_dirs" || mkdir $as_dirs
21267 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21268 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21269 { (exit 1); exit 1; }; }; }
21271 # echo "creating $dirpart/$file"
21272 echo '# dummy' > "$dirpart/$file"
21273 done
21274 done
21276 esac
21277 done
21278 _ACEOF
21280 cat >>$CONFIG_STATUS <<\_ACEOF
21282 { (exit 0); exit 0; }
21283 _ACEOF
21284 chmod +x $CONFIG_STATUS
21285 ac_clean_files=$ac_clean_files_save
21288 # configure is writing to config.log, and then calls config.status.
21289 # config.status does its own redirection, appending to config.log.
21290 # Unfortunately, on DOS this fails, as config.log is still kept open
21291 # by configure, so config.status won't be able to write to it; its
21292 # output is simply discarded. So we exec the FD to /dev/null,
21293 # effectively closing config.log, so it can be properly (re)opened and
21294 # appended to by config.status. When coming back to configure, we
21295 # need to make the FD available again.
21296 if test "$no_create" != yes; then
21297 ac_cs_success=:
21298 ac_config_status_args=
21299 test "$silent" = yes &&
21300 ac_config_status_args="$ac_config_status_args --quiet"
21301 exec 5>/dev/null
21302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21303 exec 5>>config.log
21304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21305 # would make configure fail if this is the last instruction.
21306 $ac_cs_success || { (exit 1); exit 1; }